mirror of
https://github.com/IdleEndeavor/gamesearch.git
synced 2025-05-01 07:04:31 +02:00
added games found/view counter on sidemenu
This commit is contained in:
parent
38c76d2260
commit
2afc05eb10
@ -71,6 +71,25 @@ html, body {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#foundcounter {
|
||||||
|
padding: 50px;
|
||||||
|
padding-left: 0;
|
||||||
|
color: white;
|
||||||
|
font-family: 'Roboto';
|
||||||
|
bottom: 10px;
|
||||||
|
width: 100%;
|
||||||
|
position: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
#foundcounterno {
|
||||||
|
padding: 50px;
|
||||||
|
padding-left: 0;
|
||||||
|
color: white;
|
||||||
|
font-family: 'Roboto';
|
||||||
|
bottom: 30px;
|
||||||
|
width: 100%;
|
||||||
|
position: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar a:hover {
|
.sidebar a:hover {
|
||||||
color: gray;
|
color: gray;
|
||||||
|
14
index.html
14
index.html
@ -23,11 +23,25 @@
|
|||||||
<img src="img/favicon.png" onclick="location.href='index.html';">
|
<img src="img/favicon.png" onclick="location.href='index.html';">
|
||||||
<li><a href="sites-indexed.html"> Sites Indexed </a></li>
|
<li><a href="sites-indexed.html"> Sites Indexed </a></li>
|
||||||
<li><a href="terms.html"> Terms of Use </a></li>
|
<li><a href="terms.html"> Terms of Use </a></li>
|
||||||
|
<h4 id="foundcounterno" class="count">0</h4>
|
||||||
|
<h4 id="foundcounter">Games Found</h4>
|
||||||
<h4>Copyright <script type="text/javascript">document.write(new Date().getFullYear());</script><br>IdleEndeavor</h4>
|
<h4>Copyright <script type="text/javascript">document.write(new Date().getFullYear());</script><br>IdleEndeavor</h4>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function updateCounter() {
|
||||||
|
fetch('https://api.countapi.xyz/update/ravegamesearch/ravesearch/?amount=1')
|
||||||
|
.then(res => res.json())
|
||||||
|
.then(data => counterElement.innerHTML = data.value)
|
||||||
|
}
|
||||||
|
|
||||||
|
updateCounter()
|
||||||
|
|
||||||
|
counterElement = document.getElementsByClassName('count')[0];
|
||||||
|
</script>
|
||||||
|
|
||||||
<!-- Search Box -->
|
<!-- Search Box -->
|
||||||
<div id="search-box" class="search">
|
<div id="search-box" class="search">
|
||||||
<img src="img/search-logo.png">
|
<img src="img/search-logo.png">
|
||||||
|
3
view-counter.txt
Normal file
3
view-counter.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
https://api.countapi.xyz/create?namespace=ravegamesearch&key=ravesearch&value=0
|
||||||
|
https://api.countapi.xyz/get/ravegamesearch/ravesearch
|
||||||
|
https://api.countapi.xyz/update/ravegamesearch/ravesearch/?amount=1
|
Loading…
x
Reference in New Issue
Block a user