Skip to content

Commit 0532881

Browse files
committed
IMPORT jquery updates
1 parent 8748295 commit 0532881

File tree

11 files changed

+149
-382
lines changed

11 files changed

+149
-382
lines changed
41.8 KB
Loading
9.16 KB
Loading

jquery/css/base.css

Lines changed: 53 additions & 211 deletions
Large diffs are not rendered by default.

jquery/footer-bottom.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
$project = preg_replace( '/^.*?([^.]+)\.[^.]+$/', '$1', JQUERY_LIVE_DOMAIN );
3+
4+
$links = array(
5+
'Learning Center' => array(
6+
'icon' => 'pencil',
7+
'url' => 'http://learn.jquery.com/'
8+
),
9+
'Forum' => array(
10+
'icon' => 'group',
11+
'url' => 'http://forum.jquery.com/',
12+
),
13+
'API' => array(
14+
'icon' => 'wrench',
15+
'url' => 'http://api.' . $project . '.com/'
16+
),
17+
'Twitter' => array(
18+
'icon' => 'twitter',
19+
'url' => 'http://twitter.com/jquery'
20+
),
21+
'IRC' => array(
22+
'icon' => 'comments',
23+
'url' => 'http://irc.jquery.org/'
24+
),
25+
'GitHub' => array(
26+
'icon' => 'github',
27+
'url' => 'https://github.com/jquery'
28+
)
29+
);
30+
31+
switch ( $project ) {
32+
case 'jqueryui':
33+
$links[ 'Forum' ][ 'url' ] = 'http://forum.jquery.com/using-jquery-ui/';
34+
$links[ 'Twitter' ][ 'url' ] = 'http://twitter.com/jqueryui';
35+
break;
36+
case 'jquerymobile':
37+
$links[ 'Forum' ][ 'url' ] = 'http://forum.jquery.com/jquery-mobile/';
38+
$links[ 'Twitter' ][ 'url' ] = 'http://twitter.com/jquerymobile';
39+
break;
40+
case 'qunitjs':
41+
$links[ 'Forum' ][ 'url' ] = 'http://forum.jquery.com/qunit-and-testing/';
42+
$links[ 'Twitter' ][ 'url' ] = 'http://twitter.com/qunitjs';
43+
break;
44+
}
45+
?>
46+
47+
<div id="legal">
48+
<ul class="footer-site-links">
49+
<?php foreach ( $links as $title => $link ) : ?>
50+
<li><a class="icon-<?php echo $link[ 'icon' ]; ?>" href="<?php echo $link[ 'url' ]; ?>"><?php echo $title; ?></a></li>
51+
<?php endforeach ?></ul>
52+
<p class="copyright">
53+
Copyright <?php echo date('Y'); ?> <a href="https://jquery.org/team/">The jQuery Foundation</a>.
54+
<a href="https://jquery.org/license/">jQuery License</a>
55+
<span class="sponsor-line"><a href="http://mediatemple.net" rel="noindex,nofollow" class="mt-link">Web hosting by Media Temple</a> | <a href="http://www.maxcdn.com" rel="noindex,nofollow" class="mc-link">CDN by MaxCDN</a> | <a href="http://wordpress.org/" class="wp-link">Powered by WordPress</a> | Thanks: <a href="https://jquery.org/members/">Members</a>, <a href="https://jquery.org/sponsors/">Sponsors</a></span>
56+
</p>
57+
</div>
58+
59+
<?php
60+
unset( $project, $links );

jquery/footer-mobile.php

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,7 @@
33

