Skip to content

Commit

Permalink
restore original google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
orsi committed Sep 4, 2020
1 parent e260dcf commit da51fd0
Showing 1 changed file with 24 additions and 28 deletions.
52 changes: 24 additions & 28 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<!DOCTYPE html>
<html itemscope itemtype="https://schema.org/CreativeWork">

<head>
<meta charset="UTF-8" />
<meta charset="UTF-8"/>
<!--
A Dark Room (v1.4)
==================
Expand All @@ -20,7 +19,7 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="https://www.dropbox.com/static/api/dropbox-datastores-1.1-latest.js" type="text/javascript"></script>
<script>
if (!window.jQuery) {
if(!window.jQuery) {
document.write('<script src="lib/jquery.min.js"><\/script>')
}
</script>
Expand All @@ -29,25 +28,25 @@
<script src="lib/jquery.event.swipe.js"></script>
<script src="lib/base64.js"></script>
<script src="lib/translate.js"></script>

<script src="lang/langs.js"></script>

<script>
// try to read "lang" param's from url
var lang = decodeURIComponent((new RegExp('[?|&]lang=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [, ""])[1].replace(/\+/g, '%20')) || null;
var lang = decodeURIComponent((new RegExp('[?|&]lang=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
// if no language requested, try to read it from local storage
if (!lang) {
if(!lang){
try {
lang = localStorage.lang;
} catch (e) { }
} catch(e) {}
}
// if a language different than english requested, load all translations
if (lang && lang != 'en') {
document.write('<script src="lang/' + lang + '/strings.js"><\/script>');
document.write('<link rel="stylesheet" type="text/css" href="lang/' + lang + '/main.css" \/>');
if(lang && lang != 'en'){
document.write('<script src="lang/'+lang+'/strings.js"><\/script>');
document.write('<link rel="stylesheet" type="text/css" href="lang/'+lang+'/main.css" \/>');
}
</script>

<script src="script/Button.js"></script>
<script src="script/audioLibrary.js"></script>
<script src="script/audio.js"></script>
Expand All @@ -71,40 +70,38 @@
<script src="script/events/outside.js"></script>
<script src="script/events/encounters.js"></script>
<script src="script/events/setpieces.js"></script>

<script type='text/javascript'>
var oldIE = false;
</script>
<!--[if lt IE 9]>
<script type="text/javascript">oldIE = true;</script>
<![endif]-->

<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/room.css" />
<link rel="stylesheet" type="text/css" href="css/outside.css" />
<link rel="stylesheet" type="text/css" href="css/path.css" />
<link rel="stylesheet" type="text/css" href="css/world.css" />
<link rel="stylesheet" type="text/css" href="css/ship.css" />
<link rel="stylesheet" type="text/css" href="css/space.css" />

<script src="script/localization.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-77510519-3"></script>
<!-- Google Analytics -->
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
(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');

gtag('config', 'UA-77510519-3');
ga('create', 'UA-41314886-1', 'doublespeakgames.com');
ga('send', 'pageview');
</script>

</head>

<body>
<div id="wrapper">
<div id="saveNotify">
<script>document.write(_("saved."));</script>
</div>
<div id="saveNotify"><script>document.write(_("saved."));</script></div>
<div id="content">
<div id="outerSlider">
<div id="main">
Expand All @@ -114,5 +111,4 @@
</div>
</div>
</body>

</html>
</html>

0 comments on commit da51fd0

Please sign in to comment.