mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-08 16:40:59 +00:00
Merge branch 'master' of https://github.com/jquery/jquery-mobile
This commit is contained in:
commit
a8a6f58d3e
85 changed files with 587 additions and 422 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -7,8 +7,6 @@ cache/
|
|||
combined/
|
||||
combine/
|
||||
compiled/
|
||||
gitstatus.log
|
||||
refreshCDN
|
||||
*.swp
|
||||
.gitignore
|
||||
tests/speed/stats/stats.db
|
||||
|
|
|
|||
278
GPL-LICENSE.txt
Normal file
278
GPL-LICENSE.txt
Normal file
|
|
@ -0,0 +1,278 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
9
LICENSE-INFO.txt
Normal file
9
LICENSE-INFO.txt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* jQuery Mobile Framework v@VERSION
|
||||
* http://jquerymobile.com
|
||||
*
|
||||
* Copyright 2011 (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
*/
|
||||
20
MIT-LICENSE.txt
Normal file
20
MIT-LICENSE.txt
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
Copyright (c) 2011 John Resig, http://jquery.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
273
Makefile
273
Makefile
|
|
@ -1,44 +1,3 @@
|
|||
# The system generated date in YYYYMMDD format
|
||||
DATE = $(shell date "+%Y%m%d")
|
||||
|
||||
# The version according to the source file. If this is the nightly build, use a different version
|
||||
VER = $(shell cat version.txt)
|
||||
|
||||
# The command to replace the @VERSION in the files with the actual version
|
||||
SED_VER = sed "s/@VERSION/$(shell git log -1 --format=format:" Git > Date: %cd Info SHA1: %H")/"
|
||||
deploy: SED_VER = sed "s/@VERSION/${VER}/"
|
||||
MIN_VER = "/*! jQuery Mobile v@VERSION jquerymobile.com | jquery.org/license */"
|
||||
|
||||
# The version of jQuery core used
|
||||
JQUERY = $(shell grep Library js/jquery.js | sed s'/ \* jQuery JavaScript Library v//')
|
||||
|
||||
# The directory to create the zipped files in and also serves as the filenames
|
||||
DIR = jquery.mobile-${VER}
|
||||
STRUCTUREFILE = jquery.mobile.structure-${VER}
|
||||
nightly: DIR = jquery.mobile
|
||||
|
||||
# The output folder for the finished files
|
||||
OUTPUT = compiled
|
||||
|
||||
# Command to remove the latest directory from the CDN before uploading, only if using latest target
|
||||
RMLATEST = echo ""
|
||||
|
||||
# The output folder for the nightly files.
|
||||
NIGHTLY_OUTPUT = nightlies/${DATE}
|
||||
ifeq (${NIGHTLY_OUTPUT}, latest)
|
||||
RMLATEST = ssh jqadmin@code.origin.jquery.com 'rm -rf /var/www/html/code.jquery.com/mobile/latest'
|
||||
endif
|
||||
NIGHTLY_WEBPATH = http://code.jquery.com/mobile/${NIGHTLY_OUTPUT}
|
||||
|
||||
# The filenames
|
||||
JS = ${DIR}.js
|
||||
MIN = ${DIR}.min.js
|
||||
CSS = ${DIR}.css
|
||||
CSSMIN = ${DIR}.min.css
|
||||
CSSSTRUCTURE = ${STRUCTUREFILE}.css
|
||||
CSSSTRUCTUREMIN = ${STRUCTUREFILE}.min.css
|
||||
CSSTHEME = default
|
||||
|
||||
# The files to include when compiling the JS files
|
||||
JSFILES = js/jquery.ui.widget.js \
|
||||
js/jquery.mobile.widget.js \
|
||||
|
|
@ -75,8 +34,8 @@ JSFILES = js/jquery.ui.widget.js \
|
|||
js/jquery.mobile.fixHeaderFooter.native.js \
|
||||
js/jquery.mobile.init.js
|
||||
|
||||
CSSTHEMEFILES = css/themes/${CSSTHEME}/jquery.mobile.theme.css
|
||||
CSSSTRUCTUREFILES = css/structure/jquery.mobile.core.css \
|
||||
# The files to include when compiling the CSS files
|
||||
CSSFILES = css/structure/jquery.mobile.core.css \
|
||||
css/structure/jquery.mobile.transitions.css \
|
||||
css/structure/jquery.mobile.grids.css \
|
||||
css/structure/jquery.mobile.headerfooter.css \
|
||||
|
|
@ -91,129 +50,157 @@ CSSSTRUCTUREFILES = css/structure/jquery.mobile.core.css \
|
|||
css/structure/jquery.mobile.forms.textinput.css \
|
||||
css/structure/jquery.mobile.listview.css \
|
||||
css/structure/jquery.mobile.forms.slider.css
|
||||
CSSTHEMEFILES = css/themes/${THEME}/jquery.mobile.theme.css
|
||||
|
||||
|
||||
# The files to include when compiling the CSS files
|
||||
CSSFILES = ${CSSTHEMEFILES} ${CSSSTRUCTUREFILES}
|
||||
|
||||
# By default, this is what get runs when make is called without any arguments.
|
||||
# Min and un-min CSS and JS files are the only things built
|
||||
all: init js min css cssmin notify
|
||||
|
||||
# Build the normal CSS file.
|
||||
# Helper Variables
|
||||
# The command to replace the @VERSION in the files with the actual version
|
||||
VER = sed "s/v@VERSION/$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd")/"
|
||||
VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} jquerymobile.com | jquery.org/license */"
|
||||
VER_OFFICIAL = $(shell cat version.txt)
|
||||
|
||||
# The output folder for the finished files
|
||||
OUTPUT = compiled
|
||||
|
||||
# The name of the files
|
||||
NAME = jquery.mobile
|
||||
STRUCTURE = jquery.mobile.structure
|
||||
deploy: NAME = jquery.mobile-${VER_OFFICIAL}
|
||||
deploy: STRUCTURE = jquery.mobile.structure-${VER_OFFICIAL}
|
||||
|
||||
# The CSS theme being used
|
||||
THEME = default
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Build Targets
|
||||
|
||||
# When no build target is specified, all gets ran
|
||||
all: init css js zip notify
|
||||
|
||||
|
||||
# Build and minify the CSS files
|
||||
css: init
|
||||
# Build the CSS file
|
||||
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${CSS}
|
||||
@@cat ${CSSFILES} >> ${OUTPUT}/${CSS}
|
||||
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${CSSSTRUCTURE}
|
||||
@@cat ${CSSSTRUCTUREFILES} >> ${OUTPUT}/${CSSSTRUCTURE}
|
||||
# Build the CSS file with the theme included
|
||||
@@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${NAME}.css
|
||||
@@cat ${CSSTHEMEFILES} ${CSSFILES} >> ${OUTPUT}/${NAME}.css
|
||||
# ..... and then minify it
|
||||
@@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.css
|
||||
@@java -jar build/yuicompressor-2.4.6.jar --type css ${OUTPUT}/${NAME}.css >> ${OUTPUT}/${NAME}.min.css
|
||||
# Build the CSS Structure-only file
|
||||
@@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${STRUCTURE}.css
|
||||
@@cat ${CSSFILES} >> ${OUTPUT}/${STRUCTURE}.css
|
||||
# ..... and then minify it
|
||||
@@echo ${VER_MIN} > ${OUTPUT}/${NAME}.structure.min.css
|
||||
@@java -jar build/yuicompressor-2.4.6.jar --type css ${OUTPUT}/${STRUCTURE}.css >> ${OUTPUT}/${STRUCTURE}.min.css
|
||||
# ..... and then copy in the images
|
||||
@@cp -R css/themes/${THEME}/images ${OUTPUT}/
|
||||
# Css portion is complete.
|
||||
# -------------------------------------------------
|
||||
|
||||
# Build the minified CSS file
|
||||
cssmin: init css
|
||||
# Build the minified CSS file
|
||||
@@echo ${MIN_VER} | ${SED_VER} > ${OUTPUT}/${CSSMIN}
|
||||
@@echo ${MIN_VER} | ${SED_VER} > ${OUTPUT}/${CSSSTRUCTUREMIN}
|
||||
@@java -jar build/yuicompressor-2.4.6.jar --type css ${OUTPUT}/${CSS} >> ${OUTPUT}/${CSSMIN}
|
||||
@@java -jar build/yuicompressor-2.4.6.jar --type css ${OUTPUT}/${CSSSTRUCTURE} >> ${OUTPUT}/${CSSSTRUCTUREMIN}
|
||||
|
||||
# Build the normal JS file
|
||||
js: init
|
||||
# Build the JavaScript file
|
||||
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${JS}
|
||||
@@cat ${JSFILES} >> ${OUTPUT}/${JS}
|
||||
docs: init css js
|
||||
# Create the Demos/Docs/Tests/Tools
|
||||
@@mkdir -p tmp/${NAME}
|
||||
@@cp -r index.html docs experiments external js/jquery.js tests tmp/${NAME}/
|
||||
@@cp ${OUTPUT}/${NAME}.min.css ${OUTPUT}/${NAME}.min.js tmp/${NAME}/
|
||||
# ... Update the JavaScript and CSS paths
|
||||
@@find tmp/${NAME} -type f \
|
||||
\( -name '*.html' -o -name '*.php' \) \
|
||||
-exec sed -i '' 's|js/"|${NAME}.min.js"|g' {} \; \
|
||||
-exec sed -i '' 's|css/themes/default/|${NAME}.min.css|g' {} \; \
|
||||
-exec sed -i '' 's|js/jquery.js"|jquery.js"|g' {} \;
|
||||
# ... And then move it the finished directory
|
||||
@@mv tmp/${NAME} ${OUTPUT}/demos
|
||||
# Last, zip up the the whole folder
|
||||
@@zip -rq tmp/${NAME}.zip ${OUTPUT}
|
||||
@@mv tmp/${NAME}.zip ${OUTPUT}/${NAME}.docs.zip
|
||||
# Remove the temporary files
|
||||
@@rm -rf tmp
|
||||
# -------------------------------------------------
|
||||
|
||||
|
||||
# Create the output directory. This is in a separate step so its not dependant on other targets
|
||||
init:
|
||||
# -------------------------------------------------
|
||||
# Building jQuery Mobile in the "${OUTPUT}" folder
|
||||
@@rm -rf ${OUTPUT}
|
||||
@@mkdir ${OUTPUT}
|
||||
@@rm -rf tmp
|
||||
@@mkdir -p ${OUTPUT}
|
||||
# -------------------------------------------------
|
||||
|
||||
# Build the minified JS file
|
||||
min: init js
|
||||
# Build the minified JavaScript file
|
||||
@@echo ${MIN_VER} | ${SED_VER} > ${OUTPUT}/${MIN}
|
||||
@@java -jar build/google-compiler-20111003.jar --js ${OUTPUT}/${JS} --warning_level QUIET --js_output_file ${MIN}.tmp
|
||||
@@cat ${MIN}.tmp >> ${OUTPUT}/${MIN}
|
||||
@@rm -f ${MIN}.tmp
|
||||
|
||||
# Let the user know the files were built and where they are
|
||||
notify:
|
||||
# Build and minify the JS files
|
||||
js: init
|
||||
# Build the JavaScript file
|
||||
@@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${NAME}.js
|
||||
@@cat ${JSFILES} >> ${OUTPUT}/${NAME}.js
|
||||
# ..... and then minify it
|
||||
@@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.js
|
||||
@@java -jar build/google-compiler-20111003.jar --js ${OUTPUT}/${NAME}.js --warning_level QUIET >> ${OUTPUT}/${NAME}.min.js
|
||||
# -------------------------------------------------
|
||||
|
||||
|
||||
# Output a message saying the process is complete
|
||||
notify: init
|
||||
@@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
|
||||
|
||||
# Pull the latest commits. This is used for the nightly build but can be used to save some keystrokes
|
||||
pull:
|
||||
@@git pull --quiet
|
||||
|
||||
# Zip the 4 files and the theme images into one convenient package
|
||||
zip: init js min css cssmin
|
||||
@@mkdir -p ${DIR}
|
||||
@@cp ${OUTPUT}/*.js ${DIR}/
|
||||
@@cp ${OUTPUT}/*.css ${DIR}/
|
||||
@@cp -R css/themes/${CSSTHEME}/images ${DIR}/
|
||||
@@zip -rq ${OUTPUT}/${DIR}.zip ${DIR}
|
||||
@@rm -fr ${DIR}
|
||||
# -------------------------------------------------
|
||||
|
||||
|
||||
# Used by the jQuery team to make the nightly builds
|
||||
nightly: pull zip
|
||||
# Create the folder to hold the files for the demos
|
||||
@@mkdir -p ${VER}
|
||||
# Zip up the jQm files without docs
|
||||
zip: init css js
|
||||
# Packaging up the files into a zip archive
|
||||
@@zip -rq ${NAME}.tmp.zip ${OUTPUT}
|
||||
@@mv ${NAME}.tmp.zip ${OUTPUT}/${NAME}.zip
|
||||
# -------------------------------------------------
|
||||
|
||||
|
||||
# Copy in the base stuff for the demos
|
||||
@@cp -r index.html css experiments docs tools ${VER}/
|
||||
|
||||
# First change all the paths from super deep to the same level for JS files
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="../../../js|src="js|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="../../js|src="js|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="../js|src="js|g' {} \;
|
||||
|
||||
# Then change all the paths from super deep to the same level for CSS files
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|media="only all"||g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|rel="stylesheet" href="../../../|rel="stylesheet" href="|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|rel="stylesheet" href="../../|rel="stylesheet" href="|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i 's|rel="stylesheet" href="../|rel="stylesheet" href="|g' {} \;
|
||||
# -------------------------------------------------
|
||||
# -------------------------------------------------
|
||||
# -------------------------------------------------
|
||||
#
|
||||
# For jQuery Team Use Only
|
||||
#
|
||||
# -------------------------------------------------
|
||||
|
||||
# Change the empty paths to the location of this nightly file
|
||||
@@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' {} \;
|
||||
|
||||
# Move the demos into the output folder
|
||||
@@mv ${VER} ${OUTPUT}/demos
|
||||
|
||||
# Copy the images as well
|
||||
@@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}
|
||||
# Push the latest git version to the CDN. This is done on a post commit hook
|
||||
latest: init js css zip
|
||||
# Time to put these on the CDN
|
||||
@@scp -r ${OUTPUT}/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/latest/
|
||||
# Do some cleanup to wrap it up
|
||||
@@rm -rf ${OUTPUT}
|
||||
# -------------------------------------------------
|
||||
|
||||
# Used by the jQuery team to deploy a build to the CDN
|
||||
deploy: zip
|
||||
# Deploy to CDN
|
||||
@@mv ${OUTPUT} ${VER}
|
||||
@@scp -r ${VER} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
|
||||
@@mv ${VER} ${OUTPUT}
|
||||
# Build the nightly backups. This is done on a server cronjob
|
||||
nightlies: init js css zip docs
|
||||
# Time to put these on the CDN
|
||||
@@mkdir -p tmp/nightlies
|
||||
@@mv ${OUTPUT} tmp/nightlies/$$(date "+%Y%m%d")
|
||||
@@scp -r nightlies/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/
|
||||
# Do some cleanup to wrap it up
|
||||
@@rm -rf tmp
|
||||
# -------------------------------------------------
|
||||
|
||||
# Deploy Demos to the jQueryMobile.com site
|
||||
@@mkdir -p ${VER}
|
||||
@@cp -r index.html css experiments docs tools ${VER}/
|
||||
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="../../../js|src="js|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="../../js|src="js|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="../js|src="js|g' {} \;
|
||||
# Deploy a finished release. This is manually done.
|
||||
deploy: init js css docs zip
|
||||
# Deploying all the files to the CDN
|
||||
@@mkdir tmp
|
||||
@@cp -r ${OUTPUT} tmp/${VER_OFFICIAL}
|
||||
@@scp -r tmp/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
|
||||
@@rm -rf tmp/${VER_OFFICIAL}
|
||||
# Create the Demos/Docs/Tests/Tools for jQueryMobile.com
|
||||
@@mv ${OUTPUT}/demos tmp/${VER_OFFICIAL}
|
||||
# ... And copied to the CDN and the jquerymobile.com server
|
||||
@@scp -r tmp/* jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
|
||||
# Do some cleanup to wrap it up
|
||||
@@rm -rf tmp
|
||||
@@rm -rf ${OUTPUT}
|
||||
# -------------------------------------------------
|
||||
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|media="only all"||g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../../../|rel="stylesheet" href="|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../../|rel="stylesheet" href="|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../|rel="stylesheet" href="|g' {} \;
|
||||
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|href="css/themes/${CSSTHEME}/"|href="http://code.jquery.com/mobile/${VER}/${DIR}.min.css"|g' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="js/jquery.js"|src="http://code.jquery.com/jquery-${JQUERY}.min.js"|' {} \;
|
||||
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="js/"|src="http://code.jquery.com/mobile/${VER}/${DIR}.min.js"|g' {} \;
|
||||
|
||||
@@scp -r ${VER} jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
|
||||
|
||||
# Clean up the local files
|
||||
@@rm -rf ${VER}
|
||||
@@echo "All Done"
|
||||
|
|
|
|||
|
|
@ -77,9 +77,8 @@ theme's name. For testing locally, make sure the index.php file is copied as wel
|
|||
2. Edit the `jquery.mobile.theme.css` file so it contains your custom fonts and colors.
|
||||
3. Once you are done editing your files and saving them, open a terminal.
|
||||
4. Navigate to the jQuery-Mobile folder's root.
|
||||
5. Run the following command to build jQuery-Mobile. The CSSTHEME specifies what theme to include. If you leave it off,
|
||||
it will build using the "default" theme.
|
||||
5. Run the following command to build jQuery-Mobile (THEME is the name of the folder for your theme from step 1.):
|
||||
|
||||
make CSSTHEME=YourThemeName
|
||||
make THEME=YourThemeName
|
||||
|
||||
6. The compiled files will be located in the "compiled" folder in the root of jQuery-Mobile.
|
||||
6. The compiled files will be located in the "compiled" folder in the root of jQuery-Mobile.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
$files = array_merge($files, array(
|
||||
'../../../LICENSE-INFO.txt',
|
||||
'../../structure/jquery.mobile.core.css',
|
||||
'../../structure/jquery.mobile.transitions.css',
|
||||
'../../structure/jquery.mobile.grids.css',
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
.ui-btn { display: block; text-align: center; cursor:pointer; position: relative; margin: .5em 5px; padding: 0; }
|
||||
.ui-header .ui-btn, .ui-footer .ui-btn, .ui-bar .ui-btn { display: inline-block; font-size: 13px; margin: 0; }
|
||||
.ui-btn-inline { display: inline-block; }
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
.ui-collapsible { margin: .5em 0; }
|
||||
.ui-collapsible-heading { font-size: 16px; display: block; margin: 0 -8px; padding: 0; border-width: 0 0 1px 0; position: relative; }
|
||||
.ui-collapsible-heading a { text-align: left; margin: 0; }
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
.ui-controlgroup, fieldset.ui-controlgroup { padding: 0; margin: .5em 0 1em; }
|
||||
.ui-bar .ui-controlgroup { margin: 0 .3em; }
|
||||
.ui-controlgroup-label { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; }
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
|
||||
/* some unsets - more probably needed */
|
||||
.ui-mobile, .ui-mobile body { height: 100%; }
|
||||
.ui-mobile fieldset, .ui-page { padding: 0; margin: 0; }
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
.ui-dialog { min-height: 480px; }
|
||||
.ui-dialog .ui-header,
|
||||
.ui-dialog .ui-content,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
.ui-checkbox, .ui-radio { position:relative; margin: .2em 0 .5em; z-index: 1; }
|
||||
.ui-checkbox .ui-btn, .ui-radio .ui-btn { margin: 0; text-align: left; z-index: 2; }
|
||||
.ui-checkbox .ui-btn-inner, .ui-radio .ui-btn-inner { white-space: normal; }
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
.ui-field-contain { padding: 1.5em 0; margin: 0; border-bottom-width: 1px; overflow: visible; }
|
||||
.ui-field-contain:first-child { border-top-width: 0; }
|
||||
@media all and (min-width: 450px){
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
.ui-select { display: block; position: relative; }
|
||||
.ui-select select { position: absolute; left: -9999px; top: -9999px; }
|
||||
.ui-select .ui-btn { overflow: hidden; }
|
||||
|
||||
|
||||
.ui-select .ui-btn { opacity: 1; }
|
||||
/* Fixes #2588 — When Windows Phone 7.5 (Mango) tries to calculate a numeric opacity for a select—including “inherit”—without explicitly specifying an opacity on the parent to give it context, a bug appears where clicking elsewhere on the page after opening the select will open the select again. */
|
||||
.ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; min-height: 1.5em; min-height: 100%; height: 3em; max-height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); z-index: 2; }
|
||||
|
||||
|
||||
@-moz-document url-prefix() {.ui-select .ui-btn select { opacity: 0.0001; }}
|
||||
.ui-select .ui-btn select.ui-select-nativeonly { opacity: 1; text-indent: 0; }
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
label.ui-slider { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; display: block; }
|
||||
input.ui-slider-input,
|
||||
.ui-field-contain input.ui-slider-input { display: inline-block; width: 50px; }
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
label.ui-input-text { font-size: 16px; line-height: 1.4; display: block; font-weight: normal; margin: 0 0 .3em; }
|
||||
input.ui-input-text, textarea.ui-input-text { background-image: none; padding: .4em; line-height: 1.4; font-size: 16px; display: block; width: 97%; }
|
||||
input.ui-input-text { -webkit-appearance: none; }
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
|
||||
/* content configurations. */
|
||||
.ui-grid-a, .ui-grid-b, .ui-grid-c, .ui-grid-d { overflow: hidden; }
|
||||
.ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e { margin: 0; padding: 0; border: 0; float: left; min-height:1px;}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
/* fixed page header & footer configuration */
|
||||
.ui-header, .ui-footer, .ui-page-fullscreen .ui-header, .ui-page-fullscreen .ui-footer { position: absolute; overflow: hidden; width: 100%; border-left-width: 0; border-right-width: 0; }
|
||||
.ui-header-fixed, .ui-footer-fixed {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
.ui-listview { margin: 0; counter-reset: listnumbering; }
|
||||
.ui-content .ui-listview { margin: -15px; }
|
||||
.ui-content .ui-listview-inset { margin: 1em 0; }
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
.ui-navbar { overflow: hidden; }
|
||||
.ui-navbar ul, .ui-navbar-expanded ul { list-style:none; padding: 0; margin: 0; position: relative; display: block; border: 0;}
|
||||
.ui-navbar-collapsed ul { float: left; width: 75%; margin-right: -2px; }
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
.spin {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-webkit-animation-name: spin;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
$type = 'text/css';
|
||||
$files = array(
|
||||
'../../../LICENSE-INFO.txt',
|
||||
'jquery.mobile.theme.css'
|
||||
);
|
||||
$base = dirname(__FILE__);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
|
||||
/* Swatches */
|
||||
|
||||
/* A
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
$type = 'text/css';
|
||||
$files = array(
|
||||
'../../../LICENSE-INFO.txt',
|
||||
'jquery.mobile.theme.css'
|
||||
);
|
||||
$base = dirname(__FILE__);
|
||||
|
|
|
|||
|
|
@ -1,10 +1,3 @@
|
|||
/*
|
||||
* jQuery Mobile Framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
|
||||
|
||||
/*####################################################################################################################################
|
||||
|
||||
A
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<title>Main Page</title>
|
||||
<link rel="stylesheet" href="../../css/themes/default/" />
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js"></script>
|
||||
<script src="../../js/"></script>
|
||||
|
||||
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<title>Main Page</title>
|
||||
<link rel="stylesheet" href="../../css/themes/default/" />
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js"></script>
|
||||
<script src="../../js/"></script>
|
||||
|
||||
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
}
|
||||
</style>
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js"></script>
|
||||
<script src="../../js/"></script>
|
||||
<script src="jquery.easing.1.3.js"></script>
|
||||
<script src="jquery.mobile.scrollview.js"></script>
|
||||
<script src="scrollview.js"></script>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
}
|
||||
</style>
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js"></script>
|
||||
<script src="../../js/"></script>
|
||||
<script src="jquery.easing.1.3.js"></script>
|
||||
<script src="jquery.mobile.scrollview.js"></script>
|
||||
<script src="scrollview.js"></script>
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
}
|
||||
</style>
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js"></script>
|
||||
<script src="../../js/"></script>
|
||||
<script src="jquery.easing.1.3.js"></script>
|
||||
<script src="jquery.mobile.scrollview.js"></script>
|
||||
<script src="scrollview.js"></script>
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@
|
|||
|
||||
</style>
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js"></script>
|
||||
<script src="../../js/"></script>
|
||||
<script src="jquery.easing.1.3.js"></script>
|
||||
<script src="jquery.mobile.scrollview.js"></script>
|
||||
<script src="scrollview.js"></script>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<link rel="stylesheet" href="../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css"/>
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js"></script>
|
||||
<script src="../../js/"></script>
|
||||
<style>
|
||||
|
||||
#evtCatcher {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
}
|
||||
</style>
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js"></script>
|
||||
<script src="../../js/"></script>
|
||||
<script src="../../docs/lists/docs/docs.js"></script>
|
||||
<script src="jquery.easing.1.3.js"></script>
|
||||
<script src="jquery.mobile.scrollview.js"></script>
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
<?php
|
||||
$file = fopen('gitstatus.log','wb');
|
||||
fwrite($file, 'NewCommit');
|
||||
fclose($file);
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
$filename = 'gitstatus.log';
|
||||
$file = fopen($filename, 'r+b');
|
||||
if ( fread($file, filesize($filename)) === 'NewCommit' )
|
||||
{
|
||||
ftruncate($file, 0);
|
||||
exec('git pull --quiet && make NIGHTLY_OUTPUT=latest nightly >> /dev/null 2>&1');
|
||||
exec('./refreshCDN >> /dev/null 2>&1');
|
||||
}
|
||||
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
$type = 'text/javascript';
|
||||
$files = array(
|
||||
'LICENSE-INFO.txt',
|
||||
'jquery.ui.widget.js',
|
||||
'jquery.mobile.widget.js',
|
||||
'jquery.mobile.media.js',
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "buttons" plugin - for making button-like links
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "buttons" plugin - for making button-like links
|
||||
*/
|
||||
|
||||
( function( $, undefined ) {
|
||||
|
||||
$.fn.buttonMarkup = function( options ) {
|
||||
|
|
@ -165,7 +163,7 @@ var attachEvents = function() {
|
|||
if ( btn ) {
|
||||
$btn = $( btn );
|
||||
theme = $btn.attr( "data-" + $.mobile.ns + "theme" );
|
||||
$btn.removeClass( "ui-btn-hover-" + theme ).addClass( "ui-btn-up-" + theme );
|
||||
$btn.removeClass( "ui-btn-hover-" + theme + " ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "collapsible" plugin
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "collapsible" plugin
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
||||
$.widget( "mobile.collapsible", $.mobile.widget, {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
/*
|
||||
* jQuery Mobile Framework: "controlgroup" plugin - corner-rounding for groups of buttons, checks, radios, etc
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
/*
|
||||
* "controlgroup" plugin - corner-rounding for groups of buttons, checks, radios, etc
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
||||
$.fn.controlgroup = function( options ) {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "core" - The base file for jQm
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
/*
|
||||
* "core" - The base file for jQm
|
||||
*/
|
||||
|
||||
|
||||
(function( $, window, undefined ) {
|
||||
|
||||
var nsNormalizeDict = {};
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "degradeInputs" plugin - degrades inputs to another type after custom enhancements are made.
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "degradeInputs" plugin - degrades inputs to another type after custom enhancements are made.
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "dialog" plugin.
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
||||
* "dialog" plugin.
|
||||
*/
|
||||
|
||||
(function( $, window, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "events" plugin - Handles events
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
/*
|
||||
* "events" plugin - Handles events
|
||||
*/
|
||||
|
||||
(function( $, window, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "fieldcontain" plugin - simple class additions to make form row separators
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "fieldcontain" plugin - simple class additions to make form row separators
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "fixHeaderFooter" plugin - on-demand positioning for headers,footers
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "fixHeaderFooter" plugin - on-demand positioning for headers,footers
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "fixHeaderFooter" native plugin - Behavior for "fixed" headers,footers, and scrolling inner content
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "fixHeaderFooter" native plugin - Behavior for "fixed" headers,footers, and scrolling inner content
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "button" plugin - links that proxy to native input/buttons
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "button" plugin - links that proxy to native input/buttons
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "checkboxradio" plugin
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "checkboxradio" plugin
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : custom "selectmenu" plugin
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* custom "selectmenu" plugin
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "selectmenu" plugin
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "selectmenu" plugin
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "slider" plugin
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "slider" plugin
|
||||
*/
|
||||
|
||||
( function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "textinput" plugin for text inputs, textareas
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "textinput" plugin for text inputs, textareas
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
@ -89,9 +86,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
|
|||
clientHeight = input[ 0 ].clientHeight;
|
||||
|
||||
if ( clientHeight < scrollHeight ) {
|
||||
input.css({
|
||||
height: (scrollHeight + extraLineHeight)
|
||||
});
|
||||
input.height(scrollHeight + extraLineHeight);
|
||||
}
|
||||
},
|
||||
keyupTimeout;
|
||||
|
|
@ -101,10 +96,15 @@ $.widget( "mobile.textinput", $.mobile.widget, {
|
|||
keyupTimeout = setTimeout( keyup, keyupTimeoutBuffer );
|
||||
});
|
||||
|
||||
// Issue 509: the browser is not giving scrollHeight properly until after the document
|
||||
// is ready.
|
||||
if ($.trim(input.text())) {
|
||||
$(keyup);
|
||||
// Issue 509: the browser is not providing scrollHeight properly until the styles load
|
||||
if ( $.trim( input.val() ) ) {
|
||||
// bind to the window load to make sure the height is calculated based on BOTH
|
||||
// the DOM and CSS
|
||||
$( window ).load( keyup );
|
||||
|
||||
// binding to pagechange here ensures that for pages loaded via
|
||||
// ajax the height is recalculated without user input
|
||||
$( document ).one( "pagechange", keyup );
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : plugin for creating CSS grids
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* plugin for creating CSS grids
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,14 +1,5 @@
|
|||
/*!
|
||||
* jQuery hashchange event - v1.3 - 7/21/2010
|
||||
* http://benalman.com/projects/jquery-hashchange-plugin/
|
||||
*
|
||||
* Copyright (c) 2010 "Cowboy" Ben Alman
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
* http://benalman.com/about/license/
|
||||
*/
|
||||
|
||||
// Script: jQuery hashchange event
|
||||
//
|
||||
//
|
||||
// *Version: 1.3, Last updated: 7/21/2010*
|
||||
//
|
||||
// Project Home - http://benalman.com/projects/jquery-hashchange-plugin/
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "init" - Initialize the framework
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "init" - Initialize the framework
|
||||
*/
|
||||
|
||||
(function( $, window, undefined ) {
|
||||
|
|
|
|||
9
js/jquery.mobile.intro.js
Normal file
9
js/jquery.mobile.intro.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* jQuery Mobile Framework v@VERSION
|
||||
* http://jquerymobile.com
|
||||
*
|
||||
* Copyright 2011 (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
*/
|
||||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "links" plugin - simple class additions for links
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "links" plugin - simple class additions for links
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "listview" filter extension
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "listview" filter extension
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "listview" plugin
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "listview" plugin
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : a workaround for window.matchMedia
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* a workaround for window.matchMedia
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "navbar" plugin
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "navbar" plugin
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : core utilities for auto ajax navigation, base tag mgmt,
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* core utilities for auto ajax navigation, base tag mgmt,
|
||||
*/
|
||||
|
||||
( function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : history.pushState support, layered on top of hashchange
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* history.pushState support, layered on top of hashchange
|
||||
*/
|
||||
|
||||
( function( $, window ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "nojs" plugin - class to make elements hidden to A grade browsers
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "nojs" plugin - class to make elements hidden to A grade browsers
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "page" plugin
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "page" plugin
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : This plugin handles theming and layout of headers, footers, and content areas
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* This plugin handles theming and layout of headers, footers, and content areas
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : support tests
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
||||
* support tests
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "transitions" plugin - Page change tranistions
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "transitions" plugin - Page change tranistions
|
||||
*/
|
||||
|
||||
(function( $, window, undefined ) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : "mouse" plugin
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* "mouse" plugin
|
||||
*/
|
||||
|
||||
// This plugin is an experiment for abstracting away the touch and mouse
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : widget factory extentions for mobile
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* widget factory extentions for mobile
|
||||
*/
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
|
|
|||
|
|
@ -41,6 +41,6 @@ table {
|
|||
|
||||
div.visualize {
|
||||
float: left;
|
||||
margin-left: 50px;
|
||||
margin-left: 100px;
|
||||
margin-right: 50px;
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
<script src="../../jquery.testHelper.js"></script>
|
||||
<script src="buttonMarkup_core.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="../../../css/themes/default" />
|
||||
<link rel="stylesheet" href="../../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
|
||||
<script src="../swarminject.js"></script>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<script src="../jquery.setNameSpace.js"></script>
|
||||
<script src="../../../js/"></script>
|
||||
<script src="../../jquery.testHelper.js"></script>
|
||||
<link rel="stylesheet" href="../../../css/themes/default" />
|
||||
<link rel="stylesheet" href="../../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
<script src="../../../external/qunit.js"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<script src="../../../js/"></script>
|
||||
<!-- added explicitly for library reloading (see testHelper ) -->
|
||||
<script src="../../jquery.testHelper.js"></script>
|
||||
<link rel="stylesheet" href="../../../css/themes/default" />
|
||||
<link rel="stylesheet" href="../../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
|
||||
<script src="core.js"></script>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<script src="../jquery.setNameSpace.js"></script>
|
||||
<script src="../../../tests/jquery.testHelper.js"></script>
|
||||
<script src="../../../js/jquery.mobile.event.js"></script>
|
||||
<script src="../../../js"></script>
|
||||
<script src="../../../js/"></script>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<!-- added explicitly for library reloading (see testHelper ) -->
|
||||
<script src="../../../js/jquery.mobile.core.js"></script>
|
||||
<script src="../../../js/jquery.mobile.init.js"></script>
|
||||
<link rel="stylesheet" href="../../../css/themes/default" />
|
||||
<link rel="stylesheet" href="../../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
|
||||
<script src="../swarminject.js"></script>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
<script src="../../../external/qunit.js"></script>
|
||||
<script src="../../jquery.testHelper.js"></script>
|
||||
<script src="init_core_nopage.js"></script>
|
||||
<link rel="stylesheet" href="../../../css/themes/default" />
|
||||
<link rel="stylesheet" href="../../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
<script src="../swarminject.js"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<script src="../jquery.setNameSpace.js"></script>
|
||||
<script src="../../../js/"></script>
|
||||
<script src="../../jquery.testHelper.js"></script>
|
||||
<link rel="stylesheet" href="../../../css/themes/default" />
|
||||
<link rel="stylesheet" href="../../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
<script src="../../../external/qunit.js"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<script src="../jquery.setNameSpace.js"></script>
|
||||
<script src="../../../js/"></script>
|
||||
<script src="../../jquery.testHelper.js"></script>
|
||||
<link rel="stylesheet" href="../../../css/themes/default" />
|
||||
<link rel="stylesheet" href="../../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
<script src="../../../external/qunit.js"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<script src="../jquery.setNameSpace.js"></script>
|
||||
<script src="../../../external/qunit.js"></script>
|
||||
<script src="../../../tests/jquery.testHelper.js"></script>
|
||||
<script src="../../../js"></script>
|
||||
<script src="../../../js/"></script>
|
||||
<script src="select_cached.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="../../../css/themes/default/"/>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<script src="../jquery.setNameSpace.js"></script>
|
||||
<script src="../../../external/qunit.js"></script>
|
||||
<script src="../../../tests/jquery.testHelper.js"></script>
|
||||
<script src="../../../js"></script>
|
||||
<script src="../../../js/"></script>
|
||||
<script src="select_events.js"></script>
|
||||
<script src="select_native.js"></script>
|
||||
<script src="select_cached.js"></script>
|
||||
|
|
|
|||
38
tests/unit/textinput/external.html
Normal file
38
tests/unit/textinput/external.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div data-nstest-role="page" id="foo">
|
||||
<textarea id="page-load-autogrow">
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
Place holder text
|
||||
</textarea>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
<script src="../../jquery.testHelper.js"></script>
|
||||
<script src="../../../external/qunit.js"></script>
|
||||
<script src="../../../js/"></script>
|
||||
<link rel="stylesheet" href="../../../css/themes/default" />
|
||||
<link rel="stylesheet" href="../../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
|
||||
<script src="textinput_core.js"></script>
|
||||
|
|
@ -46,6 +46,7 @@
|
|||
|
||||
<textarea id="keyup-autogrow">
|
||||
</textarea>
|
||||
<a href="external.html" id="external">external</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -39,4 +39,23 @@
|
|||
|
||||
test.val("foo\n\n\n\n\n\n\n\n\n\n\n\n\n\n").trigger("keyup");
|
||||
});
|
||||
|
||||
asyncTest( "text area should auto grow when the parent page is loaded via ajax", function() {
|
||||
$.testHelper.pageSequence([
|
||||
function() {
|
||||
$("#external").click();
|
||||
},
|
||||
|
||||
function() {
|
||||
setTimeout(function() {
|
||||
ok($.mobile.activePage.find( "textarea" )[0].clientHeight > 100, "text area's height has grown");
|
||||
window.history.back();
|
||||
}, 1000);
|
||||
},
|
||||
|
||||
function() {
|
||||
start();
|
||||
}
|
||||
]);
|
||||
});
|
||||
})(jQuery);
|
||||
Loading…
Reference in a new issue