Large diffs are not rendered by default.

@@ -1,157 +1,97 @@
html, body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background-color: black;
color: white;
font-size: 12px;
font-family: Michroma, sans-serif;
}
#header {
width: 100%;
height: 40px;
padding: 8px;
#social {
position: absolute;
right: 0;
top: 32px;
}
& > * {
display: inline-block;
vertical-align: baseline;
color: #fff;
opacity: 0.5;
}
& > *:hover {
opacity: 1.0;
}
h1 {
padding-right: 8px;
}
}
#cc, #video {
position: absolute;
top: 83px;
bottom: 25px;
left: 0;
right: 0;
}
#video {
display: none;
iframe {
width: 100%;
height: 100%;
}
}
#c {
z-index: 1;
width: 100%;
height: 100%;
}
#social {
& > * {
vertical-align: top;
display: inline;
}
.fb-like {
* {
vertical-align: top;
}
}
}
#header a, #header a {
color: #fff;
text-decoration: none;
}
#menu {
background-color: #333;
padding: 4px 0;
& > span {
padding: 0 8px;
}
}
.fullscreen, .generate-world, .show-controls {
cursor: pointer;
}
#footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 24px;
color: white;
opacity: 0.5;
padding-left: 8px;
a {
color: #ffffff;
}
a:hover {
text-shadow: white 0 0 5px;
}
}
#loading {
font-size: 2em;
line-height: 2em;
padding: 1em;
.status {
font-family: Monospace, mono-space;
letter-spacing: 0.3em;
}
}
#debug {
z-index: 200;
position: absolute;
right: 50px;
top: 50px;
width: 200px;
padding: 10px;
background-color: rgba(0, 0, 0, 0.8);
display: none;
}
#perfhub {
display: none;
position: absolute;
z-index: 300;
top: 82px;
right: 0px;
background-color: black;
}
canvas:-webkit-full-screen {
width: 100% !important;
height: 100% !important;
}
canvas:-moz-full-screen {
width: 100% !important;
height: 100% !important;
}
#controls {
position: absolute;
left: 50%;
padding: 8px;
margin-left: -256px;
width: 512px;
z-index:2;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 8px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
border: 2px solid rgba(0, 0, 0, 0.6);
font-size: 14px;
}
.key {
border-radius: 4px;
min-width: 24px;
display: inline-block;
text-align: center;
padding: 2px;
color: #333;
background-color: #fff;
}
body {
.dg.ac {
top: 60px;
}
}
a {
color: #f00;
}
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background-color: black;
color: white;
font-size: 12px;
font-family: Michroma, sans-serif;
}

.visualizer {

#cc, #video {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
#video {
display: none;
iframe {
width: 100%;
height: 100%;
}
}
#c {
z-index: 1;
width: 100%;
height: 100%;
}

.fullscreen, .generate-world, .show-controls {
cursor: pointer;
}

#loading {
font-size: 2em;
line-height: 2em;
padding: 1em;
.status {
font-family: Monospace, mono-space;
letter-spacing: 0.3em;
}
}

canvas:-webkit-full-screen {
width: 100% !important;
height: 100% !important;
}
canvas:-moz-full-screen {
width: 100% !important;
height: 100% !important;
}

.key {
border-radius: 4px;
min-width: 24px;
display: inline-block;
text-align: center;
padding: 2px;
color: #333;
background-color: #fff;
}
body {
.dg.ac {
top: 60px;
}
}
a {
color: #f00;
}
}

