Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Camera screenshot</title>
- <!-- Include jQuery for more power -->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" type="text/javascript"></script>
- <!-- Custom JS Script -->
- <script type="text/javascript">
- $(document).ready(function() {
- $('.save').click(function () {
- var from = $(this).data('from');
- to = $(this).data('to');
- for (i = from; i < to; i++) {
- var href = $("<a>")
- .attr("href", "http://root:eSSc2308@192.168.0." + to + "/jpg/image.jpg")
- .attr("download", "img.png")
- .appendTo("body");
- href[0].click();
- href.remove();
- }
- });
- });
- </script>
- </head>
- <body>
- <!-- Duplicate this line below to extend the cam numbers. Change the data-from and data-to to the desired cams -->
- <a href="#" class="save" data-from="1" data-to="10">Save cam 1-10</a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement