From 74de9ab2a3ee1c8a3ef55e080bb114930967ca18 Mon Sep 17 00:00:00 2001 From: Carlos Cuesta Date: Tue, 8 Nov 2016 17:24:38 +0100 Subject: [PATCH] :art: Include scripts from external file --- src/templates/index.pug | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/templates/index.pug b/src/templates/index.pug index c2ab050..01b57e2 100644 --- a/src/templates/index.pug +++ b/src/templates/index.pug @@ -32,8 +32,4 @@ html p=gitmoji.description include _includes/_footer.pug script. - var statuses = ['joy', 'loved', 'haha', 'sunglasses', 'sexy', 'tongue']; - document.getElementById(statuses[Math.floor(Math.random() * statuses.length)]).style.opacity=1; - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); - ga('create', 'UA-67824860-7', 'auto'); - ga('send', 'pageview'); + include ../scripts/main.js