scottjehl
4f12d46945
By caching the href value to data and switching the href to a #, we can avoid address bar showing in iOS on every click. The click handler resets the href during its initial steps if this data is present. Note that the address bar will still likely drop down when you click the browser's back button. The only time the back button will not drop the address bar appears to be when the back button does not trigger a pushstate operation - so pushstate would either have to be disabled, or the page would have to be local (multipage), or the page would need to be a dialog (since then going back would only be a hashchange).
...
Still, progress.
2012-01-13 17:29:41 +07:00
scottjehl
a9cd92a978
special case for dialogs - the theme class will apply to the page container when a dialog is shown, and that class will be removed when the dialog is hidden. This allows the transition to appear to affect only the inset window portion of the dialog page.
2012-01-13 17:29:41 +07:00
Ghislain Seguin
9ffabcce33
Use css/themes/default/jquery.mobile.css instead of css/themes/default/index.php
2012-01-13 17:29:41 +07:00
Ghislain Seguin
ba6ad1d07a
Have index.php serve the right file, this is deprecated and should be removed before 1.1 release
2012-01-13 17:27:57 +07:00
Ghislain Seguin
de37fbe615
Ported 148cb09132 to valencia theme
2012-01-13 17:27:57 +07:00
Todd Parker
4f5ecb06e2
Missing a 0, thanks @agcolom!
2012-01-13 17:27:57 +07:00
Ghislain Seguin
b675d0ff8d
Changed source CSS file for css bundle following bac53cf151
2012-01-13 17:27:56 +07:00
Mat Marquis
b815db5f76
Updated docs’ CSS to use new @import scheme.
2012-01-13 17:27:56 +07:00
Mat Marquis
eeb93c97d1
Single CSS concat file using @import, rather than the PHP concat.
2012-01-13 17:27:56 +07:00
Anne-Gaelle Colom
ead617f79a
Added clarification to the Back button, Fixes #3291
2012-01-13 17:27:56 +07:00
Ghislain Seguin
7bd9e6c3a9
Updated CSS path to default/jquery.mobile.theme.css so it doesn't pick up the index.php
2012-01-13 17:27:56 +07:00
Mat Marquis
d1663f1373
Added page turning transition.
2012-01-13 17:27:56 +07:00
John Bender
eb9e113911
fix timing issue where the pushstate plugin expected popstate generated hashchanges to happen before a given timeout
2012-01-13 17:27:56 +07:00
Mat Marquis
cb84e13148
Fixed theme CSS inclusion on docs index.
2012-01-13 17:27:55 +07:00
toddparker
39759f0dfb
Removed setDefaultTransition in docs.js
...
This isn't needed anymore.
2012-01-13 17:27:55 +07:00
toddparker
3099ff01a2
Added docs to cover the new transitions
2012-01-13 17:27:55 +07:00
toddparker
89442ef551
Whitespace
2012-01-13 17:27:55 +07:00
Chetan K Jain
44177ba3d7
fixes #3400
2012-01-13 17:27:55 +07:00
toddparker
36632aa594
Added in drop shadow on pages in "flow" transition, adjusted timing to be longer
2012-01-13 17:27:55 +07:00
scottjehl
2600aa9eb7
rewrote the transitions test suite and handlers to account for our new sequence. The main difference is most tests are async now, and use two functions: onFromComplete and onToComplete to test conditions before each page's animationComplete handler finishes (while animation classes are still present, for instance). onToComplete must call start() so that pages stay in proper sequences, as fromComplete may not always run depending on pages in play, and it's only halfway done in the trans.Needs more tests now!
2012-01-13 17:27:55 +07:00
scottjehl
2ba3842997
removed old commented out code
2012-01-13 17:27:55 +07:00
scottjehl
56af997812
moved the hide loader call back to nav again
2012-01-13 17:27:54 +07:00
scottjehl
abe0571b73
even when stubbing out the function for testing, this $.fn needs to return this (it's relied upon for chaining in nav)
2012-01-13 17:27:54 +07:00
scottjehl
da9cbcf162
added reference to flow transition fallback
2012-01-13 17:27:54 +07:00
scottjehl
df35552be6
one too many transition js refs
2012-01-13 17:27:54 +07:00
scottjehl
f2e4aa525f
added fallback transition for flow
2012-01-13 17:27:54 +07:00
scottjehl
b742b97441
better check for supporting fallback
2012-01-13 17:27:54 +07:00
scottjehl
2520307036
pulled out the 3D madness
2012-01-13 17:27:54 +07:00
scottjehl
5e862b60ba
changed up the timing and origin
2012-01-13 17:27:54 +07:00
scottjehl
43b5537d5b
added an experimental 3D transition, "flow"
2012-01-13 17:27:54 +07:00
scottjehl
af02f7e589
removed rotate transition from concat files and docs
2012-01-13 17:27:54 +07:00
scottjehl
9bfa7d2de1
better comment
2012-01-13 17:27:54 +07:00
scottjehl
a3e776297e
implemented fallback transition definitions for non-3D-supporting browsers, for all transitions except "fade". By default, these are all set to fall back to "fade", and they'll fall back to "none" if 3D is unsupported and no fallback is defined. They can be overridden at mobileinit, like any other jQM default.
2012-01-13 17:27:53 +07:00
scottjehl
a237c5f2e1
removed the experimental rotate transition
2012-01-13 17:27:53 +07:00
scottjehl
984edf8cc7
split the slide transitions into 3 files for slide, slidedown, and slideup
2012-01-13 17:27:53 +07:00
scottjehl
dbd03bf0df
removed fallback transition CSS for non-3D browsers
2012-01-13 17:27:53 +07:00
Mat Marquis
2f088cb2e3
Updated page transition scripting/support test to allow for Firefox.
2012-01-13 17:27:53 +07:00
scottjehl
57c6b968cd
updated docs to describe the maxTransitionWidth option.
2012-01-13 17:27:53 +07:00
scottjehl
518e3ce8cd
Added a new core option called maxTransitionWidth, which defaults to 1000. Accepts any number or false value. If it's not false, the handler will use a "none" transition when the window width is wider than the specified value. This is useful because transitions get very wonky on wider screens.
2012-01-13 17:27:53 +07:00
scottjehl
a0c67fa026
updated the rotate transition to move the page out of view
2012-01-13 17:27:53 +07:00
scottjehl
58d285a4a7
updated docs page to describe the new transition handler and how it works.
2012-01-13 17:27:53 +07:00
scottjehl
f40caba625
removed "none" transition handler from Nav.js. Updated the new out-in transition handler so that it supports "none" transitions in addition to our new default css3 animation sequence. The new transition handler is set as the default, and available publicly as $.mobile.defaultTransitionHandler and $.mobile.transitionHandlers["default"].
2012-01-13 17:27:53 +07:00
scottjehl
91709b4167
removed z-index rules, no longer needed
2012-01-13 17:27:53 +07:00
scottjehl
1f7d8ac7b6
z index not needed
2012-01-13 17:27:53 +07:00
scottjehl
34427cfb9d
brought back a full flip transition for 3d supporting browsers, using 90deg pairs. Needs further testing
2012-01-13 17:27:52 +07:00
scottjehl
f5ffe7540d
whitespace
2012-01-13 17:27:52 +07:00
scottjehl
5bf6728a65
removed or moved opacity rules for simpler cascade
2012-01-13 17:27:52 +07:00
scottjehl
93c1efe143
removed z-index rules, as pages no longer overlap in transitions
2012-01-13 17:27:52 +07:00
toddparker
21c53b646f
Moved non-3D rules to the bottom to hide the ugliness
...
Rule order doesn't seem to matter because of specificity.
2012-01-13 17:27:52 +07:00
toddparker
7dcce519f7
First cut at making pop work for non-3D browsers. Still rough, but works.
...
I had to create a new set of basic keyframes for non-3D because we had
opacity baked into our keyframes. As an upside, I could tweak the scale
factor differently between Android (0 > 1) and 3D (0.8 > 1).
2012-01-13 17:27:52 +07:00