-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
189 lines (171 loc) · 6.09 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<link rel="image_src" content="https://camo.githubusercontent.com/fc70a23a27354026801f13c74cfa7ace824b4b88/68747470733a2f2f726177322e6769746875622e636f6d2f6d316368336c2f726164696f2d706c617965722f6d61737465722f6173736574732f73637265656e73686f742e706e67"/>
<meta property="og:title" content="Radio m1ch3l" />
<meta property="og:description" content="Si t'écoutes pas radio m1ch3l, un petit chaton va mourir" />
<meta property="og:url" content="http://radio.m1ch3l.biz" />
<meta property="og:type" content="website" />
<meta property="fb:app_id" content="733861740009782" />
<meta property="fb:admins" content="718665950,100001871727802" />
<meta property="og:image" content="https://camo.githubusercontent.com/fc70a23a27354026801f13c74cfa7ace824b4b88/68747470733a2f2f726177322e6769746875622e636f6d2f6d316368336c2f726164696f2d706c617965722f6d61737465722f6173736574732f73637265656e73686f742e706e67"/>
<meta property="og:image:secure_url" content="https://camo.githubusercontent.com/fc70a23a27354026801f13c74cfa7ace824b4b88/68747470733a2f2f726177322e6769746875622e636f6d2f6d316368336c2f726164696f2d706c617965722f6d61737465722f6173736574732f73637265656e73686f742e706e67"/>
<style>
*{margin: 0; padding 0;}
body{background-color: #000; text-align: center;}
html,body{width:100%;height:100%;overflow:hidden;}
canvas{width:100%;height:90%}
#controls{position:absolute; right: 0; bottom:0; width: 300px; height: 200px; display: block; z-index: 100}
</style>
<script src="assets/codef_core.js"></script>
<script src="assets/codef_starfield.js"></script>
<script src="assets/codef_scrolltext.js"></script>
<script src="assets/codef_3d.js"></script>
<script>
var canvas, starfield, scrolltext, s3d;
var font = new image('assets/font2.png');
var scanline = new image('assets/scanline.png');
var scrollparam=[{myvalue: 0, amp: 30, inc:0.2, offset: -0.04}];
var obj = new Array();
var objvert = new Array();
objvert=[
{x:1, y:1, z:1},
{x:1, y:-1, z:1},
{x:-1, y:-1, z:1},
{x:-1, y:1, z:1},
{x:1, y:1, z:-1},
{x:1, y:-1, z:-1},
{x:-1, y:-1, z:-1},
{x:-1, y:1, z:-1}, //1st cube
{x:2, y:2, z:2},
{x:2, y:-2, z:2},
{x:-2, y:-2, z:2},
{x:-2, y:2, z:2},
{x:2, y:2, z:-2},
{x:2, y:-2, z:-2},
{x:-2, y:-2, z:-2},
{x:-2, y:2, z:-2}, //2nd cube
];
obj=[
{p1:0, p2:1},
{p1:1, p2:2},
{p1:2, p2:3},
{p1:3, p2:0}, //1st cube up
{p1:4, p2:5},
{p1:5, p2:6},
{p1:6, p2:7},
{p1:7, p2:4}, //1st cube down
{p1:0, p2:4},
{p1:1, p2:5},
{p1:2, p2:6},
{p1:3, p2:7}, //1st cube sides
{p1:8, p2:9},
{p1:9, p2:10},
{p1:10, p2:11},
{p1:11, p2:8}, //2st cube up
{p1:12, p2:13},
{p1:13, p2:14},
{p1:14, p2:15},
{p1:15, p2:12}, //2st cube down
{p1:8, p2:12},
{p1:9, p2:13},
{p1:10, p2:14},
{p1:11, p2:15}, //2st cube sides
{p1:0, p2:8},
{p1:1, p2:9},
{p1:2, p2:10},
{p1:3, p2:11}, //4D links up
{p1:4, p2:12},
{p1:5, p2:13},
{p1:6, p2:14},
{p1:7, p2:15}, //4D links down
];
function init(){
var width=840, height=420;
canvas = new canvas(width, height, "main");
font.initTile(32,32,32);
scrolltext = new scrolltext_horizontal();
scrolltext.scrtxt="RADIO M1CH3L ";
scrolltext.init(canvas, font, 1, scrollparam);
s3d=new codef3D(canvas, 20, 20, 2, 50 );
s3d.lines(objvert, obj, new LineBasicMaterial({ color: 0x00ffff, linewidth:2}));
starfield = starfield3D(canvas,
200, //numStars
1, //speed
width, //width
height, //height
10, //center x,
this.height/2, //center y
'#FFF', //color
100, //ratio,
0,
0);
go();
document.getElementById('loader').style.display = 'none';
}
function go(){
canvas.fill('#000');
s3d.group.rotation.x+=0.01;
s3d.group.rotation.y+=0.02;
s3d.group.rotation.z+=0.04;
starfield.draw();
s3d.draw();
scrolltext.draw(50-16);
requestAnimFrame( go );
}
</script>
</head>
<body onload="init();">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "http://connect.facebook.net/en_US/sdk.js#xfbml=1&appId=733861740009782&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div>
<div id="main"></div>
<img id="loader" src="assets/loader.gif"><br/>
<div id="controls">
<audio autoload="true" autoplay="true" controls>
<source src="http://stream.m1ch3l.biz/aac-192" />
<source src="http://stream.m1ch3l.biz/mp3-192" />
<source src="http://stream.m1ch3l.biz/vorbis" />
<source src="http://stream.m1ch3l.biz/aac-128" />
<source src="http://stream.m1ch3l.biz/mp3-128" />
</audio>
<a href="playlist.m3u">
<img src="assets/play.png" />
</a>
</div>
<a href="https://github.com/m1ch3l/radio-player" target="_blank">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub">
</a>
</div>
<table style="width: 550px; margin: auto;">
<tr>
<td>
<div style="height: 80px; width: 550px; margin: auto">
<div class="fb-like" data-href="https://www.facebook.com/super.m1ch3l" data-layout="standard" data-action="like" data-show-faces="true" data-share="true" data-colorscheme="dark" data-width="100%"></div>
</div>
</td>
</tr>
<tr>
<td>
<div class="fb-comments" data-href="http://radio.m1ch3l.biz" data-numposts="5" data-colorscheme="dark" data-order-by="reverse_time"></div>
</td>
</tr>
</table>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-47804611-2', 'm1ch3l.biz');
ga('send', 'pageview');
</script>
</body>
</html>