refactor: Move script parts around
- Run setup function in global script - Move common script assets to hippie main template - Remove unused scrcipt from components page
This commit is contained in:
parent
6cfe5b21e1
commit
8942dc3632
10 changed files with 17 additions and 52 deletions
|
|
@ -189,19 +189,6 @@ tags:
|
|||
{% block script %}
|
||||
{{ super() }}
|
||||
<script src="{{ pageBase }}vendor/jq-sticky-anything.min.js"></script>
|
||||
{# <script src="{{ pageBase }}js/{{hippie.jsFile}}.min.js" type="text/javascript"></script> #}
|
||||
<!-- build:js js/main.concat.min.js -->
|
||||
<script src="{{ pageBase }}js/variables.js"></script>
|
||||
<script src="{{ pageBase }}js/functions.js"></script>
|
||||
<script src="{{ pageBase }}js/global.js"></script>
|
||||
{{ log.asset(true) }}
|
||||
{{ log.log('Assets loaded.', assetsLoaded) }}
|
||||
<script>
|
||||
// Page specific
|
||||
// ------------------------------------------------------------------------------
|
||||
$(document).ready(function () {
|
||||
// jq-sticky-anything
|
||||
$('#js_demo_fix').stickThis({pushup: '#js_demo_stop'});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue