Changed pathing to root relative. Added mobileinit.js.
authorandy matthews <andy@commadelimited.com>
Wed, 8 Feb 2012 17:40:38 +0000 (11:40 -0600)
committerandy matthews <andy@commadelimited.com>
Wed, 8 Feb 2012 17:40:38 +0000 (11:40 -0600)
• Changed pathing for all included files to root relative.
• Added mobileinit file to be used when binding is needed before any
other code is run.
• Added pathing in comments to each html, js, and css file

css/custom.css
index.html
js/application.js
js/mobileinit.js [new file with mode: 0644]
snippets/buttons.html
snippets/collapsible-sets.html
snippets/collapsibles.html
snippets/forms.html
snippets/grids.html
snippets/lists.html

index dd5df5e..f92f4cb 100644 (file)
@@ -1,3 +1,4 @@
 /*
        jQuery Mobile Boilerplate
+       css/custom.css
 */
\ No newline at end of file
index 45aea54..51c1953 100644 (file)
@@ -1,24 +1,29 @@
 <!--
        jQuery Mobile Boilerplate
+       index.html
 -->
 <!doctype html>
 <html>
 <head>
+       <title> jQuery Mobile Boilerplate </title>
+
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title> jQuery Mobile Boilerplate </title>
+
+       <!-- jQuery Mobile CSS bits -->
        <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
 
        <!-- if you have a custom theme, add it here -->
-       <link rel="stylesheet"  href="themes/jQuery-Mobile-Boilerplate.css" />
+       <link rel="stylesheet"  href="/themes/jQuery-Mobile-Boilerplate.css" />
 
        <!-- Custom css -->
-       <link rel="stylesheet" href="css/custom.css" />
+       <link rel="stylesheet" href="/css/custom.css" />
 
+       <!-- Javascript includes -->
        <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
-       <script src="js/application.js"></script>
+       <script src="/js/mobileinit.js"></script>
        <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
-       
+       <script src="/js/application.js"></script>
 </head> 
 <body> 
        <div data-role="page">
index 721d4f5..0f091a9 100644 (file)
@@ -1,8 +1,9 @@
 /* 
        jQuery Mobile Boilerplate
+       application.js
 */
