Skip to content

Commit ae77228

Browse files
authored
Update to Jquery 3.6.0 (mmistakes#3254)
1 parent 6be1d44 commit ae77228

File tree

5 files changed

+992
-118
lines changed

5 files changed

+992
-118
lines changed

assets/js/_main.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
jQuery plugin settings and other scripts
33
========================================================================== */
44

5-
$(document).ready(function() {
5+
$(function() {
66
// FitVids init
77
$("#main").fitVids();
88

99
// Sticky sidebar
1010
var stickySideBar = function() {
1111
var show =
12-
$(".author__urls-wrapper button").length === 0
12+
$(".author__urls-wrapper").find("button").length === 0
1313
? $(window).width() > 1024 // width should match $large Sass variable
14-
: !$(".author__urls-wrapper button").is(":visible");
14+
: !$(".author__urls-wrapper").find("button").is(":visible");
1515
if (show) {
1616
// fix
1717
$(".sidebar").addClass("sticky");
@@ -28,9 +28,9 @@ $(document).ready(function() {
2828
});
2929

3030
// Follow menu drop down
31-
$(".author__urls-wrapper button").on("click", function() {
31+
$(".author__urls-wrapper").find("button").on("click", function() {
3232
$(".author__urls").toggleClass("is--visible");
33-
$(".author__urls-wrapper button").toggleClass("open");
33+
$(".author__urls-wrapper").find("button").toggleClass("open");
3434
});
3535

3636
// Close search screen with Esc key
@@ -49,7 +49,7 @@ $(document).ready(function() {
4949
$(".initial-content").toggleClass("is--hidden");
5050
// set focus on input
5151
setTimeout(function() {
52-
$(".search-content input").focus();
52+
$(".search-content").find("input").focus();
5353
}, 400);
5454
});
5555

assets/js/main.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)