-
Notifications
You must be signed in to change notification settings - Fork 2
/
nav.html
32 lines (28 loc) · 963 Bytes
/
nav.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
<body id="body">
<link rel="stylesheet" href="./css/nav.css">
<input type="file" id="dirsel" webkitdirectory="" directory="">
<div id="console">
<div id="history"></div>
<div id="currentDir"></div>
<input type="text" id="cmdline">
</div>
<script type="text/x-glsl-fs" id="bg-frag">
precision mediump float;
uniform sampler2D Texture0;
uniform float aspect;
varying vec2 texCoord0;
void main() {
float ds = 2.0*(texCoord0.s-0.5);
float dt = texCoord0.t-0.5;
float r = sin((dt*3.0+ds*ds) * 400.0);
float dx = (1.1-texCoord0.s) * aspect;
float dy = (0.9-texCoord0.t) / aspect;
float d = sqrt(dx*dx + dy*dy)+0.05*r;
vec4 c = vec4(0.76,0.72,0.78, 0.5-0.8*d);
gl_FragColor = c*c.a;
}
</script>
<script type="text/javascript" src="./js/magi.js"></script>
<script type="text/javascript" src="./js/fsn.js"></script>
<script type="text/javascript" src="./js/main.js"></script>
</body>