Skip to content

Commit 84aa7d7

Browse files
committed
Added (invisible) visit counter and preliminary AdSense support
1 parent f831725 commit 84aa7d7

File tree

4 files changed

+94
-0
lines changed

4 files changed

+94
-0
lines changed

index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
<link rel="icon" type="x-icon" href="icon.png">
66
<link rel="shortcut icon" type="x-icon" href="icon.png">
77
<meta charset="utf-8">
8+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
9+
<script>
10+
(adsbygoogle = window.adsbygoogle || []).push({
11+
google_ad_client: "ca-pub-6511426299019766",
12+
enable_page_level_ads: true
13+
});
14+
</script>
815
</head>
916
<body>
1017

@@ -40,4 +47,20 @@ <h2>I don't like my scores!</h2>
4047
<p>¯\_(ツ)_/¯<br/>
4148
If you have any suggestions or constructive criticism, feel free to send it to [email protected] or open an issue on the GitHub page!</p>
4249

50+
<!-- Website visit statistics - no personal information is collected! -->
51+
<script type="text/javascript">
52+
var sc_project=11325211;
53+
var sc_invisible=1;
54+
var sc_security="fd9f0659";
55+
var scJsHost = (("https:" == document.location.protocol) ?
56+
"https://secure." : "http://www.");
57+
document.write("<sc"+"ript type='text/javascript' src='" +
58+
scJsHost+
59+
"statcounter.com/counter/counter.js'></"+"script>");
60+
</script>
61+
<noscript><div class="statcounter"><a title="web stats"
62+
href="http://statcounter.com/" target="_blank"><img
63+
class="statcounter"
64+
src="//c.statcounter.com/11325211/0/fd9f0659/1/" alt="web
65+
stats"></a></div></noscript>
4366
</body>

instructions.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
<link rel="icon" type="x-icon" href="icon.png">
66
<link rel="shortcut icon" type="x-icon" href="icon.png">
77
<meta charset="utf-8">
8+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
9+
<script>
10+
(adsbygoogle = window.adsbygoogle || []).push({
11+
google_ad_client: "ca-pub-6511426299019766",
12+
enable_page_level_ads: true
13+
});
14+
</script>
815
</head>
916
<body>
1017

@@ -14,4 +21,21 @@ <h2 style="text-align:center;">Instructions</h2>
1421
<p class="question">You will be presented with a series of statements. For each one, click the button with your opinion on it.</p>
1522
<button class="button" onclick="location.href='quiz.html';" style="background-color: #2196f3;">Got it!</button> <br>
1623
<button class="button" onclick="location.href='index.html';" style="background-color: #f44336;">Wait, nevermind!</button> <br>
24+
25+
<!-- Website visit statistics - no personal information is collected! -->
26+
<script type="text/javascript">
27+
var sc_project=11325211;
28+
var sc_invisible=1;
29+
var sc_security="fd9f0659";
30+
var scJsHost = (("https:" == document.location.protocol) ?
31+
"https://secure." : "http://www.");
32+
document.write("<sc"+"ript type='text/javascript' src='" +
33+
scJsHost+
34+
"statcounter.com/counter/counter.js'></"+"script>");
35+
</script>
36+
<noscript><div class="statcounter"><a title="web stats"
37+
href="http://statcounter.com/" target="_blank"><img
38+
class="statcounter"
39+
src="//c.statcounter.com/11325211/0/fd9f0659/1/" alt="web
40+
stats"></a></div></noscript>
1741
</body>

quiz.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
<link rel="icon" type="x-icon" href="icon.png">
66
<link rel="shortcut icon" type="x-icon" href="icon.png">
77
<meta charset="utf-8">
8+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
9+
<script>
10+
(adsbygoogle = window.adsbygoogle || []).push({
11+
google_ad_client: "ca-pub-6511426299019766",
12+
enable_page_level_ads: true
13+
});
14+
</script>
815
</head>
916
<body>
1017
<script type="application/javascript"
@@ -22,6 +29,23 @@ <h2 style="text-align:center;" id="question-number">Loading...</h2>
2229
<button class="small_button" onclick="prev_question()" id="back_button">Back</button>
2330
<button class="small_button_off" id="back_button_off">Back</button><br>
2431

32+
<!-- Website visit statistics - no personal information is collected! -->
33+
<script type="text/javascript">
34+
var sc_project=11325211;
35+
var sc_invisible=1;
36+
var sc_security="fd9f0659";
37+
var scJsHost = (("https:" == document.location.protocol) ?
38+
"https://secure." : "http://www.");
39+
document.write("<sc"+"ript type='text/javascript' src='" +
40+
scJsHost+
41+
"statcounter.com/counter/counter.js'></"+"script>");
42+
</script>
43+
<noscript><div class="statcounter"><a title="web stats"
44+
href="http://statcounter.com/" target="_blank"><img
45+
class="statcounter"
46+
src="//c.statcounter.com/11325211/0/fd9f0659/1/" alt="web
47+
stats"></a></div></noscript>
48+
2549
<script>
2650
var max_econ, max_dipl, max_govt, max_scty; // Max possible scores
2751
max_econ = max_dipl = max_govt = max_scty = 0;

results.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
<link rel="icon" type="x-icon" href="icon.png">
66
<link rel="shortcut icon" type="x-icon" href="icon.png">
77
<meta charset="utf-8">
8+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
9+
<script>
10+
(adsbygoogle = window.adsbygoogle || []).push({
11+
google_ad_client: "ca-pub-6511426299019766",
12+
enable_page_level_ads: true
13+
});
14+
</script>
815
</head>
916
<script type="application/javascript"
1017
src="ideologies.js">
@@ -50,6 +57,22 @@ <h2>Closest Match: <span class="weight-300" id="ideology-label"></span></h2>
5057
<hr/>
5158
<canvas id="banner" width=800 height=600 style="font-family:Montserrat"></canvas>
5259
<button class="button" onclick="location.href='index.html';" style="background-color: #2196f3;">Back</button> <br>
60+
<!-- Website visit statistics - no personal information is collected! -->
61+
<script type="text/javascript">
62+
var sc_project=11325211;
63+
var sc_invisible=1;
64+
var sc_security="fd9f0659";
65+
var scJsHost = (("https:" == document.location.protocol) ?
66+
"https://secure." : "http://www.");
67+
document.write("<sc"+"ript type='text/javascript' src='" +
68+
scJsHost+
69+
"statcounter.com/counter/counter.js'></"+"script>");
70+
</script>
71+
<noscript><div class="statcounter"><a title="web stats"
72+
href="http://statcounter.com/" target="_blank"><img
73+
class="statcounter"
74+
src="//c.statcounter.com/11325211/0/fd9f0659/1/" alt="web
75+
stats"></a></div></noscript>
5376
<script>
5477
function getQueryVariable(variable)
5578
{

0 commit comments

Comments
 (0)