diff --git a/resources/javascript/main.js b/resources/javascript/main.js index 96cba0a..09cba5b 100644 --- a/resources/javascript/main.js +++ b/resources/javascript/main.js @@ -3,12 +3,21 @@ scrollToTop: function() { // NOTE: cannot be an arrow function since the this context is dynamically bound. $("html, body").animate({ - scrollTop: Math.max(0, $(this).offset().top + 1), + scrollTop: Math.max( + 0, + $(this).offset().top + 1, + ), }); }, }); - const sharingLinkBase = "https://joelpurra.com/projects/multi-video-frames/", + const + log = (...args) => { + // eslint-disable-next-line no-console + console.log("multi-video-frames", ...args); + }, + + sharingLinkBase = "https://joelpurra.com/projects/multi-video-frames/", $window = $(window), $controls = $("#controls"), $addUrl = $("#addUrl"), @@ -34,11 +43,15 @@ }, addVideoPanel = ($urlInput) => { - const $videoPanel = $("