-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtest.php
More file actions
39 lines (34 loc) · 735 Bytes
/
Copy pathtest.php
File metadata and controls
39 lines (34 loc) · 735 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Char integrity tests</title>
<style type="text/css">
.svg {
display: none;
}
.status.error {
color: red;
}
.status.ok {
color: green;
}
</style>
</head>
<body>
<?php
foreach(glob('hanzi/*.svg') as $file) {
$svg = file_get_contents($file);
$errors = array();
echo '<section class="unit" data-file="' . $file . '" data-charid="' . basename($file, '.svg') . '">';
echo '<strong>' . basename($file) . '</strong>';
echo '<div class="svg">' . $svg . '</div>';
echo '<ul class="status"></ul>';
echo '</section>';
}
?>
<script type="text/javascript">
window.HANZIVG_TEST_STANDALONE = true;
</script>
<script type="text/javascript" src="test.js"></script>
</body>
</html>