2017-01-01 14:45:37 +03:00
|
|
|
//- 💫 INCLUDES > SCRIPTS
|
|
|
|
|
2018-04-29 03:06:46 +03:00
|
|
|
if IS_PAGE || SECTION == "index"
|
|
|
|
script(type="text/x-thebe-config")
|
|
|
|
| { bootstrap: true, binderOptions: { repo: "#{KERNEL_BINDER}"},
|
|
|
|
| kernelOptions: { name: "#{KERNEL_PYTHON}" }}
|
2017-10-03 15:18:49 +03:00
|
|
|
|
2018-04-29 03:06:46 +03:00
|
|
|
- scripts = ["vendor/prism.min", "vendor/vue.min"]
|
|
|
|
- if (SECTION == "universe") scripts.push("vendor/vue-markdown.min")
|
|
|
|
- if (quickstart) scripts.push("vendor/quickstart.min")
|
|
|
|
- if (IS_PAGE) scripts.push("vendor/in-view.min")
|
|
|
|
- if (IS_PAGE || SECTION == "index") scripts.push("vendor/thebelab.custom.min")
|
2017-10-03 15:18:49 +03:00
|
|
|
|
2018-04-29 03:06:46 +03:00
|
|
|
for script in scripts
|
|
|
|
script(src="/assets/js/" + script + ".js")
|
|
|
|
script(src="/assets/js/main.js?v#{V_JS}" type=(environment == "deploy") ? null : "module")
|
2017-05-17 13:03:42 +03:00
|
|
|
|
2018-04-29 03:06:46 +03:00
|
|
|
if environment == "deploy"
|
|
|
|
script(src="https://www.google-analytics.com/analytics.js", async)
|
|
|
|
script
|
2017-10-30 16:06:25 +03:00
|
|
|
| window.ga=window.ga||function(){
|
|
|
|
| (ga.q=ga.q||[]).push(arguments)}; ga.l=+new Date;
|
|
|
|
| ga('create', '#{ANALYTICS}', 'auto'); ga('send', 'pageview');
|
|
|
|
|
2018-04-29 03:06:46 +03:00
|
|
|
if IS_PAGE
|
|
|
|
script(src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer)
|
|
|
|
script
|
2017-10-03 15:18:49 +03:00
|
|
|
| ((window.gitter = {}).chat = {}).options = {
|
|
|
|
| useStyles: false,
|
|
|
|
| activationElement: '.js-gitter-button',
|
|
|
|
| targetElement: '.js-gitter',
|
|
|
|
| room: '!{SOCIAL.gitter}'
|
|
|
|
| };
|