Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kaotikus on github.
  • I am kaotikus (https://keybase.io/kaotikus) on keybase.
  • I have a public key ASBnjHmmZ-A9j43NZfaXm-ak9GVqJLtaQgNUVLCK6aSH7Qo

To claim this, I am signing this object:

@kaotikus
kaotikus / fontSize.js
Created November 24, 2015 03:14
simple example of fontSize switcher in jQuery
// simple example of fontSize switcher in jQuery
$(document).ready(function() {
var $speech = $('div.speech');
var defaultSize = $speech.css('fontSize');
$('#switcher button').click(function() {
var num = parseFloat($speech.css('fontSize'));
switch (this.id) {
case 'switcher-large':