Browse Source

Update 3 files

- /iwara.html
- /index.html
- /card.html
mayx 2 years ago
parent
commit
8dcfcaeb7b
3 changed files with 0 additions and 37 deletions
  1. 0 0
      card.html
  2. 0 2
      index.html
  3. 0 35
      iwara.html

File diff suppressed because it is too large
+ 0 - 0
card.html


+ 0 - 2
index.html

@@ -58,8 +58,6 @@ title: 首页 - 我的文章
  
  <a href="{% unless site.github %}https://mabbs.github.io{% endunless %}/pixiv-index/">Pixiv图片索引API</a><br>
 
- <a href="/iwara.html">Iwara Download</a><br>
-
  <a href="/card.html">抽卡</a> - 由<a href="https://github.com/eeg1412/">广树</a>大佬提供卡牌<br>
 
  <a href="/message.html">留言板</a><br>

+ 0 - 35
iwara.html

@@ -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>

Some files were not shown because too many files changed in this diff