Skip to content

Commit 2c8e974

Browse files
committed
IMPORT jquery updates.
1 parent 72658c0 commit 2c8e974

15 files changed

+139
-595
lines changed
3.6 KB
Loading

jquery/css/base.css

Lines changed: 38 additions & 530 deletions
Large diffs are not rendered by default.

jquery/footer-mobile.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
<h3><span>Quick Access</span></h3>
99
<div class="cdn">
1010
<strong>CDN <em>CSS</em></strong>
11-
<input value="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css">
11+
<input value="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
1212
</div>
1313
<div class="cdn">
1414
<strong>CDN <em>JS</em></strong>
1515
<input value="http://code.jquery.com/jquery-1.9.1.min.js">
1616
</div>
1717
<div class="cdn">
1818
<strong>CDN <em>JS</em></strong>
19-
<input value="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js">
19+
<input value="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js">
2020
</div>
2121
<div class="download">
22-
<strong>Download jQuery Mobile 1.3.0:</strong>
23-
<span><a href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.zip">Zip File <em>(JavaScript, CSS, and images)</em></a></span>
22+
<strong>Download jQuery Mobile 1.3.2:</strong>
23+
<span><a href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.zip">Zip File <em>(JavaScript, CSS, and images)</em></a></span>
2424
</div>
2525
<ul class="footer-icon-links">
2626
<li><a class="icon-github" href="http://github.com/jquery/jquery-mobile">GitHub <small>jQuery Mobile <br>Source</small></a></li>
@@ -40,7 +40,7 @@
4040
</ul>
4141
<p class="copyright">
4242
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://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>
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>
4444
</p>
4545
</div>
4646
</div>

jquery/footer-qunit.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
<h3><span>Quick Access</span></h3>
99
<div class="cdn">
1010
<strong>CDN <em>CSS</em></strong>
11-
<input value="http://code.jquery.com/qunit/qunit-1.11.0.css">
11+
<input value="http://code.jquery.com/qunit/qunit-1.12.0.css">
1212
</div>
1313
<div class="cdn">
1414
<strong>CDN <em>JS</em></strong>
15-
<input value="http://code.jquery.com/qunit/qunit-1.11.0.js">
15+
<input value="http://code.jquery.com/qunit/qunit-1.12.0.js">
1616
</div>
1717
<div class="download">
18-
<strong>Download QUnit 1.11.0:</strong>
19-
<span><a href="http://code.jquery.com/qunit/qunit-1.11.0.js">qunit.js</a><a href="http://code.jquery.com/qunit/qunit-1.11.0.css">qunit.css</a></span>
18+
<strong>Download QUnit 1.12.0:</strong>
19+
<span><a href="http://code.jquery.com/qunit/qunit-1.12.0.js">qunit.js</a><a href="http://code.jquery.com/qunit/qunit-1.12.0.css">qunit.css</a></span>
2020
</div>
2121
<ul class="footer-icon-links">
2222
<li><a class="icon-github" href="http://github.com/jquery/qunit">GitHub <small>QUnit <br>Source</small></a></li>
@@ -36,7 +36,7 @@
3636
</ul>
3737
<p class="copyright">
3838
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://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>
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>
4040
</p>
4141
</div>
4242
</div>

jquery/footer-ui.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
<h3><span>Quick Access</span></h3>
99
<div class="cdn">
1010
<strong>CDN <em>CSS</em></strong>
11-
<input value="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css">
11+
<input value="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
1212
</div>
1313
<div class="cdn">
1414
<strong>CDN <em>JS</em></strong>
1515
<input value="http://code.jquery.com/jquery-1.9.1.js">
1616
</div>
1717
<div class="cdn">
1818
<strong>CDN <em>JS</em></strong>
19-
<input value="http://code.jquery.com/ui/1.10.2/jquery-ui.js">
19+
<input value="http://code.jquery.com/ui/1.10.3/jquery-ui.js">
2020
</div>
2121
<div class="download">
22-
<div><strong>Download jQuery UI 1.10.2 (for jQuery 1.6+):</strong></div>
22+
<div><strong>Download jQuery UI 1.10.3 (for jQuery 1.6+):</strong></div>
2323
<span>
24-
<a href="http://jqueryui.com/resources/download/jquery-ui-1.10.2.zip">Development Bundle</a>
25-
<a href="http://jqueryui.com/resources/download/jquery-ui-themes-1.10.2.zip">Themes</a>
24+
<a href="http://jqueryui.com/resources/download/jquery-ui-1.10.3.zip">Development Bundle</a>
25+
<a href="http://jqueryui.com/resources/download/jquery-ui-themes-1.10.3.zip">Themes</a>
2626
<a href="http://jqueryui.com/download/">Download Builder →</a>
2727
</span>
2828
</div>
@@ -64,7 +64,7 @@
6464
</ul>
6565
<p class="copyright">
6666
Copyright <?php echo date('Y'); ?> <a href="https://jquery.org/team/">The jQuery Foundation</a>.<br>
67-
<span class="sponsor-line"><a href="http://mediatemple.net" rel="noindex,nofollow" class="mt-link">Web hosting by Media Temple</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>
67+
<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>
6868
</p>
6969
</div>
7070
</div>

