Permalink
Browse files

Font-size buttons are pointless b/c of browser ctrl.

  • Loading branch information...
1 parent 005a4f6 commit f587a8a5faf3fde650041975ab2cd93a59f5841d @trans trans committed Sep 8, 2011
Showing with 1 addition and 27 deletions.
  1. +0 −23 assets/javascripts/hypervisor.js
  2. +1 −4 index.html
@@ -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});
- }
-
};
View
@@ -75,10 +75,7 @@
<% }; %>
</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>

0 comments on commit f587a8a

Please sign in to comment.