Skip to content

amazedkoumei/jquery.mobile.forpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery.mobile.forpc is a patch for web site generated by jQuery.mobile to show by PC browser like Mozila and Web-Kit. 
Detail of jQuery.Mobile is here.

http://jquerymobile.com/

jQuery.mobile.forpc works collect on Mozilla or Web-Kit latest version.


0. preparation

You shuld put jquery.mobile.forpc-0.1.2.js and background-iphone.png on web server of your application.

If you put theme other directory, rewirite collect path to value of iPhoneImage.PATH written in jquery.mobile.forpc-0.1.2.js


1. Initialization

jQuery.mobile.forpc requires JQuery and jQuery.mobile. 
JQuery must be loaded before jQuery.mobile.forpc, and jQuery.mobile must be loaded after jQuery.mobile.forpc

ex.
<script type="text/javascript" src="/js/jquery-1.5.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery.mobile.forpc-0.1.2.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery.mobile-1.0a3.js" charset="utf-8"></script>


2. Customize

2-1.
You can put jquery.mobile.forpc-0.1.2.js and background-iphone.png in another directry if you rewrite  value of iPhoneImage.PATH to collect path of background-iphone.png.

2-2.
You can change iPhone image position if you rewrite value of iPhoneImage.POSITION_LEFT

2-3.
You can chage background design if you add style to ".background-iphone"

About

patch for site generated by jquery.mobile for PC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published