idk
This commit is contained in:
1 parent
32dd72a8b6
commit
5258397121
2 files changed
+17
-1
No files matched your search
@@ -15,4 +15,19 @@ alert("fun yesss🎅🏼 you found santa congrats you won")
|
||||
}
|
||||
function yourmom(){
|
||||
alert("your mom still in testing")
|
||||
}
|
||||
}
|
||||
var fps = document.getElementById("fps");
|
||||
var startTime = Date.now();
|
||||
var frame = 0;
|
||||
|
||||
function tick() {
|
||||
var time = Date.now();
|
||||
frame++;
|
||||
if (time - startTime > 1000) {
|
||||
fps.innerHTML = (frame / ((time - startTime) / 1000)).toFixed(1);
|
||||
startTime = time;
|
||||
frame = 0;
|
||||
}
|
||||
window.requestAnimationFrame(tick);
|
||||
}
|
||||
tick();
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
<head>
|
||||
<title>Home</title>
|
||||
<span id="fps">--</span> FPS</div>
|
||||
<script type="text/javascript" src="https://cookieconsent.popupsmart.com/src/js/popper.js"></script><script> window.start.init({Palette:"palette1",Mode:"banner bottom",Theme:"classic",Message:"this wed sit youses cooke to save you progres",ButtonText:"ok ",Time:"10",})</script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
|
||||
<noscript>Your browser does not support JavaScript!</noscript>
|
||||
|
||||
Reference in new issue
Block a user