Merge branch 'master' of git.xpub.nl:/var/www/git.xpub.nl/repos/tgc3

master
giulia 7 years ago
commit b872a1d3c0

@ -1,7 +1,7 @@
Author: Slavoj Žižek
Date: 1989
Title: The Sublime Object of Floppy
Author: Karina Dukalska
Date: 2017
Title: Rock Step - Triple Step - Triple Step
Description:
And so on, and so on, and so on.

@ -1,65 +1,119 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
body {
margin-left: 20;
margin-right: 20;
padding: 0;
color: grey;
}
form.buttons {
}
form.buttons input {
width: 150px;
height: 150px;
/*hide the labels*/
font-size: 0;
line-height: 0;
border: 0;
margin: ;
}
</style>
</head>
<body>
<form action="cgi-bin/play.cgi" class="buttons">
<input type="submit" name="p" value="BasicTurn.mp3" style="background:url(images/choreology1-BasicTurn.svg) no-repeat;" />
<input type="submit" name="p" value="Follow.mp3" style="background:url(images/choreology2-Follow.svg) no-repeat;" />
<br>
<input type="submit" name="p" value="AmericanSpin.mp3" style="background:url(images/choreology3-AmericanSpin.svg) no-repeat;" />
<input type="submit" name="p" value="Bump.mp3" style="background:url(images/choreology4-Bump.svg) no-repeat;" />
<br>
<input type="submit" name="p" value="StopAndGo.mp3" style="background:url(images/choreology5-StopAndGo.svg) no-repeat;" />
<input type="submit" name="p" value="Windmill.mp3" style="background:url(images/choreology6-Windmill.svg) no-repeat;" />
<br>
<input type="submit" name="p" value="SpanishArms.mp3" style="background:url(images/choreology7-SpanishArms.svg) no-repeat;" />
<input type="submit" name="p" value="Hucklebuck.mp3" style="background:url(images/choreology8-Hucklebuck.svg) no-repeat;" />
<br>
<!--"Whip" of "The Whip" options - needs testing with music playing in the background
<input type="submit" name="p" value="TheWhip.mp3" style="background:url(images/choreology9-Whip.svg) no-repeat;" />
-->
<input type="submit" name="p" value="Whip.mp3" style="background:url(images/choreology9-Whip.svg) no-repeat;" />
<input type="submit" name="p" value="ChickenWalks.mp3" style="background:url(images/choreology10-ChickenWalks.svg) no-repeat;" />
<div class="tempo">
<br>
<br>
<br>
<input id="slider3" type="range" min ="100" max="180" step ="1" style="width: 640px" />
<!-- <input id="slider3" type="range" min ="100" max="180" step ="1" orient="vertical" style="-webkit-appearance: slider-vertical; writing-mode: bt-lr" />
-->
</div>
</form>
</body>
<head>
<title> Rock Step - Triple Step - Triple Step </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
body {
margin-left: 0;
margin-right: 0;
padding: 0;
max-width: 800px;
}
h1 {
font-family: sans-serif, Avenir, 'Poiret One' ;
font: 8px;
/* font size and typeface not working */
text-align: center;
text-transform: capitalize;
color: rgb(61, 61, 92);
}
/*
.responsive {
padding: 0px;
float: left;
width: 12.5%;
}
@media only screen and (max-width: 700px){
.responsive {
width: 24.99999%;
margin: 6px 0;
}
}
@media only screen and (max-width: 320px){
.responsive {
width: 50%;
}
}
*/
form.buttons {
}
form.buttons input {
width: 150px;
height: 150px;
/*hide the labels*/
font-size: 0;
line-height: 0;
border: 0;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<!--
/* For devices smaller than 400px: */
body {
background-image: url('img_smallflower.jpg');
}
/* For devices 400px and larger: */
@media only screen and (min-device-width: 400px) {
body {
background-image: url('img_flowers.jpg');
}
}
-->
<h1> rock step - triple step - triple step </h1>
<br>
<br>
<form action="cgi-bin/play.cgi" class="buttons">
<input type="submit" name="p" value="BasicTurn.mp3" style="background:url(images/choreology1-BasicTurn.svg) no-repeat;" />
<input type="submit" name="p" value="Follow.mp3" style="background:url(images/choreology2-Follow.svg) no-repeat;" />
<input type="submit" name="p" value="AmericanSpin.mp3" style="background:url(images/choreology3-AmericanSpin.svg) no-repeat;" />
<input type="submit" name="p" value="Bump.mp3" style="background:url(images/choreology4-Bump.svg) no-repeat;" />
<input type="submit" name="p" value="StopAndGo.mp3" style="background:url(images/choreology5-StopAndGo.svg) no-repeat;" />
<input type="submit" name="p" value="Windmill.mp3" style="background:url(images/choreology6-Windmill.svg) no-repeat;" />
<input type="submit" name="p" value="SpanishArms.mp3" style="background:url(images/choreology7-SpanishArms.svg) no-repeat;" />
<input type="submit" name="p" value="Hucklebuck.mp3" style="background:url(images/choreology8-Hucklebuck.svg) no-repeat;" />
<!-- "Whip" of "The Whip" options - needs testing with music playing in the background
<input type="submit" name="p" value="TheWhip.mp3" style="background:url(images/choreology9-Whip.svg) no-repeat;" />
-->
<input type="submit" name="p" value="Whip.mp3" style="background:url(images/choreology9-Whip.svg) no-repeat;" />
<input type="submit" name="p" value="ChickenWalks.mp3" style="background:url(images/choreology10-ChickenWalks.svg) no-repeat;" />
<div class="tempo">
<br>
<br>
<br>
<!-- no slider for the launch day
<input id="slider3" type="range" min ="100" max="180" step ="1" style="width: 640px" />
<input id="slider3" type="range" min ="100" max="180" step ="1" orient="vertical" style="-webkit-appearance: slider-vertical; writing-mode: bt-lr" />
-->
</div>
</form>
</body>
</html>
@ -67,3 +121,11 @@

@ -0,0 +1 @@
FLOPPYLEFT - 2017

@ -0,0 +1,7 @@
Author: Slavoj Žižek
Date: 1989
Title: The Sublime Object of Floppy
Description:
And so on, and so on, and so on.

@ -0,0 +1,6 @@
#!/usr/bin/env python
import subprocess
subprocess.call(["mpv", "saxawoogie.mp3", "--loop", "inf", "--volume", "10"], cwd="/media/floppy")

@ -0,0 +1,23 @@
#!/usr/bin/env python
import cgi, os
import cgitb; cgitb.enable()
import subprocess
f = cgi.FieldStorage()
p = f.getvalue("p", "Bump.mp3")
p = os.path.join("voice", p)
out = subprocess.check_output(["mpv", p], cwd="/media/floppy/noweb", stderr=subprocess.STDOUT)
# print "Location: /index.html"
# print
print "Content-type:text/html; charset=utf-8"
print
print """<html>
<head>
<meta http-equiv="refresh" content="0;url=/index.html" />
</head>
<body>
</body>
</html>"""

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#2e3192;}.cls-3{stroke:#c1272d;}</style></defs><title>choreology-Bump</title><g id="_1_Basic_Turn-2" data-name="1 Basic Turn"><rect class="cls-1" width="150" height="150"/><polyline id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" points="17.48 48.21 32.95 61 71 61"/><path id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-3" d="M17.75,100.64l15-12.74,42.37,2.43s6,0.25,6,6-6,6-6,6-6-.21-6-6,6-6,6-6l42.31-2.47L132.5,75.07"/></g></svg>

After

Width:  |  Height:  |  Size: 658 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-4{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#c1272d;}.cls-3{fill:#c1272d;}.cls-4{stroke:#2e3192;}.cls-5{fill:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_10_Chicken_Walks-2" data-name="10 Chicken Walks"><rect class="cls-1" width="150" height="150"/><path id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" d="M75.05,132.5l12.82-15L90.3,75s0.25-6,6-6,6,6,6,6-0.21,6-6,6-6-6-6-6L87.83,32.61,75,17.5"/><circle class="cls-3" cx="88.5" cy="45.95" r="4"/><polyline class="cls-2" points="71.01 53.53 88.72 45.95 106.35 53.53 88.63 45.95"/><polyline id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-4" points="62 58 62 101.91 61.65 102 46.56 89.47"/><circle class="cls-5" cx="62" cy="79.35" r="4"/><polyline class="cls-4" points="79.27 71.77 61.55 79.35 43.93 71.77 61.64 79.35"/></g></svg>

After

Width:  |  Height:  |  Size: 976 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#c1272d;}.cls-3{stroke:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_2_Follow-2" data-name="2 Follow"><rect class="cls-1" width="150" height="150"/><path id="A3_follow" data-name="A3 follow" class="cls-2" d="M103.87,132.9l-12.77-15L93.53,75.4s0.25-6,6-6,6,6,6,6-0.21,6-6,6-6-6-6-6L91.05,33,78.24,17.9"/><path id="A3_follow-2" data-name="A3 follow" class="cls-3" d="M46.13,132.9l12.77-15L56.47,75.4s-0.25-6-6-6-6,6-6,6,0.21,6,6,6,6-6,6-6L58.95,33,71.76,17.9"/></g></svg>

After

Width:  |  Height:  |  Size: 689 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3,.cls-4{fill:none;stroke-miterlimit:10;}.cls-2,.cls-4{stroke:#c1272d;}.cls-2,.cls-3{stroke-width:4px;}.cls-3{stroke:#2e3192;}.cls-4{stroke-width:3px;}</style></defs><title>choreology-Bump</title><g id="_3_American_Spin-2" data-name="3 American Spin"><rect class="cls-1" width="150" height="150"/><path id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" d="M17.56,100.24l15-12.77L75.06,89.9s6,0.25,6,6-6,6-6,6-6-.21-6-6,6-6,6-6l42.4-2.47,15.11-12.81"/><polyline id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-3" points="17.82 48.18 32.79 61 72 61"/><path class="cls-4" d="M97.81,99.11a8.63,8.63,0,1,0-4.44-3.66"/><polyline class="cls-4" points="101.57 103.27 97.89 99.11 102.55 95.99"/></g></svg>

After

Width:  |  Height:  |  Size: 854 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#c1272d;}.cls-3,.cls-5{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-3{stroke:#c1272d;}.cls-4{fill:#2e3192;}.cls-5{stroke:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_4_Bump-2" data-name="4 Bump"><rect class="cls-1" width="150" height="150"/><circle class="cls-2" cx="70" cy="80.41" r="4"/><polyline id="A2_basic_turn" data-name="A2 basic turn" class="cls-3" points="82.82 134.25 70 119.33 70 80"/><circle class="cls-4" cx="70" cy="69.6" r="4"/><polyline id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-5" points="82.82 15.26 70 30.68 70 69"/></g></svg>

After

Width:  |  Height:  |  Size: 727 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-5{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#c1272d;}.cls-3{fill:#c1272d;}.cls-4{fill:#2e3192;}.cls-5{stroke:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_5_Stop_and_Go-2" data-name="5 Stop and Go"><rect class="cls-1" width="150" height="150"/><path id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" d="M17.59,100.31l15-12.76L75,90s6,0.25,6,6-6,6-6,6-6-.21-6-6,6-6,6-6l42.36-2.47,15.09-12.8"/><circle class="cls-3" cx="55.7" cy="89.04" r="4"/><circle class="cls-4" cx="56.65" cy="61" r="4"/><polyline id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-5" points="17.26 48.19 32.8 61 56 61"/></g></svg>

After

Width:  |  Height:  |  Size: 793 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#c1272d;}.cls-3{stroke:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_6_Windmill-2" data-name="6 Windmill"><rect class="cls-1" width="150" height="150"/><path id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" d="M48.81,102L36.08,86.87s0-39,38.87-38.87"/><path id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-3" d="M113.92,48.1l-12.35,15s0,39-38.87,38.87"/></g></svg>

After

Width:  |  Height:  |  Size: 604 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#2e3192;}.cls-3{stroke:#c1272d;}</style></defs><title>choreology-Bump</title><g id="_7_Spanish_Arms-2" data-name="7 Spanish Arms"><rect class="cls-1" width="150" height="150"/><polyline id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" points="95.81 25.14 83 40.25 83 125"/><path id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-3" d="M66.6,124.91l-12.76-15,2.43-42.43s0.25-6,6-6,6,6,6,6-0.21,6-6,6-6-6-6-6L53.8,25.09"/></g></svg>

After

Width:  |  Height:  |  Size: 652 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#c1272d;}.cls-3,.cls-5{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-3{stroke:#c1272d;}.cls-4{fill:#2e3192;}.cls-5{stroke:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_8_Hucklebuck-2" data-name="8 Hucklebuck"><rect class="cls-1" width="150" height="150"/><circle class="cls-2" cx="74.96" cy="86.82" r="4"/><polyline class="cls-3" points="57.33 94.4 75.04 86.82 92.67 94.4 74.96 86.82"/><circle class="cls-4" cx="74.96" cy="63.18" r="4"/><polyline class="cls-5" points="92.67 55.6 74.96 63.18 57.33 55.6 75.04 63.18"/></g></svg>

After

Width:  |  Height:  |  Size: 690 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3,.cls-4,.cls-5{fill:none;stroke-miterlimit:10;}.cls-2,.cls-4{stroke:#c1272d;}.cls-2,.cls-3{stroke-width:3px;}.cls-3,.cls-5{stroke:#2e3192;}.cls-3{stroke-dasharray:30 30;}.cls-4,.cls-5{stroke-width:4px;}</style></defs><title>choreology-Bump</title><g id="_9_Whip-2" data-name="9 Whip"><rect class="cls-1" width="150" height="150"/><path class="cls-2" d="M95.18,82.63L95.7,82.8a8.51,8.51,0,0,0,6.75-.81,8.62,8.62,0,1,0-12-3.5c0.16,0.31.26,0.47,0.26,0.47"/><path class="cls-3" d="M95.22,82.64s0.18,0.07.51,0.17a8.6,8.6,0,0,0,1.5.3A8.69,8.69,0,0,0,102.47,82a8.62,8.62,0,1,0-12-3.51l0.26,0.47"/><polyline class="cls-2" points="98.78 86.79 95.11 82.63 99.76 79.51"/><polyline class="cls-3" points="98.78 86.78 95.11 82.63 99.75 79.51"/><polyline id="A2_basic_turn" data-name="A2 basic turn" class="cls-4" points="43.51 94.8 58.31 82 85 82"/><polyline id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-5" points="43.45 55.2 58.39 68 85 68"/></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

@ -0,0 +1,70 @@
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
body {
margin-left: 20;
margin-right: 20;
padding: 0;
color: grey;
}
form.buttons {
}
form.buttons input {
width: 150px;
height: 150px;
/*hide the labels*/
font-size: 0;
line-height: 0;
border: 0;
margin: ;
}
</style>
</head>
<body>
<form action="cgi-bin/play.cgi" class="buttons">
<input type="submit" name="p" value="BasicTurn.mp3" style="background:url(images/choreology1-BasicTurn.svg) no-repeat;" />
<input type="submit" name="p" value="Follow.mp3" style="background:url(images/choreology2-Follow.svg) no-repeat;" />
<br>
<input type="submit" name="p" value="AmericanSpin.mp3" style="background:url(images/choreology3-AmericanSpin.svg) no-repeat;" />
<input type="submit" name="p" value="Bump.mp3" style="background:url(images/choreology4-Bump.svg) no-repeat;" />
<br>
<input type="submit" name="p" value="StopAndGo.mp3" style="background:url(images/choreology5-StopAndGo.svg) no-repeat;" />
<input type="submit" name="p" value="Windmill.mp3" style="background:url(images/choreology6-Windmill.svg) no-repeat;" />
<br>
<input type="submit" name="p" value="SpanishArms.mp3" style="background:url(images/choreology7-SpanishArms.svg) no-repeat;" />
<input type="submit" name="p" value="Hucklebuck.mp3" style="background:url(images/choreology8-Hucklebuck.svg) no-repeat;" />
<br>
<!--"Whip" of "The Whip" options - needs testing with music playing in the background
<input type="submit" name="p" value="TheWhip.mp3" style="background:url(images/choreology9-Whip.svg) no-repeat;" />
-->
<input type="submit" name="p" value="Whip.mp3" style="background:url(images/choreology9-Whip.svg) no-repeat;" />
<input type="submit" name="p" value="ChickenWalks.mp3" style="background:url(images/choreology10-ChickenWalks.svg) no-repeat;" />
<div class="tempo">
<br>
<br>
<br>
<input id="slider3" type="range" min ="100" max="180" step ="1" style="width: 640px" />
<!-- <input id="slider3" type="range" min ="100" max="180" step ="1" orient="vertical" style="-webkit-appearance: slider-vertical; writing-mode: bt-lr" />
-->
</div>
</form>
</body>
</html>

Binary file not shown.

@ -4,3 +4,5 @@ p { margin: 0 0 70px; }
#defaultCanvas0 { display: block !important; margin: 5em auto ; }
#header { margin: 30px 0px 0px; }
.text { display: block; margin: 0 50px; font-size: 3em; font-weight: 100 !important; }
#download { color: #FFCC00; }
#download:hover { cursor: pointer; color: #FFEE55; }

@ -5,6 +5,7 @@
<title>Euclid</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/p5.min.js"></script>
<script type="text/javascript" src="js/p5.svg.js"></script>
<script type="text/javascript" src="./js/euclidScore.js"></script>
@ -21,7 +22,13 @@
<p>The state of your composition is recorded, and displayed here as a downloadable score.</p>
<p>Never to be played, nor heard again.</p>
<p id="download">XX--X--X--X-XX--X--X--X-XX--X--X--X-XX--X--X--X-XX--X--X-X</p>
</content>
<script type="text/javascript">
$("#download").click(function() { saveMe(); console.log("clicked")})
</script>
</body>
</html>

@ -4,9 +4,6 @@ var left, right, genLight, score
var el1 = [], el2 = [], scrVals = []
function preload() {
// left = loadSVG('../svgs/leftHand.svg')
// right = loadSVG('../svgs/rightHand.svg')
genLight = loadFont("fonts/Gen-Light.otf");
score = loadStrings('../score/score.txt')
@ -26,32 +23,27 @@ function setup() {
noLoop()
fill(220)
textSize(150)
textSize(30)
textAlign('right')
}
function draw() {
background('#151515')
fill("#DDDDDD")
fill("#111111")
rect(0, 220, width, 280)
fill("#BBBBBB")
for (var i = 0; i < score.length; i++) {
var line = split(score[i].slice(0, -1), ' ')
text(line.join(" "), 90, 150 + (i*90), 710)
text(line.join(" "), 600, 280 + (i*20), 170)
scrVals.push(line)
}
stroke('#FFCC00')
fill('#FFCC00')
// left.attribute('fill', 'none')
// right.attribute('fill', 'none')
// left.attribute('stroke', '#FFCC00')
// right.attribute('stroke', '#FFCC00')
// image(right, 0, 0, 600, 600)
for (var i = 0; i < el1.length; i++) {
var r = random(5)
var rVal = int(scrVals[int(random(scrVals.length))][int(random(7))])

@ -18,7 +18,7 @@ dic={
}
f=open("transcripts-drone-attack.txt","r")
f=open("/media/floppy/transcripts-drone-attack.txt","r")
txt=f.readlines()
p= re.compile(r"^(\d\d\:\d\d) \((.*?)\)\: (.*)") # regex for capturing groups: time, character, sentence
for line in txt:
@ -32,7 +32,7 @@ for line in txt:
sentence_parts=re.split(r"(\*\w+\*)", sentence)
for part in sentence_parts:
if part == '*expletive*':
subprocess.call(["aplay", 'swear.wav'], stdout=devnull, stderr=devnull)
subprocess.call(["aplay", '/media/floppy/swear.wav'], stdout=devnull, stderr=devnull)
else:
subprocess.call(["espeak", part, "-v", voice], stdout=devnull, stderr=devnull) # character speaks: his
sleep(float(random.randint(1,10))/100)

@ -8,7 +8,7 @@ dic={
"narrator": "en-us",
}
f=open("detail_of_attack.txt","r")
f=open("/media/floppy/detail_of_attack.txt","r")
txt=f.readlines()
for line in txt:
print line

@ -4,16 +4,17 @@
<meta charset="utf-8">
<title>INSERT FLOPPY!!!</title>
<meta http-equiv="refresh" content="2; url=/" >
<meta http-equiv="refresh" content="3; url=/" >
<link rel="stylesheet" href="404-style.css">
<link rel="stylesheet" href="/static/404-style.css">
</head>
<body>
<div class="content">
<h1>404 - FLOPPY NOT FOUND</h1>
<p>The Score: </p>
<p>1. Push it</p>
<img src="discofloppy1.gif">
<img src="/static/discofloppy1.gif">
</div>
</body>
</html>

@ -8,6 +8,10 @@ font-size:60px;
text-align: center;
}
h1 {
text-align: center;
}
.content {
max-width: 600px;
margin: auto;
@ -16,5 +20,6 @@ text-align: center;
.content img {
display: block;
margin: auto;
max-width: 100%;
}
//max-width: 100%;
width: 100%;
}

Loading…
Cancel
Save