-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github pages site with viewers for models and maps
- Loading branch information
Showing
20 changed files
with
62,633 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<html> | ||
<head> | ||
<title>Imperial College Caving Club</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="author" content="ICCC" /> | ||
<meta name="theme-color" content="#2D2D2D" /> | ||
<meta name="msapplication-navbutton-color" content="#2D2D2D" /> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="#2D2D2D" /> | ||
<style> | ||
body { | ||
margin: 0; | ||
width: 100vw; | ||
height: 100vh; | ||
} | ||
iframe { | ||
width: 100vw; | ||
height: 100vh; | ||
border: none; | ||
} | ||
div { | ||
transform: translateX(-50%); | ||
padding: 5px 0; | ||
position: absolute; | ||
left: 50%; | ||
} | ||
button { | ||
margin-right: 5px; | ||
background-color: white; | ||
color: black; | ||
border: 1px solid lightgrey; | ||
border-radius: 5px; | ||
padding: 10px; | ||
font-family: "sans"; | ||
cursor: pointer; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div><button id="2d">2D</button><button id="3d">3D</button></div> | ||
<iframe src="./static/html/caveview.html"></iframe> | ||
<script> | ||
document | ||
.getElementById("2d") | ||
.addEventListener( | ||
"click", | ||
() => | ||
(document.querySelector("iframe").src = "./static/html/survey.html") | ||
); | ||
document | ||
.getElementById("3d") | ||
.addEventListener( | ||
"click", | ||
() => | ||
(document.querySelector("iframe").src = | ||
"./static/html/caveview.html") | ||
); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.