44
<footer class="clearfix simple">
55
<div class="constrain">
6-
<div class="row">
7-
<div class="eight columns centered">
8-
<h3><span>Quick Access</span></h3>
9-
<div class="cdn">
10-
<strong>CDN <em>CSS</em></strong>
11-
<input value="//code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css" readonly>
12-
</div>
13-
<div class="cdn">
14-
<strong>CDN <em>JS</em></strong>
15-
<input value="//code.jquery.com/jquery-1.10.2.min.js" readonly>
16-
</div>
17-
<div class="cdn">
18-
<strong>CDN <em>JS</em></strong>
19-
<input value="//code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js" readonly>
20-
</div>
21-
<div class="download">
22-
<strong>Download jQuery Mobile 1.4.0:</strong>
23-
<span><a href="http://jquerymobile.com/resources/download/jquery.mobile-1.4.0.zip">Zip File <em>(JavaScript, CSS, and images)</em></a></span>
24-
</div>
25-
<ul class="footer-icon-links">
26-
<li><a class="icon-github" href="http://github.com/jquery/jquery-mobile">GitHub <small>jQuery Mobile <br>Source</small></a></li>
27-
<li><a class="icon-group" href="http://forum.jquery.com/jquery-mobile">Forum <small>Community <br>Support</small></a></li>
28-
<li><a class="icon-warning-sign" href="http://github.com/jquery/jquery-mobile/issues">Bugs <small>Issue <br>Tracker</small></a></li>
29-
</ul>
30-
</div>
31-
</div>
32-
33-
<div id="legal">
34-
<ul class="footer-site-links">
35-
<li><a class="icon-pencil" href="http://learn.jquery.com/">Learning Center</a></li>
36-
<li><a class="icon-group" href="http://forum.jquery.com/jquery-mobile">Forum</a></li>
37-
<li><a class="icon-wrench" href="http://api.jquerymobile.com/">API</a></li>
38-
<li><a class="icon-twitter" href="http://twitter.com/jquerymobile">Twitter</a></li>
39-
<li><a class="icon-comments" href="http://irc.jquery.org/">IRC</a></li>
40-
</ul>
41-
<p class="copyright">
42-
Copyright <?php echo date('Y'); ?> <a href="https://jquery.org/team/">The jQuery Foundation</a>.<br>
43-
<span class="sponsor-line"><a href="http://mediatemple.net" rel="noindex,nofollow" class="mt-link">Web hosting by Media Temple</a> | <a href="http://www.maxcdn.com" rel="noindex,nofollow" class="mc-link">CDN by MaxCDN</a> | <a href="http://wordpress.org/" class="wp-link">Powered by WordPress</a> | Thanks: <a href="https://jquery.org/members/">Members</a>, <a href="https://jquery.org/sponsors/">Sponsors</a></span>
44-
</p>
45-
</div>
6+
<?php get_template_part( 'footer', 'bottom' ); ?>
467
</div>
478
</footer>
489

jquery/footer-qunit.php

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,7 @@
33

44
<footer class="clearfix simple">
55
<div class="constrain">
6-
<div class="row">
7-
<div class="six columns centered">
8-
<h3><span>Quick Access</span></h3>
9-
<div class="cdn">
10-
<strong>CDN <em>CSS</em></strong>
11-
<input value="//code.jquery.com/qunit/qunit-1.13.0.css" readonly>
12-
</div>
13-
<div class="cdn">
14-
<strong>CDN <em>JS</em></strong>
15-
<input value="//code.jquery.com/qunit/qunit-1.13.0.js" readonly>
16-
</div>
17-
<div class="download">
18-
<strong>Download QUnit 1.13.0:</strong>
19-
<span><a href="http://code.jquery.com/qunit/qunit-1.13.0.js">qunit.js</a><a href="http://code.jquery.com/qunit/qunit-1.13.0.css">qunit.css</a></span>
20-
</div>
21-
<ul class="footer-icon-links">
22-
<li><a class="icon-github" href="http://github.com/jquery/qunit">GitHub <small>QUnit <br>Source</small></a></li>
23-
<li><a class="icon-group" href="http://forum.jquery.com/qunit-and-testing">Forum <small>Community <br>Support</small></a></li>
24-
<li><a class="icon-warning-sign" href="http://github.com/jquery/qunit/issues">Bugs <small>Issue <br>Tracker</small></a></li>
25-
</ul>
26-
</div>
27-
</div>
28-
29-
<div id="legal">
30-
<ul class="footer-site-links">
31-
<li><a class="icon-pencil" href="http://learn.jquery.com/">Learning Center</a></li>
32-
<li><a class="icon-group" href="http://forum.jquery.com/qunit-and-testing/">Forum</a></li>
33-
<li><a class="icon-wrench" href="http://api.qunitjs.com/">API</a></li>
34-
<li><a class="icon-twitter" href="http://twitter.com/qunitjs">Twitter</a></li>
35-
<li><a class="icon-comments" href="http://irc.jquery.org/">IRC</a></li>
36-
</ul>
37-
<p class="copyright">
38-
Copyright <?php echo date('Y'); ?> <a href="https://jquery.org/team/">The jQuery Foundation</a>.<br>
39-
<span class="sponsor-line"><a href="http://mediatemple.net" rel="noindex,nofollow" class="mt-link">Web hosting by Media Temple</a> | <a href="http://www.maxcdn.com" rel="noindex,nofollow" class="mc-link">CDN by MaxCDN</a> | <a href="http://wordpress.org/" class="wp-link">Powered by WordPress</a> | Thanks: <a href="https://jquery.org/members/">Members</a>, <a href="https://jquery.org/sponsors/">Sponsors</a></span>
40-
</p>
41-
</div>
6+
<?php get_template_part( 'footer', 'bottom' ); ?>
427
</div>
438
</footer>
449

