Skip to content

Commit dc6ea92

Browse files
committed
.
1 parent 4610a5a commit dc6ea92

4 files changed

Lines changed: 15 additions & 36 deletions

File tree

static/downframe.html

Whitespace-only changes.

static/start.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@ window.onload = function(){
22

33
let upbutton = document.getElementById("upb")
44
let dbutton = document.getElementById("downb")
5-
let frame = document.getElementById("frame")
5+
66
console.log("Script included.")
77
upbutton.onclick = function(){
8-
if (frame.src != "uploadframe.html") frame.src = "uploadframe.html";
9-
window.document.title = "Upload something"
8+
109
}
1110
dbutton.onclick =function(){
12-
if (frame.src != "downframe.html") frame.src = "downframe.html"
13-
window.document.title = "Download something"
11+
1412
}
15-
frame.onload = function(){
16-
if (frame.src === "uploadframe.html"){
17-
document.getElementById("iframeid").contentWindow.code = upcode;
18-
}
13+
1914
}
20-
}

static/uploadframe.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

templates/start.html

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<html>
22
<head>
3-
<title>Upload something</title>
3+
<title>Quickload</title>
44
<script>
55
let upcode = "\\code"
66
let downcode = "\\code2"
@@ -11,27 +11,25 @@
1111
</head>
1212
<style>
1313
button {
14-
height: 100%;
14+
height: 10%;
1515
background-color: black;
1616
color: white;
17-
border-radius: 10%
17+
border-radius: 10%;
18+
vertical-align: middle;
19+
text-align: center
1820
};
19-
.framediv{
20-
vertical-align: middle;
21-
}
21+
2222

2323
</style>
2424
<body>
2525

2626
<img width = 5% class = "eviloctopus" src = "favicon.ico">
27-
<nav>
28-
<button class="switch" id="downb">Download</button>
29-
<button class="switch" id="upb">Upload</button>
30-
</nav>
27+
3128
<div height = 5%></div>
32-
<div id = "framediv">
33-
<iframe id = "frame" height= 80% width= 50% src="uploadframe.html"> </iframe>
34-
</div>
29+
30+
<input type="text" name="Code" size="15"> <button id = "downb">Download file</button></br>
31+
<button id = "upb">Upload file</button>
32+
3533
<script src = "start.js"></script>
3634

3735

0 commit comments

Comments
 (0)