.site-data {
//position: absolute;
height: 100%;
.label-title{

.label-logo {
font-size: 400%;
}
position: relative;
z-index: 10;
top: 200px;
margin: auto;
width: 800px;
text-align: center;

.release-info {
font-size: 300%;
text-align: center;
}
}

}
@@ -9,137 +9,49 @@ body {
font-size: 12px;
font-family: Michroma, sans-serif;
}
#header {
width: 100%;
height: 40px;
padding: 8px;
}
#header #social {
position: absolute;
right: 0;
top: 32px;
}
#header > * {
display: inline-block;
vertical-align: baseline;
color: #fff;
opacity: 0.5;
}
#header > *:hover {
opacity: 1.0;
}
#header h1 {
padding-right: 8px;
}
#cc,
#video {
.visualizer #cc,
.visualizer #video {
position: absolute;
top: 83px;
bottom: 25px;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
#video {
.visualizer #video {
display: none;
}
#video iframe {
.visualizer #video iframe {
width: 100%;
height: 100%;
}
#c {
.visualizer #c {
z-index: 1;
width: 100%;
height: 100%;
}
#social > * {
vertical-align: top;
display: inline;
}
#social .fb-like * {
vertical-align: top;
}
#header a,
#header a {
color: #fff;
text-decoration: none;
}
#menu {
background-color: #333;
padding: 4px 0;
}
#menu > span {
padding: 0 8px;
}
.fullscreen,
.generate-world,
.show-controls {
.visualizer .fullscreen,
.visualizer .generate-world,
.visualizer .show-controls {
cursor: pointer;
}
#footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 24px;
color: white;
opacity: 0.5;
padding-left: 8px;
}
#footer a {
color: #ffffff;
}
#footer a:hover {
text-shadow: white 0 0 5px;
}
#loading {
.visualizer #loading {
font-size: 2em;
line-height: 2em;
padding: 1em;
}
#loading .status {
.visualizer #loading .status {
font-family: Monospace, mono-space;
letter-spacing: 0.3em;
}
#debug {
z-index: 200;
position: absolute;
right: 50px;
top: 50px;
width: 200px;
padding: 10px;
background-color: rgba(0, 0, 0, 0.8);
display: none;
}
#perfhub {
display: none;
position: absolute;
z-index: 300;
top: 82px;
right: 0px;
background-color: black;
}
canvas:-webkit-full-screen {
.visualizer canvas:-webkit-full-screen {
width: 100% !important;
height: 100% !important;
}
canvas:-moz-full-screen {
.visualizer canvas:-moz-full-screen {
width: 100% !important;
height: 100% !important;
}
#controls {
position: absolute;
left: 50%;
padding: 8px;
margin-left: -256px;
width: 512px;
z-index: 2;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 8px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
border: 2px solid rgba(0, 0, 0, 0.6);
font-size: 14px;
}
.key {
.visualizer .key {
border-radius: 4px;
min-width: 24px;
display: inline-block;
@@ -148,9 +60,27 @@ canvas:-moz-full-screen {
color: #333;
background-color: #fff;
}
body .dg.ac {
.visualizer body .dg.ac {
top: 60px;
}
a {
.visualizer a {
color: #f00;
}
.site-data {
height: 100%;
}
.site-data .label-title {
position: relative;
z-index: 10;
top: 200px;
margin: auto;
width: 800px;
text-align: center;
}
.site-data .label-title .label-logo {
font-size: 400%;
}
.site-data .label-title .release-info {
font-size: 300%;
text-align: center;
}
@@ -1,6 +1,7 @@
exports.routes = function(app) {
app.get('/', exports.index);
app.get('/blood', exports.blood);
app.get('/track/:track', exports.track)
};

exports.index = function(req, res) {
@@ -9,4 +10,26 @@ exports.index = function(req, res) {

exports.blood = function(req, res) {
res.render('blood', {});
}
};

exports.track = function(req, res) {

var options = {
root: __dirname + '/../tracks/',
headers: {
'x-timestamp': Date.now(),
'x-sent': true
}
};

var fileName = req.params.track;
res.sendFile(fileName, options, function (err) {
if (err) {
console.log(err);
res.status(err.status).end();
}
else {
console.log('Sent:', fileName);
}
});
};
BIN +7.58 MB tracks/1979.mp3
Binary file not shown.
BIN +8.84 MB tracks/check.mp3
Binary file not shown.
@@ -1,30 +1,41 @@
doctype html
html
head
title WebGL Fluid Dynamics based on Navier Stokes Equations
title BLOOD FRENZY
meta(name='description', content='A WebGL fluid simulation demo based on the navier stokes equations for incompressible flow.')
link(href='http://fonts.googleapis.com/css?family=Michroma', rel='stylesheet', type='text/css')
link(rel='canonical', href='http://www.29a.ch/sandbox/2012/webglfluid/')
link(rel='stylesheet', href='style/style.css')
body(style='height: 100%; width: 100%')
div(id="wrapper")
div(id="fileWrapper" class="file_wrapper")
div(id="info") HTML5 Audio API showcase | An Audio Viusalizer
label(for="uploadedFile") Drag&drop or select a file to play:
input(type="file" id="uploadedFile")

#cc
canvas#c(width='1280', height='720')
#video
p
| Your system does not support WebGL which is required for this demo. You can try to
a(href='http://get.webgl.org/') get WebGL
| to work or try out the older, more simple,
a(href='http://29a.ch/sandbox/2012/fluidcanvas/') canvas version
| of this demo.
.visualizer
div(id="wrapper")
div(id="fileWrapper" class="file_wrapper")
label(for="uploadedFile") Drag&drop or select a file to play:
input(type="file" id="uploadedFile")
#cc
canvas#c(width='1280', height='720')
#video
p
| Your system does not support WebGL which is required for this demo. You can try to
a(href='http://get.webgl.org/') get WebGL
| to work or try out the older, more simple,
a(href='http://29a.ch/sandbox/2012/fluidcanvas/') canvas version
| of this demo.

p
script(data-main='js/src/main', src='js/lib/require.js')
script(type='text/javascript', src='http://platform.twitter.com/widgets.js', async='', defer='')
script(type='text/javascript', src='https://apis.google.com/js/plusone.js', async='', defer='')
#fb-root
p
script(data-main='js/src/main', src='js/lib/require.js')
script(type='text/javascript', src='https://apis.google.com/js/plusone.js', async='', defer='')
#fb-root
.site-data
.label-title
div.label-logo BLOOD FRENZY
.release-info
p FRENZY001
p Myth



div.release-links
div Track1 / Track2
div#track1 Listen