jquery/footer-ui.php

Lines changed: 16 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,44 @@
11
</div>
22
</div>
3-
43
<footer class="clearfix simple">
54
<div class="constrain">
65
<div class="row">
7-
<div class="eight columns">
8-
<h3><span>Quick Access</span></h3>
9-
<div class="cdn">
10-
<strong>CDN <em>CSS</em></strong>
11-
<input value="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" readonly>
12-
</div>
13-
<div class="cdn">
14-
<strong>CDN <em>JS</em></strong>
15-
<input value="//code.jquery.com/jquery-1.10.2.js" readonly>
16-
</div>
17-
<div class="cdn">
18-
<strong>CDN <em>JS</em></strong>
19-
<input value="//code.jquery.com/ui/1.10.4/jquery-ui.js" readonly>
20-
</div>
21-
<div class="download">
22-
<div><strong>Download jQuery UI 1.10.4 (for jQuery 1.6+):</strong></div>
23-
<span>
24-
<a href="http://jqueryui.com/resources/download/jquery-ui-1.10.4.zip">Development Bundle</a>
25-
<a href="http://jqueryui.com/resources/download/jquery-ui-themes-1.10.4.zip">Themes</a>
26-
<a href="http://jqueryui.com/download/">Download Builder →</a>
27-
</span>
28-
</div>
29-
<ul class="footer-icon-links">
30-
<li><a class="icon-github" href="http://github.com/jquery/jquery-ui">GitHub <small>jQuery UI <br>Source</small></a></li>
31-
<li><a class="icon-group" href="http://forum.jquery.com/using-jquery-ui">Forum <small>Community <br>Support</small></a></li>
32-
<li><a class="icon-warning-sign" href="http://bugs.jqueryui.com">Bugs <small>Issue <br>Tracker</small></a></li>
33-
</ul>
34-
</div>
35-
36-
<div class="four columns">
6+
<div class="six columns offset-by-three">
377
<h3><span>Books</span></h3>
388
<ul class="books">
39-
<li>
9+
<!--<li>
4010
<a href="http://link.packtpub.com/SHnqUf">
41-
<span class="bottom"><img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-ui-1.8.jpg" alt="jQuery UI 1.8: The User Interface Library for jQuery by Dan Wellman" width="92" height="114"></span>
42-
<strong>jQuery UI 1.8: The User Interface Library for jQuery</strong><br>
11+
<img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-ui-1.8.jpg" alt="jQuery UI 1.8: The User Interface Library for jQuery by Dan Wellman" width="92" height="114">
12+
<span class="book-title">jQuery UI 1.8: The User Interface Library for jQuery</span>
4313
<cite>Dan Wellman</cite>
4414
</a>
15+
</li>-->
16+
<li>
17+
<a href="http://www.manning.com/vantoll/">
18+
<span><img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-ui-in-action.jpg" alt="jQuery UI in Action by TJ VanToll" width="92" height="114"></span>
19+
<strong>jQuery UI in Action</strong><br>
20+
<cite>TJ VanToll</cite>
21+
</a>
4522
</li>
4623
<li>
4724
<a href="http://link.packtpub.com/PG9pAC">
48-
<span><img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-ui-themes.jpg" alt="jQuery UI Themes by Adam Boduch" width="92" height="114"></span>
49-
<strong>jQuery UI Themes</strong><br>
25+
<img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-ui-themes.jpg" alt="jQuery UI Themes by Adam Boduch" width="92" height="114">
26+
<span class="book-title">jQuery UI Themes</span>
5027
<cite>Adam Boduch</cite>
5128
</a>
5229
</li>
5330
<li>
5431
<a href="http://www.packtpub.com/jquery-userinterface-cookbook/book">
55-
<span><img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-ui-cookbook.jpg" alt="jQuery UI Cookbook by Adam Boduch" width="92" height="114"></span>
56-
<strong>jQuery UI Cookbook</strong><br>
32+
<img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-ui-cookbook.jpg" alt="jQuery UI Cookbook by Adam Boduch" width="92" height="114">
33+
<span class="book-title">jQuery UI Cookbook</span>
5734
<cite>Adam Boduch</cite>
5835
</a>
5936
</li>
6037
</ul>
6138
</div>
6239
</div>
6340

