-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (97 loc) · 2.13 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
<STYLE>
body { background: #696969; }
/* container */
.container {
padding: 5% 5%;
}
/* CSS talk bubble */
.talk-bubble {
margin: 40px;
display: inline-block;
position: absolute;
width: 200px;
height: auto;
background-color: #2D3986;
}
.border{
border: 8px solid #666;
}
.round{
border-radius: 30px;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
}
/* Right triangle placed top left flush. */
.tri-right.border.left-top:before {
content: ' ';
position: absolute;
width: 0;
height: 0;
left: -40px;
right: auto;
top: -8px;
bottom: auto;
border: 32px solid;
border-color: #2D3986 transparent transparent transparent;
}
.tri-right.left-top:after{
content: ' ';
position: absolute;
width: 0;
height: 0;
left: -20px;
right: auto;
top: 0px;
bottom: auto;
border: 22px solid;
border-color: #2D3986 transparent transparent transparent;
}
/* talk bubble contents */
.talktext{
padding: 1em;
text-align: left;
line-height: 1.5em;
}
.talktext p{
color: white;
/* remove webkit p margins */
-webkit-margin-before: 0em;
-webkit-margin-after: 0em;
}</STYLE>
<meta charset="utf-8">
<center>
<img src="https://github.com/TechEducationPlusPlus/Avatar/raw/master/bad_boy.png">
<div class="talk-bubble tri-right left-top">
<div class="talktext">
<p id="0">Hi!</p>
<p id="1">Nice to meet you. I'm Amon.</p>
<p id="2">First lesson for today is introduction to C++.</p>
<p id="3">First of all you must install Code::Blocks.</p>
<p id="4">...</p>
<button><big><big><big>⇨</big></big></big></button>
</div>
</div>
</center>
<script>
var ind = 0;
for (var x of document.getElementsByTagName ("p"))
{
x.style = "display: none;";
}
document.getElementsByTagName ("p") [ind].style = "";
document.getElementsByTagName ("button")[0].onclick = function ()
{
ind ++;
ind = ind % document.getElementsByTagName ("p").length;
for (var x of document.getElementsByTagName ("p"))
{
x.style = "display: none;";
}
document.getElementsByTagName ("p") [ind].style = "";
};
document.body.onkeyup = function(e){
if(e.keyCode == 32){
document.getElementsByTagName ("button")[0].onclick ();
}
}
</script>