<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>jquery mobile - WP2X</title> <atom:link href="https://wp2x.com/tag/jquery-mobile/feed/" rel="self" type="application/rss+xml" /><link>https://wp2x.com</link> <description>We can help your Wordpress faster</description> <lastBuildDate>Thu, 22 Jan 2015 23:03:03 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod> hourly </sy:updatePeriod> <sy:updateFrequency> 1 </sy:updateFrequency> <generator>https://wordpress.org/?v=5.6.17</generator> <item><title>Lock orientation to portrait layout in mobile web by js</title><link>https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/</link> <comments>https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Sat, 18 Oct 2014 13:42:36 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[css]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[jquery mobile]]></category> <category><![CDATA[mobile web]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=307</guid><description><![CDATA[<p>Have you ever become crazy with orientation change? If yes then you are in the same issue with me some days ago. But I figured out the solution so that I share you here to save your time and my time if I want to use it later. Let &#8216;s lock orientation to portrait layout ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/">Lock orientation to portrait layout in mobile web by js</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Have you ever become crazy with orientation change? If yes then you are in the same issue with me some days ago. But I figured out the solution so that I share you here to save your time and my time if I want to use it later. Let &#8216;s lock orientation to portrait layout in mobile web by js by this code.<span
id="more-307"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/10/sreen-rotation.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter wp-image-308 size-medium" src="http://wp2x.com/wp-content/uploads/2014/10/sreen-rotation-300x157.jpg?4b2a2c&amp;4b2a2c" alt="sreen rotation" width="300" height="157" /></a></p><pre class="lang:js decode:true ">$(document).ready(function () {
  function reorient(e) {
    var portrait = (window.orientation % 180 == 0);
    $("body &gt; div").css("-webkit-transform", !portrait ? "rotate(-90deg)" : "");
  }
  window.onorientationchange = reorient;
  window.setTimeout(reorient, 0);
});</pre><p>The code expects the entire contents of your page to live inside a div just inside the body element. It rotates that div 90 degrees in landscape mode &#8211; back to portrait.</p><p>Left as an exercise to the reader: the div rotates around its centerpoint, so its position will probably need to be adjusted unless it&#8217;s perfectly square.</p><p>Also, there&#8217;s an unappealing visual problem. When you change orientation, Safari rotates slowly, then the top-level div snaps to 90degrees different. For even more fun, add</p><pre class="lang:css decode:true">body &gt; div { -webkit-transition: all 1s ease-in-out; }</pre><p>to your CSS. When the device rotates, then Safari does, then the content of your page does. Beguiling!</p><p><em>Reference: stackoverflow.com</em></p><p>The post <a
rel="nofollow" href="https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/">Lock orientation to portrait layout in mobile web by js</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>jQuery Mobile update popup layout after content change</title><link>https://wp2x.com/jquery-mobile-update-popup-layout-content-change/</link> <comments>https://wp2x.com/jquery-mobile-update-popup-layout-content-change/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Fri, 26 Sep 2014 08:34:56 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[html]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[jquery]]></category> <category><![CDATA[jquery mobile]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=295</guid><description><![CDATA[<p>Recently we have a wordpress project with jQuery Mobile is the core framework to build the client theme. I meet the problem with popup with content change, so in the first popup show we only have the limited content text but then the content need to show &#8216;s much more than the first show, and ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/jquery-mobile-update-popup-layout-content-change/">jQuery Mobile update popup layout after content change</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Recently we have a wordpress project with jQuery Mobile is the core framework to build the client theme. I meet the problem with popup with content change, so in the first popup show we only have the limited content text but then the content need to show &#8216;s much more than the first show, and the layout become too bad.<span
id="more-295"></span></p><p><img
loading="lazy" class="aligncenter size-medium wp-image-296" src="http://wp2x.com/wp-content/uploads/2014/09/content_height-300x194.jpg?4b2a2c&amp;4b2a2c" alt="content_height" width="300" height="194" srcset="https://wp2x.com/wp-content/uploads/2014/09/content_height-300x194.jpg 300w, https://wp2x.com/wp-content/uploads/2014/09/content_height.jpg 745w" sizes="(max-width: 300px) 100vw, 300px" /></p><p>&nbsp;</p><p>But if we resize the windows, the popup display well again, that &#8216;s why I show you here to get the solution to make the popup show beautiful even though user don&#8217;t resize the windows. Here is the tips:</p><pre class="lang:js decode:true ">$("#your-popup").trigger('updatelayout');</pre><p>And to make sure you call this line</p><pre class="lang:js decode:true ">$(document).resize();</pre><p>Then everything should work well again :).</p><p>The post <a
rel="nofollow" href="https://wp2x.com/jquery-mobile-update-popup-layout-content-change/">jQuery Mobile update popup layout after content change</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/jquery-mobile-update-popup-layout-content-change/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>