-$(document).bind("mobileinit", function(){
-       // apply overrides here
+$(document).live("pageinit", function(event){
+       // custom code goes here
 
 
 
diff --git a/js/mobileinit.js b/js/mobileinit.js
new file mode 100644 (file)
index 0000000..2721829
--- /dev/null
@@ -0,0 +1,15 @@
+/* 
+       jQuery Mobile Boilerplate
+       mobileinit.js
+       http://jquerymobile.com/demos/1.0.1/docs/api/globalconfig.html
+
+       This file is only required if you need to apply overrides to the
+       page before anything else has run. It MUST be loaded before
+       the jQuery Mobile javascript file.
+*/
+$(document).bind('mobileinit', function(event){
+       // apply overrides here
+
+
+
+});
\ No newline at end of file
index ff591c7..7bc9688 100644 (file)
@@ -1,23 +1,29 @@
 <!--
        jQuery Mobile Boilerplate
+       /snippets/buttons.html
 -->
 <!doctype html>
 <html>
 <head>
+       <title> jQuery Mobile Boilerplate - Buttons</title>
+
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title> jQuery Mobile Boilerplate </title>
+
+       <!-- jQuery Mobile CSS bits -->
        <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
 
        <!-- if you have a custom theme, add it here -->
-       <link rel="stylesheet"  href="themes/jQuery-Mobile-Boilerplate.css" />
+       <link rel="stylesheet"  href="/themes/jQuery-Mobile-Boilerplate.css" />
 
-       <link rel="stylesheet" href="css/custom.css" />
+       <!-- Custom css -->
+       <link rel="stylesheet" href="/css/custom.css" />
 
+       <!-- Javascript includes -->
        <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
-       <script src="js/application.js"></script>
+       <script src="/js/mobileinit.js"></script>
        <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
-       
+       <script src="/js/application.js"></script>
 </head> 
 <body> 
        <div data-role="page">
index 0a7b582..5c3309c 100644 (file)
@@ -1,23 +1,29 @@
 <!--
        jQuery Mobile Boilerplate
+       /snippets/collapsible-sets.html
 -->
 <!doctype html>
 <html>
 <head>
+       <title> jQuery Mobile Boilerplate </title>
+
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title> jQuery Mobile Boilerplate </title>
+
+       <!-- jQuery Mobile CSS bits -->
        <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
 
        <!-- if you have a custom theme, add it here -->
-       <link rel="stylesheet"  href="themes/jQuery-Mobile-Boilerplate.css" />
+       <link rel="stylesheet"  href="/themes/jQuery-Mobile-Boilerplate.css" />
 
-       <link rel="stylesheet" href="css/custom.css" />
+       <!-- Custom css -->
+       <link rel="stylesheet" href="/css/custom.css" />
 
+       <!-- Javascript includes -->
        <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
-       <script src="js/application.js"></script>
+       <script src="/js/mobileinit.js"></script>
        <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
-       
+       <script src="/js/application.js"></script>
 </head> 
 <body> 
        <div data-role="page">
index 5b63beb..c055858 100644 (file)
@@ -1,23 +1,29 @@
 <!--
        jQuery Mobile Boilerplate
+       /snippets/collapsibles.html
 -->
 <!doctype html>
 <html>
 <head>
+       <title> jQuery Mobile Boilerplate - Collapsibles Content</title>
+
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title> jQuery Mobile Boilerplate </title>
+
+       <!-- jQuery Mobile CSS bits -->
        <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
 
        <!-- if you have a custom theme, add it here -->
-       <link rel="stylesheet"  href="themes/jQuery-Mobile-Boilerplate.css" />
+       <link rel="stylesheet"  href="/themes/jQuery-Mobile-Boilerplate.css" />
 
-       <link rel="stylesheet" href="css/custom.css" />
+       <!-- Custom css -->
+       <link rel="stylesheet" href="/css/custom.css" />
 
+       <!-- Javascript includes -->
        <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
-       <script src="js/application.js"></script>
+       <script src="/js/mobileinit.js"></script>
        <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
-       
+       <script src="/js/application.js"></script>
 </head> 
 <body> 
        <div data-role="page">
index 0fa48ef..cb1bf26 100644 (file)
@@ -1,23 +1,29 @@
 <!--
        jQuery Mobile Boilerplate
+       /snippets/forms.html
 -->
 <!doctype html>
 <html>
 <head>
+       <title> jQuery Mobile Boilerplate - Forms & Elements</title>
+
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title> jQuery Mobile Boilerplate </title>
+
+       <!-- jQuery Mobile CSS bits -->
        <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
 
        <!-- if you have a custom theme, add it here -->
-       <link rel="stylesheet"  href="themes/jQuery-Mobile-Boilerplate.css" />
+       <link rel="stylesheet"  href="/themes/jQuery-Mobile-Boilerplate.css" />
 
-       <link rel="stylesheet" href="css/custom.css" />
+       <!-- Custom css -->
+       <link rel="stylesheet" href="/css/custom.css" />
 
+       <!-- Javascript includes -->
        <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
-       <script src="js/application.js"></script>
+       <script src="/js/mobileinit.js"></script>
        <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
-       
+       <script src="/js/application.js"></script>
 </head> 
 <body> 
        <div data-role="page">
index 0ef2fa4..ef39bda 100644 (file)
@@ -1,23 +1,29 @@
 <!--
        jQuery Mobile Boilerplate
+       /snippets/grids.html
 -->
 <!doctype html>
 <html>
 <head>
+       <title> jQuery Mobile Boilerplate - Grids</title>
+
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title> jQuery Mobile Boilerplate </title>
+
+       <!-- jQuery Mobile CSS bits -->
        <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
 
        <!-- if you have a custom theme, add it here -->
-       <link rel="stylesheet"  href="themes/jQuery-Mobile-Boilerplate.css" />
+       <link rel="stylesheet"  href="/themes/jQuery-Mobile-Boilerplate.css" />
 
-       <link rel="stylesheet" href="css/custom.css" />
+       <!-- Custom css -->
+       <link rel="stylesheet" href="/css/custom.css" />
 
+       <!-- Javascript includes -->
        <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
-       <script src="js/application.js"></script>
+       <script src="/js/mobileinit.js"></script>
        <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
-       
+       <script src="/js/application.js"></script>
 </head> 
 <body> 
        <div data-role="page">
index aeed6df..e634663 100644 (file)
@@ -1,23 +1,29 @@
 <!--
        jQuery Mobile Boilerplate
+       /snippets/lists.html
 -->
 <!doctype html>
 <html>
 <head>
+       <title> jQuery Mobile Boilerplate - Listviews</title>
+
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title> jQuery Mobile Boilerplate </title>
+
+       <!-- jQuery Mobile CSS bits -->
        <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
 
        <!-- if you have a custom theme, add it here -->
-       <link rel="stylesheet"  href="themes/jQuery-Mobile-Boilerplate.css" />
+       <link rel="stylesheet"  href="/themes/jQuery-Mobile-Boilerplate.css" />
 
-       <link rel="stylesheet" href="css/custom.css" />
+       <!-- Custom css -->
+       <link rel="stylesheet" href="/css/custom.css" />
 
+       <!-- Javascript includes -->
        <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
-       <script src="js/application.js"></script>
+       <script src="/js/mobileinit.js"></script>
        <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
-       
+       <script src="/js/application.js"></script>
 </head> 
 <body> 
        <div data-role="page">