summary refs log tree commit diff
path: root/iwara.html
diff options
context:
space:
mode:
authormayx2023-04-22 12:06:10 +0000
committermayx2023-04-22 12:06:10 +0000
commit8dcfcaeb7bcaf77bd7f936fe7ac8ea13e81a8b04 (patch)
tree74e6bfd20dd0dcbe315e1f4ab3269d351906310e /iwara.html
parent57f8e30bf45c897eca2678b53288c83585f23c1b (diff)
Update 3 files
- /iwara.html
- /index.html
- /card.html
Diffstat (limited to 'iwara.html')
-rw-r--r--iwara.html35
1 files changed, 0 insertions, 35 deletions
diff --git a/iwara.html b/iwara.html
deleted file mode 100644
index 16187ce..0000000
--- a/iwara.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<title>Iwara Downloader</title>
-<h1>Iwara Downloader</h1>
-URL: <input type="text" id="url" /> <button onclick="resolve()">Resolve</button>
-<table id="result-table" border="1" style="display:none">
-<tr><th>Resolution</th><th>URI</th><th>IP</th><th>Host</th></tr>
-<tbody id="result"></tbody>
-</table>
-<script src="/js/jquery.min.js"></script>
-<script>
-function resolve(){
-    $("#result-table").css('display', "none");
-    $("#result").empty();
-    $.get("https://iwara.mayx.eu.org/api/video/" + $("#url")[0].value.split("/").pop(), function(data){
-        if(!data.length){
-            alert("Resolve Failed");
-            return;
-        }
-        $("#result-table").css('display', "table");
-        var hosts = new Set();
-        console.log(data);
-        data.forEach(function(downuri){
-            var host = downuri["uri"].split("/")[2];
-            hosts.add(host);
-            $("#result").append("<tr><td>" + downuri["resolution"] + '</td><td><a href="' + downuri["uri"] + '">Download</a></td><td class="' + host.split(".")[0] + '">Loading...</td><td>' + host + '</td></tr>');
-        });
-        hosts.forEach(function(host){
-            $.get("https://dns.mayx.eu.org/resolve?type=A&name=" + host, function(result){
-                $("." + host.split(".")[0]).each(function(i, element){
-                    element.innerHTML = result["Answer"][0]["data"];
-                });
-            });
-        });
-    });
-}
-</script>