This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.php
52 lines (52 loc) · 2.56 KB
/
index.php
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html dir="ltr" lang="en-US" id="thimblr">
<head>
<meta charset="utf-8" />
<title>Thimble</title>
<meta name="Copyright" content="Copyright (c) 2010 Mark Wunsch" />
<script type="text/javascript" src="assets/jquery.js"></script>
<script type="text/javascript" src="assets/main.js"></script>
<style type="text/css">
html {overflow-x: hidden; overflow-y: hidden;}
body { font-size: 13px; line-height: 1.3; font-family: Helvetica, Arial,sans-serif; margin: 0; color: #333; }
#theme-select { height: 30px; padding: 0 15px; line-height: 30px; background: #2C4762; color: #fff; }
#theme-select label { font-family: 'Bookman Old Style', Georgia, serif; font-weight: bold; font-size: 18px; vertical-align: middle; padding-right: 8px;}
#theme-select .small { font-family: Helvetica, Arial, sans-serif; font-weight: normal; font-size: 11px;}
#theme-select a { float: right; color: #fff; }
#theme-select #appearance-selector { position: relative; margin: 0 20px 0 5px; }
#theme-select #appearance-selector summary { cursor: pointer; padding: 0 5px; display: inline-block; }
#appearance-selector.open summary { background: #fff; color: #2c4762; }
#theme-select #appearance-selector .options { width: 300px; padding: 0 1em 1em; background: rgba(221, 221, 221, 0.9); border: 1px solid #ddd; overflow: auto; position: absolute; left: 0; z-index: 5; display: none; color: #444; line-height: 1.3;}
#theme-select .options label { font-family: Helvetica, Arial, sans-serif; font-weight: normal; font-size: 100%; padding: 0; margin-right: 5px; }
#theme-container {position:absolute; left:0px; right:0px; top:30px; bottom:0px;}
#theme-preview {width:100%; height:100%;}
</style>
</head>
<body>
<form method="get" action="theme.php" id="theme-select">
<label for="theme-selector">thimble</label>
<select name="theme" id="theme-selector">
<?php
foreach (glob('themes/*.html') as $theme) {
$theme = basename($theme);
if (($theme !== '.') && ($theme !== '..')) {
echo "<option value=\"$theme\">$theme</option>\n";
}
}
?>
</select>
<details id="appearance-selector">
<summary>Appearance</summary>
<div class="options">
<input type="submit" value="OK" />
</div>
</details>
<input type="checkbox" name="auto-refresh" id="auto-refresh">
<label for="auto-refresh" class="small">Auto Refresh?</label>
<a href="http://www.tumblr.com/docs/en/custom_themes">Theme Documentation</a>
</form>
<div id="theme-container">
<iframe id="theme-preview" border="0" frameborder="0"></iframe>
</div>
</body>
</html>