From 3f3750ccb773bab32287c32bf537553bf70ecc5d Mon Sep 17 00:00:00 2001 From: Chris Pan Date: Wed, 13 Apr 2016 17:43:39 +0800 Subject: [PATCH] Use strict mode of javascript. --- app/src/javascripts/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/javascripts/main.js b/app/src/javascripts/main.js index 010ee40..ebe679c 100644 --- a/app/src/javascripts/main.js +++ b/app/src/javascripts/main.js @@ -1,8 +1,11 @@ +'use strict'; + // load dependencies -var $ = jQuery = require('jquery'); +var $ = window.$ = window.jQuery = require('jquery'); var Swiper = require('swiper/dist/js/swiper.jquery.js'); var animationControl = require('./animation-control.js'); + $(document).ready(function () { var bgMusic = $('audio').get(0); var $btnMusic = $('.btn-music');