mirror of
https://github.com/kidoman/embd
synced 2025-02-09 04:03:16 +01:00
24 lines
614 B
JavaScript
Executable File
24 lines
614 B
JavaScript
Executable File
// Gumby is ready to go
|
|
Gumby.ready(function() {
|
|
Gumby.log('Gumby is ready to go...', Gumby.dump());
|
|
|
|
// placeholder polyfil
|
|
if(Gumby.isOldie || Gumby.$dom.find('html').hasClass('ie9')) {
|
|
$('input, textarea').placeholder();
|
|
}
|
|
|
|
// skip link and toggle on one element
|
|
// when the skip link completes, trigger the switch
|
|
$('#skip-switch').on('gumby.onComplete', function() {
|
|
$(this).trigger('gumby.trigger');
|
|
});
|
|
|
|
// Oldie document loaded
|
|
}).oldie(function() {
|
|
Gumby.warn("This is an oldie browser...");
|
|
|
|
// Touch devices loaded
|
|
}).touch(function() {
|
|
Gumby.log("This is a touch enabled device...");
|
|
});
|