Allow for hidden files in puzzler

This commit is contained in:
Neale Pickett 2009-10-05 11:03:27 -06:00
parent 597748984b
commit 3c3c03775e
4 changed files with 4 additions and 3 deletions

View File

@ -62,6 +62,7 @@ for cat in os.listdir(opts.puzzles):
f.write('<ul>\n') f.write('<ul>\n')
for fn, path in files: for fn, path in files:
shutil.copy(path, outdir) shutil.copy(path, outdir)
if not fn.startswith(','):
f.write('<li><a href="%s">%s</a></li>\n' % (fn, fn)) f.write('<li><a href="%s">%s</a></li>\n' % (fn, fn))
f.write('</ul>\n') f.write('</ul>\n')
f.write(''' f.write('''

View File

Before

Width:  |  Height:  |  Size: 626 B

After

Width:  |  Height:  |  Size: 626 B

View File

@ -2,7 +2,7 @@ html,body {
height: 100%; height: 100%;
min-height: 100%; min-height: 100%;
background-color: #000000; background-color: #000000;
background-image: url("binary.png"); background-image: url(",binary.png");
background-repeat: repeat-x repeat-y; background-repeat: repeat-x repeat-y;
margin: 0; margin: 0;
padding: 0; padding: 0;

View File

@ -10,7 +10,7 @@ print '''
<html> <html>
<head> <head>
<title>1</title> <title>1</title>
<link rel="stylesheet" type="text/css" href="ctf.css" media="all" /> <link rel="stylesheet" type="text/css" href=",ctf.css" media="all" />
<!-- key = ktFfb8R1Bw --> <!-- key = ktFfb8R1Bw -->
</head> </head>
<body> <body>