From a3f1d6c6ed3a6cfb5c31fcd30c89eef316d53ee2 Mon Sep 17 00:00:00 2001 From: Florian Schlichting Date: Mon, 16 Jan 2017 23:18:24 +0100 Subject: [PATCH] Update main.js to work with jquery 3 I'm getting "url.indexOf is not a function" errors and source code highlighting is broken. http://stackoverflow.com/questions/37738732/jquery-3-0-url-indexof-error explains why and how to fix it. --- src/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/main.js b/src/js/main.js index 1842037..52ce4fc 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -1,4 +1,4 @@ -$(window).load(function() { +$(window).on('load', function() { var $document = $(document); var $left = $('#left'); var $right = $('#right');