bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/0.1
9.1.1
by a11vikob
Changed directory structure of SVG-converter. |
1 |
<!DOCTYPE html>
|
1
by Henrik G.
First seed of Lenasys ... Needs to be Organized Further |
2 |
<html> |
4.5.2
by mattman-03
Städat färdigt |
3 |
|
4 |
<head> |
|
9.1.1
by a11vikob
Changed directory structure of SVG-converter. |
5 |
<script language="javascript" src="svgconverter.js"> |
4.5.2
by mattman-03
Städat färdigt |
6 |
</script> |
9.1.1
by a11vikob
Changed directory structure of SVG-converter. |
7 |
<link rel="stylesheet" type="text/css" href="svgconverter.css"> |
4.5.2
by mattman-03
Städat färdigt |
8 |
</head> |
9 |
||
10 |
<body> |
|
11 |
<table><tr> |
|
9.1.1
by a11vikob
Changed directory structure of SVG-converter. |
12 |
<td id='preview'> |
4.5.2
by mattman-03
Städat färdigt |
13 |
<?php
|
14 |
function endsWith($haystack, $needle, $case=true) { |
|
15 |
if($case){ |
|
16 |
return( strcmp( substr( $haystack, strlen( $haystack ) - strlen( $needle )), $needle ) === 0 ); |
|
17 |
}
|
|
18 |
return( strcasecmp( substr( $haystack, strlen( $haystack) - strlen( $needle )), $needle ) === 0 ); |
|
19 |
}
|
|
9.1.1
by a11vikob
Changed directory structure of SVG-converter. |
20 |
$dir = opendir( '../media/svgconverter' ); |
4.5.2
by mattman-03
Städat färdigt |
21 |
while(( $file = readdir( $dir )) !== false ) { |
22 |
if( endsWith( $file, ".svg" )) { |
|
23 |
echo "<span onmouseover='this.style.backgroundColor=\"#000\";this.style.color=\"#fff\"' onmouseout='this.style.backgroundColor=\"#fff8f8\";this.style.color=\"#000\"' style='cursor:pointer;' onclick='getSVG(\"".$file."\");'>".$file."</span><br>"; |
|
24 |
}
|
|
25 |
}
|
|
26 |
?>
|
|
27 |
</td> |
|
9.1.1
by a11vikob
Changed directory structure of SVG-converter. |
28 |
<td id='preview'> |
4.5.2
by mattman-03
Städat färdigt |
29 |
Preview:<br> |
30 |
<canvas width="700" height="700" id="previewCanvas"> |
|
31 |
</canvas> |
|
32 |
</td> |
|
9.1.1
by a11vikob
Changed directory structure of SVG-converter. |
33 |
<td id='preview'> |
34 |
<pre id='content'> |
|
4.5.2
by mattman-03
Städat färdigt |
35 |
</pre> |
36 |
</td> |
|
37 |
</tr></table> |
|
38 |
</body> |
|
39 |
||
1
by Henrik G.
First seed of Lenasys ... Needs to be Organized Further |
40 |
</html> |