Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added static/downframe.html
Empty file.
10 changes: 10 additions & 0 deletions static/start.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
let upb = document.getElementById("upb")
let db = document.getElementById("downb")
let frame = document.getElementById("frame")

upb.onclick(function(){
if (frame.src != "uploadframe.html") frame.src = "uploadframe.html";
})
db.onclick(function(){
if (frame.src != "downframe.html") frame.src = "downframe.html"
})
4 changes: 3 additions & 1 deletion static/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
nav {

position: fixed;
top: 0%;
height: 10%;
Expand All @@ -11,4 +12,5 @@ nav {
text-align:left;
position: fixed;
top: 0%;
};

};
11 changes: 10 additions & 1 deletion templates/rick.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@
<title>Test</title>
</head>
<body>
<iframe height="350" width="600"
<iframe class = "rick"
src="https://www.youtube.com/embed/dQw4w9WgXcQ">
</iframe>
</body>
<style>
.rick {
height: 75%;
width: 50%;
position: absolute;
top: 15%;
left: 25%;
};
</style>
</html>
13 changes: 11 additions & 2 deletions templates/start.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,23 @@
color: white;
border-radius: 10%
};
div{
vertical-align: middle;
}

</style>
<body>

<img width = 5% class = "eviloctopus" src = "favicon.ico">
<nav>
<button class="switch">Nothing happens here</button>
<button class="switch">Nor here.</button>
<button class="switch" id="downb">Nothing happens here</button>
<button class="switch" id="upb">Nor here.</button>
</nav>
<div>
<iframe id = "frame" height= 80% width= 50% src="uploadframe.html"> </iframe>
</div>
<script src = "start.js"></script>


</body>

Expand Down