Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to display the splash screen for all mobile devices and web browser in jquery mobile
    primarykey
    data
    text
    <p>I am working on a jquery mobile app, where i want to display the splash screen for all devices including the ipod, iphone, android mobiles, web browsers.</p> <p>I have Tried below code:</p> <p>1.)</p> <pre><code>&lt;script type="text/javascript"&gt; (function () { var a; if (navigator.platform === "iPad") { a = window.orientation === 90 || window.orientation === -90 ? "_Startup_748x1024.png" : "Startup_768x1004.png" } else { a = window.devicePixelRatio === 2 ? "Startup_640x920.png" : "Startup_320x460.png" } document.write('&lt;link rel="apple-touch-startup-image" href="' + a + '"/&gt;') })() </code></pre> <p>The above code is not working with android mobiles and web browsers.</p> <p>2.) </p> <pre><code>&lt;div data-role="page" id="splash"&gt; @Html.Partial("_MobileHeader") &lt;div class="splash"&gt; &lt;img src="images/_Startup_748x1024.png" alt="startup image" style="width: 100%; height: 100%" /&gt; &lt;/div&gt; &lt;div data-role="content" id="pagecontent" data-theme="c"&gt; @RenderBody() &lt;/div&gt; &lt;!--End content div --&gt; @Html.Partial("_MobileFooter") &lt;/div&gt; and the script that i have used is : $(document).on('pageinit','#splash',function(){ setTimeout(function(){ $.mobile.changePage("#pagecontent", "fade"); }, 4000); }); </code></pre> <p>with the above code both of the div get displayed together i want to display only the splash screen first and then the content of another div.</p> <p>Please suggest me possible solution for the above problem any help would be appreciated.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload