Last active
January 4, 2016 02:29
-
-
Save powerswitch/8555508 to your computer and use it in GitHub Desktop.
Einfache Synchronklappe für Filmaufnahmen
usage: klappe.html?1&2
1 = szene
2 = take
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
html,body { | |
background-color: #888; | |
margin: 0; | |
padding: 0; | |
width: 100%; | |
height: 100%; | |
text-align: center; | |
} | |
#back { | |
background-color: #fff; | |
width: 1000px; | |
height: 500px; | |
margin-left: auto; | |
margin-right: auto; | |
display: block; | |
font-size: 40pt; | |
font-family: sans-serif; | |
font-weight: bold; | |
} | |
#counter { | |
font-size: 160pt; | |
} | |
</style> | |
<script> | |
function load() { | |
var t = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); | |
szene = t[0]; | |
take = parseInt(t[1]); | |
document.getElementById("counter").innerHTML = szene + "-" + take; | |
} | |
function reload() { | |
console.log("olad"); | |
window.location = "klappe.html?" + szene + "&" + (take + 1); | |
} | |
</script> | |
</head> | |
<body> | |
<audio autoload id="audio"> | |
<source src="beep.wav" /> | |
</audio> | |
<br /> | |
<div id="back"> | |
<br> | |
PRODUKTION | |
<div id="counter"> | |
22-e5 | |
</div> | |
</div> | |
<script> | |
load(); | |
var a = document.getElementById("audio"); | |
document.onkeydown = function() { | |
var b = document.getElementById("back"); | |
b.style.backgroundColor = "#F00"; | |
a.play(); | |
setTimeout('reload();', 1500); | |
} | |
//a.play(); | |
</script> | |
<body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment