mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Merge branch 'master' into interactions
This commit is contained in:
commit
8b47438d6c
13
.editorconfig
Normal file
13
.editorconfig
Normal file
@ -0,0 +1,13 @@
|
||||
; This file is for unifying the coding style for different editors and IDEs.
|
||||
; More information at http://EditorConfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[grunt.js]
|
||||
indent_style = tab
|
||||
|
||||
[ui/**.js]
|
||||
indent_style = tab
|
||||
|
||||
[tests/unit/**.js]
|
||||
indent_style = tab
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,6 +1,5 @@
|
||||
build/dist
|
||||
build/size
|
||||
build/build/.sizecache.json
|
||||
dist
|
||||
node_modules
|
||||
docs
|
||||
.project
|
||||
*~
|
||||
|
12
.jshintrc
Normal file
12
.jshintrc
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"curly": true,
|
||||
"eqnull": true,
|
||||
"eqeqeq": true,
|
||||
"expr": true,
|
||||
"latedef": true,
|
||||
"noarg": true,
|
||||
"onevar": true,
|
||||
"smarttabs": true,
|
||||
"trailing": true,
|
||||
"undef": true
|
||||
}
|
218
AUTHORS.txt
218
AUTHORS.txt
@ -1,31 +1,189 @@
|
||||
jQuery UI Authors (http://jqueryui.com/about)
|
||||
Authors ordered by first contribution
|
||||
A list of current team members is available at http://jqueryui.com/about
|
||||
|
||||
This software consists of voluntary contributions made by many
|
||||
individuals. For exact contribution history, see the revision history
|
||||
and logs, available at http://github.com/jquery/jquery-ui
|
||||
|
||||
Brandon Aaron
|
||||
Paul Bakaus (paulbakaus.com)
|
||||
David Bolter
|
||||
Rich Caloggero
|
||||
Chi Cheng (cloudream@gmail.com)
|
||||
Colin Clark (http://colin.atrc.utoronto.ca/)
|
||||
Michelle D'Souza
|
||||
Aaron Eisenberger (aaronchi@gmail.com)
|
||||
Ariel Flesler
|
||||
Bohdan Ganicky
|
||||
Scott González
|
||||
Marc Grabanski (m@marcgrabanski.com)
|
||||
Klaus Hartl (stilbuero.de)
|
||||
Hans Hillen (TPG, funded through AEGIS: http://www.aegis-project.eu/)
|
||||
Scott Jehl
|
||||
Cody Lindley
|
||||
Eduardo Lundgren (eduardolundgren@gmail.com)
|
||||
Todd Parker
|
||||
John Resig
|
||||
Patty Toland
|
||||
Ca-Phun Ung (yelotofu.com)
|
||||
Keith Wood (kbwood@virginbroadband.com.au)
|
||||
Maggie Costello Wachs
|
||||
Richard D. Worth (rdworth.org)
|
||||
Jörn Zaefferer (bassistance.de)
|
||||
Paul Bakaus <paul.bakaus@googlemail.com>
|
||||
Richard Worth <rdworth@gmail.com>
|
||||
Yehuda Katz <wycats@gmail.com>
|
||||
Sean Catchpole <littlecooldude@gmail.com>
|
||||
John Resig <jeresig@gmail.com>
|
||||
Tane Piper <tane@tanepiper.com>
|
||||
Dmitri Gaskin <dmitrig01@gmail.com>
|
||||
Klaus Hartl <klaus.hartl@googlemail.com>
|
||||
Stefan Petre <stefan.petre@gmail.com>
|
||||
Gilles van den Hoven <gilles@webunity.nl>
|
||||
Micheil Smith <micheil@brandedcode.com>
|
||||
Jörn Zaefferer <joern.zaefferer@gmail.com>
|
||||
Marc Grabanski <m@marcgrabanski.com>
|
||||
Keith Wood <kbwood.au@gmail.com>
|
||||
Brandon Aaron <brandon.aaron@gmail.com>
|
||||
Scott González <scott.gonzalez@gmail.com>
|
||||
Eduardo Lundgren <eduardolundgren@gmail.com>
|
||||
Aaron Eisenberger <aaronchi@gmail.com>
|
||||
Joan Piedra <theneojp@gmail.com>
|
||||
Bruno Basto <b.basto@gmail.com>
|
||||
Remy Sharp <remy@leftlogic.com>
|
||||
Bohdan Ganicky <bohdan.ganicky@gmail.com>
|
||||
David Bolter <david.bolter@gmail.com>
|
||||
Chi Cheng <cloudream@gmail.com>
|
||||
Ca-Phun Ung <pazu2k@gmail.com>
|
||||
Ariel Flesler <aflesler@gmail.com>
|
||||
Maggie Costello Wachs <fg.maggie@gmail.com>
|
||||
Scott Jehl <scott@scottjehl.com>
|
||||
Todd Parker <fg.todd@gmail.com>
|
||||
Andrew Powell <powella@gmail.com>
|
||||
Brant Burnett <btburnett3@gmail.com>
|
||||
Douglas Neiner <doug@pixelgraphics.us>
|
||||
Paul Irish <paul.irish@gmail.com>
|
||||
Ralph Whitbeck <ralph.whitbeck@gmail.com>
|
||||
Thibault Duplessis <thibault.duplessis@gmail.com>
|
||||
Dominique Vincent <dominique.vincent@toitl.com>
|
||||
Jack Hsu <jack.hsu@gmail.com>
|
||||
Adam Sontag <ajpiano@ajpiano.com>
|
||||
Carl Fürstenberg <carl@excito.com>
|
||||
Kevin Dalman <development@allpro.net>
|
||||
Alberto Fernández Capel <afcapel@gmail.com>
|
||||
Jacek Jędrzejewski <jacek.jedrzejewski@gmail.com>
|
||||
Ting Kuei <ting@kuei.com>
|
||||
Samuel Cormier-Iijima <sam@chide.it>
|
||||
Jon Palmer <jonspalmer@gmail.com>
|
||||
Ben Hollis <bhollis@amazon.com>
|
||||
Justin MacCarthy <Justin@Rubystars.biz>
|
||||
Eyal Kobrigo <kobrigo@hotmail.com>
|
||||
Tiago Freire <tiago.freire@gmail.com>
|
||||
Diego Tres <diegotres@gmail.com>
|
||||
Holger Rüprich <holger@rueprich.de>
|
||||
Ziling Zhao <zizhao@cisco.com>
|
||||
Mike Alsup <malsup@gmail.com>
|
||||
Robson Braga Araujo <robsonbraga@gmail.com>
|
||||
Pierre-Henri Ausseil <ph.ausseil@gmail.com>
|
||||
Christopher McCulloh <cmcculloh@gmail.com>
|
||||
Andrew Newcomb <ext.github@preceptsoftware.co.uk>
|
||||
Lim Chee Aun <cheeaun@gmail.com>
|
||||
Jorge Barreiro <yortx.barry@gmail.com>
|
||||
Daniel Steigerwald <daniel@steigerwald.cz>
|
||||
John Firebaugh <john_firebaugh@bigfix.com>
|
||||
John Enters <github@darkdark.net>
|
||||
Andrey Kapitcyn <ru.m157y@gmail.com>
|
||||
Dmitry Petrov <dpetroff@gmail.com>
|
||||
Eric Hynds <eric@hynds.net>
|
||||
Chairat Sunthornwiphat <pipo@sixhead.com>
|
||||
Josh Varner <josh.varner@gmail.com>
|
||||
Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||
Jay Merrifield <fracmak@gmail.com>
|
||||
J. Ryan Stinnett <jryans@gmail.com>
|
||||
Peter Heiberg <peter@heiberg.se>
|
||||
Alex Dovenmuehle <adovenmuehle@gmail.com>
|
||||
Jamie Gegerson <git@jamiegegerson.com>
|
||||
Raymond Schwartz <skeetergraphics@gmail.com>
|
||||
Phillip Barnes <philbar@gmail.com>
|
||||
Kyle Wilkinson <kai@wikyd.org>
|
||||
Khaled AlHourani <me@khaledalhourani.com>
|
||||
Marian Rudzynski <mr@impaled.org>
|
||||
Jean-Francois Remy <jfremy@virtuoz.com>
|
||||
Doug Blood <dougblood@gmail.com>
|
||||
Filippo Cavallarin <poplix@papuasia.org>
|
||||
Heiko Henning <h.henning@educa.ch>
|
||||
Aliaxandr Rahalevich <saksmlz@gmail.com>
|
||||
Mario Visic <mario@mariovisic.com>
|
||||
Xavi Ramirez <xavi.rmz@gmail.com>
|
||||
Max Schnur <max.schnur@gmail.com>
|
||||
Saji Nediyanchath <saji89@gmail.com>
|
||||
Corey Frang <gnarf@gnarf.net>
|
||||
Aaron Peterson <aaronp123@yahoo.com>
|
||||
Ivan Peters <ivan@ivanpeters.com>
|
||||
Mohamed Cherif Bouchelaghem <cherifbouchelaghem@yahoo.fr>
|
||||
Marcos Sousa <marcos.sousa@corp.globo.com>
|
||||
Michael DellaNoce <mdellanoce@mailtrust.com>
|
||||
George Marshall <echosx@gmail.com>
|
||||
Tobias Brunner <tobias@strongswan.org>
|
||||
Martin Solli <msolli@gmail.com>
|
||||
David Petersen <public@petersendidit.com>
|
||||
Dan Heberden <danheberden@gmail.com>
|
||||
William Kevin Manire <williamkmanire@gmail.com>
|
||||
Gilmore Davidson <gilmoreorless@gmail.com>
|
||||
Michael Wu <michaelmwu@gmail.com>
|
||||
Adam Parod <mystic414@gmail.com>
|
||||
Guillaume Gautreau <guillaume+github@ghusse.com>
|
||||
Marcel Toele <EleotleCram@gmail.com>
|
||||
Dan Streetman <ddstreet@ieee.org>
|
||||
Matt Hoskins <furlined@cat-basket.org>
|
||||
Giovanni Giacobbi <giovanni@giacobbi.net>
|
||||
Kyle Florence <kyle.florence@gmail.com>
|
||||
Pavol Hluchý <lopo@losys.sk>
|
||||
Hans Hillen <hans.hillen@gmail.com>
|
||||
Mark Johnson <virgofx@live.com>
|
||||
Trey Hunner <treyhunner@gmail.com>
|
||||
Shane Whittet <whittet@gmail.com>
|
||||
Edward Faulkner <ef@alum.mit.edu>
|
||||
Adam Baratz <adam.baratz@gmail.com>
|
||||
Kato Kazuyoshi <kato.kazuyoshi@gmail.com>
|
||||
Eike Send <eike.send@gmail.com>
|
||||
Kris Borchers <kris.borchers@gmail.com>
|
||||
Eddie Monge <eddie@eddiemonge.com>
|
||||
Israel Tsadok <itsadok@gmail.com>
|
||||
Carson McDonald <carson@ioncannon.net>
|
||||
Jason Davies <jason@jasondavies.com>
|
||||
Garrison Locke <gplocke@gmail.com>
|
||||
David Murdoch <musicisair@yahoo.com>
|
||||
Ben Boyle <benjamins.boyle@gmail.com>
|
||||
Jesse Baird <jebaird@gmail.com>
|
||||
Jonathan Vingiano <jvingiano@gmail.com>
|
||||
Dylan Just <dev@ephox.com>
|
||||
Tomy Kaira <tomykaira@gmail.com>
|
||||
Glenn Goodrich <glenn.goodrich@gmail.com>
|
||||
Ashek Elahi <mail.ashek@gmail.com>
|
||||
Ryan Neufeld <ryan@neufeldmail.com>
|
||||
Marc Neuwirth <marc.neuwirth@gmail.com>
|
||||
Philip Graham <philip.robert.graham@gmail.com>
|
||||
Benjamin Sterling <benjamin.sterling@kenzomedia.com>
|
||||
Wesley Walser <wwalser@atlassian.com>
|
||||
Kouhei Sutou <kou@clear-code.com>
|
||||
Karl Kirch <karl.ctr.kirch@faa.gov>
|
||||
Chris Kelly <ckdake@ckdake.com>
|
||||
Jay Oster <jay@loyalize.com>
|
||||
Alex Polomoshnov <alex.polomoshnov@gmail.com>
|
||||
David Leal <dgleal@gmail.com>
|
||||
igor milla <igor.fsp.milla@gmail.com>
|
||||
Dave Methvin <dave.methvin@gmail.com>
|
||||
Florian Gutmann <blackfeet@gmx.at>
|
||||
Marwan Al Jubeh <marwan.aljubeh@gmail.com>
|
||||
Milan Broum <midlis@googlemail.com>
|
||||
Sebastian Sauer <info@dynpages.de>
|
||||
Gaëtan Muller <m.gaetan89@gmail.com>
|
||||
Michel Weimerskirch <michel@weimerskirch.net>
|
||||
William Griffiths <william@ycymro.com>
|
||||
Stojce Slavkovski <stojce@gmail.com>
|
||||
David Soms <david.soms@gmail.com>
|
||||
David De Sloovere <david.desloovere@hotmail.com>
|
||||
Michael P. Jung <michael.jung@terreon.de>
|
||||
Shannon Pekary <spekary@gmail.com>
|
||||
Matthew Hutton <meh@corefiling.co.uk>
|
||||
James Khoury <james@jameskhoury.com>
|
||||
Rob Loach <robloach@gmail.com>
|
||||
Alberto Monteiro <betimbrasil@gmail.com>
|
||||
Alex Rhea <alex.rhea@gmail.com>
|
||||
Krzysztof Rosiński <rozwell69@gmail.com>
|
||||
Ryan Olton <oltonr@gmail.com>
|
||||
Genie <386@mail.com>
|
||||
Rick Waldron <waldron.rick@gmail.com>
|
||||
Ian Simpson <spoonlikesham@gmail.com>
|
||||
Lev Kitsis <spam4lev@gmail.com>
|
||||
TJ VanToll <tj.vantoll@gmail.com>
|
||||
Justin Domnitz <jdomnitz@gmail.com>
|
||||
Douglas Cerna <replaceafill@system76.(none)>
|
||||
Bert ter Heide <bertjh@hotmail.com>
|
||||
Jasvir Nagra <jasvir@gmail.com>
|
||||
Petr Hromadko <yuriy@tokyoscale.com>
|
||||
Harri Kilpiö <harri.kilpio@gmail.com>
|
||||
Lado Lomidze <lado.lomidze@gmail.com>
|
||||
Amir E. Aharoni <amir.aharoni@mail.huji.ac.il>
|
||||
Simon Sattes <simon.sattes@gmail.com>
|
||||
Jo Liss <joliss42@gmail.com>
|
||||
Guntupalli Karunakar <karunakarg@yahoo.com>
|
||||
Shahyar Ghobadpour <shahyar@gmail.com>
|
||||
Lukasz Lipinski <uzza17@gmail.com>
|
||||
Timo Tijhof <krinklemail@gmail.com>
|
||||
Jason Moon <jmoon@socialcast.com>
|
||||
Martin Frost <martinf55@hotmail.com>
|
||||
Eneko Illarramendi <eneko@illarra.com>
|
||||
EungJun Yi <semtlenori@gmail.com>
|
||||
|
77
README.md
77
README.md
@ -5,14 +5,16 @@ jQuery UI provides interactions like Drag and Drop and widgets like Autocomplete
|
||||
|
||||
If you want to use jQuery UI, go to [jqueryui.com](http://jqueryui.com) to get started. Or visit the [Using jQuery UI Forum](http://forum.jquery.com/using-jquery-ui) for discussions and questions.
|
||||
|
||||
If you are interested in helping developing jQuery UI, you are in the right place.
|
||||
To discuss development with team members and the community, visit the [Developing jQuery UI Forum](http://forum.jquery.com/developing-jquery-ui).
|
||||
If you are interested in helping develop jQuery UI, you are in the right place.
|
||||
To discuss development with team members and the community, visit the [Developing jQuery UI Forum](http://forum.jquery.com/developing-jquery-ui) or in #jquery on irc.freednode.net.
|
||||
|
||||
|
||||
For contributors
|
||||
---
|
||||
|
||||
If you want to help and provide a patch for a bugfix or new feature, please take
|
||||
a few minutes and look at [our Getting Involved guide](http://wiki.jqueryui.com/w/page/35263114/Getting-Involved),
|
||||
in particular check out the [Coding standards](http://wiki.jqueryui.com/w/page/12137737/Coding-standards)
|
||||
a few minutes and look at [our Getting Involved guide](http://wiki.jqueryui.com/w/page/35263114/Getting-Involved).
|
||||
In particular check out the [Coding standards](http://wiki.jqueryui.com/w/page/12137737/Coding-standards)
|
||||
and [Commit Message Style Guide](http://wiki.jqueryui.com/w/page/25941597/Commit-Message-Style-Guide).
|
||||
|
||||
In general, fork the project, create a branch for a specific change and send a
|
||||
@ -20,19 +22,78 @@ pull request for that branch. Don't mix unrelated changes. You can use the commi
|
||||
message as the description for the pull request.
|
||||
|
||||
|
||||
Running the Unit Tests
|
||||
---
|
||||
|
||||
Run the unit tests with a local server that supports PHP. No database is required. Pre-configured php local servers are available for Windows and Mac. Here are some options:
|
||||
|
||||
- Windows: [WAMP download](http://www.wampserver.com/en/)
|
||||
- Mac: [MAMP download](http://www.mamp.info/en/index.html)
|
||||
- Linux: [Setting up LAMP](https://www.linux.com/learn/tutorials/288158-easy-lamp-server-installation)
|
||||
- [Mongoose (most platforms)](http://code.google.com/p/mongoose/)
|
||||
|
||||
|
||||
Building jQuery UI
|
||||
---
|
||||
|
||||
jQuery UI uses the [grunt](http://github.com/cowboy/grunt) build system. Building jQuery UI requires node.js and a command line zip program.
|
||||
|
||||
Install grunt.
|
||||
|
||||
`npm install grunt -g`
|
||||
|
||||
Clone the jQuery UI git repo.
|
||||
|
||||
`git clone git://github.com/jquery/jquery-ui.git`
|
||||
|
||||
`cd jquery-ui`
|
||||
|
||||
Install node modules.
|
||||
|
||||
`npm install`
|
||||
|
||||
Run grunt.
|
||||
|
||||
`grunt build`
|
||||
|
||||
There are many other tasks that can be run through grunt. For a list of all tasks:
|
||||
|
||||
`grunt --help`
|
||||
|
||||
|
||||
For committers
|
||||
---
|
||||
|
||||
When looking at pull requests, first check for [proper commit messages](http://wiki.jqueryui.com/w/page/12137724/Bug-Fixing-Guide).
|
||||
|
||||
Unless everything is fine and you can merge directly via GitHub's interface, fetch the remote first:
|
||||
Do not merge pull requests directly through GitHub's interface.
|
||||
Most pull requests are a single commit; cherry-picking will avoid creating a merge commit.
|
||||
It's also common for contributors to make minor fixes in an additional one or two commits.
|
||||
These should be squashed before landing in master.
|
||||
|
||||
git remote add [username] [his-fork.git] -f
|
||||
**Make sure the author has a valid name and email address associated with the commit.**
|
||||
|
||||
If you want just one commit and edit the commit message:
|
||||
Fetch the remote first:
|
||||
|
||||
git fetch [their-fork.git] [their-branch]
|
||||
|
||||
Then cherry-pick the commit(s):
|
||||
|
||||
git cherry-pick [sha-of-commit]
|
||||
|
||||
If you need to edit the commit message:
|
||||
|
||||
git cherry-pick -e [sha-of-commit]
|
||||
|
||||
If you need to edit the changes:
|
||||
|
||||
git cherry-pick -n [sha-of-commit]
|
||||
# make changes
|
||||
git commit --author="[author-name-and-email]"
|
||||
|
||||
If it should go to the stable brach, cherry-pick it to stable:
|
||||
|
||||
git checkout 1-8-stable
|
||||
git cherry-pick -x [sha-of-commit]
|
||||
git cherry-pick -x [sha-of-commit-from-master]
|
||||
|
||||
*NOTE: Do not cherry-pick into 1-8-stable until you have pushed the commit from master upstream.*
|
||||
|
373
build/build.xml
373
build/build.xml
@ -1,373 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!--
|
||||
jQuery UI Release!
|
||||
|
||||
Call task called 'deploy-release' to build a full release.
|
||||
The release built will be stored on 'dist' dir.
|
||||
|
||||
-->
|
||||
|
||||
<project name="jquery-ui" default="deploy-release" basedir=".">
|
||||
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||
<classpath>
|
||||
<pathelement location="build/ant-contrib-0.6.jar"/>
|
||||
</classpath>
|
||||
</taskdef>
|
||||
|
||||
<property file="ant.properties" />
|
||||
|
||||
<loadfile failonerror="no" srcFile="../version.txt" property="release.version">
|
||||
<filterchain><striplinebreaks/></filterchain>
|
||||
</loadfile>
|
||||
<property name="release.filename" value="jquery-ui-${release.version}" />
|
||||
|
||||
<property name="dist.dir" value="dist/${release.filename}/" />
|
||||
<property name="cdndist.dir" value="dist/${release.filename}-cdn" />
|
||||
<property name="build.dir" value="build" />
|
||||
<property name="ui.dir" value="../" />
|
||||
<property name="src.dir" value="${ui.dir}/ui/" />
|
||||
<property name="theme.dir" value="${ui.dir}/themes/base/" />
|
||||
<property name="docs.dir" value="${dist.dir}/docs/" />
|
||||
<property name="min.dir" value="${dist.dir}/ui/minified" />
|
||||
<property name="size.dir" value="size" />
|
||||
|
||||
<property name="concatenated" value="jquery-ui" />
|
||||
<property name="concatenated.i18n" value="jquery-ui-i18n" />
|
||||
|
||||
<property name="core.files" value="jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.effects.core.js" />
|
||||
<property name="core.files.min" value="jquery.ui.core.min.js, jquery.ui.widget.min.js, jquery.ui.mouse.min.js, jquery.ui.draggable.min.js, jquery.ui.droppable.min.js, jquery.ui.resizable.min.js, jquery.ui.selectable.min.js, jquery.ui.sortable.min.js, jquery.effects.core.min.js" />
|
||||
|
||||
<property description="YUI Compressor" name="yuicompressor-jar" value="${build.dir}/yuicompressor-2.4.2.jar" />
|
||||
|
||||
<target name="deploy-release" depends="clean, docs-download, copy, minify, replace-version, prepend-header, zip" description="Release builder">
|
||||
</target>
|
||||
|
||||
<target name="replace-version">
|
||||
<replaceregexp match="@VERSION" replace="${release.version}" flags="g" byline="true">
|
||||
<fileset dir="${dist.dir}/ui/" includes="*.js"/>
|
||||
<fileset dir="${dist.dir}/ui/minified/" includes="*.js"/>
|
||||
<fileset dir="${dist.dir}/themes/" includes="**/*.css"/>
|
||||
</replaceregexp>
|
||||
<echo message="Replaced all @VERSION to ${release.version}." />
|
||||
</target>
|
||||
|
||||
<target name="prepend-header">
|
||||
<copy todir="${dist.dir}/headers/">
|
||||
<fileset dir="${dist.dir}/themes/base" includes="*.css" />
|
||||
</copy>
|
||||
<replaceregexp match="^(\/\*.*?\*\/\s).+" replace="\1" flags="s">
|
||||
<fileset dir="${dist.dir}/headers/" includes="*.css"/>
|
||||
</replaceregexp>
|
||||
<for param="file">
|
||||
<path><fileset dir="${dist.dir}/themes/base/minified" includes="*.css" /></path>
|
||||
<sequential>
|
||||
<propertyregex override="yes" property="target" input="@{file}" regexp=".*[\\/](.+)\.min\.css$" replace="\1"/>
|
||||
<concat destfile="${dist.dir}/ui-headered/${target}.min.css">
|
||||
<header file="${dist.dir}/headers/${target}.css" />
|
||||
<fileset file="@{file}" />
|
||||
</concat>
|
||||
</sequential>
|
||||
</for>
|
||||
<copy todir="${dist.dir}/themes/base/minified" overwrite="true">
|
||||
<fileset dir="${dist.dir}/ui-headered/" includes="*.css" />
|
||||
</copy>
|
||||
|
||||
<delete dir="${dist.dir}/headers/" />
|
||||
<delete dir="${dist.dir}/ui-headered/" />
|
||||
</target>
|
||||
|
||||
<target description="Zip the package" name="zip">
|
||||
<zip destfile="${dist.dir}/../${release.filename}.zip">
|
||||
<zipfileset dir="dist/" />
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
<target name="concatenate">
|
||||
<echo message="Building concatenated" />
|
||||
<mkdir dir="${dist.dir}/ui/" />
|
||||
<delete file="${dist.dir}/ui/${concatenated}.js" />
|
||||
|
||||
<concat destfile="${dist.dir}/ui/${concatenated}.js">
|
||||
<filelist dir="${src.dir}/" files="${core.files}" />
|
||||
<fileset dir="${src.dir}/" includes="jquery.ui.*.js, jquery.effects.*.js" excludes="${core.files}" />
|
||||
</concat>
|
||||
<echo message="Concatenated built." />
|
||||
|
||||
<concat destfile="${dist.dir}/themes/base/${concatenated}.css">
|
||||
<fileset dir="${theme.dir}/" includes="jquery.ui.core.css" />
|
||||
<fileset dir="${theme.dir}/" includes="jquery.ui.*.css" excludes="jquery.ui.all.css, jquery.ui.core.css, jquery.ui.base.css, jquery.ui.theme.css" />
|
||||
<fileset dir="${theme.dir}/" includes="jquery.ui.theme.css" />
|
||||
</concat>
|
||||
<echo message="Concatenated theme." />
|
||||
|
||||
<mkdir dir="${dist.dir}/ui/i18n/" />
|
||||
<delete file="${dist.dir}/ui/i18n/${concatenated.i18n}.js" />
|
||||
|
||||
<concat destfile="${dist.dir}/ui/i18n/${concatenated.i18n}.js" encoding="utf-8">
|
||||
<fileset dir="${src.dir}/i18n/" includes="jquery.ui.*.js" />
|
||||
</concat>
|
||||
<echo message="Concatenated i18n built." />
|
||||
</target>
|
||||
|
||||
<target name="minify" depends="concatenate" description="Remove all comments and whitespace, no compression, great in combination with GZip">
|
||||
<echo message="Building minified" />
|
||||
<mkdir dir="${min.dir}" />
|
||||
<mkdir dir="${min.dir}/i18n/" />
|
||||
<mkdir dir="${dist.dir}/themes/base/minified" />
|
||||
<parallel threadsperprocessor="1">
|
||||
<apply executable="build/minify-js.sh">
|
||||
<fileset dir="${dist.dir}/ui" includes="**.js" />
|
||||
<srcfile />
|
||||
<mapper type="glob" from="*.js" to="${min.dir}/*.min.js" />
|
||||
<targetfile/>
|
||||
</apply>
|
||||
<apply executable="build/minify-js.sh">
|
||||
<fileset dir="${dist.dir}/ui/i18n" includes="**.js" />
|
||||
<srcfile />
|
||||
<mapper type="glob" from="*.js" to="${min.dir}/i18n/*.min.js" />
|
||||
<targetfile/>
|
||||
</apply>
|
||||
<apply executable="java" parallel="false">
|
||||
<fileset dir="${dist.dir}/themes/base" includes="*.css" />
|
||||
<arg line="-jar" />
|
||||
<arg path="${yuicompressor-jar}" />
|
||||
<arg line="--charset utf-8" />
|
||||
<arg line="-v" />
|
||||
<srcfile />
|
||||
<arg line="-o" />
|
||||
<mapper type="glob" from="*.css" to="${dist.dir}/themes/base/minified/*.min.css" />
|
||||
<targetfile/>
|
||||
</apply>
|
||||
</parallel>
|
||||
|
||||
<replaceregexp match=".css" replace=".min.css" flags="g">
|
||||
<fileset dir="${dist.dir}/themes/base/minified/">
|
||||
<include name="*.base.min.css"/>
|
||||
<include name="*.all.min.css"/>
|
||||
</fileset>
|
||||
</replaceregexp>
|
||||
|
||||
<!-- make a copy of all theme images to ensure that relative paths in minified css files work -->
|
||||
<copy todir="${dist.dir}/themes/base/minified/images" >
|
||||
<fileset dir="${ui.dir}/themes/base/images" />
|
||||
</copy>
|
||||
|
||||
<!-- make a copy of the minified files for use in tests -->
|
||||
<copy todir="dist" file="${min.dir}/jquery-ui.min.js" />
|
||||
<copy todir="dist/theme" file="${dist.dir}/themes/base/minified/jquery-ui.min.css" />
|
||||
<copy todir="dist/theme/images" >
|
||||
<fileset dir="${ui.dir}/themes/base/images" />
|
||||
</copy>
|
||||
|
||||
<echo message="Minified ui/ built." />
|
||||
</target>
|
||||
|
||||
<target description="Copy needed folders" name="copy">
|
||||
<echo message="Copying files" />
|
||||
<mkdir dir="${dist.dir}" />
|
||||
|
||||
<copy overwrite="true" todir="${dist.dir}/">
|
||||
<fileset dir="${ui.dir}/" includes="jquery-*.js" />
|
||||
</copy>
|
||||
|
||||
<copy overwrite="true" todir="${dist.dir}/ui/">
|
||||
<fileset dir="${src.dir}/" includes="jquery.ui.*.js, jquery.effects.*.js" />
|
||||
</copy>
|
||||
|
||||
<copy overwrite="true" todir="${dist.dir}/ui/i18n/" >
|
||||
<fileset dir="${src.dir}/i18n/" />
|
||||
</copy>
|
||||
|
||||
<copy overwrite="true" todir="${dist.dir}/">
|
||||
<fileset dir="${ui.dir}/" includes="*.txt" />
|
||||
</copy>
|
||||
|
||||
<copy overwrite="true" todir="${dist.dir}/demos/" >
|
||||
<fileset dir="${ui.dir}/demos/" />
|
||||
</copy>
|
||||
|
||||
<copy overwrite="true" todir="${dist.dir}/external/" >
|
||||
<fileset dir="${ui.dir}/external/" />
|
||||
</copy>
|
||||
|
||||
<copy overwrite="true" todir="${dist.dir}/tests/" >
|
||||
<fileset dir="${ui.dir}/tests/" />
|
||||
</copy>
|
||||
|
||||
<copy overwrite="true" todir="${dist.dir}/themes/" >
|
||||
<fileset dir="${ui.dir}/themes/" />
|
||||
</copy>
|
||||
<echo message="Files copied." />
|
||||
</target>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="dist" />
|
||||
</target>
|
||||
|
||||
<target name="docs-download">
|
||||
<mkdir dir="${docs.dir}" />
|
||||
<property name="url" value="http://docs.jquery.com/action/render/UI/API/${release.version}/" />
|
||||
<parallel threadcount="8">
|
||||
<get src="${url}Draggable" dest="${docs.dir}draggable.html" />
|
||||
<get src="${url}Droppable" dest="${docs.dir}droppable.html" />
|
||||
<get src="${url}Resizable" dest="${docs.dir}resizable.html" />
|
||||
<get src="${url}Selectable" dest="${docs.dir}selectable.html" />
|
||||
<get src="${url}Sortable" dest="${docs.dir}sortable.html" />
|
||||
|
||||
<get src="${url}Accordion" dest="${docs.dir}accordion.html" />
|
||||
<get src="${url}Autocomplete" dest="${docs.dir}autocomplete.html" />
|
||||
<get src="${url}Button" dest="${docs.dir}button.html" />
|
||||
<get src="${url}Datepicker" dest="${docs.dir}datepicker.html" />
|
||||
<get src="${url}Dialog" dest="${docs.dir}dialog.html" />
|
||||
<get src="${url}Menu" dest="${docs.dir}menu.html" />
|
||||
<get src="${url}Progressbar" dest="${docs.dir}progressbar.html" />
|
||||
<get src="${url}Slider" dest="${docs.dir}slider.html" />
|
||||
<get src="${url}Spinner" dest="${docs.dir}spinner.html" />
|
||||
<get src="${url}Tooltip" dest="${docs.dir}tooltip.html" />
|
||||
<get src="${url}Tabs" dest="${docs.dir}tabs.html" />
|
||||
|
||||
<get src="${url}Position" dest="${docs.dir}position.html" />
|
||||
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/animate" dest="${docs.dir}animate.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/addClass" dest="${docs.dir}addClass.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/effect" dest="${docs.dir}effect.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/hide" dest="${docs.dir}hide.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/removeClass" dest="${docs.dir}removeClass.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/show" dest="${docs.dir}show.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/switchClass" dest="${docs.dir}switchClass.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/toggle" dest="${docs.dir}toggle.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/toggleClass" dest="${docs.dir}toggleClass.html" />
|
||||
|
||||
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Blind" dest="${docs.dir}effect-blind.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Clip" dest="${docs.dir}effect-clip.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Drop" dest="${docs.dir}effect-drop.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Explode" dest="${docs.dir}effect-explode.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Fade" dest="${docs.dir}effect-fade.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Fold" dest="${docs.dir}effect-fold.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Puff" dest="${docs.dir}effect-puff.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Slide" dest="${docs.dir}effect-slide.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Scale" dest="${docs.dir}effect-scale.html" />
|
||||
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Bounce" dest="${docs.dir}effect-bounce.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Highlight" dest="${docs.dir}effect-highlight.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Pulsate" dest="${docs.dir}effect-pulsate.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Shake" dest="${docs.dir}effect-shake.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Size" dest="${docs.dir}effect-size.html" />
|
||||
<get src="http://docs.jquery.com/action/render/UI/Effects/Transfer" dest="${docs.dir}effect-transfer.html" />
|
||||
</parallel>
|
||||
</target>
|
||||
|
||||
<target name="themes-download">
|
||||
<!-- to create/update query strings for the theme-file, execute this in Firebug on /download page:
|
||||
$("select option[value!=none]").map(function() { $(this).parent().val(this.value).change(); return $(this).parents("form").serialize(); }).get().join(",");
|
||||
-->
|
||||
<loadfile srcFile="themes" property="urls" />
|
||||
<property name="zip" value="${dist.dir}themes/tmp.zip" />
|
||||
<mkdir dir="${dist.dir}themes" />
|
||||
<for list="${urls}" param="url">
|
||||
<sequential>
|
||||
<get src="http://ui-dev.jquery.com/download/?@{url}" dest="${zip}" />
|
||||
<unzip src="${zip}" dest="${dist.dir}themes/">
|
||||
<patternset>
|
||||
<include name="development-bundle/themes/**"/>
|
||||
<exclude name="development-bundle/themes/base/**"/>
|
||||
</patternset>
|
||||
<mapper type="glob" from="development-bundle/themes/*" to="*" />
|
||||
</unzip>
|
||||
<delete file="${zip}" />
|
||||
</sequential>
|
||||
</for>
|
||||
<move todir="${dist.dir}themes/">
|
||||
<fileset dir="${dist.dir}themes/" />
|
||||
<mapper>
|
||||
<mapper type="regexp" from="(.*)jquery-ui-.*custom.css" to="\1jquery-ui.css" />
|
||||
</mapper>
|
||||
</move>
|
||||
<copy todir="dist/jquery-ui-themes-${release.version}">
|
||||
<fileset dir="${dist.dir}/" includes="AUTHORS.txt,GPL-LICENSE.txt,MIT-LICENSE.txt,version.txt,themes/**" />
|
||||
</copy>
|
||||
<zip destfile="${dist.dir}/../jquery-ui-themes-${release.version}.zip">
|
||||
<zipfileset dir="dist/" includes="jquery-ui-themes-${release.version}/" />
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
<target name="whitespace">
|
||||
<replaceregexp match="[\t ]+$" replace="" flags="g" byline="true">
|
||||
<fileset dir="${src.dir}" includes="*.js"/>
|
||||
<fileset dir="${src.dir}/i18n/" includes="*.js"/>
|
||||
</replaceregexp>
|
||||
<echo message="All trailing spaces removed." />
|
||||
</target>
|
||||
|
||||
<target name="size" depends="copy, minify, replace-version, prepend-header" description="Report sizes of files">
|
||||
<echo message="Collecting files to size" />
|
||||
<mkdir dir="${size.dir}" />
|
||||
<copy todir="${size.dir}">
|
||||
<fileset dir="${dist.dir}/ui" includes="*.js" />
|
||||
<fileset dir="${dist.dir}/ui/i18n" includes="*.js" />
|
||||
<fileset dir="${dist.dir}/ui/minified" includes="*.js" />
|
||||
<fileset dir="${dist.dir}/ui/minified/i18n" includes="*.js" />
|
||||
<fileset dir="${dist.dir}/themes/base" includes="*.css" />
|
||||
<fileset dir="${dist.dir}/themes/base/minified" includes="*.css" />
|
||||
</copy>
|
||||
<echo message="GZipping Minified" />
|
||||
<apply executable="gzip">
|
||||
<fileset dir="${size.dir}" includes="*.min.js" />
|
||||
<fileset dir="${size.dir}" includes="*.min.css" />
|
||||
<arg value="-c" />
|
||||
<srcfile />
|
||||
<redirector>
|
||||
<outputmapper id="out" type="glob" from="*" to="${size.dir}/*.gz"/>
|
||||
</redirector>
|
||||
</apply>
|
||||
<echo message="Comparing file size with previous build" />
|
||||
<exec executable="bash">
|
||||
<arg value="-c" />
|
||||
<arg value="wc -c ${size.dir}/* | `which node nodejs 2>/dev/null` build/sizer.js" />
|
||||
</exec>
|
||||
<delete dir="${size.dir}" />
|
||||
</target>
|
||||
|
||||
<target name="cdn">
|
||||
<delete dir="${cdndist.dir}" />
|
||||
<mkdir dir="${cdndist.dir}" />
|
||||
<copy todir="${cdndist.dir}">
|
||||
<fileset dir=".." includes="AUTHORS.txt, GPL-LICENSE.txt, MIT-LICENSE.txt, version.txt" />
|
||||
</copy>
|
||||
<copy todir="${cdndist.dir}">
|
||||
<fileset dir="${dist.dir}ui" includes="jquery-ui.js" />
|
||||
<fileset dir="${dist.dir}ui/minified" includes="jquery-ui.min.js" />
|
||||
</copy>
|
||||
<copy todir="${cdndist.dir}/i18n">
|
||||
<fileset dir="${dist.dir}ui/i18n" />
|
||||
<fileset dir="${dist.dir}ui/minified/i18n" />
|
||||
</copy>
|
||||
<copy todir="${cdndist.dir}/themes">
|
||||
<fileset dir="${dist.dir}themes" />
|
||||
</copy>
|
||||
<checksum>
|
||||
<fileset dir="${cdndist.dir}" />
|
||||
</checksum>
|
||||
<for param="file">
|
||||
<path><fileset dir="${cdndist.dir}" includes="**/" excludes="**/*.MD5" /></path>
|
||||
<sequential>
|
||||
<!-- @{file} is an absolute path, use that ugly regexes to make it relative -->
|
||||
<propertyregex override="yes" property="relativepath" input="@{file}" regexp=".+?cdn[\\/](.+)$" replace="\1"/>
|
||||
<propertyregex override="yes" property="relativepath" input="${relativepath}" regexp="\\" replace="/" global="true" />
|
||||
<concat destfile="${cdndist.dir}/MANIFEST" append="yes">${relativepath} </concat>
|
||||
<concat destfile="${cdndist.dir}/MANIFEST" append="yes"><file file="@{file}.MD5" /></concat>
|
||||
</sequential>
|
||||
</for>
|
||||
<delete dir="${cdndist.dir}" includes="**/*.MD5" />
|
||||
<zip destfile="${dist.dir}/../${release.filename}-googlecdn.zip">
|
||||
<zipfileset dir="dist/" includes="${release.filename}-cdn/" />
|
||||
</zip>
|
||||
<zip destfile="${dist.dir}/../${release.filename}-mscdn.zip">
|
||||
<zipfileset dir="dist/${release.filename}-cdn/" />
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
</project>
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,22 +0,0 @@
|
||||
var jsp = require("./parse-js"),
|
||||
pro = require("./process"),
|
||||
slice = jsp.slice,
|
||||
member = jsp.member,
|
||||
PRECEDENCE = jsp.PRECEDENCE,
|
||||
OPERATORS = jsp.OPERATORS;
|
||||
|
||||
function ast_squeeze_more(ast) {
|
||||
var w = pro.ast_walker(), walk = w.walk;
|
||||
return w.with_walkers({
|
||||
"call": function(expr, args) {
|
||||
if (expr[0] == "dot" && expr[2] == "toString" && args.length == 0) {
|
||||
// foo.toString() ==> foo+""
|
||||
return [ "binary", "+", expr[1], [ "string", "" ]];
|
||||
}
|
||||
}
|
||||
}, function() {
|
||||
return walk(ast);
|
||||
});
|
||||
};
|
||||
|
||||
exports.ast_squeeze_more = ast_squeeze_more;
|
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
dir=$(dirname $0)
|
||||
`which node nodejs 2> /dev/null` $dir/uglify.js $1 > $2
|
@ -1,41 +0,0 @@
|
||||
var fs = require( "fs" ),
|
||||
stdin = process.openStdin(),
|
||||
rsize = /(\d+).*?(jquery\S+)/g,
|
||||
oldsizes = {},
|
||||
sizes = {},
|
||||
input = "";
|
||||
|
||||
stdin.setEncoding( "utf8" );
|
||||
|
||||
try {
|
||||
oldsizes = JSON.parse( fs.readFileSync( __dirname + "/.sizecache.json", "utf8" ) );
|
||||
} catch(e) {
|
||||
oldsizes = {};
|
||||
};
|
||||
|
||||
function lpad( str, len, chr ) {
|
||||
return ( Array(len+1).join( chr || " ") + str ).substr( -len );
|
||||
}
|
||||
|
||||
stdin.on( "data" , function( chunk ) {
|
||||
input += chunk;
|
||||
});
|
||||
stdin.on( "end", function() {
|
||||
var match;
|
||||
|
||||
while ( match = rsize.exec( input ) ) {
|
||||
sizes[ match[2] ] = parseInt( match[1], 10 );
|
||||
}
|
||||
|
||||
fs.writeFileSync( __dirname + "/.sizecache.json", JSON.stringify( sizes, true ), "utf8" );
|
||||
for ( var key in sizes ) {
|
||||
var diff = oldsizes[ key ] && ( sizes[ key ] - oldsizes[ key ] );
|
||||
if ( diff > 0 ) {
|
||||
diff = "+" + diff;
|
||||
}
|
||||
console.log( "%s %s %s", lpad( sizes[ key ], 8 ), lpad( oldsizes[key] ? "(" + diff + ")" : "(-)", 8 ), key );
|
||||
}
|
||||
process.nextTick(function() {
|
||||
process.exit();
|
||||
});
|
||||
});
|
@ -1,211 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="html" />
|
||||
|
||||
<xsl:template name="ref">
|
||||
<xsl:text>link-</xsl:text>
|
||||
<xsl:value-of select="translate(@name, '$.|', '')"/>
|
||||
<xsl:text>-</xsl:text>
|
||||
<xsl:for-each select="params">
|
||||
<xsl:value-of select="translate(@name, '<>|$.', '')" />
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="href">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:text>#</xsl:text>
|
||||
<xsl:call-template name="ref" />
|
||||
</xsl:attribute>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="id">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:call-template name="ref" />
|
||||
</xsl:attribute>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="return">
|
||||
<xsl:attribute name="title">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@return='jQuery'">A jQuery object.</xsl:when>
|
||||
<xsl:when test="@return='Boolean'">true or false.</xsl:when>
|
||||
<xsl:when test="@return='Object'">A simple Javascript object..</xsl:when>
|
||||
<xsl:when test="@return='String'">A string of characters.</xsl:when>
|
||||
<xsl:when test="@return='Number'">A valid numeric.</xsl:when>
|
||||
<xsl:when test="@return='String|Number'">A string of characters or a number.</xsl:when>
|
||||
<xsl:when test="@return='Element'">The Javascript object representation of a DOM Element.</xsl:when>
|
||||
<xsl:when test="@return='Element|Array<Element>'">One or more DOM Elements (a single one or an array).</xsl:when>
|
||||
<xsl:when test="@return='Map'">A Javascript object that contains key/value pairs in the form of properties and values.</xsl:when>
|
||||
<xsl:when test="@return='Array<Element>'">An Array of DOM Elements.</xsl:when>
|
||||
<xsl:when test="@return='Array<String>'">An Array of strings.</xsl:when>
|
||||
<xsl:when test="@return='Function'">A reference to a Javascript function.</xsl:when>
|
||||
<xsl:when test="@return='XMLHttpRequest'">An XMLHttpRequest object (referencing a HTTP request).</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="@return"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="type">
|
||||
<xsl:attribute name="title">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@type='jQuery'">A jQuery object.</xsl:when>
|
||||
<xsl:when test="@type='Boolean'">true or false.</xsl:when>
|
||||
<xsl:when test="@type='Object'">A simple Javascript object..</xsl:when>
|
||||
<xsl:when test="@type='String'">A string of characters.</xsl:when>
|
||||
<xsl:when test="@type='Number'">A valid numeric.</xsl:when>
|
||||
<xsl:when test="@type='String|Number'">A string of characters or a number.</xsl:when>
|
||||
<xsl:when test="@type='Element'">The Javascript object representation of a DOM Element.</xsl:when>
|
||||
<xsl:when test="@type='Element|Array<Element>'">One or more DOM Elements (a single one or an array).</xsl:when>
|
||||
<xsl:when test="@type='Map'">A Javascript object that contains key/value pairs in the form of properties and values.</xsl:when>
|
||||
<xsl:when test="@type='Array<Element>'">An Array of DOM Elements.</xsl:when>
|
||||
<xsl:when test="@type='Array<String>'">An Array of strings.</xsl:when>
|
||||
<xsl:when test="@type='Function'">A reference to a Javascript function.</xsl:when>
|
||||
<xsl:when test="@type='XMLHttpRequest'">An XMLHttpRequest object (referencing a HTTP request).</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="@type"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="break">
|
||||
<xsl:value-of select="." disable-output-escaping="yes" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="option">
|
||||
<div class="param">
|
||||
<div class="param-header">
|
||||
<h3><span><xsl:value-of select="@name"/></span></h3>
|
||||
<p class="param-type"><span><xsl:call-template name="type" /></span></p>
|
||||
<p class="param-default">Default: <xsl:value-of select="@default"/></p>
|
||||
</div>
|
||||
<div class="param-details">
|
||||
<p><xsl:value-of select="desc"/></p>
|
||||
<!-- TODO select all examples -->
|
||||
<xsl:for-each select="following-sibling::example[1]">
|
||||
<h4>Code sample:</h4>
|
||||
<p><xsl:value-of select="desc" disable-output-escaping="yes"/></p>
|
||||
<code>
|
||||
<xsl:value-of select="code"/>
|
||||
</code>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/*">
|
||||
<div id="widget-docs">
|
||||
<ul>
|
||||
<li><a href="#docs-overview"><span>Overview</span></a></li>
|
||||
<li><a href="#docs-options"><span>Options</span></a></li>
|
||||
<li><a href="#docs-methods"><span>Methods</span></a></li>
|
||||
<li><a href="#docs-theming"><span>Theming</span></a></li>
|
||||
</ul>
|
||||
|
||||
<!-- TAB 1 -->
|
||||
<div id="docs-overview">
|
||||
<div id="docs-overview-sidebar">
|
||||
<h4>Dependencies:</h4>
|
||||
<ul>
|
||||
<li><a href="#">jquery.ui.core.js</a></li>
|
||||
<li><a href="#">jquery.ui.draggable.js <span>(Optional)</span></a></li>
|
||||
<li><a href="#">jquery.ui.resizable.js <span>(Optional)</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="docs-overview-main">
|
||||
<p>
|
||||
<xsl:for-each select="//function[1]/desc">
|
||||
<xsl:call-template name="break" />
|
||||
</xsl:for-each>
|
||||
</p>
|
||||
<p>
|
||||
<xsl:for-each select="//function[1]/longdesc">
|
||||
<xsl:call-template name="break" />
|
||||
</xsl:for-each>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TAB 2 -->
|
||||
<div id="docs-options">
|
||||
<p class="intro"><xsl:value-of select="//function[1]/params/desc"/></p>
|
||||
|
||||
<div class="docs-list-header clearfix">
|
||||
<h2>Property options</h2>
|
||||
<p><a href="#">Show details</a> | <a href="#">Hide details</a></p>
|
||||
</div>
|
||||
|
||||
<div class="docs-list clearfix">
|
||||
<xsl:for-each select="//function[1]/option[not(starts-with(@type, 'function'))]">
|
||||
<xsl:call-template name="option"/>
|
||||
</xsl:for-each>
|
||||
</div><!-- /property options -->
|
||||
|
||||
<div class="docs-list-header clearfix">
|
||||
<h2>Event options</h2>
|
||||
<p><a href="#">Show details</a> | <a href="#">Hide details</a></p>
|
||||
</div>
|
||||
|
||||
<div class="docs-list clearfix">
|
||||
<xsl:for-each select="//function[1]/option[starts-with(@type, 'function')]">
|
||||
<xsl:call-template name="option"/>
|
||||
</xsl:for-each>
|
||||
</div><!-- /event options -->
|
||||
</div>
|
||||
|
||||
<!-- TAB 3 -->
|
||||
<div id="docs-methods">
|
||||
<p class="intro">A brief description of methods and their uses goes here so their use is clearly explained and any caveats can be mentioned up front.</p>
|
||||
|
||||
<div class="docs-list-header clearfix">
|
||||
<h2>Methods</h2>
|
||||
<p><a href="#">Show details</a> | <a href="#">Hide details</a></p>
|
||||
</div>
|
||||
|
||||
<div class="docs-list clearfix">
|
||||
<xsl:for-each select="//function[position() != 1]">
|
||||
<div class="param">
|
||||
<div class="param-header">
|
||||
<h3><span><xsl:value-of select="//function[1]/@name"/>( <xsl:value-of select="params[1]/@name"/>
|
||||
<xsl:for-each select="params[position() != 1]">
|
||||
<xsl:text>, </xsl:text><xsl:value-of select="@name"/>
|
||||
</xsl:for-each>
|
||||
)</span></h3>
|
||||
<p class="param-type">Returns: <span><xsl:call-template name="return" /></span></p>
|
||||
</div>
|
||||
<div class="param-details">
|
||||
<p><xsl:value-of select="desc"/></p>
|
||||
<p><xsl:value-of select="longdesc"/></p>
|
||||
<h4>Arguments:</h4>
|
||||
<table class="param-args" summary="Arguments for this method" cellspacing="0">
|
||||
<tbody>
|
||||
<xsl:for-each select="params[position() != 1]">
|
||||
<tr>
|
||||
<td><xsl:value-of select="@name"/></td>
|
||||
<td><xsl:value-of select="@type"/></td>
|
||||
<td><xsl:value-of select="."/></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h4>Code sample:</h4>
|
||||
<xsl:for-each select="example">
|
||||
<h5><xsl:value-of select="desc"/></h5>
|
||||
<code>
|
||||
<xsl:value-of select="code"/>
|
||||
</code>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
|
||||
</div><!-- /methods -->
|
||||
</div>
|
||||
|
||||
<!-- TAB 4 -->
|
||||
<div id="docs-theming">
|
||||
%%THEMING%%
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
@ -1,285 +0,0 @@
|
||||
#! /usr/bin/env node
|
||||
// -*- js -*-
|
||||
|
||||
global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util");
|
||||
var fs = require("fs");
|
||||
var jsp = require("./lib/parse-js"),
|
||||
pro = require("./lib/process");
|
||||
|
||||
var options = {
|
||||
ast: false,
|
||||
mangle: true,
|
||||
mangle_toplevel: false,
|
||||
squeeze: true,
|
||||
make_seqs: true,
|
||||
dead_code: true,
|
||||
verbose: false,
|
||||
show_copyright: true,
|
||||
out_same_file: false,
|
||||
max_line_length: 32 * 1024,
|
||||
unsafe: false,
|
||||
reserved_names: null,
|
||||
defines: { },
|
||||
codegen_options: {
|
||||
ascii_only: false,
|
||||
beautify: false,
|
||||
indent_level: 4,
|
||||
indent_start: 0,
|
||||
quote_keys: false,
|
||||
space_colon: false
|
||||
},
|
||||
output: true // stdout
|
||||
};
|
||||
|
||||
var args = jsp.slice(process.argv, 2);
|
||||
var filename;
|
||||
|
||||
out: while (args.length > 0) {
|
||||
var v = args.shift();
|
||||
switch (v) {
|
||||
case "-b":
|
||||
case "--beautify":
|
||||
options.codegen_options.beautify = true;
|
||||
break;
|
||||
case "-i":
|
||||
case "--indent":
|
||||
options.codegen_options.indent_level = args.shift();
|
||||
break;
|
||||
case "-q":
|
||||
case "--quote-keys":
|
||||
options.codegen_options.quote_keys = true;
|
||||
break;
|
||||
case "-mt":
|
||||
case "--mangle-toplevel":
|
||||
options.mangle_toplevel = true;
|
||||
break;
|
||||
case "--no-mangle":
|
||||
case "-nm":
|
||||
options.mangle = false;
|
||||
break;
|
||||
case "--no-squeeze":
|
||||
case "-ns":
|
||||
options.squeeze = false;
|
||||
break;
|
||||
case "--no-seqs":
|
||||
options.make_seqs = false;
|
||||
break;
|
||||
case "--no-dead-code":
|
||||
options.dead_code = false;
|
||||
break;
|
||||
case "--no-copyright":
|
||||
case "-nc":
|
||||
options.show_copyright = false;
|
||||
break;
|
||||
case "-o":
|
||||
case "--output":
|
||||
options.output = args.shift();
|
||||
break;
|
||||
case "--overwrite":
|
||||
options.out_same_file = true;
|
||||
break;
|
||||
case "-v":
|
||||
case "--verbose":
|
||||
options.verbose = true;
|
||||
break;
|
||||
case "--ast":
|
||||
options.ast = true;
|
||||
break;
|
||||
case "--unsafe":
|
||||
options.unsafe = true;
|
||||
break;
|
||||
case "--max-line-len":
|
||||
options.max_line_length = parseInt(args.shift(), 10);
|
||||
break;
|
||||
case "--reserved-names":
|
||||
options.reserved_names = args.shift().split(",");
|
||||
break;
|
||||
case "-d":
|
||||
case "--define":
|
||||
var defarg = args.shift();
|
||||
try {
|
||||
var defsym = function(sym) {
|
||||
// KEYWORDS_ATOM doesn't include NaN or Infinity - should we check
|
||||
// for them too ?? We don't check reserved words and the like as the
|
||||
// define values are only substituted AFTER parsing
|
||||
if (jsp.KEYWORDS_ATOM.hasOwnProperty(sym)) {
|
||||
throw "Don't define values for inbuilt constant '"+sym+"'";
|
||||
}
|
||||
return sym;
|
||||
},
|
||||
defval = function(v) {
|
||||
if (v.match(/^"(.*)"$/) || v.match(/^'(.*)'$/)) {
|
||||
return [ "string", RegExp.$1 ];
|
||||
}
|
||||
else if (!isNaN(parseFloat(v))) {
|
||||
return [ "num", parseFloat(v) ];
|
||||
}
|
||||
else if (v.match(/^[a-z\$_][a-z\$_0-9]*$/i)) {
|
||||
return [ "name", v ];
|
||||
}
|
||||
else if (!v.match(/"/)) {
|
||||
return [ "string", v ];
|
||||
}
|
||||
else if (!v.match(/'/)) {
|
||||
return [ "string", v ];
|
||||
}
|
||||
throw "Can't understand the specified value: "+v;
|
||||
};
|
||||
if (defarg.match(/^([a-z_\$][a-z_\$0-9]*)(=(.*))?$/i)) {
|
||||
var sym = defsym(RegExp.$1),
|
||||
val = RegExp.$2 ? defval(RegExp.$2.substr(1)) : [ 'name', 'true' ];
|
||||
options.defines[sym] = val;
|
||||
}
|
||||
else {
|
||||
throw "The --define option expects SYMBOL[=value]";
|
||||
}
|
||||
} catch(ex) {
|
||||
sys.print("ERROR: In option --define "+defarg+"\n"+ex+"\n");
|
||||
process.exit(1);
|
||||
}
|
||||
break;
|
||||
case "--define-from-module":
|
||||
var defmodarg = args.shift(),
|
||||
defmodule = require(defmodarg),
|
||||
sym,
|
||||
val;
|
||||
for (sym in defmodule) {
|
||||
if (defmodule.hasOwnProperty(sym)) {
|
||||
options.defines[sym] = function(val) {
|
||||
if (typeof val == "string")
|
||||
return [ "string", val ];
|
||||
if (typeof val == "number")
|
||||
return [ "num", val ];
|
||||
if (val === true)
|
||||
return [ 'name', 'true' ];
|
||||
if (val === false)
|
||||
return [ 'name', 'false' ];
|
||||
if (val === null)
|
||||
return [ 'name', 'null' ];
|
||||
if (val === undefined)
|
||||
return [ 'name', 'undefined' ];
|
||||
sys.print("ERROR: In option --define-from-module "+defmodarg+"\n");
|
||||
sys.print("ERROR: Unknown object type for: "+sym+"="+val+"\n");
|
||||
process.exit(1);
|
||||
return null;
|
||||
}(defmodule[sym]);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "--ascii":
|
||||
options.codegen_options.ascii_only = true;
|
||||
break;
|
||||
default:
|
||||
filename = v;
|
||||
break out;
|
||||
}
|
||||
}
|
||||
|
||||
if (options.verbose) {
|
||||
pro.set_logger(function(msg){
|
||||
sys.debug(msg);
|
||||
});
|
||||
}
|
||||
|
||||
jsp.set_logger(function(msg){
|
||||
sys.debug(msg);
|
||||
});
|
||||
|
||||
if (filename) {
|
||||
fs.readFile(filename, "utf8", function(err, text){
|
||||
if (err) throw err;
|
||||
output(squeeze_it(text));
|
||||
});
|
||||
} else {
|
||||
var stdin = process.openStdin();
|
||||
stdin.setEncoding("utf8");
|
||||
var text = "";
|
||||
stdin.on("data", function(chunk){
|
||||
text += chunk;
|
||||
});
|
||||
stdin.on("end", function() {
|
||||
output(squeeze_it(text));
|
||||
});
|
||||
}
|
||||
|
||||
function output(text) {
|
||||
var out;
|
||||
if (options.out_same_file && filename)
|
||||
options.output = filename;
|
||||
if (options.output === true) {
|
||||
out = process.stdout;
|
||||
} else {
|
||||
out = fs.createWriteStream(options.output, {
|
||||
flags: "w",
|
||||
encoding: "utf8",
|
||||
mode: 0644
|
||||
});
|
||||
}
|
||||
out.write(text);
|
||||
if (options.output !== true) {
|
||||
out.end();
|
||||
}
|
||||
};
|
||||
|
||||
// --------- main ends here.
|
||||
|
||||
function show_copyright(comments) {
|
||||
var ret = "";
|
||||
for (var i = 0; i < comments.length; ++i) {
|
||||
var c = comments[i];
|
||||
if (c.type == "comment1") {
|
||||
ret += "//" + c.value + "\n";
|
||||
} else {
|
||||
ret += "/*" + c.value + "*/";
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
|
||||
function squeeze_it(code) {
|
||||
var result = "";
|
||||
if (options.show_copyright) {
|
||||
var tok = jsp.tokenizer(code), c;
|
||||
c = tok();
|
||||
result += show_copyright(c.comments_before);
|
||||
}
|
||||
try {
|
||||
var ast = time_it("parse", function(){ return jsp.parse(code); });
|
||||
if (options.mangle) ast = time_it("mangle", function(){
|
||||
return pro.ast_mangle(ast, {
|
||||
toplevel: options.mangle_toplevel,
|
||||
defines: options.defines,
|
||||
except: options.reserved_names
|
||||
});
|
||||
});
|
||||
if (options.squeeze) ast = time_it("squeeze", function(){
|
||||
ast = pro.ast_squeeze(ast, {
|
||||
make_seqs : options.make_seqs,
|
||||
dead_code : options.dead_code,
|
||||
keep_comps : !options.unsafe
|
||||
});
|
||||
if (options.unsafe)
|
||||
ast = pro.ast_squeeze_more(ast);
|
||||
return ast;
|
||||
});
|
||||
if (options.ast)
|
||||
return sys.inspect(ast, null, null);
|
||||
result += time_it("generate", function(){ return pro.gen_code(ast, options.codegen_options) });
|
||||
if (!options.codegen_options.beautify && options.max_line_length) {
|
||||
result = time_it("split", function(){ return pro.split_lines(result, options.max_line_length) });
|
||||
}
|
||||
return result;
|
||||
} catch(ex) {
|
||||
sys.debug(ex.stack);
|
||||
sys.debug(sys.inspect(ex));
|
||||
sys.debug(JSON.stringify(ex));
|
||||
}
|
||||
};
|
||||
|
||||
function time_it(name, cont) {
|
||||
if (!options.verbose)
|
||||
return cont();
|
||||
var t1 = new Date().getTime();
|
||||
try { return cont(); }
|
||||
finally { sys.debug("// " + name + ": " + ((new Date().getTime() - t1) / 1000).toFixed(3) + " sec."); }
|
||||
};
|
Binary file not shown.
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Collapse content</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Customize icons</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
@ -19,10 +19,12 @@
|
||||
$( "#accordion" ).accordion({
|
||||
icons: icons
|
||||
});
|
||||
$( "#toggle" ).button().toggle(function() {
|
||||
$( "#toggle" ).button().click(function() {
|
||||
if ( $( "#accordion" ).accordion( "option", "icons" ) ) {
|
||||
$( "#accordion" ).accordion( "option", "icons", null );
|
||||
}, function() {
|
||||
} else {
|
||||
$( "#accordion" ).accordion( "option", "icons", icons );
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Fill space</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Open on hoverintent</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - No auto height</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Sortable</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - addClass demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.effects.core.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - Animate demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.effects.core.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
@ -15,22 +15,23 @@
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
$( "#button" ).toggle(
|
||||
function() {
|
||||
var state = true;
|
||||
$( "#button" ).click(function() {
|
||||
if ( state ) {
|
||||
$( "#effect" ).animate({
|
||||
backgroundColor: "#aa0000",
|
||||
color: "#fff",
|
||||
width: 500
|
||||
}, 1000 );
|
||||
},
|
||||
function() {
|
||||
} else {
|
||||
$( "#effect" ).animate({
|
||||
backgroundColor: "#fff",
|
||||
color: "#000",
|
||||
width: 240
|
||||
}, 1000 );
|
||||
}
|
||||
);
|
||||
state = !state;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Categories</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Combobox</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
@ -14,25 +14,37 @@
|
||||
<script src="../../ui/jquery.ui.tooltip.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-button {
|
||||
.ui-combobox {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
.ui-combobox-toggle {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
margin-left: -1px;
|
||||
padding: 0;
|
||||
/* adjust styles for IE 6/7 */
|
||||
*height: 1.7em;
|
||||
*top: 0.1em;
|
||||
}
|
||||
.ui-button-icon-only .ui-button-text {
|
||||
padding: 0.35em;
|
||||
}
|
||||
.ui-autocomplete-input {
|
||||
.ui-combobox-input {
|
||||
margin: 0;
|
||||
padding: 0.4em 0 0.4em 0.45em;
|
||||
padding: 0.3em;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
(function( $ ) {
|
||||
$.widget( "ui.combobox", {
|
||||
_create: function() {
|
||||
var that = this,
|
||||
var input,
|
||||
that = this,
|
||||
select = this.element.hide(),
|
||||
selected = select.children( ":selected" ),
|
||||
value = selected.val() ? selected.text() : "";
|
||||
value = selected.val() ? selected.text() : "",
|
||||
wrapper = this.wrapper = $( "<span>" )
|
||||
.addClass( "ui-combobox" )
|
||||
.insertAfter( select );
|
||||
|
||||
function removeIfInvalid(element) {
|
||||
var value = $( element ).val(),
|
||||
@ -59,10 +71,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
var input = this.input = $( "<input>" )
|
||||
.insertAfter( select )
|
||||
input = $( "<input>" )
|
||||
.appendTo( wrapper )
|
||||
.val( value )
|
||||
.attr( "title", "" )
|
||||
.addClass( "ui-state-default ui-combobox-input" )
|
||||
.autocomplete({
|
||||
delay: 0,
|
||||
minLength: 0,
|
||||
@ -103,11 +116,11 @@
|
||||
.appendTo( ul );
|
||||
};
|
||||
|
||||
this.button = $( "<button type='button'> </button>" )
|
||||
$( "<a>" )
|
||||
.attr( "tabIndex", -1 )
|
||||
.attr( "title", "Show All Items" )
|
||||
.tooltip()
|
||||
.insertAfter( input )
|
||||
.appendTo( wrapper )
|
||||
.button({
|
||||
icons: {
|
||||
primary: "ui-icon-triangle-1-s"
|
||||
@ -115,7 +128,7 @@
|
||||
text: false
|
||||
})
|
||||
.removeClass( "ui-corner-all" )
|
||||
.addClass( "ui-corner-right ui-button-icon" )
|
||||
.addClass( "ui-corner-right ui-combobox-toggle" )
|
||||
.click(function() {
|
||||
// close if already visible
|
||||
if ( input.autocomplete( "widget" ).is( ":visible" ) ) {
|
||||
@ -142,8 +155,7 @@
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
this.input.remove();
|
||||
this.button.remove();
|
||||
this.wrapper.remove();
|
||||
this.element.show();
|
||||
$.Widget.prototype.destroy.call( this );
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Custom data and display</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
@ -79,7 +79,7 @@
|
||||
|
||||
<div class="demo">
|
||||
<div id="project-label">Select a project (type "j" for a start):</div>
|
||||
<img id="project-icon" src="images/transparent_1x1.png" class="ui-state-default">
|
||||
<img id="project-icon" src="images/transparent_1x1.png" class="ui-state-default" alt="">
|
||||
<input id="project">
|
||||
<input type="hidden" id="project-id">
|
||||
<p id="project-description"></p>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Accent folding</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Scrollable results</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
@ -17,8 +17,6 @@
|
||||
overflow-y: auto;
|
||||
/* prevent horizontal scrollbar */
|
||||
overflow-x: hidden;
|
||||
/* add padding to account for vertical scrollbar */
|
||||
padding-right: 20px;
|
||||
}
|
||||
/* IE 6 doesn't support max-height
|
||||
* we use height instead, but this forces the menu to always be this tall
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Multiple, remote</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Multiple values</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Remote JSONP datasource</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Remote with caching</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Remote datasource</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - XML data parsed once</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Checkboxes</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
|
@ -4,14 +4,14 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
$( "input:submit, a, button", ".demo" ).button();
|
||||
$( "input[type=submit], a, button", ".demo" ).button();
|
||||
$( "a", ".demo" ).click(function() { return false; });
|
||||
});
|
||||
</script>
|
||||
@ -22,7 +22,7 @@
|
||||
|
||||
<button>A button element</button>
|
||||
|
||||
<input type="submit" value="A submit button"/>
|
||||
<input type="submit" value="A submit button">
|
||||
|
||||
<a href="#">An anchor</a>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Icons</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Radios</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Split button</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Toolbar</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Populate alternate field</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Animations</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.effects.core.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Display button bar</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Format date</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -4,25 +4,27 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Select a Date Range</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
var dates = $( "#from, #to" ).datepicker({
|
||||
$( "#from" ).datepicker({
|
||||
defaultDate: "+1w",
|
||||
changeMonth: true,
|
||||
numberOfMonths: 3,
|
||||
onSelect: function( selectedDate ) {
|
||||
var option = this.id == "from" ? "minDate" : "maxDate",
|
||||
instance = $( this ).data( "datepicker" ),
|
||||
date = $.datepicker.parseDate(
|
||||
instance.settings.dateFormat ||
|
||||
$.datepicker._defaults.dateFormat,
|
||||
selectedDate, instance.settings );
|
||||
dates.not( this ).datepicker( "option", option, date );
|
||||
$( "#to" ).datepicker( "option", "minDate", selectedDate );
|
||||
}
|
||||
});
|
||||
$( "#to" ).datepicker({
|
||||
defaultDate: "+1w",
|
||||
changeMonth: true,
|
||||
numberOfMonths: 3,
|
||||
onSelect: function( selectedDate ) {
|
||||
$( "#from" ).datepicker( "option", "maxDate", selectedDate );
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Display month & year menus</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Icon trigger</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Display inline</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Localize calendar</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
@ -32,6 +32,7 @@
|
||||
<script src="../../ui/i18n/jquery.ui.datepicker-fo.js"></script>
|
||||
<script src="../../ui/i18n/jquery.ui.datepicker-fr.js"></script>
|
||||
<script src="../../ui/i18n/jquery.ui.datepicker-fr-CH.js"></script>
|
||||
<script src="../../ui/i18n/jquery.ui.datepicker-ge.js"></script>
|
||||
<script src="../../ui/i18n/jquery.ui.datepicker-gl.js"></script>
|
||||
<script src="../../ui/i18n/jquery.ui.datepicker-he.js"></script>
|
||||
<script src="../../ui/i18n/jquery.ui.datepicker-hi.js"></script>
|
||||
@ -122,6 +123,7 @@
|
||||
<option value="fr" selected="selected">French (Français)</option>
|
||||
<option value="fr-CH">French/Swiss (Français de Suisse)</option>
|
||||
<option value="gl">Galician</option>
|
||||
<option value="ge">Georgian</option>
|
||||
<option value="de">German (Deutsch)</option>
|
||||
<option value="el">Greek (Ελληνικά)</option>
|
||||
<option value="he">Hebrew (‫(עברית</option>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Restrict date range</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Display multiple months</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Dates in other months</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Show week of the year</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
|
@ -18,6 +18,8 @@ body {
|
||||
|
||||
.layout-grid {
|
||||
width: 960px;
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.layout-grid td {
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Animation</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.bgiframe-2.1.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.bgiframe-2.1.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Modal confirmation</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.bgiframe-2.1.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Modal form</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.bgiframe-2.1.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Modal message</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.bgiframe-2.1.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Basic modal</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.bgiframe-2.1.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Constrain movement</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Cursor style</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Delay start</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Events</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Handles</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Revert position</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Auto-scroll</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Snap to element or grid</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
@ -33,7 +33,7 @@
|
||||
<p>I'm a snap target</p>
|
||||
</div>
|
||||
|
||||
<br clear="both" />
|
||||
<br style="clear:both" />
|
||||
|
||||
<div id="draggable" class="draggable ui-widget-content">
|
||||
<p>Default (snap: true), snaps to all other draggable elements</p>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable + Sortable</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Visual feedback</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Accept</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Simple photo manager</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Prevent propagation</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Revert draggable position</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Shopping Cart Demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Visual feedback</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - Effect demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.effects.core.js"></script>
|
||||
<script src="../../ui/jquery.effects.blind.js"></script>
|
||||
<script src="../../ui/jquery.effects.bounce.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - Easing demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.effects.core.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - Hide Demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.effects.core.js"></script>
|
||||
<script src="../../ui/jquery.effects.blind.js"></script>
|
||||
<script src="../../ui/jquery.effects.bounce.js"></script>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<title>jQuery UI Demos</title>
|
||||
<link rel="stylesheet" href="../themes/base/jquery.ui.all.css">
|
||||
<link rel="stylesheet" href="demos.css">
|
||||
<script src="../jquery-1.7.1.js"></script>
|
||||
<script src="../jquery-1.7.2.js"></script>
|
||||
<script src="../external/jquery.bgiframe-2.1.2.js"></script>
|
||||
<script src="../external/globalize.js"></script>
|
||||
<script src="../external/globalize.culture.de-DE.js"></script>
|
||||
@ -67,6 +67,7 @@
|
||||
<script src="../ui/i18n/jquery.ui.datepicker-fo.js"></script>
|
||||
<script src="../ui/i18n/jquery.ui.datepicker-fr.js"></script>
|
||||
<script src="../ui/i18n/jquery.ui.datepicker-fr-CH.js"></script>
|
||||
<script src="../ui/i18n/jquery.ui.datepicker-ge.js"></script>
|
||||
<script src="../ui/i18n/jquery.ui.datepicker-gl.js"></script>
|
||||
<script src="../ui/i18n/jquery.ui.datepicker-he.js"></script>
|
||||
<script src="../ui/i18n/jquery.ui.datepicker-hi.js"></script>
|
||||
@ -269,7 +270,7 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="layout-grid" cellspacing="0" cellpadding="0">
|
||||
<table class="layout-grid">
|
||||
<tr>
|
||||
<td class="left-nav">
|
||||
<dl class="demos-nav">
|
||||
|
@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Menu - Default demo</title>
|
||||
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
|
@ -10,7 +10,6 @@
|
||||
<h4>Examples</h4>
|
||||
<ul>
|
||||
<li class="demo-config-on"><a href="default.html">Default functionality</a></li>
|
||||
<li><a href="contextmenu.html">Contextmenu</a></li>
|
||||
<li><a href="topalignmenu.html">Top-aligned sub menus</a></li>
|
||||
<li><a href="navigationmenu.html">Navigation menu</a></li>
|
||||
</ul>
|
||||
|
@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Menu - Navigation Menu demo</title>
|
||||
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
|
@ -1,15 +1,16 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Menu Demo: Top-aligned Menu</title>
|
||||
<link rel="stylesheet" href="../demos.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css" type="text/css" title="ui-theme" />
|
||||
<script type="text/javascript" src="../../jquery-1.7.1.js"></script>
|
||||
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
|
||||
<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
|
||||
<script type="text/javascript" src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
<link type="text/css" href="../demos.css" rel="stylesheet" />
|
||||
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
$("#topMenu").menu({
|
||||
position: { of: "ul:has(a.ui-state-focus):last" }
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Position - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
@ -101,9 +101,9 @@
|
||||
|
||||
<div class="demo">
|
||||
|
||||
<img src="images/earth.jpg" width="458" height="308" />
|
||||
<img src="images/flight.jpg" width="512" height="307" />
|
||||
<img src="images/rocket.jpg" width="300" height="353" />
|
||||
<img src="images/earth.jpg" width="458" height="308" alt="earth" />
|
||||
<img src="images/flight.jpg" width="512" height="307" alt="flight" />
|
||||
<img src="images/rocket.jpg" width="300" height="353" alt="rocket" />
|
||||
|
||||
<a id="previous" href="#">Previous</a>
|
||||
<a id="next" href="#">Next</a>
|
||||
|
@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Position - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
@ -37,53 +37,28 @@
|
||||
width: 120px;
|
||||
height: 40px;
|
||||
}
|
||||
.ui-flipped-top {
|
||||
border-top: 3px solid #000000;
|
||||
}
|
||||
.ui-flipped-bottom {
|
||||
border-bottom: 3px solid #000000;
|
||||
}
|
||||
.ui-flipped-left {
|
||||
border-left: 3px solid #000000;
|
||||
}
|
||||
.ui-flipped-right {
|
||||
border-right: 3px solid #000000;
|
||||
}
|
||||
select, input {
|
||||
margin-left: 15px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
function position( using ) {
|
||||
function position() {
|
||||
$( ".positionable" ).position({
|
||||
of: $( "#parent" ),
|
||||
my: $( "#my_horizontal" ).val() + " " + $( "#my_vertical" ).val(),
|
||||
at: $( "#at_horizontal" ).val() + " " + $( "#at_vertical" ).val(),
|
||||
offset: $( "#offset" ).val(),
|
||||
using: using,
|
||||
collision: $( "#collision_horizontal" ).val() + ' ' + $( "#collision_vertical" ).val()
|
||||
collision: $( "#collision_horizontal" ).val() + " " + $( "#collision_vertical" ).val()
|
||||
});
|
||||
}
|
||||
|
||||
$( ".positionable" ).css( "opacity", 0.5 );
|
||||
|
||||
$( ":input" ).bind( "click keyup change", function() { position(); });
|
||||
$( "select, input" ).bind( "click keyup change", position );
|
||||
|
||||
$( "#parent" ).draggable({
|
||||
drag: function() { position(); }
|
||||
});
|
||||
|
||||
$( ".positionable" ).draggable({
|
||||
drag: function( event, ui ) {
|
||||
// reset offset before calculating it
|
||||
$( "#offset" ).val( "0" );
|
||||
position(function( result ) {
|
||||
$( "#offset" ).val( "" + ( ui.offset.left - result.left ) +
|
||||
" " + ( ui.offset.top - result.top ) );
|
||||
position();
|
||||
});
|
||||
}
|
||||
drag: position
|
||||
});
|
||||
|
||||
position();
|
||||
@ -142,7 +117,7 @@
|
||||
</div>
|
||||
<div style="padding-bottom: 20px;">
|
||||
<b>offset:</b>
|
||||
<input id="offset" type="text" size="15"/>
|
||||
<input id="offset">
|
||||
</div>
|
||||
<div style="padding-bottom: 20px;">
|
||||
<b>collision:</b>
|
||||
|
@ -4,13 +4,13 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Progressbar - Animated</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.progressbar.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-progressbar-value { background-image: url(images/pbar-ani.gif); }
|
||||
.ui-progressbar .ui-progressbar-value { background-image: url(images/pbar-ani.gif); }
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Progressbar - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.progressbar.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Progressbar - Resizable</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - removeClass Demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.effects.core.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Resizable - Animate</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Resizable - Preserve aspect ratio</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Resizable - Constrain resize area</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Resizable - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.1.js"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user