This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_includes/scripts.html.twig

17 lines
840 B
Twig
Raw Normal View History

2017-12-28 16:37:56 +00:00
<script>
document.querySelector('.nav-toggle').onclick = function() {
2018-02-26 01:32:45 +00:00
document.querySelector('.navbar nav').classList.toggle('hidden').toggle('block');
2017-12-28 16:37:56 +00:00
return false;
};
</script>
2017-12-26 10:26:10 +00:00
{% if site.google_analytics_tracking_id %}
<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','//www.google-analytics.com/analytics.js','ga'); ga('create', '{{ site.google_analytics_tracking_id }}', 'auto'); ga('send', 'pageview');</script>
{% endif %}
2018-02-28 17:22:57 +00:00
{% if page.has_tweets %}
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
{% endif %}
2017-12-26 10:26:10 +00:00
{% block scripts %}{% endblock %}