-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplay.html
More file actions
161 lines (154 loc) · 4.9 KB
/
play.html
File metadata and controls
161 lines (154 loc) · 4.9 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="keywords" content="HTML,CSS,D3,JavaScript">
<meta name="author" content="Lefteris Tatakis">
<meta itemscope itemtype="http://schema.org/CreativeWork" itemprop="creator" content="Lefteris Tatakis" />
<meta name="description" content="My personal page on the Internet.">
<meta name="keywords" content="Developer, computer science, cretecompare, crete, cars ">
<link rel="shortcut icon" href="lt.png">
<meta itemscope itemtype="http://schema.org/CreativeWork" itemprop="creator" content="Lefteris Tatakis"/>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Lefteris Tatakis</title>
<script src='//d3js.org/d3.v2.js'></script>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-49230117-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<style>
/* Remove the navbar's default margin-bottom and rounded borders */
.navbar {
margin-bottom: 0;
border-radius: 0;
}
/* Add a gray background color and some padding to the footer */
footer {
background-color: fff ; /* lightsteelblue;*/
padding: 25px;
}
</style>
<style type="text/css">
.fluidList {
list-style: none;
list-style-image: none;
margin: 0;
padding: 0;
}
.pageMenu {
vertical-align: middle;
text-align: center;
}
.fluid {
clear: both;
margin-left: 0;
width: 100%;
float: left;
display: block;
}
.item {
width: 10.0344%;
/*margin-left: 3.4482%;*/
clear: none;
height: 30px;
font-size: large;
margin-top: 10px;
}
body {
background: #ffffff;
color:blue;
}
circle {
fill: none;
stroke-width: 1.5px;
}
.DoONhover:hover {
background-color: #4830d6;
margin-top: 5px;
}
text {
fill: blue;
}
.floatRight {
float: right;
}
.project-wrap {
width: 100%;
font-size: 17px;
color: white;
margin: 0 auto;
}
.project {
background: #5435ff;
color: #fff;
font-size: 17px;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
z-index: 9999;
display: block;
}
.navbar-inverse {
background-color: #fff;
border-color: #5435ff;
}
.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus {
color: #fff;
background-color: blue;
}
.navbar-inverse .navbar-brand .navbar-brand>a>:hover {
color: blue;
}
.navbar-inverse .navbar-brand .navbar-nav>a>:hover {
color: blue;
}
</style>
</head>
<body>
<script type="text/javascript">
var w = window.innerWidth,
h = window.innerHeight - window.innerHeight*.01 ,
i = 0;
var svg = d3.select("body").append("svg:svg")
.attr("width", w)
.attr("height", h)
.style("pointer-events", "all")
.on("mousemove", particle);
svg.append('svg:text').text(' Move your mouse around :) ')
.attr('x', w / 4)
.attr('y', h / 2 - 20)
.style("font-size", "50px");
svg.append('text').text('Created using d3js')
.attr('x', w - 100)
.attr('y', h - 10)
.style("font-size", "10px");
function particle() {
var m = d3.svg.mouse(this);
svg.append("svg:circle")
.attr("cx", m[0])
.attr("cy", m[1])
.attr("r", 1e-6)
.style("stroke", "steelblue")
.style("stroke-opacity", 1)
.transition()
.duration(2000)
.ease(Math.sqrt)
.attr("r", 100)
.style("stroke-opacity", 1e-6)
.remove();
}
</script>
<footer class="container-fluid text-center">
<p>© Lefteris Tatakis 2018</p>
</footer>
</body>
</html>