diff options
author | Jose <jose@zeroc.com> | 2015-01-14 09:22:33 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-01-14 09:22:33 +0100 |
commit | 195454df0895051579cd83d6e64d2308a8f42c16 (patch) | |
tree | 6527548e026a929f410aef51ad467b26c4e8bf2c /js/assets/icejs.js | |
parent | Fix another bug with hello demos. (diff) | |
download | ice-195454df0895051579cd83d6e64d2308a8f42c16.tar.bz2 ice-195454df0895051579cd83d6e64d2308a8f42c16.tar.xz ice-195454df0895051579cd83d6e64d2308a8f42c16.zip |
JavaScript updates to use gulp and add npm and bower packages
Diffstat (limited to 'js/assets/icejs.js')
-rw-r--r-- | js/assets/icejs.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/js/assets/icejs.js b/js/assets/icejs.js index 636106ece87..d214a4f2f6b 100644 --- a/js/assets/icejs.js +++ b/js/assets/icejs.js @@ -11,8 +11,8 @@ $(document).foundation(); -$("#timeout").noUiSlider({range: [0, 2500], start: 0, handles: 1}); -$("#delay").noUiSlider({range: [0, 2500], start: 0, handles: 1}); +$("#timeout").noUiSlider({range: {min: 0, max:2500}, start: 0, handles: 1}); +$("#delay").noUiSlider({range: {min: 0, max:2500}, start: 0, handles: 1}); $("#progress .icon").spin("small"); // @@ -131,3 +131,14 @@ function checkGenerated(files) }); }); } + +// +// Browser sync doesn't work well with HTTPS as it open WS insecure socket and some +// browsers refuse that when document has been loaded from HTTPS. +// +if(document.location.protocol === "http:") +{ + var script = document.createElement("script"); + script.src = "//" + location.hostname + ":3000/browser-sync/browser-sync-client.js"; + $("body").append(script); +} |