This commit is contained in:
ポール ウェッブ 2019-05-13 15:00:44 -05:00
parent 6c9219051a
commit 47deafe2b7
3 changed files with 12 additions and 12 deletions

View file

@ -8,7 +8,6 @@ import html from "choo/html";
// U T I L S
import config from "~root/config";
import editLink from "./edit-link";
import emailSubscribe from "./email-subscribe";
@ -42,15 +41,5 @@ export default state => {
</footer>
<script src="/assets/scripts/app.js"></script>
<script>
(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", "${config.ga}", "auto");
ga("send", "pageview");
</script>
`;
};

View file

@ -8,6 +8,7 @@ import asyncHtml from "choo-async/html";
// U T I L S
import config from "~root/config";
import footer from "./footer";
import navigation from "./navigation";
@ -28,5 +29,15 @@ export default children => (state, emit) => {
${children.default(state, emit)}
${footer(state, emit)}
</main>
<script>
(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", "${config.ga}", "auto");
ga("send", "pageview");
</script>
`;
};

View file

@ -66,6 +66,6 @@ function reinitJets() {
contentTag,
searchTag: "#input-search"
});
document.getElementById("input-search").focus();
}