-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
163 lines (145 loc) · 4.29 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Just In Sanity</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="shortcut icon" href="img/favicon.ico">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<script type="text/javascript" src="js/jquery.transit.js"></script>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script src="https://labratrevenge.com/d3-tip/javascripts/d3.tip.v0.6.3.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
</head>
<body>
<div class="container">
<div class="row clearfix">
<div class="col-md-12 column">
<div class="row clearfix">
<div class="logo">
<a href="https://justinsanity.github.com"><center><img src="img/logo.jpg"></a></a></center>
</div>
</div>
<br><br>
<div class="row clearfix">
<div class="slogan">
<center>Don't think too much, just do it in sanity!</center>
</div>
</div>
<br><br><br>
<div class="row clearfix">
<center>
<nav class="cl-effect-12" id="cl-effect-12">
<a id="intro">Just in sanity!</a>
<a id="member">Who are we?</a>
<a id="product">What we made?</a>
</nav>
</center>
</div>
</div>
</div>
</div>
<script>
var to_left = false;
var intro_clicked =false,
member_clicked = false,
product_clicked = false;
$('#intro, #member, #product').click(function(e){
/* DEBUG
console.log(this);
console.log(e);
*/
if(to_left == false){
to_left = true;
// move to leftest-top
$('.logo').transit({ x: '-500px'}, 1000);
//TODO: animate it!
$('.cl-effect-12')
.transit({x: '-500px'}, 1000)
.css({
"display": "flex",
"flex-direction": "column"
});
$('.slogan').fadeOut("slow");
}
switch(this.id){
case 'intro':
if($('svg#member'))
$('svg#member').hide();
if($('svg#product'))
$('svg#product').hide();
if(!intro_clicked)
{
intro_clicked = true;
$('.container').append('<div class="intro">Justinsanity is consisted of enthusiasts in computer\
science.<br><br>We are adventurers looking forward to figure out the \
cutting edge technology. <br><br>What we focus are technology of computer \
sceience such as front-end, back-end, web-technic, operating system, \
embedded system, software programming, and so on.<br><br>Open source, the \
spirit of sharing, is the main idea of us. We believe sharing what we mined\
in the unknown world can help people to achieve their dream and make \
knowledge become more complete.');
$('.intro').css({
"position": "absolute",
"top": "5%",
"left": "25%",
"width": "900px",
"height": "600px"
});
//TODO: text offset
}
else
{
$('.intro').show();
}
break;
case 'member':
if($('.intro'))
$('.intro').hide();
if($('svg#product'))
$('svg#product').hide();
if(!member_clicked)
{
member_clicked = true;
$('head').append('<link rel="stylesheet" href="css/member.css">');
$('body').append('<script src="js/member.js"><\/script>');
}
else
{
$('svg#member').show();
}
break;
case 'product':
if($('.intro'))
$('.intro').hide();
if($('svg#member'))
$('svg#member').hide();
if(!product_clicked)
{
product_clicked = true;
$('head').append('<link rel="stylesheet" href="css/product.css">');
$('body').append('<script src="js/product.js"><\/script>');
}
else
{
$('svg#product').show();
}
break;
}
});
</script>
</body>
</html>