Remove unused variables

This commit is contained in:
Michael Rose 2020-03-10 19:00:43 -04:00
parent a2385e2584
commit f9b4ddb869

View file

@ -11,7 +11,6 @@ $(document).ready(function() {
var numOfItems = 0; var numOfItems = 0;
var totalSpace = 0; var totalSpace = 0;
var closingTime = 1000;
var breakWidths = []; var breakWidths = [];
// Get initial state // Get initial state
@ -21,7 +20,7 @@ $(document).ready(function() {
breakWidths.push(totalSpace); breakWidths.push(totalSpace);
}); });
var availableSpace, numOfVisibleItems, requiredSpace, timer; var availableSpace, numOfVisibleItems, requiredSpace;
function check() { function check() {
// Get instant state // Get instant state
@ -63,21 +62,7 @@ $(document).ready(function() {
$btn.on("click", function() { $btn.on("click", function() {
$hlinks.toggleClass("hidden"); $hlinks.toggleClass("hidden");
$(this).toggleClass("close"); $(this).toggleClass("close");
// clearTimeout(timer);
}); });
// $hlinks
// .on("mouseleave", function() {
// // Mouse has left, start the timer
// timer = setTimeout(function() {
// $hlinks.addClass("hidden");
// $btn.toggleClass("close");
// }, closingTime);
// })
// .on("mouseenter", function() {
// // Mouse is back, cancel the timer
// clearTimeout(timer);
// });
check(); check();
}); });