Skip to content

Commit ac2e3fa

Browse files
committed
Move cookie consent to cloudflare app ☁️
1 parent f1657fd commit ac2e3fa

6 files changed

Lines changed: 6 additions & 21 deletions

File tree

views/docs/blacklisted.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h3>Documentation <small>Blacklisted</small></h3>
33
<p>A request could look something like this to see if <a href="http://arkhamnetwork.org" target="_blank" rel="noopener">Arkham Network</a> is blocked:</p>
44
<pre class="syntax-request-format"><kbd class="method">GET</kbd>https://{{mcapi.region}}.mc-api.net/v3/server/blacklisted/playmc.mx</pre>
55

6-
<span class="right"><button class="btn docs-btn teal darken-2" data-ajax="server/blacklisted" data-ajax-arg="playmc.mx">Try Me!</button></span>
6+
<span class="right"><button class="btn docs-btn teal darken-2" data-ajax="server/blacklisted" data-ajax-arg="playmc.mx" type="button">Try Me!</button></span>
77
<p>To try this API, click the button on the right:</p>
88

99
<pre class="syntax-request-format response" id="docs-ajax-response" data-ajax="server/blacklisted"> JSON response will be shown here</pre>

views/docs/favicon.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h3>Documentation <small>Favicon</small></h3>
33
<p>A request could look something like this to get the 'favicon' of the <a href="https://hypixel.net" target="_blank" rel="noopener">Hypixel</a> server:</p>
44
<pre class="syntax-request-format"><kbd class="method">GET</kbd>https://{{mcapi.region}}.mc-api.net/v3/server/favicon/mc.hypixel.net</pre>
55

6-
<span class="right"><button class="btn docs-btn teal darken-2" data-ajax="server/favicon" data-ajax-arg="mc.hypixel.net">Try Me!</button></span>
6+
<span class="right"><button class="btn docs-btn teal darken-2" data-ajax="server/favicon" data-ajax-arg="mc.hypixel.net" type="button">Try Me!</button></span>
77
<p>To try this API, click the button on the right:</p>
88

99
<pre class="syntax-request-format response" id="docs-ajax-response" data-ajax="server/favicon"> PNG response will be shown here</pre>

views/docs/ping.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h3>Documentation <small>Ping</small></h3>
33
<p>A request could look something like this to find information about <a href="https://hypixel.net" target="_blank" rel="noopener">Hypixel</a>:</p>
44
<pre class="syntax-request-format"><kbd class="method">GET</kbd>https://{{mcapi.region}}.mc-api.net/v3/server/ping/mc.hypixel.net</pre>
55

6-
<span class="right"><button class="btn docs-btn teal darken-2" data-ajax="server/ping" data-ajax-arg="mc.hypixel.net">Try Me!</button></span>
6+
<span class="right"><button class="btn docs-btn teal darken-2" data-ajax="server/ping" data-ajax-arg="mc.hypixel.net" type="button">Try Me!</button></span>
77
<p>To try this API, click the button on the right:</p>
88

99
<pre class="syntax-request-format response" id="docs-ajax-response" data-ajax="server/ping"> JSON response will be shown here</pre>

views/docs/status-http.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h3>Documentation <small>Server Status</small></h3>
33
<p>A request could look something like this to find information about <a href="https://hypixel.net" target="_blank" rel="noopener">Hypixel</a>:</p>
44
<pre class="syntax-request-format"><kbd class="method">GET</kbd>https://{{mcapi.region}}.mc-api.net/v3/server/status-http/mc.hypixel.net</pre>
55

6-
<span class="right"><button class="btn docs-btn teal darken-2" data-ajax="server/status-http" data-ajax-arg="mc.hypixel.net">Try Me!</button></span>
6+
<span class="right"><button class="btn docs-btn teal darken-2" data-ajax="server/status-http" data-ajax-arg="mc.hypixel.net" type="button">Try Me!</button></span>
77
<p>To try this API, click the button on the right:</p>
88

99
<pre class="syntax-request-format response" id="docs-ajax-response" data-ajax="server/status-http"> JSON response will be shown here</pre>

views/layout.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@
3030
<div class="container">
3131
{{#mcapi.enableAdsense}}
3232
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
33-
<!-- Top Ad Box -->
34-
<ins class="adsbygoogle"
35-
style="display:block"
36-
data-ad-client="ca-pub-4442711375881628"
37-
data-ad-slot="7221281726"
38-
data-ad-format="auto"></ins>
33+
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4442711375881628" data-ad-slot="7221281726" data-ad-format="auto"></ins>
3934
<script>
4035
(adsbygoogle = window.adsbygoogle || []).push({});
4136
</script>
@@ -83,12 +78,7 @@
8378
{{/adverts.hide}}
8479
{{#mcapi.enableAdsense}}
8580
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
86-
<!-- Bottom Ad Box -->
87-
<ins class="adsbygoogle"
88-
style="display:block"
89-
data-ad-client="ca-pub-4442711375881628"
90-
data-ad-slot="4758769917"
91-
data-ad-format="auto"></ins>
81+
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4442711375881628" data-ad-slot="4758769917" data-ad-format="auto"></ins>
9282
<script>
9383
(adsbygoogle = window.adsbygoogle || []).push({});
9484
</script>

views/partials/header.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<head>
22
{{#mcapi.enableAdsense}}
3-
{{! Trying out adsense }}
43
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
54
<script>
65
(adsbygoogle = window.adsbygoogle || []).push({
@@ -38,8 +37,4 @@
3837
<script type="text/javascript" src="{{.}}"></script>
3938
{{/custom_scripts}}
4039
<script type="text/javascript" src="{{mcapi.assets.base}}{{mcapi.assets.js}}/application.js?{{cacheBuster}}" defer></script>
41-
42-
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.4/cookieconsent.min.css" />
43-
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.4/cookieconsent.min.js" defer></script>
44-
<script>window.addEventListener("load", function() {window.cookieconsent.initialise({"palette": {"popup": {"background": "#edeff5","text": "#838391"},"button": {"background": "#4b81e8"}},"theme": "edgeless","content": {"link": "What are cookies?"}}); $('.cc-window .cc-message a.cc-link').attr('rel', 'noopener'); });</script>
4540
</head>

0 commit comments

Comments
 (0)