From 985f585164f84437d265b362daf880c572434b4d Mon Sep 17 00:00:00 2001 From: Joel Purra Date: Thu, 15 Apr 2021 17:06:37 +0200 Subject: [PATCH] Fix linebreaks/indentation --- resources/javascript/main.js | 99 +++++++++++++++++++++++++++--------- 1 file changed, 75 insertions(+), 24 deletions(-) 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 = $("