Created
October 1, 2018 00:06
-
-
Save ricardoreis/a53bc1f076f9531874eec80556ef6893 to your computer and use it in GitHub Desktop.
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> | |
<script src="jquery-3.3.1.min.js"></script> | |
</head> | |
<body style="margin:0px; padding:0px"> | |
<video autoplay> | |
<source src="coke.mp4" type="video/mp4"> | |
</video> | |
<script> | |
$.ajax({ | |
url: "start_pump.php", | |
success: function() { | |
setTimeout(function(){stopPump()}, 20000); | |
} | |
}); | |
function stopPump(){ | |
$.ajax({ | |
url: "stop_pump.php", | |
success: function() { | |
window.location = "index.html"; | |
} | |
}); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment