From 23d1a3cd63a6e95d08ce4671a43ee13a3100e9b6 Mon Sep 17 00:00:00 2001 From: Enrico Date: Sun, 19 Nov 2017 11:21:20 +0100 Subject: [PATCH] Make script compatible with jQuery 3 jQuery 3 has deprecated .load event in favour of .on("load", eventHandler). --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index b102c82..206a696 100644 --- a/js/main.js +++ b/js/main.js @@ -68,7 +68,7 @@ })(); // divides container once image is loaded - $("li:first-child>img", $turntable).load(function () { + $("li:first-child>img", $turntable).on("load", function () { $(this).parent().addClass('active'); divideContainer($listItems); });