add ipfs detection script

This commit is contained in:
Sydney Bizkut committed 2020-02-13 11:33:20 -08:00
1 parent 2ca7581ee6
commit 20b45249ab
2 files changed
+28

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
<script src="/ipfs.js"></script>
<!-- jQuery Version 1.11.0 -->
<script src="js/jquery-1.11.0.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
{{ if isset .Site.Params "googleAnalytics" }}
<!-- Google Analytics -->
<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.Params.googleAnalytics }}', 'auto');
ga('send', 'pageview');
</script>
{{ end }}
+2
View File
@@ -0,0 +1,2 @@
if (window.ipfs !== undefined)
window.location.href = "ipns://" + window.location.host;