-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (71 loc) · 2.26 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/semantic.min.css"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.address/1.6/jquery.address.min.js"></script>
<script type="text/javascript" src="javascript/semantic.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('a.download-button').click(function () {
var barWidth = 0
, downloadBar = $('.download-bar .bar');
var id = setInterval(function () {
var progress = parseInt(Math.random() * 10);
if (barWidth >= 100) {
$('.download-bar')
.removeClass("active")
.addClass("successful");
clearInterval(id);
}
if ((barWidth + progress) >= 100) {
progress = 100 - barWidth;
}
barWidth += progress;
downloadBar.width(barWidth + '%');
}, 150);
});
});
</script>
</head>
<body>
<div class="ui red inverted head menu">
<a class="active item">
<i class="home icon"></i>Home
</a>
<a class="item">
<i class="user icon"></i>My
</a>
</div>
<div class="ui vertical segment">
<h1 class="ui inverted red block header">S</h1>
<div class="ui icon message">
<i class="lab icon"></i>
<div class="content">
<div class="header">
I love coding!
</div>
<p>I favorite any programming language is python.</p>
</div>
</div>
<a class="ui facebook button" href="https://facebook.com/futoase">
<i class="facebook icon"></i>
Facebook
</a>
<a class="ui twitter button" href="https://twitter.com/xga">
<i class="twitter icon"></i>
Twitter
</a>
</div>
<div class="ui vertical segment">
<p>
<div class="ui active progress download-bar">
<div class="bar"></div>
</div>
</p>
<p>
<a class="ui red button download-button">download</a>
</p>
</div>
</body>
</html>