File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,19 +2,13 @@ window.onload = function(){
22
33let upbutton = document . getElementById ( "upb" )
44let dbutton = document . getElementById ( "downb" )
5- let frame = document . getElementById ( "frame" )
5+
66console . log ( "Script included." )
77upbutton . onclick = function ( ) {
8- if ( frame . src != "uploadframe.html" ) frame . src = "uploadframe.html" ;
9- window . document . title = "Upload something"
8+
109}
1110dbutton . 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- }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11< html >
22< head >
3- < title > Upload something </ title >
3+ < title > Quickload </ title >
44< script >
55 let upcode = "\\code"
66 let downcode = "\\code2"
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
You can’t perform that action at this time.
0 commit comments