-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
arms(beginner).html
162 lines (138 loc) Β· 4.66 KB
/
arms(beginner).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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html>
<title>ARMS-BEGINNER</title>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.container{width:100%}
.left{width:22%;float:left;}
.body{width:45%;float:left;}
.right{width:22%;float:left;}
body{
background-color: black;
color: white;
}
.i:hover{
width: 160%;
opacity: 0.8;
}
</style>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(window).on("load", function() {
$(window).scroll(function() {
var windowBottom = $(this).scrollTop() + $(this).innerHeight();
$(".fade").each(function() {
/* Check the location of each desired element */
var objectBottom = $(this).offset().top + $(this).outerHeight();
/* If the element is completely within bounds of the window, fade it in */
if (objectBottom < windowBottom) { //object comes into view (scrolling down)
if ($(this).css("opacity") == 0) {
$(this).fadeTo(500, 1);
}
} else { //object goes out of view (scrolling up)
if ($(this).css("opacity") == 1) {
$(this).fadeTo(500, 0);
}
}
});
}).scroll(); //invoke scroll-handler on page-load
});
</script>
<h1 align="center" style="background-color: blue;font-size: 40px;">ARMS-BEGINNER</h1>
<div class="container">
<div class="left">
<div class="fade">
<video src="images/jumpingjacks.mp4" width="150%" height="12%" autoplay="autoplay" muted="true" loop="true" class="i"></video></div>
<br>
<br>
<div class="fade">
<video src="images/wall.mp4" width="150%" height="12%" autoplay="true" muted="true" loop="true" class="i"></video></div>
<br>
<br>
<div class="fade">
<video src="images/punches.mp4" width="150%" height="12%" autoplay="true" muted="true" loop="true" class="i"></video></div>
<br>
<br>
<div class="fade">
<video src="images/pushups.mp4" width="150%" height="12%" autoplay="true" muted="true" loop="true" class="i"></video></div>
<br>
<br>
<div class="fade">
<video src="images/diagonalplank.mp4" width="150%" height="12%" autoplay="true" muted="true" loop="true" class="i"></video></div>
<br>
<br>
</div>
<div class="body" align="center">
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<fieldset style=" color: red; width: 30%;border-radius: 100%; background-color: grey; margin-left: 20%;">
<button onclick="my()" style="padding: 12px; border-radius: 50%">
start
</button>
<b style="font-size: 20px;"><p id = "hi"></p>
<button onclick="u()" style="padding: 12px; border-radius: 50%;">
stop
</button>
<button onclick="re()" style="padding: 12px; border-radius: 50%">
reset
</button>
</fieldset>
<script>
var t=[0]
var f=[0]
var te=new Array(1)
function myAlert() {
document.getElementById("hi").innerHTML = t[0]/100
t[0]+=1
}
function u(){
clearInterval(te[0])
f[0]=0
}
function my(){
if (f[0]==0){
te[0] = setInterval(myAlert, 10)
f[0]=1
}
}
function re(){
t[0]=0
myAlert()
}
function tired(){
alert("Take A Break Of 90 Seconds")
}
function nottired(){
alert("Continue ")
}
</script><br><br><br>
<button onclick="tired()" style="padding:1%; border-radius: 30px; margin-left:20%;">Feeling Exausted?</button>
<button onclick="nottired()" style="padding:1%; border-radius: 30px;">Not Exausted!!</button>
</div>
<div class="right">
<div class="fade">
<video src="images/armrsaise.mp4" width="150%" height="10%" autoplay="true" muted="true" loop="true" class="i"></video></div>
<br>
<br>
<div class="fade">
<video src="images/sidearm.mp4" width="150%" height="10%" autoplay="true" muted="true"loop="true" class="i"></video></div>
<br>
<br>
<div class="fade">
<video src="images/triceps.mp4" width="150%" height="10%" autoplay="true" muted="true" loop="true" class="i"></video></div>
<br>
<br>
<div class="fade">
<video src="images/armanticlock.mp4" width="150%" height="10%" autoplay="true" muted="true" loop="true" class="i"></video></div>
<br>
<br>
<div class="fade">
<video src="images/armclock.mp4" width="150%" height="10%" autoplay="true" muted="true" loop="true" class="i"></video></div>
<br>
<br>
</div>
</div>
</body>
</html>