mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-04 07:33:53 +01:00 
			
		
		
		
	adding js to a separate file
This commit is contained in:
		@@ -63,28 +63,21 @@
 | 
			
		||||
    <li>logs viewer</li>
 | 
			
		||||
</ul>
 | 
			
		||||
<br>
 | 
			
		||||
<table>
 | 
			
		||||
    <tr><h2>Backup config files</h2></tr>
 | 
			
		||||
    <tr><td><a href="/download/configs.json">download account config</a></td></tr>
 | 
			
		||||
    <tr><td><a href="/download/discord.json">download discord config</a></td></tr>
 | 
			
		||||
    <tr><td><a href="/download/flask.json">download flask config</a></td></tr>
 | 
			
		||||
    <tr><td><a href="/download/proxy.json">download proxy config</a></td></tr>
 | 
			
		||||
    <tr><td><a href="/download/settings.json">download settings</a></td></tr>
 | 
			
		||||
<ul>
 | 
			
		||||
    <li><h2>Backup config files</h2></li>
 | 
			
		||||
    <li><a href="/download/configs.json">download account config</a></li>
 | 
			
		||||
    <li><a href="/download/discord.json">download discord config</a></li>
 | 
			
		||||
    <li><a href="/download/flask.json">download flask config</a></li>
 | 
			
		||||
    <li><a href="/download/proxy.json">download proxy config</a></li>
 | 
			
		||||
    <li><a href="/download/settings.json">download settings</a></li>
 | 
			
		||||
</ul>
 | 
			
		||||
 | 
			
		||||
</table>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
    function addline(ligne){
 | 
			
		||||
        var lplus = parseInt(ligne) + 1;
 | 
			
		||||
        document.getElementById("table").insertRow(lplus).insertCell(0).innerHTML = '<input type="file" id="file' + lplus + '" name="file' + lplus + '" onchange="addline(' + lplus + ')">'
 | 
			
		||||
    }
 | 
			
		||||
</script>
 | 
			
		||||
<br>
 | 
			
		||||
<h2>Upload your files</h2>
 | 
			
		||||
<form method="POST" action="/upload_file/" enctype=multipart/form-data>
 | 
			
		||||
    <table id="table">
 | 
			
		||||
        <tr><td><input type="file" id="file1" name="file1" onchange='addline(0)'></td></tr>
 | 
			
		||||
        <tr><td><input type="submit"  name="settings" id="submit" value="send file" class="button"/></td></tr>
 | 
			
		||||
        <li><input type="file" id="file1" name="file1" onchange='addline(0)'></li>
 | 
			
		||||
        <li><input type="submit"  name="settings" id="submit" value="send file" class="button"/></li>
 | 
			
		||||
    </table>
 | 
			
		||||
    
 | 
			
		||||
</form>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user