Verified Commit ef5b5b75 authored by Jake Howard's avatar Jake Howard
Browse files

Use dedicated shareon file

This means the main JS file is smaller
parent ce63774c
Pipeline #53 passed with stages
in 3 minutes and 15 seconds
......@@ -42,6 +42,8 @@
{{ partial "script_async.html" "js/app.js" }}
{{ partial "script_async.html" "js/shareon.js" }}
{{ block "scripts_extra" . }}{{ end }}
{{ if not .Site.IsServer }}
......
......@@ -20,6 +20,7 @@ cp $BASEDIR/node_modules/shareon/dist/shareon.min.css $STATIC_BUILD/css/shareon.
cp -r $STATIC_SRC/js/ $STATIC_BUILD/js/
cp $BASEDIR/node_modules/jquery/dist/jquery.min.js $STATIC_BUILD/js/jquery.min.js
cp $BASEDIR/node_modules/shareon/dist/shareon.min.js $STATIC_BUILD/js/shareon.js
cp $BASEDIR/node_modules/lightgallery/dist/js/lightgallery-all.min.js $STATIC_BUILD/js/lightgallery.min.js
cp $BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $STATIC_BUILD/js/bootstrap.min.js
cp $BASEDIR/node_modules/elevator.js/demo/music/*.mp3 $STATIC_BUILD/audio/
......
const Elevator = require('elevator.js');
const shareon = require('shareon');
function waitFor(obj, property, callback) {
// Wait for a property to exist on window before running callback
......@@ -53,8 +52,6 @@ $(document).ready(function() {
endAudio: '/audio/ding.mp3',
preloadAudio: false,
});
shareon();
});
function scrollTo(offset) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment