-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
169 lines (143 loc) · 5.23 KB
/
index.html
File metadata and controls
169 lines (143 loc) · 5.23 KB
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE HTML>
<html>
<head>
<title>Sample</title>
<style>
html {
padding:0;
margin:0;
}
body {
padding:0;
margin:0;
border:1px solid red;
}
header {
position:fixed;
top:0;
width:100%;
height:90px;
background-color:#ffd205;
z-index:10;
}
#main {
position:relative;
margin-top:90px;
}
footer {
position:relative;
clear:both;
width:100%;
height:110px;
background-color:#ffd205;
}
.content {
max-width:1000px;
margin: 0px auto 0px auto;
padding: 0.5rem 0.5rem 0.5rem 0.5rem;
display:flex;
}
#toc {
position:fixed;
// float:left;
// margin:2rem 0.5rem 1rem 1rem;
//margin: 0.5rem 0.5rem 0.5rem 0.5rem;
width:10rem;
max-height:calc(100vh - 220px);
overflow-y:auto;
background-color:#fafafa;
line-height:150%;
}
#detail {
margin: 0 0.5rem 0 0.5rem;
position:relative;
left:14rem;
width:calc(100% - 15rem);
background-color:#f8f8f8;
min-height:calc(100vh - 220px);
}
.menu {
margin: auto 0.5rem auto auto;
//position:relative;
//float:right;
//margin: auto 2rem auto 2rem;
//top:1rem;
}
.menu .item {
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<header>
<div class="content">
<img src="https://www.titanhelicopters.com/wp-content/uploads/2016/03/logo.jpg" style="float:left; margin-left: 0.5rem;">
<div class="menu">
<span class="item">Menu 1</span>
<span class="item">Menu 2</span>
<span class="item">Menu 3</span>
<span class="item">Menu 4</span>
</div>
</div>
</header>
<section id="main">
<div class="content">
<script>
update_detail = function (evt) {
var t = $(this).html();
var vidurl = $(this).attr("href");
evt.stopPropagation();
evt.preventDefault();
if (vidurl == "") {
alert ("No Video URL found");
} else {
// var videlt = '<video id="myvideo" width="640" controls><source src="' + vidurl + '">Your browser does not support the video tag.</video>';
var amps = vidurl.search("[?]")==-1?"?":"&"
var videlt = '<iframe id="ifr" width="100%" src="'+vidurl+amps+'autoplay=1&mute=1" frameborder="0" allow="autoplay; fullscreen; encrypted-media" allowfullscreen> </iframe>'
$("#detail").html(videlt);
// console.log($("#detail #ifr").height());
// console.log("det height:"+ $("#detail").height())
$("#detail #ifr").height($("#detail").height()-5);
// console.log($("#detail #ifr").height());
}
}
$(function () {
$("#toc a").click( update_detail );
})
</script>
<div id="toc">
<a href="https://www.youtube.com/embed/PO3ZasI9szU">Create eMail Signature</a><br>
<a href="https://www.youtube.com/embed/rictg1_wPyY">Move Desktop Items to Dropbox</a><br>
<a href="">Video 3</a><br>
<a href="">Video 4</a><br>
<a href="">Video 5</a><br>
<a href="">Video 6</a><br>
<a href="">Video 7</a><br>
<a href="">Video 8</a><br>
<a href="">Video 9</a><br>
<a href="">Video 10</a><br>
<a href="">Video 11</a><br>
<a href="">Video 12</a><br>
<a href="">Video 13</a><br>
<a href="">Video 14</a><br>
<a href="">Video 15</a><br>
<a href="">Video 16</a><br>
<a href="">Video 17</a><br>
<a href="">Video 18</a><br>
<a href="">Video 19</a><br>
<a href="">Video 20</a><br>
</div>
<div id="detail">
Pretium cursus faucibus mauris. Nam, posuere phasellus tellus ornare praesent maecenas arcu at dapibus! Sem etiam faucibus euismod platea viverra velit. Facilisi pulvinar dictumst faucibus ut erat dui dictumst! Integer rutrum inceptos praesent imperdiet euismod lacus ullamcorper eleifend. Aliquet cum tellus pretium odio curae;; facilisis metus ante commodo himenaeos? Luctus id penatibus non arcu.
Erat placerat lacinia habitasse quam aenean? Dignissim tristique urna porta a id augue. Lorem sociis, est nibh tortor inceptos lectus blandit habitasse! Ultrices egestas fames ante est vitae purus venenatis donec rhoncus enim ultrices. Feugiat vivamus proin justo vulputate, consequat diam nulla amet senectus senectus felis. Elit rhoncus torquent aenean per magna diam! Phasellus laoreet quis tempus. Parturient volutpat condimentum arcu tincidunt tempor. Tempor et ipsum tortor.
**** No need to place long text here, otherwise we need to to change site layout further
<div>
</div>
</section>
<footer>
<div class="content">
footer inhalt
</div>
</footer>
</body>
</html>