Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Camera screenshot</title>
  6.  
  7. <!-- Include jQuery for more power -->
  8. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" type="text/javascript"></script>
  9.  
  10. <!-- Custom JS Script -->
  11. <script type="text/javascript">
  12. $(document).ready(function() {
  13. $('.save').click(function () {
  14. var from = $(this).data('from');
  15. to = $(this).data('to');
  16.  
  17. for (i = from; i < to; i++) {
  18. var href = $("<a>")
  19. .attr("href", "http://root:eSSc2308@192.168.0." + to + "/jpg/image.jpg")
  20. .attr("download", "img.png")
  21. .appendTo("body");
  22.  
  23. href[0].click();
  24. href.remove();
  25. }
  26. });
  27. });
  28.  
  29. </script>
  30. </head>
  31.  
  32. <body>
  33. <!-- Duplicate this line below to extend the cam numbers. Change the data-from and data-to to the desired cams -->
  34. <a href="#" class="save" data-from="1" data-to="10">Save cam 1-10</a>
  35. </body>
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement