moar
This commit is contained in:
parent
a8e4176dce
commit
34fc93787d
@ -35,7 +35,6 @@ body {
|
||||
⤷ <a href="/asdfgh/lit" >lit</a>: fumetti, libri, zine e pubblicazioni accademiche, rant vari<br>
|
||||
⤷ <a href="/asdfgh/matrioska" >matrioska</a>: film, ma non quei film :^) e serie tv<br>
|
||||
⤷ <a href="/asdfgh/vibbra" >vibbra</a>: ora che hai tutta la musica ti mancano solo le info<br>
|
||||
⤷ <a href="/arstdh/vibbra" >more vibbra</a>: pensavi davvero che bastasse un link per avere tutta la musica?<br>
|
||||
⤷ <a href="/asdfgh/web/dumps" >web dumps</a>: non credi più alla favoletta che sul web tutto è perenne? Questo è il posto per te.<br>
|
||||
</br>
|
||||
</div>
|
||||
|
Binary file not shown.
@ -1,57 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
var audio = new Audio('notification.mp3');
|
||||
var repetitions = 0;
|
||||
|
||||
var run = function() {
|
||||
var resetPoint = parseInt(document.getElementById("resetpoint").value);
|
||||
|
||||
var previous = document.getElementById("clock").innerHTML;
|
||||
var next = 1 + parseInt(previous);
|
||||
if(next > resetPoint) {
|
||||
audio.play();
|
||||
next = 1;
|
||||
repetitions += 1;
|
||||
}
|
||||
document.getElementById("clock").innerHTML = next;
|
||||
document.getElementById("reps").innerHTML = repetitions;
|
||||
|
||||
var maxreps = parseInt(document.getElementById("ripetizioni").value);
|
||||
if(repetitions >= maxreps){
|
||||
repetitions = 0;
|
||||
stopSound();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
var x = null;
|
||||
|
||||
var stopSound = function (){
|
||||
if (x != null) clearInterval(x);
|
||||
repetitions = 0;
|
||||
x = null;
|
||||
};
|
||||
|
||||
var startSound = function (){
|
||||
document.getElementById("clock").innerHTML = 1;
|
||||
document.getElementById("reps").innerHTML = 0;
|
||||
if(x == null) x = setInterval(run, 1000);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p id="rep">REP: <span id="reps">0</span> | TIME: <span id="clock">1</span></p>
|
||||
|
||||
<label for="resetpoint">tempo (fino ad un minuto):</label>
|
||||
<input type="number" id="resetpoint" name="resetpoint" min="1" max="60">
|
||||
|
||||
<label for="ripetizioni">ripetizioni (fino a quaranta):</label>
|
||||
<input type="number" id="ripetizioni" name="ripetizioni" min="1" max="40">
|
||||
<br>
|
||||
|
||||
<input id = "startsound" type = "button" value = "FAMMI PARTIRE" onclick = "startSound();" />
|
||||
<input id = "stopsound" type = "button" value = "FERMAMI" onclick = "stopSound();" />
|
||||
</body>
|
||||
</html>
|
@ -48,8 +48,6 @@ Serve:
|
||||
- rtorrent
|
||||
- rutorrent e tutte le dipendenze
|
||||
- qbittorrent
|
||||
- jackett
|
||||
- cartoccio: web ui per jackett
|
||||
*** Macchianera
|
||||
Router dietro la vpn di njalla.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user