User:Timo395/monobook.js

// ############ iPhone ############## if (/iphone/i.test(navigator.userAgent)) { function listenOrientation {   var orientation = window.orientation % 180 ? "landscape" : "portrait"; window.scrollTo(0, 1); document.body.className = document.body.className.replace(/(portrait|landscape)/, '')+' '+orientation; } addEventListener("load", listenOrientation, false); addEventListener("orientationchange", listenOrientation, false); } //Create 'winc' function: function winc(s) { document.write(' '); } //function to handle dates: winc('User:Bobblewik/monobook.js/dates.js'); //function to handle units: winc('User:Bobblewik/monobook.js/unitformatter.js');