mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-08 08:30:58 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
bb61abc467
29 changed files with 1317 additions and 117 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -11,3 +11,4 @@ gitstatus.log
|
|||
refreshCDN
|
||||
*.swp
|
||||
.gitignore
|
||||
tests/speed/stats/stats.db
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -174,7 +174,7 @@ nightly: pull zip
|
|||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|rel="stylesheet" href="../|rel="stylesheet" href="|g' {} \;
|
||||
|
||||
# Change the empty paths to the location of this nightly file
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|href="css/themes/${CSSTHME}/"|href="${NIGHTLY_WEBPATH}/${DIR}.min.css"|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|href="css/themes/${CSSTHEME}/"|href="${NIGHTLY_WEBPATH}/${DIR}.min.css"|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="js/jquery.js"|src="http://code.jquery.com/jquery-${JQUERY}.min.js"|' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="js/"|src="${NIGHTLY_WEBPATH}/${DIR}.min.js"|g' {} \;
|
||||
|
||||
|
|
@ -182,7 +182,7 @@ nightly: pull zip
|
|||
@@mv ${VER} ${OUTPUT}/demos
|
||||
|
||||
# Copy the images as well
|
||||
@@cp -R css/themes/${CSSTHME}/images ${OUTPUT}
|
||||
@@cp -R css/themes/${CSSTHEME}/images ${OUTPUT}
|
||||
|
||||
@@${RMLATEST}
|
||||
@@scp -r ${OUTPUT} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/${NIGHTLY_OUTPUT}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
color: #ffffff /*{a-bar-color}*/;
|
||||
font-weight: bold;
|
||||
text-shadow: 0 /*{a-bar-shadow-x}*/ -1px /*{a-bar-shadow-y}*/ 1px /*{a-bar-shadow-radius}*/ #000000 /*{a-bar-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c /*{a-bar-background-start}*/), to(#111 /*{a-bar-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #3c3c3c /*{a-bar-background-start}*/), to( #111 /*{a-bar-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* IE10 */
|
||||
|
|
@ -49,13 +49,14 @@
|
|||
.ui-bar-a .ui-link:visited {
|
||||
color: #2489CE /*{a-bar-link-visited}*/;
|
||||
}
|
||||
.ui-body-a {
|
||||
.ui-body-a,
|
||||
.ui-dialog.ui-overlay-a {
|
||||
border: 1px solid #2A2A2A /*{a-body-border}*/;
|
||||
background: #222222 /*{a-body-background-color}*/;
|
||||
color: #fff /*{a-body-color}*/;
|
||||
text-shadow: 0 /*{a-body-shadow-x}*/ 1px /*{a-body-shadow-y}*/ 0 /*{a-body-shadow-radius}*/ #000 /*{a-body-shadow-color}*/;
|
||||
font-weight: normal;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#666 /*{a-body-background-start}*/), to(#222 /*{a-body-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #666 /*{a-body-background-start}*/), to( #222 /*{a-body-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#666 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#666 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#666 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* IE10 */
|
||||
|
|
@ -96,7 +97,7 @@
|
|||
font-weight: bold;
|
||||
color: #fff /*{a-bup-color}*/;
|
||||
text-shadow: 0 /*{a-bup-shadow-x}*/ -1px /*{a-bup-shadow-y}*/ 1px /*{a-bup-shadow-radius}*/ #000 /*{a-bup-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#555 /*{a-bup-background-start}*/), to(#333 /*{a-bup-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #555 /*{a-bup-background-start}*/), to( #333 /*{a-bup-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#555 /*{a-bup-background-start}*/, #333 /*{a-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#555 /*{a-bup-background-start}*/, #333 /*{a-bup-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#555 /*{a-bup-background-start}*/, #333 /*{a-bup-background-end}*/); /* IE10 */
|
||||
|
|
@ -112,7 +113,7 @@
|
|||
font-weight: bold;
|
||||
color: #fff /*{a-bhover-color}*/;
|
||||
text-shadow: 0 /*{a-bhover-shadow-x}*/ -1px /*{a-bhover-shadow-y}*/ 1px /*{a-bhover-shadow-radius}*/ #000 /*{a-bhover-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#666 /*{a-bhover-background-start}*/), to(#444 /*{a-bhover-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #666 /*{a-bhover-background-start}*/), to( #444 /*{a-bhover-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#666 /*{a-bhover-background-start}*/, #444 /*{a-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#666 /*{a-bhover-background-start}*/, #444 /*{a-bhover-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#666 /*{a-bhover-background-start}*/, #444 /*{a-bhover-background-end}*/); /* IE10 */
|
||||
|
|
@ -128,7 +129,7 @@
|
|||
font-weight: bold;
|
||||
color: #fff /*{a-bdown-color}*/;
|
||||
text-shadow: 0 /*{a-bdown-shadow-x}*/ -1px /*{a-bdown-shadow-y}*/ 1px /*{a-bdown-shadow-radius}*/ #000 /*{a-bdown-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#333 /*{a-bdown-background-start}*/), to(#5a5a5a /*{a-bdown-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #333 /*{a-bdown-background-start}*/), to( #5a5a5a /*{a-bdown-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#333 /*{a-bdown-background-start}*/, #5a5a5a /*{a-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#333 /*{a-bdown-background-start}*/, #5a5a5a /*{a-bdown-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#333 /*{a-bdown-background-start}*/, #5a5a5a /*{a-bdown-background-end}*/); /* IE10 */
|
||||
|
|
@ -155,7 +156,7 @@
|
|||
color: #fff /*{b-bar-color}*/;
|
||||
font-weight: bold;
|
||||
text-shadow: 0 /*{b-bar-shadow-x}*/ -1px /*{b-bar-shadow-y}*/ 1px /*{b-bar-shadow-radius}*/ #254f7a /*{b-bar-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#81a8ce /*{b-bar-background-start}*/), to(#5e87b0 /*{b-bar-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #81a8ce /*{b-bar-background-start}*/), to( #5e87b0 /*{b-bar-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#81a8ce /*{b-bar-background-start}*/, #5e87b0 /*{b-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#81a8ce /*{b-bar-background-start}*/, #5e87b0 /*{b-bar-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#81a8ce /*{b-bar-background-start}*/, #5e87b0 /*{b-bar-background-end}*/); /* IE10 */
|
||||
|
|
@ -188,13 +189,14 @@
|
|||
.ui-bar-b .ui-link:visited {
|
||||
color: #ddf0f8 /*{b-bar-link-visited}*/;
|
||||
}
|
||||
.ui-body-b {
|
||||
.ui-body-b,
|
||||
.ui-dialog.ui-overlay-b {
|
||||
border: 1px solid #C6C6C6 /*{b-body-border}*/;
|
||||
background: #cccccc /*{b-body-background-color}*/;
|
||||
color: #333333 /*{b-body-color}*/;
|
||||
text-shadow: 0 /*{b-body-shadow-x}*/ 1px /*{b-body-shadow-y}*/ 0 /*{b-body-shadow-radius}*/ #fff /*{b-body-shadow-color}*/;
|
||||
font-weight: normal;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#e6e6e6 /*{b-body-background-start}*/), to(#ccc /*{b-body-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #e6e6e6 /*{b-body-background-start}*/), to( #ccc /*{b-body-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#e6e6e6 /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#e6e6e6 /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#e6e6e6 /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* IE10 */
|
||||
|
|
@ -235,7 +237,7 @@
|
|||
font-weight: bold;
|
||||
color: #fff /*{b-bup-color}*/;
|
||||
text-shadow: 0 /*{b-bup-shadow-x}*/ -1px /*{b-bup-shadow-y}*/ 1px /*{b-bup-shadow-radius}*/ #145072 /*{b-bup-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5f9cc5 /*{b-bup-background-start}*/), to(#396b9e /*{b-bup-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #5f9cc5 /*{b-bup-background-start}*/), to( #396b9e /*{b-bup-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* IE10 */
|
||||
|
|
@ -251,7 +253,7 @@
|
|||
font-weight: bold;
|
||||
color: #fff /*{b-bhover-color}*/;
|
||||
text-shadow: 0 /*{b-bhover-shadow-x}*/ -1px /*{b-bhover-shadow-y}*/ 1px /*{b-bhover-shadow-radius}*/ #014D68 /*{b-bhover-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#72b0d4 /*{b-bhover-background-start}*/), to(#4b88b6 /*{b-bhover-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #72b0d4 /*{b-bhover-background-start}*/), to( #4b88b6 /*{b-bhover-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#72b0d4 /*{b-bhover-background-start}*/, #4b88b6 /*{b-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#72b0d4 /*{b-bhover-background-start}*/, #4b88b6 /*{b-bhover-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#72b0d4 /*{b-bhover-background-start}*/, #4b88b6 /*{b-bhover-background-end}*/); /* IE10 */
|
||||
|
|
@ -267,7 +269,7 @@
|
|||
font-weight: bold;
|
||||
color: #fff /*{b-bdown-color}*/;
|
||||
text-shadow: 0 /*{b-bdown-shadow-x}*/ -1px /*{b-bdown-shadow-y}*/ 1px /*{b-bdown-shadow-radius}*/ #225377 /*{b-bdown-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#396b9e /*{b-bdown-background-start}*/), to(#4e89c5 /*{b-bdown-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #396b9e /*{b-bdown-background-start}*/), to( #4e89c5 /*{b-bdown-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#396b9e /*{b-bdown-background-start}*/, #4e89c5 /*{b-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#396b9e /*{b-bdown-background-start}*/, #4e89c5 /*{b-bdown-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#396b9e /*{b-bdown-background-start}*/, #4e89c5 /*{b-bdown-background-end}*/); /* IE10 */
|
||||
|
|
@ -294,7 +296,7 @@
|
|||
color: #3E3E3E /*{c-bar-color}*/;
|
||||
font-weight: bold;
|
||||
text-shadow: 0 /*{c-bar-shadow-x}*/ 1px /*{c-bar-shadow-y}*/ 1px /*{c-bar-shadow-radius}*/ #fff /*{c-bar-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0f0f0 /*{c-bar-background-start}*/), to(#e9eaeb /*{c-bar-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #f0f0f0 /*{c-bar-background-start}*/), to( #e9eaeb /*{c-bar-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#f0f0f0 /*{c-bar-background-start}*/, #e9eaeb /*{c-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#f0f0f0 /*{c-bar-background-start}*/, #e9eaeb /*{c-bar-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#f0f0f0 /*{c-bar-background-start}*/, #e9eaeb /*{c-bar-background-end}*/); /* IE10 */
|
||||
|
|
@ -329,12 +331,13 @@
|
|||
.ui-bar-c button {
|
||||
font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
|
||||
}
|
||||
.ui-body-c {
|
||||
.ui-body-c,
|
||||
.ui-dialog.ui-overlay-c {
|
||||
border: 1px solid #B3B3B3 /*{c-body-border}*/;
|
||||
color: #333333 /*{c-body-color}*/;
|
||||
text-shadow: 0 /*{c-body-shadow-x}*/ 1px /*{c-body-shadow-y}*/ 0 /*{c-body-shadow-radius}*/ #fff /*{c-body-shadow-color}*/;
|
||||
background: #f0f0f0 /*{c-body-background-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee /*{c-body-background-start}*/), to(#ddd /*{c-body-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #eee /*{c-body-background-start}*/), to( #ddd /*{c-body-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#eee /*{c-body-background-start}*/, #ddd /*{c-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#eee /*{c-body-background-start}*/, #ddd /*{c-body-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#eee /*{c-body-background-start}*/, #ddd /*{c-body-background-end}*/); /* IE10 */
|
||||
|
|
@ -376,7 +379,7 @@
|
|||
font-weight: bold;
|
||||
color: #444 /*{c-bup-color}*/;
|
||||
text-shadow: 0 /*{c-bup-shadow-x}*/ 1px /*{c-bup-shadow-y}*/ 1px /*{c-bup-shadow-radius}*/ #f6f6f6 /*{c-bup-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd /*{c-bup-background-start}*/), to(#eee /*{c-bup-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #fdfdfd /*{c-bup-background-start}*/), to( #eee /*{c-bup-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#fdfdfd /*{c-bup-background-start}*/, #eee /*{c-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#fdfdfd /*{c-bup-background-start}*/, #eee /*{c-bup-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#fdfdfd /*{c-bup-background-start}*/, #eee /*{c-bup-background-end}*/); /* IE10 */
|
||||
|
|
@ -393,7 +396,7 @@
|
|||
font-weight: bold;
|
||||
color: #101010 /*{c-bhover-color}*/;
|
||||
text-shadow: 0 /*{c-bhover-shadow-x}*/ 1px /*{c-bhover-shadow-y}*/ 1px /*{c-bhover-shadow-radius}*/ #fff /*{c-bhover-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ededed /*{c-bhover-background-start}*/), to(#dadada /*{c-bhover-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #ededed /*{c-bhover-background-start}*/), to( #dadada /*{c-bhover-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#ededed /*{c-bhover-background-start}*/, #dadada /*{c-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#ededed /*{c-bhover-background-start}*/, #dadada /*{c-bhover-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#ededed /*{c-bhover-background-start}*/, #dadada /*{c-bhover-background-end}*/); /* IE10 */
|
||||
|
|
@ -409,7 +412,7 @@
|
|||
font-weight: bold;
|
||||
color: #111111 /*{c-bdown-color}*/;
|
||||
text-shadow: 0 /*{c-bdown-shadow-x}*/ 1px /*{c-bdown-shadow-y}*/ 1px /*{c-bdown-shadow-radius}*/ #ffffff /*{c-bdown-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee /*{c-bdown-background-start}*/), to(#fdfdfd /*{c-bdown-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #eee /*{c-bdown-background-start}*/), to( #fdfdfd /*{c-bdown-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#eee /*{c-bdown-background-start}*/, #fdfdfd /*{c-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#eee /*{c-bdown-background-start}*/, #fdfdfd /*{c-bdown-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#eee /*{c-bdown-background-start}*/, #fdfdfd /*{c-bdown-background-end}*/); /* IE10 */
|
||||
|
|
@ -435,7 +438,7 @@
|
|||
background: #bbb /*{d-bar-background-color}*/;
|
||||
color: #333 /*{d-bar-color}*/;
|
||||
text-shadow: 0 /*{d-bar-shadow-x}*/ 1px /*{d-bar-shadow-y}*/ 0 /*{d-bar-shadow-radius}*/ #eee /*{d-bar-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd /*{d-bar-background-start}*/), to(#bbb /*{d-bar-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #ddd /*{d-bar-background-start}*/), to( #bbb /*{d-bar-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* IE10 */
|
||||
|
|
@ -470,12 +473,13 @@
|
|||
color: #2489CE /*{d-bar-link-visited}*/;
|
||||
}
|
||||
|
||||
.ui-body-d {
|
||||
.ui-body-d,
|
||||
.ui-dialog.ui-overlay-d {
|
||||
border: 1px solid #ccc /*{d-body-border}*/;
|
||||
color: #333333 /*{d-body-color}*/;
|
||||
text-shadow: 0 /*{d-body-shadow-x}*/ 1px /*{d-body-shadow-y}*/ 0 /*{d-body-shadow-radius}*/ #fff /*{d-body-shadow-color}*/;
|
||||
background: #ffffff /*{d-body-background-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#fff /*{d-body-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #fff), to( #fff /*{d-body-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* IE10 */
|
||||
|
|
@ -517,7 +521,7 @@
|
|||
font-weight: bold;
|
||||
color: #444 /*{d-bup-color}*/;
|
||||
text-shadow: 0 /*{d-bup-shadow-x}*/ 1px /*{d-bup-shadow-y}*/ 1px /*{d-bup-shadow-radius}*/ #fff /*{d-bup-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#fff /*{d-bup-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #fff), to( #fff /*{d-bup-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#fff /*{d-bup-background-start}*/, #fff /*{d-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#fff /*{d-bup-background-start}*/, #fff /*{d-bup-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#fff /*{d-bup-background-start}*/, #fff /*{d-bup-background-end}*/); /* IE10 */
|
||||
|
|
@ -534,7 +538,7 @@
|
|||
color: #222 /*{d-bhover-color}*/;
|
||||
cursor: pointer;
|
||||
text-shadow: 0 /*{d-bhover-shadow-x}*/ 1px /*{d-bhover-shadow-y}*/ 1px /*{d-bhover-shadow-radius}*/ #fff /*{d-bhover-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd), to(#eee /*{d-bhover-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #fdfdfd), to( #eee /*{d-bhover-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#fdfdfd /*{d-bhover-background-start}*/, #eee /*{d-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#fdfdfd /*{d-bhover-background-start}*/, #eee /*{d-bhover-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#fdfdfd /*{d-bhover-background-start}*/, #eee /*{d-bhover-background-end}*/); /* IE10 */
|
||||
|
|
@ -550,7 +554,7 @@
|
|||
font-weight: bold;
|
||||
color: #111 /*{d-bdown-color}*/;
|
||||
text-shadow: 0 /*{d-bdown-shadow-x}*/ 1px /*{d-bdown-shadow-y}*/ 1px /*{d-bdown-shadow-radius}*/ #ffffff /*{d-bdown-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee /*{d-bdown-background-start}*/), to(#fff /*{d-bdown-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #eee /*{d-bdown-background-start}*/), to( #fff /*{d-bdown-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#eee /*{d-bdown-background-start}*/, #fff /*{d-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#eee /*{d-bdown-background-start}*/, #fff /*{d-bdown-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#eee /*{d-bdown-background-start}*/, #fff /*{d-bdown-background-end}*/); /* IE10 */
|
||||
|
|
@ -576,7 +580,7 @@
|
|||
background: #fadb4e /*{e-bar-background-color}*/;
|
||||
color: #333 /*{e-bar-color}*/;
|
||||
text-shadow: 0 /*{e-bar-shadow-x}*/ 1px /*{e-bar-shadow-y}*/ 0 /*{e-bar-shadow-radius}*/ #fff /*{e-bar-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fceda7 /*{e-bar-background-start}*/), to(#fadb4e /*{e-bar-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #fceda7 /*{e-bar-background-start}*/), to( #fadb4e /*{e-bar-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#fceda7 /*{e-bar-background-start}*/, #fadb4e /*{e-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#fceda7 /*{e-bar-background-start}*/, #fadb4e /*{e-bar-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#fceda7 /*{e-bar-background-start}*/, #fadb4e /*{e-bar-background-end}*/); /* IE10 */
|
||||
|
|
@ -610,12 +614,13 @@
|
|||
color: #2489CE /*{e-bar-link-visited}*/;
|
||||
}
|
||||
|
||||
.ui-body-e {
|
||||
.ui-body-e,
|
||||
.ui-dialog.ui-overlay-e {
|
||||
border: 1px solid #F7C942 /*{e-body-border}*/;
|
||||
color: #333333 /*{e-body-color}*/;
|
||||
text-shadow: 0 /*{e-body-shadow-x}*/ 1px /*{e-body-shadow-y}*/ 0 /*{e-body-shadow-radius}*/ #fff /*{e-body-shadow-color}*/;
|
||||
background: #faeb9e /*{e-body-background-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff /*{e-body-background-start}*/), to(#faeb9e /*{e-body-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #fff /*{e-body-background-start}*/), to( #faeb9e /*{e-body-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#fff /*{e-body-background-start}*/, #faeb9e /*{e-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#fff /*{e-body-background-start}*/, #faeb9e /*{e-body-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#fff /*{e-body-background-start}*/, #faeb9e /*{e-body-background-end}*/); /* IE10 */
|
||||
|
|
@ -656,7 +661,7 @@
|
|||
font-weight: bold;
|
||||
color: #333 /*{e-bup-color}*/;
|
||||
text-shadow: 0 /*{e-bup-shadow-x}*/ 1px /*{e-bup-shadow-y}*/ 0 /*{e-bup-shadow-radius}*/ #fff /*{e-bup-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fceda7 /*{e-bup-background-start}*/), to(#fadb4e /*{e-bup-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #fceda7 /*{e-bup-background-start}*/), to( #fadb4e /*{e-bup-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#fceda7 /*{e-bup-background-start}*/, #fadb4e /*{e-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#fceda7 /*{e-bup-background-start}*/, #fadb4e /*{e-bup-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#fceda7 /*{e-bup-background-start}*/, #fadb4e /*{e-bup-background-end}*/); /* IE10 */
|
||||
|
|
@ -672,7 +677,7 @@
|
|||
font-weight: bold;
|
||||
color: #111 /*{e-bhover-color}*/;
|
||||
text-shadow: 0 /*{e-bhover-shadow-x}*/ 1px /*{e-bhover-shadow-y}*/ 1px /*{e-bhover-shadow-radius}*/ #fff /*{e-bhover-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf0b5 /*{e-bhover-background-start}*/), to(#fbe26f /*{e-bhover-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #fcf0b5 /*{e-bhover-background-start}*/), to( #fbe26f /*{e-bhover-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#fcf0b5 /*{e-bhover-background-start}*/, #fbe26f /*{e-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#fcf0b5 /*{e-bhover-background-start}*/, #fbe26f /*{e-bhover-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#fcf0b5 /*{e-bhover-background-start}*/, #fbe26f /*{e-bhover-background-end}*/); /* IE10 */
|
||||
|
|
@ -689,7 +694,7 @@
|
|||
font-weight: bold;
|
||||
color: #111 /*{e-bdown-color}*/;
|
||||
text-shadow: 0 /*{e-bdown-shadow-x}*/ 1px /*{e-bdown-shadow-y}*/ 1px /*{e-bdown-shadow-radius}*/ #ffffff /*{e-bdown-shadow-color}*/;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fadb4e /*{e-bdown-background-start}*/), to(#fceda7 /*{e-bdown-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #fadb4e /*{e-bdown-background-start}*/), to( #fceda7 /*{e-bdown-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#fadb4e /*{e-bdown-background-start}*/, #fceda7 /*{e-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#fadb4e /*{e-bdown-background-start}*/, #fceda7 /*{e-bdown-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#fadb4e /*{e-bdown-background-start}*/, #fceda7 /*{e-bdown-background-end}*/); /* IE10 */
|
||||
|
|
@ -727,7 +732,7 @@ a.ui-link-inherit {
|
|||
cursor: pointer;
|
||||
text-shadow: 0 /*{global-active-shadow-x}*/ -1px /*{global-active-shadow-y}*/ 1px /*{global-active-shadow-radius}*/ #145072 /*{global-active-shadow-color}*/;
|
||||
text-decoration: none;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#85bae4 /*{global-active-background-start}*/), to(#5393c5 /*{global-active-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from( #85bae4 /*{global-active-background-start}*/), to( #5393c5 /*{global-active-background-end}*/)); /* Saf4+, Chrome */
|
||||
background-image: -webkit-linear-gradient(#85bae4 /*{global-active-background-start}*/, #5393c5 /*{global-active-background-end}*/); /* Chrome 10+, Saf5.1+ */
|
||||
background-image: -moz-linear-gradient(#85bae4 /*{global-active-background-start}*/, #5393c5 /*{global-active-background-end}*/); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(#85bae4 /*{global-active-background-start}*/, #5393c5 /*{global-active-background-end}*/); /* IE10 */
|
||||
|
|
|
|||
|
|
@ -86,7 +86,8 @@
|
|||
color: #7cc4e7;
|
||||
font-weight: bold;
|
||||
}
|
||||
.ui-body-a {
|
||||
.ui-body-a,
|
||||
.ui-dialog.ui-overlay-a {
|
||||
font-weight: normal;
|
||||
border: 1px solid #222;
|
||||
background: #444;
|
||||
|
|
@ -199,7 +200,8 @@
|
|||
color: #7cc4e7;
|
||||
font-weight: bold;
|
||||
}
|
||||
.ui-body-b {
|
||||
.ui-body-b,
|
||||
.ui-dialog.ui-overlay-b {
|
||||
font-weight: normal;
|
||||
border: 1px solid #999;
|
||||
background-color: #e5e5e5;
|
||||
|
|
@ -298,7 +300,8 @@
|
|||
.ui-btn-down-c a.ui-link-inherit {
|
||||
color: #111;
|
||||
}
|
||||
.ui-body-c {
|
||||
.ui-body-c,
|
||||
.ui-dialog.ui-overlay-c {
|
||||
border: 1px solid #ddd;
|
||||
color: #333333;
|
||||
text-shadow: 0 1px 0px #fff;
|
||||
|
|
@ -414,7 +417,8 @@
|
|||
.ui-body-d .ui-link-inherit {
|
||||
color: #333333;
|
||||
}
|
||||
.ui-body-d {
|
||||
.ui-body-d,
|
||||
.ui-dialog.ui-overlay-d {
|
||||
border: 1px solid #aaa;
|
||||
color: #666;
|
||||
text-shadow: 0 1px 0px #fff;
|
||||
|
|
@ -525,7 +529,8 @@
|
|||
text-decoration: none;
|
||||
text-shadow: 0 1px 0px #fff;
|
||||
}
|
||||
.ui-body-e {
|
||||
.ui-body-e,
|
||||
.ui-dialog.ui-overlay-e {
|
||||
font-weight: normal;
|
||||
border: 1px solid #aaa;
|
||||
background: #ccc;
|
||||
|
|
|
|||
424
docs/api/data-attributes.html
Normal file
424
docs/api/data-attributes.html
Normal file
|
|
@ -0,0 +1,424 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery Mobile Docs - Data Attribute Reference</title>
|
||||
<link rel="stylesheet" href="../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
|
||||
<script src="../_assets/js/jqm-docs.js"></script>
|
||||
<script src="../../js/"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div data-role="page" class="type-interior">
|
||||
|
||||
<div data-role="header" data-theme="f">
|
||||
<h1>Data Attributes</h1>
|
||||
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
|
||||
</div><!-- /header -->
|
||||
|
||||
<div data-role="content" data-theme="c">
|
||||
|
||||
<div class="content-primary">
|
||||
|
||||
<style>
|
||||
table { width:100%; border-bottom:1px solid #ccc; }
|
||||
th { text-align:left; width: 170px; }
|
||||
th, td { vertical-align:top; border-top:1px solid #ccc; padding: 6px 10px 4px 0; }
|
||||
</style>
|
||||
|
||||
<h2><a href="../buttons/buttons-types.html">Button</a></h2>
|
||||
<p>Links with <code>data-role="button"</code>. Input-based buttons and button elements are auto-enhanced, no <code>data-role</code> required</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-corners</th>
|
||||
<td><strong>true</strong> | false</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-icon</th>
|
||||
<td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-iconpos</th>
|
||||
<td><strong>left</strong> | right | top | bottom | notext</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-iconshadow</th>
|
||||
<td><strong>true</strong> | false</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-inline</th>
|
||||
<td>true | <strong>false</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-shadow</th>
|
||||
<td><strong>true</strong> | false</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>Multiple buttons can be wrapped in a container with a <code>data-role="controlgroup"</code> attribute for a vertically grouped set. Add the <code>data-type="horizontal"</code> attribute for the buttons to sit side-by-side.</p>
|
||||
|
||||
|
||||
<h2><a href="../forms/checkboxes/">Checkbox</a></h2>
|
||||
<p>Pairs of labels and inputs with <code>type="checkbox"</code> are auto-enhanced, no <code>data-role</code> required</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-role</th>
|
||||
<td>none (prevents auto-enhancement to use native control)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z) - Added to the form element</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../content/content-collapsible.html">Collapsible</a></h2>
|
||||
<p>A heading and content wrapped in a container with the <code>data-role="collapsible"</code></p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-collapsed</th>
|
||||
<td><strong>true</strong> | false</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-content-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../content/content-collapsible-set.html">Collapsible set</a></h2>
|
||||
<p>A number of collapsibles wrapped in a container with the <code>data-role="collapsible-set"</code></p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-content-theme</th>
|
||||
<td>swatch letter (a-z) - Sets all collapsibles in set</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z) - Sets all collapsibles in set</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../pages/page-dialogs.html">Dialog</a></h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-overlay-theme</th>
|
||||
<td>swatch letter (a-z) - overlay theme</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../pages/page-anatomy.html">Content</a></h2>
|
||||
<p>Container with <code>data-role="content"</code></p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<h2><a href="../forms/docs-forms.html">Field container</a></h2>
|
||||
<p>Container with <code>data-role="fieldcontain"</code> wrapped around label/form element pair</p>
|
||||
|
||||
<h2><a href="../forms/switch/">Flip toggle switch</a></h2>
|
||||
<p>Select with <code>data-role="slider"</code>, two options only</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-role</th>
|
||||
<td>none (prevents auto-enhancement to use native control)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z) - Added to the form element</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-track-theme</th>
|
||||
<td>swatch letter (a-z) - Added to the form element</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../toolbars/docs-footers.html">Footer</a></h2>
|
||||
<p>Container with <code>data-role="footer"</code></p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-id</th>
|
||||
<td>string (unique id, useful in persistent footers)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-position</th>
|
||||
<td>fixed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../toolbars/docs-headers.html">Header</a></h2>
|
||||
<p>Container with <code>data-role="header"</code></p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-add-back-btn</th>
|
||||
<td>true | <strong>false</strong> (auto add back button, header only)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-back-btn-text</th>
|
||||
<td>string</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-back-btn-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-position</th>
|
||||
<td>fixed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-title</th>
|
||||
<td>string (title used when page is shown)</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../pages/page-links.html">Link</a></h2>
|
||||
<p>Links, including those with a <code>data-role="button"</code>, and form submit buttons share these attributes</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-ajax</th>
|
||||
<td><strong>true</strong> | false</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-direction</th>
|
||||
<td>reverse (reverse page transition animation)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-dom-cache</th>
|
||||
<td>true | <strong>false</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-prefetch</th>
|
||||
<td>true | <strong>false</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-rel</th>
|
||||
<td>back (to move one step back in history)<br />
|
||||
dialog (to open link styled as dialog, not tracked in history)<br />
|
||||
external (for linking to another domain)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-transition</th>
|
||||
<td><strong>slide</strong> | slideup | slidedown | pop | fade | flip</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../lists/docs-lists.html">Listview</a></h2>
|
||||
<p>OL or UL with <code>data-role="listview"</code></p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-count-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-dividertheme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-filter</th>
|
||||
<td>true | <strong>false</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-filter-placeholder</th>
|
||||
<td>string</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-filter-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-inset</th>
|
||||
<td>true | <strong>false</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-split-icon</th>
|
||||
<td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../lists/docs-lists.html">Listview item</a></h2>
|
||||
<p>LI within a listview</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-icon</th>
|
||||
<td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-role</th>
|
||||
<td>list-divider</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z) - can also be set on individual LIs</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../pages/page-anatomy.html">Page</a></h2>
|
||||
<p>Container with <code>data-role="page"</code> or <code>"dialog"</code></p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-close-btn-text</th>
|
||||
<td>string (text for the close button, dialog only)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-dom-cache</th>
|
||||
<td>true | <strong>false</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-id</th>
|
||||
<td>string (unique id for the page)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-fullscreen</th>
|
||||
<td>true | false (used in conjunction with fixed toolbars)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-overlay-theme</th>
|
||||
<td>swatch letter (a-z) - overlay theme when the page is opened in a dialog</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-title</th>
|
||||
<td>string (title used when page is shown)</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../forms/radiobuttons/">Radio button</a></h2>
|
||||
<p>Pairs of labels and inputs with <code>type="radio"</code> are auto-enhanced, no <code>data-role</code> required</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-role</th>
|
||||
<td>none (prevents auto-enhancement to use native control)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z) - Added to the form element</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../forms/selects/">Select</a></h2>
|
||||
<p>All <code>select</code> form elements are auto-enhanced, no <code>data-role</code> required</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-icon</th>
|
||||
<td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-iconpos</th>
|
||||
<td><strong>left</strong> | right | top | bottom | notext</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-inline</th>
|
||||
<td>true | <strong>false</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-native-menu</th>
|
||||
<td><strong>true</strong> | false</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-placeholder</th>
|
||||
<td>true | false - Add to the Option</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-role</th>
|
||||
<td>none (prevents auto-enhancement to use native control)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-overlay-theme</th>
|
||||
<td>swatch letter (a-z) - overlay theme for non-native selects</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z) - Added to the form element</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>Multiple selects can be wrapped in a fieldset with a <code>data-role="controlgroup"</code> attribute for a vertically grouped set. Add the <code>data-type="horizontal"</code> attribute for the selects to sit side-by-side.</p>
|
||||
|
||||
<h2><a href="../forms/slider/">Slider</a></h2>
|
||||
<p>Inputs with <code>type="range"</code> are auto-enhanced, no <code>data-role</code> required</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-role</th>
|
||||
<td>none (prevents auto-enhancement to use native control)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z) - Added to the form element</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-track-theme</th>
|
||||
<td>swatch letter (a-z) - Added to the form element</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a href="../forms/textinputs/">Text input & Textarea</a></h2>
|
||||
<p>Input <code>type="text|number|search|etc."</code> or <code>textarea</code> elements are auto-enhanced, no <code>data-role</code> required</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>data-role</th>
|
||||
<td>none (prevents auto-enhancement to use native control)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>data-theme</th>
|
||||
<td>swatch letter (a-z) - Added to the form element</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div><!--/content -->
|
||||
|
||||
<div class="content-secondary">
|
||||
|
||||
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
|
||||
|
||||
<h3>More in this section</h3>
|
||||
|
||||
<ul data-role="listview" data-theme="c" data-dividertheme="d">
|
||||
|
||||
<li data-role="list-divider">API</li>
|
||||
<li><a href="../../docs/api/globalconfig.html">Configuring defaults</a></li>
|
||||
<li><a href="../../docs/api/events.html">Events</a></li>
|
||||
<li><a href="../../docs/api/methods.html">Methods & Utilities</a></li>
|
||||
<li><a href="../../docs/api/mediahelpers.html">Responsive layout</a></li>
|
||||
<li data-theme="a"><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
|
||||
<li><a href="../../docs/api/themes.html">Theme framework</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!-- /content -->
|
||||
|
||||
<div data-role="footer" class="footer-docs" data-theme="c">
|
||||
<p>© 2011 The jQuery Project</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /page -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -493,6 +493,7 @@ $( '#foo' ).hide().trigger( 'updatelayout' );
|
|||
<li><a href="../../docs/api/globalconfig.html">Configuring defaults</a></li>
|
||||
<li data-theme="a"><a href="../../docs/api/events.html">Events</a></li>
|
||||
<li><a href="../../docs/api/methods.html">Methods & Utilities</a></li>
|
||||
<li><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
|
||||
<li><a href="../../docs/api/themes.html">Theme framework</a></li>
|
||||
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@ $(document).bind("mobileinit", function(){
|
|||
<li data-theme="a"><a href="../../docs/api/globalconfig.html">Configuring defaults</a></li>
|
||||
<li><a href="../../docs/api/events.html">Events</a></li>
|
||||
<li><a href="../../docs/api/methods.html">Methods & Utilities</a></li>
|
||||
<li><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
|
||||
<li><a href="../../docs/api/themes.html">Theme framework</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
<li><a href="globalconfig.html">Configuring defaults</a></li>
|
||||
<li><a href="events.html">Events</a></li>
|
||||
<li><a href="methods.html">Methods & Utilities</a></li>
|
||||
<li><a href="data-attributes.html">Data attribute reference</a></li>
|
||||
<li><a href="themes.html">Theme framework</a></li>
|
||||
</ul>
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
<h3>Orientation Classes </h3>
|
||||
|
||||
<p>The HTML element will always have a class of either "portrait" or "landscape", depending on the orientation of the browser or device. You can utilize these in your CSS like this:</p>
|
||||
<p>The HTML element will always have a class of either <code>"portrait"</code> or <code>"landscape"</code>, depending on the orientation of the browser or device. You can utilize these in your CSS like this:</p>
|
||||
<pre>
|
||||
<code>
|
||||
.portrait {
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
</pre>
|
||||
|
||||
<h3>Min/Max Width Breakpoint Classes</h3>
|
||||
<p>By default, we create min and max breakpoint classes at the following widths: <code>320</code>,<code>480</code>,<code>768</code>,<code>1024</code>. These translate to classes that look like this: "min-width-320px", "max-width-480px", and are meant to be used as a replacement of (or in addition to) the media query equivalents they mimic.</p>
|
||||
<p>By default, we create min and max breakpoint classes at the following widths: <code>320</code>,<code>480</code>,<code>768</code>,<code>1024</code>. These translate to classes that look like this: <code>"min-width-320px"</code>, <code>"max-width-480px"</code>, and are meant to be used as a replacement of (or in addition to) the media query equivalents they mimic.</p>
|
||||
<pre>
|
||||
<code>
|
||||
.myelement {
|
||||
|
|
@ -113,6 +113,7 @@ $.mobile.media("screen and (-webkit-min-device-pixel-ratio: 2)");
|
|||
<li><a href="../../docs/api/events.html">Events</a></li>
|
||||
<li><a href="../../docs/api/methods.html">Methods & Utilities</a></li>
|
||||
<li data-theme="a"><a href="../../docs/api/mediahelpers.html">Responsive Layout</a></li>
|
||||
<li><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
|
||||
<li><a href="../../docs/api/themes.html">Theme framework</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -548,6 +548,7 @@ $.mobile.silentScroll(100);
|
|||
<li><a href="../../docs/api/globalconfig.html">Configuring defaults</a></li>
|
||||
<li><a href="../../docs/api/events.html">Events</a></li>
|
||||
<li data-theme="a"><a href="../../docs/api/methods.html">Methods & Utilities</a></li>
|
||||
<li><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
|
||||
<li><a href="../../docs/api/themes.html">Theme framework</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -267,9 +267,10 @@
|
|||
<li><a href="../../docs/api/globalconfig.html">Configuring defaults</a></li>
|
||||
<li><a href="../../docs/api/events.html">Events</a></li>
|
||||
<li><a href="../../docs/api/methods.html">Methods & Utilities</a></li>
|
||||
<li><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
|
||||
<li data-theme="a"><a href="../../docs/api/themes.html">Theme framework</a></li>
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
<code>
|
||||
<ul data-role="listview" data-inset="true">
|
||||
</code>
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<ul data-role="listview" data-inset="true" data-icon="star">
|
||||
<li data-role="list-divider">Divider</li>
|
||||
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
|
||||
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
|
||||
|
|
|
|||
|
|
@ -123,10 +123,10 @@
|
|||
|
||||
<h2>Customizing the back button text</h2>
|
||||
|
||||
<p>If you'd like to configure the back button text, you can either use the <code>data-back-btn-text="previous"</code> attribute on your page element, or set it programmatically via the page plugin's options: <code>$.mobile.page.prototype.options.backBtnText = "previous";</code>.
|
||||
<p>If you'd like to configure the back button text, you can either use the <code>data-back-btn-text="previous"</code> attribute on your page element, or set it programmatically via the page plugin's options: <br /><code>$.mobile.page.prototype.options.backBtnText = "previous";</code></p>
|
||||
|
||||
<h3>Default back button style</h3>
|
||||
<p>If you'd like to configure the back button role-theme, you can use: <code>$.mobile.page.prototype.options.backBtnTheme = "a";</code>.
|
||||
<p>If you'd like to configure the back button role-theme, you can use: <br /><code>$.mobile.page.prototype.options.backBtnTheme = "a";</code><br />
|
||||
If you're doing this programmatically, set this option inside the mobileinit event handler.</p>
|
||||
|
||||
<h2>Custom header configurations</h2>
|
||||
|
|
|
|||
|
|
@ -1,50 +1,45 @@
|
|||
function ResizePageContentHeight(page)
|
||||
{
|
||||
var $page = $(page);
|
||||
var $content = $page.children(".ui-content");
|
||||
var hh = $page.children(".ui-header").outerHeight(); hh = hh ? hh : 0;
|
||||
var fh = $page.children(".ui-footer").outerHeight(); fh = fh ? fh : 0;
|
||||
var pt = parseFloat($content.css("padding-top"));
|
||||
var pb = parseFloat($content.css("padding-bottom"));
|
||||
var wh = window.innerHeight;
|
||||
function ResizePageContentHeight(page) {
|
||||
var $page = $(page),
|
||||
$content = $page.children( ".ui-content" ),
|
||||
hh = $page.children( ".ui-header" ).outerHeight() : 0,
|
||||
fh = $page.children( ".ui-footer" ).outerHeight() : 0,
|
||||
pt = parseFloat($content.css( "padding-top" )),
|
||||
pb = parseFloat($content.css( "padding-bottom" )),
|
||||
wh = window.innerHeight;
|
||||
|
||||
$content.height(wh - (hh + fh) - (pt + pb));
|
||||
}
|
||||
|
||||
$(":jqmData(role='page')").live("pageshow", function(event) {
|
||||
var $page = $(this);
|
||||
$( ":jqmData(role='page')" ).live( "pageshow", function(event) {
|
||||
var $page = $( this );
|
||||
|
||||
// For the demos that use this script, we want the content area of each
|
||||
// page to be scrollable in the 'y' direction.
|
||||
|
||||
$page.find(".ui-content").attr("data-"+ $.mobile.ns +"scroll", "y");
|
||||
$page.find( ".ui-content" ).attr( "data-" + $.mobile.ns + "scroll", "y" );
|
||||
|
||||
// This code that looks for [data-scroll] will eventually be folded
|
||||
// into the jqm page processing code when scrollview support is "official"
|
||||
// instead of "experimental".
|
||||
|
||||
$page.find(":jqmData(scroll):not(.ui-scrollview-clip)").each(function(){
|
||||
var $this = $(this);
|
||||
$page.find( ":jqmData(scroll):not(.ui-scrollview-clip)" ).each(function () {
|
||||
var $this = $( this );
|
||||
// XXX: Remove this check for ui-scrolllistview once we've
|
||||
// integrated list divider support into the main scrollview class.
|
||||
if ($this.hasClass("ui-scrolllistview"))
|
||||
if ( $this.hasClass( "ui-scrolllistview" ) ) {
|
||||
$this.scrolllistview();
|
||||
else
|
||||
{
|
||||
var st = $this.jqmData("scroll") + "";
|
||||
var paging = st && st.search(/^[xy]p$/) != -1;
|
||||
var dir = st && st.search(/^[xy]/) != -1 ? st.charAt(0) : null;
|
||||
} else {
|
||||
var st = $this.jqmData( "scroll" ) + "",
|
||||
paging = st && st.search(/^[xy]p$/) != -1,
|
||||
dir = st && st.search(/^[xy]/) != -1 ? st.charAt(0) : null,
|
||||
|
||||
var opts = {};
|
||||
if (dir)
|
||||
opts.direction = dir;
|
||||
if (paging)
|
||||
opts.pagingEnabled = true;
|
||||
opts = {
|
||||
direction: dir || undefined,
|
||||
paging: paging || undefined,
|
||||
scrollMethod: $this.jqmData("scroll-method") || undefined
|
||||
};
|
||||
|
||||
var method = $this.jqmData("scroll-method");
|
||||
if (method)
|
||||
opts.scrollMethod = method;
|
||||
|
||||
$this.scrollview(opts);
|
||||
$this.scrollview( opts );
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -52,9 +47,9 @@ $(":jqmData(role='page')").live("pageshow", function(event) {
|
|||
// area that is sized to fit completely within the viewport. This should
|
||||
// also handle the case where pages are loaded dynamically.
|
||||
|
||||
ResizePageContentHeight(event.target);
|
||||
ResizePageContentHeight( event.target );
|
||||
});
|
||||
|
||||
$(window).bind("orientationchange", function(event) {
|
||||
ResizePageContentHeight($(".ui-page"));
|
||||
});
|
||||
$( window ).bind( "orientationchange", function( event ) {
|
||||
ResizePageContentHeight( $( ".ui-page" ) );
|
||||
});
|
||||
|
|
@ -55,6 +55,7 @@
|
|||
<li><a href="docs/api/globalconfig.html">Configuring defaults</a></li>
|
||||
<li><a href="docs/api/events.html">Events</a></li>
|
||||
<li><a href="docs/api/methods.html">Methods & Utilities</a></li>
|
||||
<li><a href="docs/api/data-attributes.html">Data attribute reference</a></li>
|
||||
<li><a href="docs/api/themes.html">Theme framework</a></li>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -130,13 +130,27 @@
|
|||
},
|
||||
|
||||
getInheritedTheme: function( el, defaultTheme ) {
|
||||
// Find the closest parent with a theme class on it.
|
||||
var themedParent = el.closest( "[class*='ui-bar-'],[class*='ui-body-']" ),
|
||||
|
||||
// If there's a themed parent, extract the theme letter
|
||||
// from the theme class .
|
||||
ltr = ( themedParent.length && /ui-(bar|body)-([a-z])\b/.exec( themedParent.attr( "class" ) )[ 2 ] || "" ) || "";
|
||||
// Find the closest parent with a theme class on it. Note that
|
||||
// we are not using $.fn.closest() on purpose here because this
|
||||
// method gets called quite a bit and we need it to be as fast
|
||||
// as possible.
|
||||
|
||||
var e = el[ 0 ],
|
||||
ltr = "",
|
||||
re = /ui-(bar|body)-([a-z])\b/,
|
||||
c, m;
|
||||
|
||||
while ( e ) {
|
||||
var c = e.className || "";
|
||||
if ( ( m = re.exec( c ) ) && ( ltr = m[ 2 ] ) ) {
|
||||
// We found a parent with a theme class
|
||||
// on it so bail from this loop.
|
||||
break;
|
||||
}
|
||||
e = e.parentNode;
|
||||
}
|
||||
|
||||
// Return the theme letter we found, if none, return the
|
||||
// specified default.
|
||||
|
||||
|
|
|
|||
|
|
@ -9,20 +9,15 @@
|
|||
$.widget( "mobile.dialog", $.mobile.widget, {
|
||||
options: {
|
||||
closeBtnText : "Close",
|
||||
theme : "a",
|
||||
overlayTheme : "a",
|
||||
initSelector : ":jqmData(role='dialog')"
|
||||
},
|
||||
_create: function() {
|
||||
var self = this,
|
||||
$el = this.element,
|
||||
pageTheme = $el.attr( "class" ).match( /ui-body-[a-z]/ ),
|
||||
headerCloseButton = $( "<a href='#' data-" + $.mobile.ns + "icon='delete' data-" + $.mobile.ns + "iconpos='notext'>"+ this.options.closeBtnText + "</a>" );
|
||||
|
||||
if( pageTheme.length ){
|
||||
$el.removeClass( pageTheme[ 0 ] );
|
||||
}
|
||||
|
||||
$el.addClass( "ui-body-" + this.options.theme );
|
||||
$el.addClass( "ui-overlay-" + this.options.overlayTheme );
|
||||
|
||||
// Class the markup for dialog styling
|
||||
// Set aria role
|
||||
|
|
|
|||
|
|
@ -17,14 +17,14 @@
|
|||
isMultiple = widget.isMultiple = widget.select[ 0 ].multiple,
|
||||
buttonId = selectID + "-button",
|
||||
menuId = selectID + "-menu",
|
||||
menuPage = $( "<div data-" + $.mobile.ns + "role='dialog' data-" +$.mobile.ns + "theme='"+ widget.options.overlayTheme +"'>" +
|
||||
menuPage = $( "<div data-" + $.mobile.ns + "role='dialog' data-" +$.mobile.ns + "theme='"+ widget.options.theme +"' data-" +$.mobile.ns + "overlay-theme='"+ widget.options.overlayTheme +"'>" +
|
||||
"<div data-" + $.mobile.ns + "role='header'>" +
|
||||
"<div class='ui-title'>" + label.getEncodedText() + "</div>"+
|
||||
"</div>"+
|
||||
"<div data-" + $.mobile.ns + "role='content'></div>"+
|
||||
"</div>" ).appendTo( $.mobile.pageContainer ).page(),
|
||||
|
||||
listbox = $("<div>", { "class": "ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-body-" + widget.options.overlayTheme + " " + $.mobile.defaultDialogTransition } ).insertAfter(screen),
|
||||
listbox = $("<div>", { "class": "ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-overlay-" + widget.options.overlayTheme + " " + $.mobile.defaultDialogTransition } ).insertAfter(screen),
|
||||
|
||||
list = $( "<ul>", {
|
||||
"class": "ui-selectmenu-list",
|
||||
|
|
@ -33,9 +33,7 @@
|
|||
"aria-labelledby": buttonId
|
||||
}).attr( "data-" + $.mobile.ns + "theme", widget.options.theme ).appendTo( listbox ),
|
||||
|
||||
header = $( "<div>", {
|
||||
"class": "ui-header ui-bar-" + widget.options.theme
|
||||
}).prependTo( listbox ),
|
||||
header = $( "<div>" ).attr( "data-" + $.mobile.ns + "theme", widget.options.theme ).prependTo( listbox ),
|
||||
|
||||
headerTitle = $( "<h1>", {
|
||||
"class": "ui-title"
|
||||
|
|
|
|||
|
|
@ -748,7 +748,17 @@
|
|||
// to the first page and refers to non-existent embedded page, error out.
|
||||
if ( page.length === 0 ) {
|
||||
if ( $.mobile.firstPage && path.isFirstPageUrl( fileUrl ) ) {
|
||||
page = $( $.mobile.firstPage );
|
||||
// Check to make sure our cached-first-page is actually
|
||||
// in the DOM. Some user deployed apps are pruning the first
|
||||
// page from the DOM for various reasons, we check for this
|
||||
// case here because we don't want a first-page with an id
|
||||
// falling through to the non-existent embedded page error
|
||||
// case. If the first-page is not in the DOM, then we let
|
||||
// things fall through to the ajax loading code below so
|
||||
// that it gets reloaded.
|
||||
if ( $.mobile.firstPage.parent().length ) {
|
||||
page = $( $.mobile.firstPage );
|
||||
}
|
||||
} else if ( path.isEmbeddedPage( fileUrl ) ) {
|
||||
deferred.reject( absUrl, options );
|
||||
return deferred.promise();
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi
|
|||
var $this = $( this ),
|
||||
role = $this.jqmData( "role" ),
|
||||
theme = $this.jqmData( "theme" ),
|
||||
contentTheme = theme || o.contentTheme || pageTheme,
|
||||
$headeranchors,
|
||||
leftbtn,
|
||||
rightbtn,
|
||||
|
|
@ -75,8 +76,8 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi
|
|||
});
|
||||
|
||||
} else if ( role === "content" ) {
|
||||
if (theme || o.contentTheme) {
|
||||
$this.addClass( "ui-body-" + ( theme || o.contentTheme ) );
|
||||
if ( contentTheme ) {
|
||||
$this.addClass( "ui-body-" + ( contentTheme ) );
|
||||
}
|
||||
|
||||
// Add ARIA role
|
||||
|
|
|
|||
429
tests/speed/lists-ul-record.php
Normal file
429
tests/speed/lists-ul-record.php
Normal file
|
|
@ -0,0 +1,429 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery Mobile Docs - Lists</title>
|
||||
<link rel="stylesheet" href="../../css/themes/default/" />
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script type="text/javascript" src="stats/perf.js"></script>
|
||||
<script type="text/javascript" src="stats/startup.js"></script>
|
||||
<script src="../../js/"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div data-role="page" id="list-page">
|
||||
|
||||
<div data-role="header">
|
||||
<h1>400 item list</h1>
|
||||
</div><!-- /header -->
|
||||
|
||||
<div data-role="content" data-filter="true">
|
||||
|
||||
<ul data-role="listview" data-theme="d">
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
<li><a href="index.html">BMW</a></li>
|
||||
<li><a href="index.html">Cadillac</a></li>
|
||||
<li><a href="index.html">Chrysler</a></li>
|
||||
<li><a href="index.html">Dodge</a></li>
|
||||
<li><a href="index.html">Ferrari</a></li>
|
||||
<li><a href="index.html">Ford</a></li>
|
||||
<li><a href="index.html">GMC</a></li>
|
||||
<li><a href="index.html">Honda</a></li>
|
||||
<li><a href="index.html">Hyundai</a></li>
|
||||
<li><a href="index.html">Infiniti</a></li>
|
||||
<li><a href="index.html">Jeep</a></li>
|
||||
<li><a href="index.html">Kia</a></li>
|
||||
<li><a href="index.html">Lexus</a></li>
|
||||
<li><a href="index.html">Mini</a></li>
|
||||
<li><a href="index.html">Nissan</a></li>
|
||||
<li><a href="index.html">Porsche</a></li>
|
||||
<li><a href="index.html">Subaru</a></li>
|
||||
<li><a href="index.html">Toyota</a></li>
|
||||
</ul>
|
||||
</div><!-- /content -->
|
||||
</div><!-- /page -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
19
tests/speed/lists-ul.html
Executable file → Normal file
19
tests/speed/lists-ul.html
Executable file → Normal file
|
|
@ -1,14 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery Mobile Docs - Lists</title>
|
||||
<link rel="stylesheet" href="../../css/themes/default/" />
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery Mobile Docs - Lists</title>
|
||||
<link rel="stylesheet" href="../../css/themes/default/" />
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js/"></script>
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div data-role="page">
|
||||
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
</div><!-- /header -->
|
||||
|
||||
<div data-role="content" data-filter="true">
|
||||
|
||||
|
||||
<ul data-role="listview" data-theme="d">
|
||||
<li><a href="index.html">Acura</a></li>
|
||||
<li><a href="index.html">Audi</a></li>
|
||||
|
|
@ -425,3 +425,4 @@
|
|||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
|||
34
tests/speed/stats/index.php
Normal file
34
tests/speed/stats/index.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
$db = new SQLiteDatabase('stats.db');
|
||||
|
||||
// hand to God I tried CREATE TABLE IF NOT EXISTS and it persisted with
|
||||
// a syntax error. The IDENTICAL query sans IF NOT EXISTS works perfectly
|
||||
// http://www.sqlite.org/lang_createtable.html
|
||||
@$db->query('CREATE TABLE stats (id INTEGER, agent TEXT, point TEXT, value REAL, time TIMESTAMP, PRIMARY KEY (id))');
|
||||
|
||||
// making a sad attempt here to provide a clean REST-respecting url scheme.
|
||||
// stats with a GET returns - wait for it - the stats, and a post with the
|
||||
// the right params will create a new entry
|
||||
if ( $_SERVER['REQUEST_METHOD'] == "GET" ) {
|
||||
$json = Array();
|
||||
$results = $db->query( 'SELECT agent, point, value, time FROM stats' );
|
||||
|
||||
// TODO not sure if there's a better way to convert db results into
|
||||
// a json encodable data structure
|
||||
while($row = $results->fetch(SQLITE3_ASSOC)){
|
||||
array_push($json, $row);
|
||||
}
|
||||
|
||||
header("Content-Type: application/json");
|
||||
echo json_encode($json);
|
||||
} elseif ( $_POST['datapoint'] && $_POST['value'] && $_POST['agent'] ){
|
||||
// TODO it is not clear from the docs if there's an easier way to do the
|
||||
// escaped query interpolation here. Suggestions welcome :(
|
||||
$data_point = sqlite_escape_string( $_POST['datapoint'] );
|
||||
$value = sqlite_escape_string( $_POST['value'] );
|
||||
$agent = sqlite_escape_string( $_POST['agent'] );
|
||||
$db->query('INSERT INTO stats (agent, point, value, time) VALUES ("' . $agent . '", "' . $data_point . '",' . $value . ', DATETIME(\'now\'))');
|
||||
|
||||
echo "success";
|
||||
}
|
||||
?>
|
||||
39
tests/speed/stats/perf.js
Normal file
39
tests/speed/stats/perf.js
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
window.Perf = (function($, Perf) {
|
||||
$.extend(Perf, {
|
||||
reportUrl: 'stats/',
|
||||
revUrl: 'stats/rev.php',
|
||||
|
||||
// should be defined before report or poll are run
|
||||
currentRev: undefined,
|
||||
|
||||
report: function( data, after ) {
|
||||
var self = this;
|
||||
|
||||
$.post( self.reportUrl, data, after );
|
||||
},
|
||||
|
||||
poll: function() {
|
||||
var self = this;
|
||||
|
||||
setInterval(function() {
|
||||
$.get( self.revUrl, function( data ) {
|
||||
|
||||
// if there's a new revision refresh or currentRev isn't being set
|
||||
if( self.currentRev && self.currentRev !== data ){
|
||||
location.href = location.href;
|
||||
}
|
||||
});
|
||||
}, 60000);
|
||||
},
|
||||
|
||||
setCurrentRev: function() {
|
||||
var self = this;
|
||||
|
||||
$.get( self.revUrl, function( data ) {
|
||||
self.currentRev = data;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
return Perf;
|
||||
})(jQuery, window.Perf || {});
|
||||
1
tests/speed/stats/rev.php
Normal file
1
tests/speed/stats/rev.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
<?php echo exec('git rev-parse HEAD') ?>
|
||||
41
tests/speed/stats/startup.js
Normal file
41
tests/speed/stats/startup.js
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
(function(Perf) {
|
||||
var $listPage = $( "#list-page" ), firstCounter = 0;
|
||||
|
||||
Perf.setCurrentRev();
|
||||
Perf.pageLoadStart = Date.now();
|
||||
|
||||
$listPage.live( "pagebeforecreate", function() {
|
||||
if( firstCounter == 0 ) {
|
||||
Perf.pageCreateStart = Date.now();
|
||||
firstCounter++;
|
||||
}
|
||||
});
|
||||
|
||||
$listPage.live( "pageinit", function( event ) {
|
||||
// if a child page init is fired ignore it, we only
|
||||
// want the top level page init event
|
||||
if( event.target !== $("#list-page")[0] ){
|
||||
return;
|
||||
}
|
||||
|
||||
Perf.pageLoadEnd = Date.now();
|
||||
|
||||
// report the time taken for a full app boot
|
||||
Perf.report({
|
||||
agent: window.navigator.userAgent,
|
||||
datapoint: "fullboot",
|
||||
value: Perf.pageLoadEnd - Perf.pageLoadStart
|
||||
});
|
||||
|
||||
// record the time taken to load and enhance the page
|
||||
// start polling for a new revision
|
||||
Perf.report({
|
||||
agent: window.navigator.userAgent,
|
||||
datapoint: "pageload",
|
||||
value: Perf.pageCreateStart - Perf.pageLoadStart,
|
||||
after: function() {
|
||||
Perf.poll();
|
||||
}
|
||||
});
|
||||
});
|
||||
})(window.Perf);
|
||||
|
|
@ -2,12 +2,20 @@
|
|||
* mobile dialog unit tests
|
||||
*/
|
||||
(function($) {
|
||||
module( "jquery.mobile.dialog.js" );
|
||||
module( "jquery.mobile.dialog.js", {
|
||||
setup: function() {
|
||||
$.mobile.page.prototype.options.contentTheme = "d";
|
||||
}
|
||||
});
|
||||
|
||||
asyncTest( "dialog hash is added when the dialog is opened and removed when closed", function() {
|
||||
expect( 6 );
|
||||
expect( 2 );
|
||||
|
||||
$.testHelper.pageSequence([
|
||||
function() {
|
||||
$.mobile.changePage( $( "#mypage" ) );
|
||||
},
|
||||
|
||||
function() {
|
||||
//bring up the dialog
|
||||
$( "#foo-dialog-link" ).click();
|
||||
|
|
@ -19,12 +27,6 @@
|
|||
// make sure the dialog came up
|
||||
ok( /&ui-state=dialog/.test(location.hash), "ui-state=dialog =~ location.hash", "dialog open" );
|
||||
|
||||
// Assert dialog theme inheritance (issue 1375):
|
||||
ok( fooDialog.hasClass( "ui-body-b" ), "Expected explicit theme ui-body-b" );
|
||||
ok( fooDialog.find( ":jqmData(role=header)" ).hasClass( "ui-bar-a" ), "Expected header to inherit from $.mobile.page.prototype.options.headerTheme" );
|
||||
ok( fooDialog.find( ":jqmData(role=content)" ).hasClass( "ui-body-d" ), "Expect content to inherit from $.mobile.page.prototype.options.contentTheme" );
|
||||
ok( fooDialog.find( ":jqmData(role=footer)" ).hasClass( "ui-bar-a" ), "Expected footer to inherit from $.mobile.page.prototype.options.footerTheme" );
|
||||
|
||||
// close the dialog
|
||||
$( ".ui-dialog" ).dialog( "close" );
|
||||
},
|
||||
|
|
@ -35,4 +37,90 @@
|
|||
}
|
||||
]);
|
||||
});
|
||||
|
||||
asyncTest( "dialog element with no theming", function() {
|
||||
expect(4);
|
||||
|
||||
$.testHelper.pageSequence([
|
||||
function() {
|
||||
$.mobile.changePage( $( "#mypage" ) );
|
||||
},
|
||||
|
||||
function() {
|
||||
//bring up the dialog
|
||||
$( "#link-a" ).click();
|
||||
},
|
||||
|
||||
function() {
|
||||
var dialog = $( "#dialog-a" );
|
||||
|
||||
// Assert dialog theme inheritance (issue 1375):
|
||||
ok( dialog.hasClass( "ui-body-c" ), "Expected explicit theme ui-body-c" );
|
||||
ok( dialog.find( ":jqmData(role=header)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected header to inherit from $.mobile.page.prototype.options.headerTheme" );
|
||||
ok( dialog.find( ":jqmData(role=content)" ).hasClass( "ui-body-" + $.mobile.page.prototype.options.contentTheme ), "Expect content to inherit from $.mobile.page.prototype.options.contentTheme" );
|
||||
ok( dialog.find( ":jqmData(role=footer)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected footer to inherit from $.mobile.page.prototype.options.footerTheme" );
|
||||
|
||||
start();
|
||||
}
|
||||
]);
|
||||
});
|
||||
|
||||
asyncTest( "dialog element with data-theme", function() {
|
||||
// Reset fallback theme for content
|
||||
$.mobile.page.prototype.options.contentTheme = null;
|
||||
|
||||
expect(5);
|
||||
|
||||
$.testHelper.pageSequence([
|
||||
function() {
|
||||
$.mobile.changePage( $( "#mypage" ) );
|
||||
},
|
||||
|
||||
function() {
|
||||
//bring up the dialog
|
||||
$( "#link-b" ).click();
|
||||
},
|
||||
|
||||
function() {
|
||||
var dialog = $( "#dialog-b" );
|
||||
|
||||
// Assert dialog theme inheritance (issue 1375):
|
||||
ok( dialog.hasClass( "ui-body-e" ), "Expected explicit theme ui-body-e" );
|
||||
ok( !dialog.hasClass( "ui-overlay-b" ), "Expected no theme ui-overlay-b" );
|
||||
ok( dialog.find( ":jqmData(role=header)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected header to inherit from $.mobile.page.prototype.options.headerTheme" );
|
||||
ok( dialog.find( ":jqmData(role=content)" ).hasClass( "ui-body-e" ), "Expect content to inherit from data-theme" );
|
||||
ok( dialog.find( ":jqmData(role=footer)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected footer to inherit from $.mobile.page.prototype.options.footerTheme" );
|
||||
|
||||
start();
|
||||
}
|
||||
]);
|
||||
});
|
||||
|
||||
asyncTest( "dialog element with data-theme & data-overlay-theme", function() {
|
||||
expect(5);
|
||||
|
||||
$.testHelper.pageSequence([
|
||||
function() {
|
||||
$.mobile.changePage( $( "#mypage" ) );
|
||||
},
|
||||
|
||||
function() {
|
||||
//bring up the dialog
|
||||
$( "#link-c" ).click();
|
||||
},
|
||||
|
||||
function() {
|
||||
var dialog = $( "#dialog-c" );
|
||||
|
||||
// Assert dialog theme inheritance (issue 1375):
|
||||
ok( dialog.hasClass( "ui-body-e" ), "Expected explicit theme ui-body-e" );
|
||||
ok( dialog.hasClass( "ui-overlay-b" ), "Expected explicit theme ui-overlay-b" );
|
||||
ok( dialog.find( ":jqmData(role=header)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected header to inherit from $.mobile.page.prototype.options.headerTheme" );
|
||||
ok( dialog.find( ":jqmData(role=content)" ).hasClass( "ui-body-" + $.mobile.page.prototype.options.contentTheme ), "Expect content to inherit from $.mobile.page.prototype.options.contentTheme" );
|
||||
ok( dialog.find( ":jqmData(role=footer)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected footer to inherit from $.mobile.page.prototype.options.footerTheme" );
|
||||
|
||||
start();
|
||||
}
|
||||
]);
|
||||
});
|
||||
})( jQuery );
|
||||
|
|
|
|||
|
|
@ -33,8 +33,11 @@
|
|||
<ol id="qunit-tests">
|
||||
</ol>
|
||||
|
||||
<div id="bar" data-nstest-role="page" data-nstest-theme="a">
|
||||
<a href="#foo-dialog" id="foo-dialog-link" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog"></a>
|
||||
<div id="mypage" data-nstest-role="page" data-nstest-theme="a">
|
||||
<a href="#foo-dialog" id="foo-dialog-link" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog"></a>
|
||||
<a href="#dialog-a" id="link-a" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">no theme set</a>
|
||||
<a href="#dialog-b" id="link-b" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme set</a>
|
||||
<a href="#dialog-c" id="link-c" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme & data-nstest-overlay-theme set</a>
|
||||
</div>
|
||||
|
||||
<div id="foo-dialog" data-nstest-role="dialog" data-nstest-theme="b">
|
||||
|
|
@ -49,5 +52,41 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div data-nstest-role="page" id="dialog-a">
|
||||
<div data-nstest-role="header" data-nstest-position="inline">
|
||||
<h1> No theme set </h1>
|
||||
</div>
|
||||
<div data-nstest-role="content">
|
||||
Some text here....
|
||||
</div>
|
||||
<div data-nstest-role="footer">
|
||||
footer
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-nstest-role="page" data-nstest-theme="e" id="dialog-b">
|
||||
<div data-nstest-role="header">
|
||||
<h1> data-nstest-theme set </h1>
|
||||
</div>
|
||||
<div data-nstest-role="content">
|
||||
Some text here....
|
||||
</div>
|
||||
<div data-nstest-role="footer">
|
||||
footer
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-nstest-role="page" id="dialog-c" data-nstest-overlay-theme="b" data-nstest-theme="e">
|
||||
<div data-nstest-role="header">
|
||||
<h1> data-nstest-theme & data-nstest-overlay-theme set </h1>
|
||||
</div>
|
||||
<div data-nstest-role="content">
|
||||
Some text here....
|
||||
</div>
|
||||
<div data-nstest-role="footer">
|
||||
footer
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1043,4 +1043,77 @@
|
|||
}
|
||||
]);
|
||||
});
|
||||
|
||||
asyncTest( "first page gets reloaded if pruned from the DOM", function(){
|
||||
var hideCallbackTriggered = false;
|
||||
|
||||
function hideCallback( e, data )
|
||||
{
|
||||
var page = e.target;
|
||||
ok( ( page === $.mobile.firstPage[ 0 ] ), "hide called with prevPage set to firstPage");
|
||||
if ( page === $.mobile.firstPage[ 0 ] ) {
|
||||
$( page ).remove();
|
||||
}
|
||||
hideCallbackTriggered = true;
|
||||
}
|
||||
|
||||
$(document).bind('pagehide', hideCallback);
|
||||
|
||||
$.testHelper.pageSequence([
|
||||
function(){
|
||||
// Make sure the first page is actually in the DOM.
|
||||
ok( $.mobile.firstPage.parent().length !== 0, "first page is currently in the DOM" );
|
||||
|
||||
// Make sure the first page is the active page.
|
||||
ok( $.mobile.activePage[ 0 ] === $.mobile.firstPage[ 0 ], "first page is the active page" );
|
||||
|
||||
// Now make sure the first page has an id that we can use to reload it.
|
||||
ok( $.mobile.firstPage[ 0 ].id, "first page has an id" );
|
||||
|
||||
// Make sure there is only one first page in the DOM.
|
||||
same( $( ".first-page" ).length, 1, "only one instance of the first page in the DOM" );
|
||||
|
||||
// Navigate to any page except the first page of the application.
|
||||
$.testHelper.openPage("#foo");
|
||||
},
|
||||
|
||||
function(){
|
||||
// Make sure the active page is #foo.
|
||||
ok( $.mobile.activePage[ 0 ] === $( "#foo" )[ 0 ], "navigated successfully to #foo" );
|
||||
|
||||
// Make sure our hide callback was triggered.
|
||||
ok( hideCallbackTriggered, "hide callback was triggered" );
|
||||
|
||||
// Make sure the first page was actually pruned from the document.
|
||||
ok( $.mobile.firstPage.parent().length === 0, "first page was pruned from the DOM" );
|
||||
same( $( ".first-page" ).length, 0, "no instance of the first page in the DOM" );
|
||||
|
||||
// Remove our hideCallback.
|
||||
$(document).unbind('pagehide', hideCallback);
|
||||
|
||||
// Navigate back to the first page!
|
||||
$.testHelper.openPage( "#" + $.mobile.firstPage[0].id );
|
||||
},
|
||||
|
||||
function(){
|
||||
var firstPage = $( ".first-page" );
|
||||
|
||||
// We should only have one first page in the document at any time!
|
||||
same( firstPage.length, 1, "single instance of first page recreated in the DOM" );
|
||||
|
||||
// Make sure the first page in the DOM is actually a different DOM element than the original
|
||||
// one we started with.
|
||||
ok( $.mobile.firstPage[ 0 ] !== firstPage[ 0 ], "first page is a new DOM element");
|
||||
|
||||
// Make sure we actually navigated to the new first page.
|
||||
ok( $.mobile.activePage[ 0 ] === firstPage[ 0 ], "navigated successfully to new first-page");
|
||||
|
||||
// Reset the $.mobile.firstPage for subsequent tests.
|
||||
// XXX: Should we just get rid of the new one and restore the old?
|
||||
$.mobile.firstPage = $.mobile.activePage;
|
||||
|
||||
start();
|
||||
}
|
||||
]);
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Reference in a new issue