1// Gumby is ready to go 2Gumby.ready(function() { 3 Gumby.log('Gumby is ready to go...', Gumby.dump()); 4 5 // placeholder polyfil 6 if(Gumby.isOldie || Gumby.$dom.find('html').hasClass('ie9')) { 7 $('input, textarea').placeholder(); 8 } 9 10 // skip link and toggle on one element 11 // when the skip link completes, trigger the switch 12 $('#skip-switch').on('gumby.onComplete', function() { 13 $(this).trigger('gumby.trigger'); 14 }); 15 16// Oldie document loaded 17}).oldie(function() { 18 Gumby.warn("This is an oldie browser..."); 19 20// Touch devices loaded 21}).touch(function() { 22 Gumby.log("This is a touch enabled device..."); 23}); 24