Skip to content

Commit

Permalink
Samples navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeblanc committed Nov 10, 2023
1 parent d48902e commit 13fdc45
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/site/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<title>Flip samples</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-indigo.css">
Expand Down
46 changes: 46 additions & 0 deletions samples/site/index2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html>
<title>Flip samples</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<style type="text/css">
.nav {
position: absolute;
bottom: 10px;
margin-top: 0px;
padding-left: 10px;
}
</style>

<body>

<div id="sidebar" class="w3-sidebar w3-bar-block w3-animate-left" style="display:none">
<button class="w3-bar-item w3-button w3-large" onclick="w3_close()">Close &times;</button>
sdfsdfsdc
</div>

<div id="main">
<div class="nav" style=" z-index:1;">
</span><button id="nav" class="w3-button w3-xlarge w3-text-white" onclick="w3_open()">&#9776;</button>
</div>
<iframe style="position:fixed; top:0; bottom:0; height:100%; width:100%; overflow:hidden;" class="w3-border-0"
src="https://guillaumeblanc.github.io/flip/texture/"></iframe>
</div>

<script>
function w3_open() {
document.getElementById("main").style.marginLeft = "200px";
document.getElementById("sidebar").style.width = "200px";
document.getElementById("sidebar").style.display = "block";
document.getElementById("nav").style.display = 'none';
}
function w3_close() {
document.getElementById("main").style.marginLeft = "0%";
document.getElementById("sidebar").style.display = "none";
document.getElementById("nav").style.display = "inline-block";
}
</script>

</body>

</html>
6 changes: 3 additions & 3 deletions src/wasm.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>${FLIP_TARGET_NAME}</title>
<style type="text/css">
body {
Expand Down

0 comments on commit 13fdc45

Please sign in to comment.