-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
55 lines (43 loc) · 1.31 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PLON script examples</title>
<link rel="stylesheet" type="text/css" href="dist/styles/layout.css">
<link rel="stylesheet" type="text/css" href="dist/styles/skin-basic.css">
<style>
.l-Wrapper { max-width: 500px; }
</style>
</head>
<body>
<div class="l-Wrapper">
<h1><strong>PLON</strong> script examples</strong></h1>
<p><a href="https://github.com/peronczyk/plon">github.com/peronczyk/PLON</a></p>
<hr>
<p>List of available jQuery plugins:</p>
<table class="t-Hoverable">
<thead>
<tr>
<th>Script name</th>
<th class="u-Text--Center">Readme</th>
</tr>
</thead>
<tbody>
<?php
$examples = scandir('examples/');
foreach($examples as $dir) {
if ($dir == '.' || $dir == '..') continue;
echo('<tr><td>');
if (file_exists('examples/' . $dir . '/index.html')) echo('<a href="examples/' . $dir . '">' . $dir . '</a>');
else echo($dir);
echo('</td><td class="u-Text--Center">');
$script_local_address = 'docs/Scripts/' . $dir . '.md';
if (file_exists($script_local_address)) echo('<a href="https://github.com/peronczyk/PLON/tree/master/' . $script_local_address . '" target="_blank">view</a>');
echo('</td></tr>');
}
?>
</tbody>
</table>
</div>
</body>
</html>