Skip to content

Commit

Permalink
Font-size buttons are pointless b/c of browser ctrl.
Browse files Browse the repository at this point in the history
  • Loading branch information
trans committed Sep 8, 2011
1 parent 005a4f6 commit f587a8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
23 changes: 0 additions & 23 deletions assets/javascripts/hypervisor.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,29 +229,6 @@ HyperVisor = {
return vars;
},

resetFontSize: function() {
var ourText = $('html,table');
ourText.css({fontSize: '1em'});
},

increaseFontSize: function() {
var ourText = $('html,table');
var currFontSize = ourText.css('fontSize');
var finalNum = parseFloat(currFontSize, 10);
var stringEnding = currFontSize.slice(-2);
finalNum *= 1.2;
ourText.css({fontSize: finalNum + stringEnding});
},

decreaseFontSize: function() {
var ourText = $('html,table');
var currFontSize = ourText.css('fontSize');
var finalNum = parseFloat(currFontSize, 10);
var stringEnding = currFontSize.slice(-2);
finalNum /= 1.2;
ourText.css({fontSize: finalNum + stringEnding});
}

};


Expand Down
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ <h2><%= this.summary || '' %></h2>
<% }; %>
</div>
<div style="margin-top: 1em;">
<button onclick="$('#raw').toggle();">Meta</button> &nbsp;
<button onclick="HyperVisor.decreaseFontSize();" style="font-size: 0.9em; padding: 0 0 0 0.5em;">A</button>
<button onclick="HyperVisor.resetFontSize();" style="font-size: 1em; padding: 0;">--</button>
<button onclick="HyperVisor.increaseFontSize();" style="font-size: 1.2em; padding: 0 0.5em 0 0;">A</button>
<button onclick="$('#raw').toggle();">Meta</button>&nbsp;
</div>
]]>
</script>
Expand Down

0 comments on commit f587a8a

Please sign in to comment.