adding js to a separate file
This commit is contained in:
parent
f05d695ddb
commit
6fb0698d18
4
Flask/static/js/main.js
Normal file
4
Flask/static/js/main.js
Normal file
@ -0,0 +1,4 @@
|
||||
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 + ')">'
|
||||
}
|
@ -7,7 +7,8 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>MS Rewards</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/flask.css') }}" />
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/flask.css')}}"/>
|
||||
<script src="{{ url_for('static', filename='js/main.js')}}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user