Created
October 1, 2018 00:06
-
-
Save ricardoreis/a53bc1f076f9531874eec80556ef6893 to your computer and use it in GitHub Desktop.
Revisions
-
ricardoreis created this gist
Oct 1, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ <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>