bug in index code

master
Michael Murtaugh 8 years ago
parent c9c498e5dd
commit 16dc5c7dba

@ -25,9 +25,13 @@ for f in ff:
items = [items[key] for key in sorted(items, reverse=True)] items = [items[key] for key in sorted(items, reverse=True)]
for i in items[10:]: for i in items[10:]:
for f in i.items(): for f in i.items():
print "deleting ", f for ext in f:
fp = os.path.join(path, f) fp = os.path.join(path, f[ext])
try:
os.unlink(fp) os.unlink(fp)
except IOError as e:
print ("Error deleting", e)
pass
# dump the data (debugging) # dump the data (debugging)
# print "Content-type: text/plain" # print "Content-type: text/plain"
# print "" # print ""

@ -1,66 +1,119 @@
<!DOCTYPE html>
<html> <html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style> <head>
<title> Rock Step - Triple Step - Triple Step </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
body {
margin-left: 20; <style>
margin-right: 20;
body {
margin-left: 0;
margin-right: 0;
padding: 0; padding: 0;
color: grey; 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;
} }
}
form.buttons { @media only screen and (max-width: 320px){
.responsive {
width: 50%;
} }
}
*/
form.buttons input { form.buttons {
}
form.buttons input {
width: 150px; width: 150px;
height: 150px; height: 150px;
/*hide the labels*/ /*hide the labels*/
font-size: 0; font-size: 0;
line-height: 0; line-height: 0;
border: 0; border: 0;
margin: ; 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');
} }
</style> }
-->
</head>
<body>
<form action="cgi-bin/play.cgi" class="buttons"> <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="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="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="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="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="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="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="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;" /> <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 <!-- "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="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="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;" /> <input type="submit" name="p" value="ChickenWalks.mp3" style="background:url(images/choreology10-ChickenWalks.svg) no-repeat;" />
<div class="tempo"> <div class="tempo">
<br> <br>
<br> <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" 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" />
<input id="slider3" type="range" min ="100" max="180" step ="1" orient="vertical" style="-webkit-appearance: slider-vertical; writing-mode: bt-lr" />
--> -->
</div> </div>
</form> </form>
</body>
</body>
</html> </html>
@ -68,3 +121,11 @@

Loading…
Cancel
Save