64-
<div id="legal">
65-
<ul class="footer-site-links">
66-
<li><a class="icon-pencil" href="http://learn.jquery.com/">Learning Center</a></li>
67-
<li><a class="icon-group" href="http://forum.jquery.com/using-jquery-ui/">Forum</a></li>
68-
<li><a class="icon-wrench" href="http://api.jqueryui.com/">API</a></li>
69-
<li><a class="icon-twitter" href="http://twitter.com/jqueryui">Twitter</a></li>
70-
<li><a class="icon-comments" href="http://irc.jquery.org/">IRC</a></li>
71-
</ul>
72-
<p class="copyright">
73-
Copyright <?php echo date('Y'); ?> <a href="https://jquery.org/team/">The jQuery Foundation</a>.<br>
74-
<span class="sponsor-line"><a href="http://mediatemple.net" rel="noindex,nofollow" class="mt-link">Web hosting by Media Temple</a> | <a href="http://www.maxcdn.com" rel="noindex,nofollow" class="mc-link">CDN by MaxCDN</a> | <a href="http://wordpress.org/" class="wp-link">Powered by WordPress</a> | Thanks: <a href="https://jquery.org/members/">Members</a>, <a href="https://jquery.org/sponsors/">Sponsors</a></span>
75-
</p>
76-
</div>
41+
<?php get_template_part( 'footer', 'bottom' ); ?>
7742
</div>
7843
</footer>
7944

jquery/footer.php

Lines changed: 10 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,63 +4,35 @@
44
<footer class="clearfix simple">
55
<div class="constrain">
66
<div class="row">
7-
<div class="eight columns">
8-
<h3><span>Quick Access</span></h3>
9-
<div class="cdn">
10-
<strong>CDN</strong>
11-
<input value="//code.jquery.com/jquery-1.10.2.min.js" readonly>
12-
</div>
13-
<div class="download">
14-
<strong><a href="http://jquery.com/download/">Download jQuery 1.10.2 →</a></strong>
15-
</div>
16-
<ul class="footer-icon-links">
17-
<li><a class="icon-github" href="http://github.com/jquery/jquery">GitHub <small>jQuery <br>Source</small></a></li>
18-
<li><a class="icon-group" href="http://forum.jquery.com">Forum <small>Community <br>Support</small></a></li>
19-
<li><a class="icon-warning-sign" href="http://bugs.jquery.com">Bugs <small>Issue <br>Tracker</small></a></li>
20-
</ul>
21-
</div>
22-
23-
<div class="four columns">
7+
<div class="six columns offset-by-three">
248
<h3><span>Books</span></h3>
259
<ul class="books">
2610
<li>
2711
<a href="http://www.packtpub.com/learning-jquery-with-simple-javascript-techniques-fourth-edition/book">
28-
<span class="bottom"><img src="<?php echo get_template_directory_uri(); ?>/content/books/learning-jquery-4th-ed.jpg" alt="Learning jQuery 4th Edition by Karl Swedberg and Jonathan Chaffer" width="92" height="114" /></span>
29-
<strong>Learning jQuery Fourth Edition</strong><br />
12+
<img src="<?php echo get_template_directory_uri(); ?>/content/books/learning-jquery-4th-ed.jpg" alt="Learning jQuery 4th Edition by Karl Swedberg and Jonathan Chaffer" width="92" height="114">
13+
Learning jQuery Fourth Edition
3014
<cite>Karl Swedberg and Jonathan Chaffer</cite>
3115
</a>
3216
</li>
3317
<li>
34-
<a href="http://www.manning.com/affiliate/idevaffiliate.php?id=648_176">
35-
<span><img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-in-action.jpg" alt="jQuery in Action by Bear Bibeault and Yehuda Katz" width="92" height="114" /></span>
36-
<strong>jQuery in Action</strong><br />
37-
<cite>Bear Bibeault and Yehuda Katz</cite>
18+
<a href="http://www.manning.com/derosa?a_aid=141d9491&a_bid=bdd5b7ad">
19+
<img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-in-action.jpg" alt="jQuery in Action by Bear Bibeault, Yehuda Katz, and Aurelio De Rosa" width="92" height="114">
20+
jQuery in Action
21+
<cite>Bear Bibeault, Yehuda Katz, and Aurelio De Rosa</cite>
3822
</a>
3923
</li>
4024
<li>
4125
<a href="http://www.syncfusion.com/resources/techportal/ebooks/jquery?utm_medium=BizDev-jQuery.org0513">
42-
<span><img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-succinctly.jpg" alt="jQuery Succinctly by Cody Lindley" width="92" height="114" /></span>
43-
<strong>jQuery Succinctly</strong><br />
26+
<img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-succinctly.jpg" alt="jQuery Succinctly by Cody Lindley" width="92" height="114">
27+
jQuery Succinctly
4428
<cite>Cody Lindley</cite>
4529
</a>
4630
</li>
4731
</ul>
4832
</div>
4933
</div>
5034

