-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
143 lines (79 loc) · 3.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!doctype html>
<html lang="en" >
<head>
<meta charset="utf-8" >
<meta name="viewport" content = "width=device-width,user-scalable=no,minimum-scale=1.0,maximum-scale=1.0" >
<meta name=description content="Basic menu wsliding" >
<meta name=keywords content="JavaScript,GitHub,FOSS,3D,STEM" >
<meta name = "date" content = "2017-12-08" >
<title>Diana Chace</title>
<style>
/* Copyright 2017 pushMe pullYou authors. MIT License */
/* https://www.w3schools.com/colors/colors_names.asp // use colors and borders to help identify the scope of particular elements */
html { --mnu-color: rgb( 255, 210, 255 ); --mnu-back-color: #877; --mnu-width:300px; height: 100%; }
body, html { font: 12pt monospace; height: 100%; margin: 0; overflow: hidden; }
a { color: var( --mnu-color ); font: 14pt monospace; text-decoration: none; }
a:hover, p:hover, a:focus, p:focus, #hamburger:hover { background-color: yellow; color: #888; }
blockquote, pre { background-color: #eee; padding: 10px; }
button, input[ type=button ] { background-color: #ddd; border: none; color: var( --mnu-color ); cursor: pointer; padding: 3px 20px; }
button:hover { background-color: #ccc; color: white }
iframe { width: 100%; }
p { text-indent: -20px; padding: 0 0 0 20px; }
#divContainer { background-color: #a99; height: 100%; margin: 0 0 0 var( --mnu-width ); transition: margin-left .5s; position: relative; }
#divContents { height: 100%; left: 0; margin: 0 auto; right: 0;}
#divMenu { background-color: var( --mnu-back-color ); box-sizing: border-box; height: 100%; margin: 0;
overflow-x: hidden; padding: 90px 20px 30px 10px; position: fixed; top: 0; width: var( --mnu-width ); z-index: 1; transition: 0.5s; }
#hamburger { background-color: #edd; box-sizing: border-box; cursor: pointer; font-size: 30px; left: calc( var( --mnu-width ) - 100px );
line-height: 30px; margin: 0; padding: 5px 15px 8px 10px; position: fixed; top: 0; transition: left .5s; z-index: 10; }
</style>
</head>
<body>
<div id = "divMenu" >
<div id = "divTitle" >
<a href='' style="font: 36pt monospace;" ><img src=https://dianachace.github.io/diana.gif width=100% ></a>
</div>
<h3>Model-Building Career</h3>
<p><a href='#artofpower/index.html' >• Art of Power</a></p>
<p><a href='#models/models_architecture.htm ' >• Architectural Models</a></p>
<p><a href='#models/models_engineer.htm' >• Engineering Models</a></p>
<h3>School Reunion</h3>
<p><a href='#bbn-bulletin-2017-spring/index.html' >• BBN Bulletin Spring 2017</a></p>
<h3>Family Houses</h3>
<p><a href=#burrage-redlands/index.html >• Burrage House, Redlands CA</a></p>
</div>
<div id = "divContainer" >
<div id = "divContents" ></div>
</div>
<div id = "hamburger" onclick=toggleNav(); > slide ☰ </div>
<script>
init();
function init() {
window.addEventListener( 'hashchange', onHashChange, false );
onHashChange();
}
function onHashChange() {
let url;
if ( !location.hash ) {
url = 'home-page.html';
} else {
url = location.hash.slice( 1 );
}
divContents.innerHTML = '<iframe src=' + url + ' style=border:none;height:100%;width100%; ></iframe>';
}
function toggleNav() {
const width = getComputedStyle(document.documentElement).getPropertyValue( '--mnu-width' );
if ( !divMenu.style.width || divMenu.style.width === width ) {
divMenu.style.width = '0';
divMenu.style.padding = '0';
hamburger.style.left = '-100px';
divContainer.style.marginLeft = '0';
} else {
divMenu.style.width = width;
divMenu.style.padding = '90px 20px 0 10px';
hamburger.style.left = 'calc( var( --mnu-width ) - 100px )';
divContainer.style.marginLeft = width;
}
}
</script>
</body>
</html>