jquery/footer.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<h3><span>Quick Access</span></h3>
99
<div class="cdn">
1010
<strong>CDN</strong>
11-
<input value="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
11+
<input value="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
1212
</div>
1313
<div class="download">
14-
<strong><a href="http://jquery.com/download/">Download jQuery 1.9.1 →</a></strong>
14+
<strong><a href="http://jquery.com/download/">Download jQuery 1.10.2 →</a></strong>
1515
</div>
1616
<ul class="footer-icon-links">
1717
<li><a class="icon-github" href="http://github.com/jquery/jquery">GitHub <small>jQuery <br>Source</small></a></li>
@@ -38,9 +38,9 @@
3838
</a>
3939
</li>
4040
<li>
41-
<a href="http://jqueryenlightenment.com/">
42-
<span><img src="<?php echo get_template_directory_uri(); ?>/content/books/jquery-enlightenment.jpg" alt="jQuery Enlightenment by Cody Lindley" width="92" height="114" /></span>
43-
<strong>jQuery Enlightenment</strong><br />
41+
<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 />
4444
<cite>Cody Lindley</cite>
4545
</a>
4646
</li>
@@ -58,7 +58,7 @@
5858
</ul>
5959
<p class="copyright">
6060
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://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>
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>
6262
</p>
6363
</div>
6464
</div>

jquery/functions.jquery.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,27 @@ function jq_content_nav() {
142142
'total' => $wp_query->max_num_pages
143143
)) . '</div>';
144144
}
145+
146+
function jq_banner() {
147+
echo '<div id="broadcast"></div>';
148+
}
149+
150+
function jq_post_heirarchy() {
151+
global $post;
152+
$current = $post;
153+
$parents = array();
154+
while ( $current->post_parent ) {
155+
$current = get_post( $current->post_parent );
156+
$parents[] = '<a href="' . get_permalink( $current->ID ) . '">' .
157+
$current->post_title . '</a>';
158+
}
159+
160+
if ( empty( $parents ) ) {
161+
return '';
162+
}
163+
164+
return '' .
165+
'<div class="post-heirarchy">' .
166+
'Posted in: ' . implode( ' > ', array_reverse( $parents ) ) .
167+
'</div>';
168+
}

jquery/header.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,22 @@
7878
</ul>
7979
</li>
8080
<li class="dropdown"><a href="http://events.jquery.org/">Events</a>
81-
<ul>
82-
<li><a href="http://events.jquery.org/2013/uk/">UK</a></li>
83-
<li><a href="http://events.jquery.org/2013/portland/">Portland</a></li>
81+
<ul class="wide">
82+
<li><a href="http://events.jquery.org/2013/austin/#training">Sep 9 | jQuery Training Austin</a></li>
83+
<li><a href="http://events.jquery.org/2013/austin/">Sep 10-11 | jQuery Conference Austin</a></li>
84+
<li><a href="http://jquery.itmozg.ru/">Oct 15 | jQuery Russia 2013</a></li>
85+
<li><a href="http://2013.cssdevconf.com/">Oct 21-22 | CSS Dev Conf</a></li>
86+
<li><a href="http://javascriptsummit.com/">Nov 19-21 | JavaScript Summit</a></li>
8487
</ul>
8588
</li>
86-
<li class="dropdown"><a href="#">Support</a>
89+
<li class="dropdown"><a href="https://jquery.org/support/">Support</a>
8790
<ul>
8891
<li><a href="http://learn.jquery.com/">Learning Center</a></li>
8992
<li><a href="http://try.jquery.com/">Try jQuery</a></li>
9093
<li><a href="http://irc.jquery.org/">IRC/Chat</a></li>
9194
<li><a href="http://forum.jquery.com/">Forums</a></li>
9295
<li><a href="http://stackoverflow.com/tags/jquery/info">Stack Overflow</a></li>
96+
<li><a href="https://jquery.org/support/">Commercial Support</a></li>
9397
</ul>
9498
</li>
9599
<li class="dropdown"><a href="https://jquery.org/">jQuery Foundation</a>
@@ -111,8 +115,7 @@
111115
<div id="logo-events" class="constrain clearfix">
112116
<h2 class="logo"><a href="/" title="<?php bloginfo( 'name' ); ?>"><?php bloginfo( 'name' ); ?></a></h2>
113117

