Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 8th Sep 2012, 09:13 PM   #1
The Cave Man
War Room Member
 
JagSEO's Avatar
 
Join Date: 2010
Posts: 334
Thanks: 59
Thanked 96 Times in 79 Posts
Default
jQuery Mobile With Themeroller
Share on: 
fb share twitter share gplus share more share

1.) Go to ThemeRoller | jQuery Mobile











This is the color combination that I’ve done for A,B, and C. I’ve retain the color of A just the B and C .
You can design color combination as many as you like From A to Z.
Now if you’re happy with the color combination you will go on to download the zip file.








In the Theme Name you can write whatever name you want like “customtheme”, “style”, “shinyhead”, its up to you and then Download Zip.
This will be the script in the head of your index.html
<!DOCTYPE html>
<html>
<head>

<title>jQuery Mobile page</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/themes/my-custom-theme.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile.structure-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>

</head>
Change the red mark my-custom-theme.css to your theme name like shinyhead.css


This is the jQuery tag:

<div data-role="header">
<div data-role="content">
<div data-role="footer">

Example:




Here is the code in the index.html
<!DOCTYPE html>
<html>
<head>
<title>jQuery Mobile page</title>/*Change The Title Name*/
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/themes/customtheme.css" /> /*Change the red mark to your theme name*/
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile.structure-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
</head>
<!-- header -->
<div data-role="header" data-theme="c" style="margin-bottom:0px">/*”data-theme=”c” is the color of the header in the themeroller that I’ve styled*/
<center><img border="0" src="../images/logo.png" alt="Logo"/></center>/*This is the logo in the header, this is also styled in the css file*/
</div>
<div class="shadowbox"><img src="images/shadow.png" class="shadow" alt="shadow"></div> /*This is the shadow effect at the bottom of the header*/
<!--/header -->


<div data-role="content" data-theme="c"> /*data-theme=”c”This is the color of the background of the mobile website, by the way you can you can change the letter to whatever letter you want as long as you made a color combination of it in the themeroller*/
<!-- call to action -->
<p class="calltoaction">
<a href="contact-us.php" rel="external" class="ui-link-inherit"><img src="images/emailus.png" alt="Email" align="left"></a>
<a href="tel:#"><img src="images/call_us.png" alt="Call" align="center"></a>
<a href="location.html" rel="external"><img src="images/findus.png" alt="Location" align="right"></a> /*This is where the 3 icons located, rel="external" so that the link would work*/
</p>
<!-- /call to action -->
<!-- social icons -->
<p class="social">
Stay Connected!<br />
<a href="#"><img src="images/facebook.png" alt="Facebook"></a>
<a href="#"><img src="images/twitter.png" alt="Twitter"></a>
<a href="#"><img src="images/googleplus.png" alt="GooglePlus"></a>
<a href="#"><img src="images/linkedin.png" alt="Linked In"></a>
<a href="#"><img src="images/pinterest.png" alt="Pinterest"></a>
<a href="#"><img src="images/instagram.png" alt="Instagram"></a>
<a href="#"><img src="images/rss.png" alt="RSS"></a>
</p>
<!-- /social icons --> /*Where the social icons located just put the link inside the"#"*/
<!-- navigation -->
<ul data-role="listview" data-split-icon="right-arrow" data-inset="true" data-theme="c" style="margin-bottom:0px"> /*The "listview" is the menu button, data-inset="true" is the styling with rounded corners but if you want to remove data-inset="true" the buttons will be 100% wide and it is rectangle, data-theme="c" is the color of the listview you can put whatever letter you want that you’ve done in the themeroller.*/
<li>
<a href="about.html" rel="external">
<img src="images/aboutus.png" />About Us</a>
</li>
<li>
<a href="services.html" rel="external">
<img src="images/services.png" />Services</a>
</li>
<li>
<a href="./faq.html" rel="external">
<img src="images/faq.png" />FAQ</a>
</li>
</ul>
<div class="shadowbox"><img src="images/shadow2.png" class="shadow" alt="shadow"></div> /*This is the shadow at the bottom of the listview*/
<!-- /navigation -->

<a href="index.html" data-role="button" data-theme="c">View Full Website</a>
</div><!-- /content --> /*This is the View Full Website button, and it styled in data-theme="c"
<!-- footer -->
<div data-role="footer" data-theme="c"> /*The footer is styled in letter C*/
<p class="address">13200 Crossroads Parkway North, Suite 350, City of Industry, CA 91746</a></p>
<p class="copyright">Copyright © 2012 <b>Waba Grill Franchise Corp.</b> All rights reserved.</a></p>
<!-- /footer -->
</div><!-- /page -->
</body>
</html>

You can see the Documentation here: jQuery Mobile: Demos and Documentation
To know more about:

  1. data-role=”page”
  2. data-role=”header”
  3. data-role=”button”
  4. data-role=”content”
  5. data-role=”footer”
  6. data-prefetch
  7. data-title
  8. data-transistion=”pop”
  9. data-direction=”reverse”
  10. class=”ui-btn-right” [ to move the button to the right on header]
  11. class=”ui-btn-left”
  12. class=”ui-btn-active” [ to make first one active]
  13. data-icon=”home”
  14. data-icon=”info”
  15. data-add-back-btn=”true”
  16. data-rel=”back” [ back link]
  17. data-position=”fixed to fix headers and footers
  18. data-fullscreen=”true” [for the page]
  19. data-role=”navbar
  20. You must use two CSS classes: ui-state-persist and
  21. ui-btn-active, on
  22. the active page in the NavBar
  23. • You must also use the persistent footer feature
  24. List
  25. ——————————–
  26. data-role=”listview”
  27. data-inset=”true”
  28. data-role=”list-divider”
  29. class=”ui-li-count” for the bubble on the list with counter
  30. class=”ui-li-icon” [ to change image to icon]
  31. data-split-icon=”delete” [ apply on the container where you need a split]
data-filter="true" Forms --------------------------------------------------- data-role="fieldcontain" [ wrap label around input ] data-role="controlgroup" class="ui-controlgroup-controls" class="ui-select" data-role="slider" data-highlight="true" data-role="none" [ native form] data-type="horizontal" data-mini="true" [ for smaller textbox] Dialogs --------------------------------------- data-rel="dialog" data-rel="back" grid -------------------------------- ui-grid-X, where X will be either a, b, c, or d class="ui-block-x data-role="collapsible" data-content-theme="X" data-iconpos="right" data-role="collapsible-set"

If you like this post say Thank You.

Hooked To Success -Personal development For People Who Wants Success.
JagSEO is offline  
The Following User Says Thank You to JagSEO For This Useful Post:
Closed Thread


Bookmarks

Tags
jquery, mobile, themeroller


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:26 PM.