-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.php
59 lines (55 loc) · 2.2 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
53
54
55
56
57
58
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Umphrey's McGee Tablature">
<title>Umphrey's McGee Tabs</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css" integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47" crossorigin="anonymous">
<link rel="stylesheet" href="css/umtabs.css">
<script src="js/ui.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-37556222-2', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="layout" class="body">
<!-- Menu toggle -->
<a href="#menu" id="menuLink" class="menu-link">
<!-- Hamburger icon -->
<span></span>
</a>
<div id="menu" style="width: 100%">
<div class="pure-menu">
<a class="pure-menu-heading" href="#">umtabs</a>
<ul class="pure-menu-list">
<?php
$weeds = array(".", "..");
$files = array_diff(scandir("tabs"), $weeds);
foreach ($files as $f) {
$song = preg_replace("/\.txt$/", "", $f);
$usong = rawurlencode($f);
print "<li class=\"pure-menu-item\"><a href=\"tab.php?tab=$usong\" class=\"pure-menu-link\">$song</a></li>";
}
?>
<li class="pure-menu-item"><br/></li>
</ul>
</div>
<div class="footer" style="padding-bottom: 40px;">
<div class="pure-menu pure-menu-horizontal">
<ul>
<li>
<a class="pure-button" href="https://github.com/mattypiper/umtabs">Contribute on Github</a>
</li>
</ul>
</div>
<div
</div>
</body>
</html>