2017-01-01 14:45:37 +03:00
|
|
|
//- 💫 INCLUDES > SCRIPTS
|
|
|
|
|
2017-10-03 15:18:49 +03:00
|
|
|
if quickstart
|
|
|
|
script(src="/assets/js/quickstart.min.js")
|
|
|
|
|
|
|
|
if IS_PAGE
|
|
|
|
script(src="/assets/js/in-view.min.js")
|
|
|
|
|
|
|
|
if HAS_MODELS
|
|
|
|
script(src="/assets/js/chart.min.js")
|
|
|
|
|
|
|
|
if environment == "deploy"
|
|
|
|
script(async src="https://www.google-analytics.com/analytics.js")
|
|
|
|
|
|
|
|
script(src="/assets/js/prism.min.js")
|
2017-05-17 12:40:45 +03:00
|
|
|
script(src="/assets/js/main.js?v#{V_JS}")
|
2017-01-01 14:45:37 +03:00
|
|
|
|
2017-10-03 15:18:49 +03:00
|
|
|
script
|
|
|
|
| new ProgressBar('.js-progress');
|
|
|
|
|
|
|
|
if changelog
|
|
|
|
| new Changelog('!{SOCIAL.github}', 'spacy');
|
|
|
|
|
2017-05-17 13:03:42 +03:00
|
|
|
if quickstart
|
2017-10-03 15:18:49 +03:00
|
|
|
| new Quickstart("#qs");
|
2017-05-17 13:03:42 +03:00
|
|
|
|
2017-10-03 15:18:49 +03:00
|
|
|
if IS_PAGE
|
|
|
|
| new SectionHighlighter('data-section', 'data-nav');
|
|
|
|
| new GitHubEmbed('!{SOCIAL.github}', 'data-gh-embed');
|
|
|
|
| ((window.gitter = {}).chat = {}).options = {
|
|
|
|
| useStyles: false,
|
|
|
|
| activationElement: '.js-gitter-button',
|
|
|
|
| targetElement: '.js-gitter',
|
|
|
|
| room: '!{SOCIAL.gitter}'
|
|
|
|
| };
|
2017-01-01 14:45:37 +03:00
|
|
|
|
2017-10-03 15:18:49 +03:00
|
|
|
if HAS_MODELS
|
|
|
|
| new ModelLoader('!{MODELS_REPO}', !{JSON.stringify(CURRENT_MODELS)}, !{JSON.stringify(MODEL_LICENSES)}, !{JSON.stringify(MODEL_ACCURACY)});
|
2017-01-01 14:45:37 +03:00
|
|
|
|
2017-10-03 15:18:49 +03:00
|
|
|
if environment == "deploy"
|
2017-01-01 14:45:37 +03:00
|
|
|
| window.ga=window.ga||function(){
|
|
|
|
| (ga.q=ga.q||[]).push(arguments)}; ga.l=+new Date;
|
|
|
|
| ga('create', '#{ANALYTICS}', 'auto'); ga('send', 'pageview');
|
|
|
|
|
2017-10-03 15:18:49 +03:00
|
|
|
if IS_PAGE
|
|
|
|
script(src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer)
|