-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
168 lines (151 loc) · 7.78 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
164
165
166
167
168
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no,user-scalable=0"/>
<title>nodes.js - js connected nodes animation</title>
<meta name="description" content="nodes.js is a nodes/particles animation useable for backgrounds">
<meta name="keywords" content="nodes, animation, particlees, web, html5, canvas, backgorund">
<style type="text/css">
* {
padding: 0px;
margin: 0px;
}
body {
font-family: 'Arial';
font-size: 14px;
line-height: 20px;
color: white;
background: black;
}
.a,
.a:visited {
color: white;
text-decoration: underline;
}
.a:hover {
}
.btn,
a.btn,
a.btn:visited {
text-decoration: none;
color: white;
display: inline-block;
cursor: pointer;
border: 1px solid #c1c1c1;
border-bottom: 2px solid #c1c1c1;
padding: 5px; border-radius: 2px;
transition: all 250ms;
font-size: 14px;
}
.btn:hover {
box-shadow: 0px 0px 12px 0px rgba(255,255,255, 0.5);
background: rgba(255,255,255,0.3);
}
.mainBox {
width: 500px;
display: inline-block;
border-radius: 2px;
background: rgba(255,255,255,0.2);
margin-top: 200px;
}
@media only screen and (max-width: 600px) {
.mainBox {
width: 300px;
}
}
@media only screen and (max-height: 700px) {
.mainBox {
margin-top: 50px;
}
}
</style>
</head>
<body>
<!-- <nodes.js embedding> -->
<script type="text/javascript" src="js/nodes.js"></script>
<script type="text/javascript">
var nodesjs = new NodesJs({
id: 'nodes',
width: window.innerWidth,
height: window.innerHeight,
particleSize: 2,
lineSize: 1,
particleColor: [255, 255, 255, 0.3],
lineColor: [255, 255, 255],
backgroundFrom: [10, 25, 100],
backgroundTo: [25, 50, 150],
backgroundDuration: 4000,
nobg: false,
number: window.hasOwnProperty('orientation') ? 30: 100,
speed: 20
});
</script>
<div style="position: absolute; left: 0px; top: 0px; overflow: hidden; width: 100%; height: 100%;">
<canvas id="nodes"></canvas>
</div>
<!-- </nodes.js embedding> -->
<script type="text/javascript">
window.onresize = function () {
nodesjs.setWidth(window.innerWidth);
nodesjs.setHeight(window.innerHeight);
};
</script>
<div style="position: relative; z-index: 100;">
<div style="text-align: center; font-family: 'Arial';">
<div class="mainBox">
<div style="font-size: 25px; margin-bottom: 5px; margin-top: 10px; position: relative; display: inline-block; margin-bottom: 10px;">
nodes.js
<div style="font-size: 13px; position: absolute; right: -30px; top: 0px; display: inline-block; color: #9f9f9f;">v1.5</div>
</div>
<div style="font-size: 13px; margin-bottom: 5px;">
HTML5 Canvas nodes/particles animation with Javascript
</div>
<div style="font-size: 13px; margin-bottom: 15px;">
<a href="https://github.com/rohanrhu/nodes.js" class="a" target="_blank">
https://github.com/rohanrhu/nodes.js
</a>
</div>
<div style="background: rgba(0,0,0, 0.75); margin-bottom: 25px; text-align: left; padding: 5px; overflow">
<!-- HTML generated using hilite.me --><div style=""><pre style="margin: 0; line-height: 125%"><span style="color: #008800; font-style: italic"><!-- <nodes.js embedding> --></span>
<span style="color: #000080; font-weight: bold"><script </span><span style="color: #FF0000">type=</span><span style="color: #0000FF">"text/javascript"</span> <span style="color: #FF0000">src=</span><span style="color: #0000FF">"js/nodes.js"</span><span style="color: #000080; font-weight: bold">></script></span>
<span style="color: #000080; font-weight: bold"><script </span><span style="color: #FF0000">type=</span><span style="color: #0000FF">"text/javascript"</span><span style="color: #000080; font-weight: bold">></span>
<span style="color: #000080; font-weight: bold">var</span> nodesjs = <span style="color: #000080; font-weight: bold">new</span> NodesJs({
id: <span style="color: #0000FF">'nodes'</span>,
width: window.innerWidth,
height: window.innerHeight,
particleSize: <span style="color: #0000FF">2</span>,
lineSize: <span style="color: #0000FF">1</span>,
particleColor: [<span style="color: #0000FF">255</span>, <span style="color: #0000FF">255</span>, <span style="color: #0000FF">255</span>, <span style="color: #0000FF">0.3</span>],
lineColor: [<span style="color: #0000FF">255</span>, <span style="color: #0000FF">255</span>, <span style="color: #0000FF">255</span>],
backgroundFrom: [<span style="color: #0000FF">10</span>, <span style="color: #0000FF">25</span>, <span style="color: #0000FF">100</span>],
backgroundTo: [<span style="color: #0000FF">25</span>, <span style="color: #0000FF">50</span>, <span style="color: #0000FF">150</span>],
backgroundDuration: <span style="color: #0000FF">4000</span>,
nobg: <span style="color: #000080; font-weight: bold">false</span>,
number: window.hasOwnProperty(<span style="color: #0000FF">'orientation'</span>) ? <span style="color: #0000FF">30</span>: <span style="color: #0000FF">100</span>,
speed: <span style="color: #0000FF">20</span>
});
<span style="color: #000080; font-weight: bold"></script></span>
<span style="color: #000080; font-weight: bold"><canvas</span> <span style="color: #FF0000">id=</span><span style="color: #0000FF">"nodes"</span><span style="color: #000080; font-weight: bold">></canvas></span>
<span style="color: #008800; font-style: italic"><!-- </nodes.js embedding> --></span>
</pre></div>
</div>
<div style="padding: 10px;">
<a class="btn" href="https://github.com/rohanrhu/nodes.js/archive/master.zip">
Download ZIP
</a>
<a class="btn" href="https://github.com/rohanrhu/nodes.js">
Source Code
</a>
<div style="font-size: 13px; margin: auto;margin-top: 15px;">
Copyright ©
<a href="http://oguzhaneroglu.com" class="a" target="_blank">Oğuzhan Eroğlu</a>,
licensed under <a href="http://opensource.org/licenses/MIT" class="a" target="_blank">MIT</a>.
</div>
</div>
</div>
</div>
</div>
<a href="https://github.com/rohanrhu/nodes.js" target="_blank"><img style="position: absolute; z-index: 2000; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"></a>
</body>
</html>