Return to Snippet

Revision: 43844
at April 1, 2011 01:38 by vagrantradio


Initial Code
(function () {
      var filename = navigator.platform === 'iPad' ?
        'splash-big.png' : 'splash.png';
      document.write(
        '<link rel="apple-touch-startup-image" ' +
              'href="img/' + filename + '" />' );
    })();

Initial URL


Initial Description
Determines if splash screen is iPad or iPhone.

Initial Title
iPad Splash Screen Function

Initial Tags
mobile

Initial Language
JavaScript