Skip to content

Commit

Permalink
Update to Jquery 3.6.0 (mmistakes#3254)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsolesen authored May 27, 2022
1 parent a499b0d commit df97788
Show file tree
Hide file tree
Showing 5 changed files with 992 additions and 118 deletions.
12 changes: 6 additions & 6 deletions assets/js/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
jQuery plugin settings and other scripts
========================================================================== */

$(document).ready(function() {
$(function() {
// FitVids init
$("#main").fitVids();

// Sticky sidebar
var stickySideBar = function() {
var show =
$(".author__urls-wrapper button").length === 0
$(".author__urls-wrapper").find("button").length === 0
? $(window).width() > 1024 // width should match $large Sass variable
: !$(".author__urls-wrapper button").is(":visible");
: !$(".author__urls-wrapper").find("button").is(":visible");
if (show) {
// fix
$(".sidebar").addClass("sticky");
Expand All @@ -28,9 +28,9 @@ $(document).ready(function() {
});

// Follow menu drop down
$(".author__urls-wrapper button").on("click", function() {
$(".author__urls-wrapper").find("button").on("click", function() {
$(".author__urls").toggleClass("is--visible");
$(".author__urls-wrapper button").toggleClass("open");
$(".author__urls-wrapper").find("button").toggleClass("open");
});

// Close search screen with Esc key
Expand All @@ -49,7 +49,7 @@ $(document).ready(function() {
$(".initial-content").toggleClass("is--hidden");
// set focus on input
setTimeout(function() {
$(".search-content input").focus();
$(".search-content").find("input").focus();
}, 400);
});

Expand Down
2 changes: 1 addition & 1 deletion assets/js/main.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit df97788

Please # to comment.