Posted By

vagrantradio on 04/01/11


Tagged

mobile


Versions (?)

iPad Splash Screen Function


 / Published in: JavaScript
 

Determines if splash screen is iPad or iPhone.

  1. (function () {
  2. var filename = navigator.platform === 'iPad' ?
  3. 'splash-big.png' : 'splash.png';
  4. document.write(
  5. '<link rel="apple-touch-startup-image" ' +
  6. 'href="img/' + filename + '" />' );
  7. })();

Report this snippet  

You need to login to post a comment.