From: andy matthews Date: Wed, 8 Feb 2012 17:40:38 +0000 (-0600) Subject: Changed pathing to root relative. Added mobileinit.js. X-Git-Url: https://git.mdrn.pl/ReadingsJQM.git/commitdiff_plain/60900941226faba2b267e9692fa805bb9a7bdeed?ds=sidebyside;hp=-c Changed pathing to root relative. Added mobileinit.js. • 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 --- 60900941226faba2b267e9692fa805bb9a7bdeed diff --git a/css/custom.css b/css/custom.css index dd5df5e..f92f4cb 100644 --- a/css/custom.css +++ b/css/custom.css @@ -1,3 +1,4 @@ /* jQuery Mobile Boilerplate + css/custom.css */ \ No newline at end of file diff --git a/index.html b/index.html index 45aea54..51c1953 100644 --- a/index.html +++ b/index.html @@ -1,24 +1,29 @@ + jQuery Mobile Boilerplate + - jQuery Mobile Boilerplate + + - + - + + - + - +
diff --git a/js/application.js b/js/application.js index 721d4f5..0f091a9 100644 --- a/js/application.js +++ b/js/application.js @@ -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 index 0000000..2721829 --- /dev/null +++ b/js/mobileinit.js @@ -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 diff --git a/snippets/buttons.html b/snippets/buttons.html index ff591c7..7bc9688 100644 --- a/snippets/buttons.html +++ b/snippets/buttons.html @@ -1,23 +1,29 @@ + jQuery Mobile Boilerplate - Buttons + - jQuery Mobile Boilerplate + + - + - + + + - + - +
diff --git a/snippets/collapsible-sets.html b/snippets/collapsible-sets.html index 0a7b582..5c3309c 100644 --- a/snippets/collapsible-sets.html +++ b/snippets/collapsible-sets.html @@ -1,23 +1,29 @@ + jQuery Mobile Boilerplate + - jQuery Mobile Boilerplate + + - + - + + + - + - +
diff --git a/snippets/collapsibles.html b/snippets/collapsibles.html index 5b63beb..c055858 100644 --- a/snippets/collapsibles.html +++ b/snippets/collapsibles.html @@ -1,23 +1,29 @@ + jQuery Mobile Boilerplate - Collapsibles Content + - jQuery Mobile Boilerplate + + - + - + + + - + - +
diff --git a/snippets/forms.html b/snippets/forms.html index 0fa48ef..cb1bf26 100644 --- a/snippets/forms.html +++ b/snippets/forms.html @@ -1,23 +1,29 @@ + jQuery Mobile Boilerplate - Forms & Elements + - jQuery Mobile Boilerplate + + - + - + + + - + - +
diff --git a/snippets/grids.html b/snippets/grids.html index 0ef2fa4..ef39bda 100644 --- a/snippets/grids.html +++ b/snippets/grids.html @@ -1,23 +1,29 @@ + jQuery Mobile Boilerplate - Grids + - jQuery Mobile Boilerplate + + - + - + + + - + - +
diff --git a/snippets/lists.html b/snippets/lists.html index aeed6df..e634663 100644 --- a/snippets/lists.html +++ b/snippets/lists.html @@ -1,23 +1,29 @@ + jQuery Mobile Boilerplate - Listviews + - jQuery Mobile Boilerplate + + - + - + + + - + - +