Skip to content

Instantly share code, notes, and snippets.

@ricardoreis
Created October 1, 2018 00:06
Show Gist options
  • Select an option

  • Save ricardoreis/a53bc1f076f9531874eec80556ef6893 to your computer and use it in GitHub Desktop.

Select an option

Save ricardoreis/a53bc1f076f9531874eec80556ef6893 to your computer and use it in GitHub Desktop.

Revisions

  1. ricardoreis created this gist Oct 1, 2018.
    28 changes: 28 additions & 0 deletions payment_received.html
    Original 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>