-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (61 loc) · 2.32 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SITER. internet ideas.</title>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-94183-2']);
_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);
// window.onload = function() {
// ga = document.createElement("script");
// ga.src = "raphael.js";
// s.parentNode.insertBefore(ga, s);
// ga = document.createElement("script");
// ga.src = "site.js";
// s.parentNode.insertBefore(ga, s);
// };
})();
</script>
<script src="raphael.js"></script>
</head>
<body style="background-color: white; font-family: sans-serif; font-size: 10px;text-align: center;">
<a href="mailto:[email protected]" style="color: #ddd; text-decoration: none;">[email protected]</a>
<div style="margin: auto; position:relative;">
<div id="graphics" style="margin-bottom: -300px;"></div>
<img src="siter.png" alt="SITER internet ideas" />
</div>
<script type="text/javascript" charset="utf-8">
// Canvas is created at the top left corner of the #notepad element
// (or its top right corner in dir="rtl" elements)
var paper = Raphael("graphics", 700, 300);
var x_lines = 10;
var lines = {};
var interval_id = setInterval("draw_line()", 1000);
//setTimeout("stop_anim()", 5000);
function stop_anim(){
clearInterval(interval_id);
}
function draw_line() {
var rgb = ["0","0","0"];
// var col = Math.round(Math.random()*3);
rgb[0]=Math.floor(Math.random()*255);
rgb[1]=Math.floor(Math.random()*255);
rgb[2]=Math.floor(Math.random()*255);
var colwidth = Math.round(Math.random()*200);
var pos = Math.round(Math.random()*700);
var line = Math.round(Math.random()*10);
if (!lines[line]) {
lines[line] = paper.rect(pos, 0, colwidth,300).attr({fill: "rgb("+rgb+")", stroke:null, "fill-opacity": 0.2});
} else {
var stripe = lines[line];
stripe.animate({x: pos, width: colwidth, fill: "rgb("+rgb+")"}, 300);
}
}
</script>
</body>
</html>