Skip to content

Commit 4610a5a

Browse files
committed
.
1 parent 7cc9276 commit 4610a5a

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

static/start.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ dbutton.onclick =function(){
1212
if (frame.src != "downframe.html") frame.src = "downframe.html"
1313
window.document.title = "Download something"
1414
}
15+
frame.onload = function(){
16+
if (frame.src === "uploadframe.html"){
17+
document.getElementById("iframeid").contentWindow.code = upcode;
18+
}
19+
}
1520
}

static/uploadframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</title>
66
</head>
77
<body>
8-
<script>
8+
<script>
99
let code = null;
1010

1111
</script>

templates/start.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<title>Upload something</title>
44
<script>
5-
let upcode = "\\code"
5+
let upcode = "\\code"
66
let downcode = "\\code2"
77
let size = window.innerHeight;
88
</script>

0 commit comments

Comments
 (0)