51-
<div id="legal">
52-
<ul class="footer-site-links">
53-
<li><a class="icon-pencil" href="http://learn.jquery.com/">Learning Center</a></li>
54-
<li><a class="icon-group" href="http://forum.jquery.com/">Forum</a></li>
55-
<li><a class="icon-wrench" href="http://api.jquery.com/">API</a></li>
56-
<li><a class="icon-twitter" href="http://twitter.com/jquery">Twitter</a></li>
57-
<li><a class="icon-comments" href="http://irc.jquery.org/">IRC</a></li>
58-
</ul>
59-
<p class="copyright">
60-
Copyright <?php echo date('Y'); ?> <a href="https://jquery.org/team/">The jQuery Foundation</a>.<br>
61-
<span class="sponsor-line"><a href="http://mediatemple.net" rel="noindex,nofollow" class="mt-link">Web hosting by Media Temple</a> | <a href="http://www.maxcdn.com" rel="noindex,nofollow" class="mc-link">CDN by MaxCDN</a> | <a href="http://wordpress.org/" class="wp-link">Powered by WordPress</a> | Thanks: <a href="https://jquery.org/members/">Members</a>, <a href="https://jquery.org/sponsors/">Sponsors</a></span>
62-
</p>
63-
</div>
35+
<?php get_template_part( 'footer', 'bottom' ); ?>
6436
</div>
6537
</footer>
6638

jquery/header.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
3434
<script>window.jQuery || document.write(unescape('%3Cscript src="<?php echo get_template_directory_uri(); ?>/js/jquery-1.9.1.min.js"%3E%3C/script%3E'))</script>
35-
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery-migrate-1.1.1.min.js"></script>
3635

3736
<script src="<?php echo get_template_directory_uri(); ?>/js/plugins.js"></script>
3837
<script src="<?php echo get_template_directory_uri(); ?>/js/main.js"></script>
@@ -79,9 +78,11 @@
7978
</li>
8079
<li class="dropdown"><a href="http://events.jquery.org/">Events</a>
8180
<ul class="wide">
82-
<li><a href="http://events.jquery.org/2014/san-diego/">Feb 12-13 | jQuery San Diego</a></li>
83-
<li><a href="http://www.gentics.com/jquery-europe">Feb 28-Mar 1 | jQuery Europe</a></li>
84-
<li><a href="http://jqueryuk.com">May 16 | jQuery UK</a></li>
81+
<li><a href="http://appendto.com/what-we-do/training/schedule/jquery-virtual-training-april-2014/">Apr 16-17 | jQuery Virtual Training</a></li>
82+
<li><a href="http://jqueryuk.com/?utm_source=jqueryorg&utm_medium=banner&utm_campaign=jqueryorgbanner">May 16 | jQuery UK</a></li>
83+
<li><a href="http://appendto.com/what-we-do/training/schedule/jquery-virtual-training-june-2014/">Jun 17-19 | jQuery Virtual Training</a></li>
84+
<li><a href="http://events.jquery.org/2014/chicago/">Sep 12-13 | jQuery Chicago</a></li>
85+
<li><a href="http://2014.cssdevconf.com/">Oct 13-15 | CSS Dev Conf 2014</a></li>
8586
</ul>
8687
</li>
8788
<li class="dropdown"><a href="https://jquery.org/support/">Support</a>

jquery/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* All sites
33
*/
44
$(function() {
5-
// CDN auto-select-all
6-
$( ".cdn input" ).on( "click", function() {
5+
// copyable auto-select-all
6+
$( ".copyable" ).on( "click", function() {
77
if ( typeof this.select === "function" ) {
88
this.select();
99
}

0 commit comments

Comments
 (0)