mirror of
https://github.com/aquatix/alfagok.git
synced 2025-12-07 03:55:12 +01:00
Removed old JS files
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
var clip = new Clipboard('.copy');
|
|
||||||
|
|
||||||
clip.on("success", function(e) {
|
|
||||||
document.getElementById('copyresults').innerHTML = '<p style="font-size:var(--small);opacity:50%">Gekopieerd! Deel je resultaat.</p>';
|
|
||||||
e.clearSelection();
|
|
||||||
});
|
|
||||||
|
|
||||||
clip.on("error", function() {
|
|
||||||
document.getElementById('copyresults').innerHTML = '<p style="font-size:var(--small);opacity:50%">Fout. Graag handmatig kopiëren...</p>';
|
|
||||||
});
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
/* Original from alphaguess.com */
|
|
||||||
|
|
||||||
function go() {
|
|
||||||
window.timerID = window.setInterval(timer, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
function timer(){
|
|
||||||
var nextgame = document.getElementById('nextgame');
|
|
||||||
var now = new Date();
|
|
||||||
var midnight = new Date(now.getFullYear(), now.getMonth(), now.getDate()+1, 0, 0, 0);
|
|
||||||
var diff = Math.floor((midnight - now)/1000);
|
|
||||||
var hoursRemain = Math.floor(diff/(60*60));
|
|
||||||
var minutesRemain = Math.floor((diff-hoursRemain*60*60)/60);
|
|
||||||
var secondsRemain = Math.floor(diff%60);
|
|
||||||
nextgame.innerHTML = '<span class="nextgame">'+addZero(hoursRemain)+':'+addZero(minutesRemain)+':'+addZero(secondsRemain)+' over</span>';
|
|
||||||
}
|
|
||||||
|
|
||||||
function addZero(num){
|
|
||||||
if(num <=9) return '0'+num;
|
|
||||||
else return num;
|
|
||||||
}
|
|
||||||
|
|
||||||
go();
|
|
||||||
@@ -97,8 +97,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.12/clipboard.min.js" rel=preload></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.12/clipboard.min.js" rel=preload></script>
|
||||||
{# <script src="/static/copy.js"></script>
|
|
||||||
<script src="/static/countdown.js"></script>#}
|
|
||||||
<script src="/static/game.js"></script>
|
<script src="/static/game.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user