1
Fork 0

Use dedicated shareon file

This means the main JS file is smaller
This commit is contained in:
Jake Howard 2021-07-03 12:20:29 +01:00
parent ce63774cbd
commit ef5b5b7540
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 3 additions and 3 deletions

View file

@ -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 }}

View file

@ -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/

View file

@ -1,5 +1,4 @@
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) {