-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlastpage.html
180 lines (170 loc) · 7.17 KB
/
lastpage.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html>
<head>
<title>Крај</title>
<meta name="keywords" content="html,css,lekcii">
<meta name="description" content="ova e strana za ucenje">
<meta name="author" content="Kristijan Bobevski">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="icon" type="image/png" href="https://cdn.brainster.co/assets/images/favicon_dark/favicon-32x32.png" sizes="32x32">
</head>
<body>
<nav class="nav navbar-inverse">
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#menu-button" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="menu-button">
<ul class="nav navbar-nav navbar-right">
<li><a href="http://codepreneurs.co/"><i class="glyphicon glyphicon-home"></i> Академија за програмирање</a></li>
<li><a href="https://brainster.co/"><i class="fa fa-users" aria-hidden="true"></i> Курсеви</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="row flex flex-height-lastpage animated zoomIn">
<div class="col-md-6 col-md-offset-3 text-center col-sm-8 col-sm-offset-2 col-xs-10 col-xs-offset-1 col-margin-media">
<img alt="" class="orange-emo" id="total">
<h4 class="text-muted" id="rezTotal"></h4>
<h3 class="cl-orange" id="totalMessage"></h3>
<h4 class="text-muted m-bottom" id="totalStatus"></h4>
<div class="flex-between m-bottom">
<div class="text-center">
<h5 class="text-muted text-media">Работа</h5>
<i class="fa fa-heart fa-2x ico-media" aria-hidden="true"></i>
<img class="red-emo" id="rez1">
<h5 class="text-muted 1stVal"></h5>
</div>
<div class="text-center">
<h5 class="text-muted text-media">Тим</h5>
<i class="fa fa-users fa-2x ico-media" aria-hidden="true"></i>
<img class="orange-emo-sm" id="rez2">
<h5 class="text-muted 2ndVal"></h5>
</div>
<div class="text-center">
<h5 class="text-muted text-media">Продуктивност</h5>
<i class="fa fa-coffee fa-2x ico-media" aria-hidden="true"></i>
<img class="red-emo" id="rez3">
<h5 class="text-muted 3rdVal"></h5>
</div>
<div class="text-center">
<h5 class="text-muted text-media">Едукација</h5>
<i class="fa fa-graduation-cap fa-2x ico-media" aria-hidden="true"></i>
<img class="red-emo" id="rez4">
<h5 class="text-muted 4thVal"></h5>
</div>
<div class="text-center">
<h5 class="text-muted text-media">Стрес</h5>
<i class="fa fa-clock-o fa-2x ico-media"></i>
<img class="red-emo" id="rez5">
<h5 class="text-muted 5thVal"></h5>
</div>
</div>
<h6 class="text-center m-bottom">Ако сакаш да го измериш задоволството на вашите вработени, регистрирај се, а ние ќе ви ги испратиме опциите.</h6>
<a href="register.html" class="reg-button">РЕГИСТРИРАЈ СЕ</a>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row bg-inverse">
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1 col-sm-12 col-xs-12">
<div class="row footer-padding">
<div class="col-md-8 hidden-sm hidden-xs">
<p class="copy">© 2018 | Brainster Codepreneurs Academy. All rights reserved. | Design & Code: <span class="cl-white">Kristijan Bobevski</span>.</p>
</div>
<div class="col-md-3 col-md-offset-1 text-right col-xs-12 txt-align-media">
<p class="home"><a href="index.html">Почни од почеток?</a></p>
<img src="brain.png" alt="" width="50px">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$(function(){
var local_first = localStorage.getItem('1stValue')/10;
$('.1stVal').text(local_first.toFixed(1));
var local_second = localStorage.getItem('2ndValue')/10
$('.2ndVal').text(local_second.toFixed(1));
var local_third = localStorage.getItem('3rdValue')/10;
$('.3rdVal').text(local_third.toFixed(1));
var local_fourth = localStorage.getItem('4thValue')/10;
$('.4thVal').text(local_fourth.toFixed(1));
var local_fifth = localStorage.getItem('5thValue')/10;
$('.5thVal').text(local_fifth.toFixed(1));
function calculate(value,element){
if ( value <= 0.9 ) {
element.attr({
src: 'red.png'
});
$('#totalMessage').text('Неделава беше ужасна...').css({
color: 'red'
});
$('#totalStatus').text('Не очајувај, со поголем труд, до поголем успех')
} else if (value > 0.9 && value <= 3.9){
element.attr({
src: 'orange.png'
})
$('#totalMessage').text('Можеше и подобро.').css({
color: '#ff7f27'
});
$('#totalStatus').text('Насмеј се и започни ја следната недела позитивно.')
} else if (value > 3.9 && value <= 6.0){
element.attr({
src: 'yellow.png'
});
$('#totalMessage').text('Уште една обична работна недела.').css({
color: '#fff200'
});
$('#totalStatus').text('Задржи го фокусот и направи ја наредната недела подобра.')
} else if (value > 6.0 && value <= 9.0){
element.attr({
src: 'lightgreen.png'
});
$('#totalMessage').text('Забавно беше.').css({
color: '#7aff0e'
});
$('#totalStatus').text('Задржи ја мотивацијата и продолжи така и следната недела.')
} else if (value > 9.0 && value <= 10.0){
element.attr({
src: 'green.png'
});
$('#totalMessage').text('WOW, одлична недела.').css({
color: '#0ed145'
});
$('#totalStatus').text('Пренеси ја радоста и самодовербата и во наредната недела.')
}
}
var total = (local_first + local_second + local_third + local_fourth + local_fifth)/5;
$('#rezTotal').text(total.toFixed(1));
calculate(local_first, $('#rez1'));
calculate(local_second, $('#rez2'));
calculate(local_third, $('#rez3'));
calculate(local_fourth, $('#rez4'));
calculate(local_fifth, $('#rez5'));
calculate(total, $('#total'));
});
</script>
</body>
</html>