Site Notice

hello, world

Difference between revisions of "Generate Image Download Links"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
 
m ([InPageEdit] 没有编辑摘要)
Line 1: Line 1:
 
<html>
 
<html>
 
<textarea id="jsonList"></textarea>
 
<textarea id="jsonList"></textarea>
<button onlick="generate()">Generate</button>
+
<button onclick="generate()">Generate</button>
 
<pre id="fileList"></pre>
 
<pre id="fileList"></pre>
 
<script>
 
<script>

Revision as of 17:01, 8 April 2020

<html> <textarea id="jsonList"></textarea> <button onclick="generate()">Generate</button> <pre id="fileList"></pre> <script> function generate() {

 var html = 'https://no-game-no-life.fandom.com/wiki/Special:Filepath/',
     files = eval('(' + $('#jsonList').val() + ')'),
     output = '';
 for (var i = 0; i < files.query.allpages.length; i++) {
   output = output + '\n' + html + files.query.allpages[i].title;
 }
 $('#fileList').text(output);

} </script> </html>