114-
<!--Ads or events
115-
<aside></aside> -->
118+
<aside><?php jq_banner(); ?></aside>
116119
</div>
117120

118121
<nav id="main" class="constrain clearfix">

jquery/images/logo-maxcdn.png

461 Bytes
Loading

jquery/images/logo-wordpress.png

506 Bytes
Loading

jquery/images/logo-wordpress@2x.png

1.88 KB
Loading

jquery/js/main.js

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,41 @@ $(function() {
88
this.select();
99
}
1010
});
11+
12+
/*
13+
* Change navigation elements for smaller screens
14+
*/
15+
(function() {
16+
17+
// Move the global nav to the footer and collapse to a select menu
18+
var globalLinks = $( "#global-nav .links" ).tinyNav({ header: "Browse..." }),
19+
nav = globalLinks.next(),
20+
container = $( "<div class='tinynav-container'></div>" ),
21+
header = $( "<h3><span>More jQuery Sites</span></h3>" );
22+
23+
container.append( header, nav ).insertBefore( "ul.footer-icon-links" );
24+
25+
// Collapse the site navigation to a select menu
26+
$( "#menu-top" ).tinyNav({ header: "Navigate..." });
27+
})();
28+
29+
// Banner ads
30+
(function() {
31+
window.ados = {
32+
run: [function() {
33+
ados_add_placement( 5449, 32018, "broadcast", 1314 );
34+
ados_load();
35+
}]
36+
};
37+
38+
$.getScript( "//engine.adzerk.net/ados.js" );
39+
})();
1140
});
1241

1342

43+
44+
45+
1446
/*
1547
* API sites
1648
*/
@@ -333,27 +365,3 @@ $(function() {
333365
}).click();
334366
}
335367
});
336-
337-
/*
338-
* Creating navigation elements for smaller-width screens using tinyNav and Chosen
339-
*/
340-
$(function() {
341-
342-
// For the site-specific navigation, we just need to create and style the select
343-
var $siteMenu = $("#menu-top").tinyNav(),
344-
$siteNav = $siteMenu.next();
345-
346-
// In order for Chosen to work as we'd like,
347-
// we have to insert the placeholder attribute, an empty option, and select it before instantiation
348-
$siteNav.attr("data-placeholder", "Navigate...").prepend("<option></option>").val("").chosen();
349-
350-
// For the global site navigation, we move the generated control to the
351-
// site footer so it doesn't appear above the header
352-
var $globalLinks = $("#global-nav .links").tinyNav(),
353-
$nav = $globalLinks.next(),
354-
$container = $("<div class='tinynav-container'></div>"),
355-
$header = $("<h3><span>More jQuery Sites</span></h3>");
356-
357-
$container.append( $header, $nav ).insertBefore("ul.footer-icon-links");
358-
$nav.attr("data-placeholder", "Browse...").prepend("<option></option>").val("").chosen();
359-
});

jquery/js/plugins.js

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery/menu-header.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ function menu_header_learn_jquery_com() {
3232
'http://learn.jquery.com/style-guide' => 'Style Guide',
3333
);
3434
}
35+
36+
function menu_header_codeorigin_jquery_com() {
37+
return array(
38+
'/jquery/' => 'jQuery Core',
39+
'/ui/' => 'jQuery UI',
40+
'/mobile/' => 'jQuery Mobile',
41+
'/color/' => 'jQuery Color',
42+
'/qunit/' => 'QUnit'
43+
);
44+
}
45+
3546
function menu_header_qunitjs_com() {
3647
return array(
3748
'http://qunitjs.com/' => 'Home',
@@ -79,8 +90,9 @@ function menu_header_jquery_org() {
7990
'https://jquery.org/join/' => 'Join',
8091
'https://jquery.org/members/' => 'Members',
8192
'https://jquery.org/sponsors/' => 'Sponsors',
93+
'https://jquery.org/support/' => 'Support',
8294
'https://jquery.org/team/' => 'Team',
83-
'https://jquery.org/meeting/' => 'Meetings',
95+
'http://meetings.jquery.org/' => 'Meetings',
8496
'https://jquery.org/history/' => 'History',
8597
'http://brand.jquery.org/' => 'Brand Guide',
8698
'https://jquery.org/donate/' => 'Donate',

jquery/searchform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<label>
99
<span class="visuallyhidden">Search <?php bloginfo( 'name' ); ?></span>
1010
<input type="text" name="s" value="<?php echo get_search_query(); ?>"
11-
placeholder="Search <?php bloginfo( 'name' ); ?>">
11+
placeholder="Search">
1212
</label>
1313
</form>

0 commit comments

Comments
 (0)