Forked from digitalgeneralist/gist:6f5ea265c82f84bcff70
Last active
March 15, 2016 13:57
-
-
Save thomasfr/5f9ed341fbc9ce7c43aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
// fileinput bei android deaktivieren | |
if(!navigator.userAgent.match(/Android/i)) { | |
$.getScript("/sites/all/themes/fragnebenan/js/fileinput.min.js", function(){ | |
console.log('fileinput laden'); | |
}); | |
} | |
}) | |
// oder | |
(function($) { | |
$(function() { | |
// fileinput bei android deaktivieren | |
if(!navigator.userAgent.match(/Android/i)) { | |
console.log('no match') | |
$.getScript("/sites/all/themes/fragnebenan/js/fileinput.min.js", function(){ | |
console.log('fileinput laden'); | |
}); | |
} | |
}) | |
})(jQuery) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment