iPad Splash Screen Function


/ Published in: JavaScript
Save to your folder(s)

Determines if splash screen is iPad or iPhone.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.