mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-01 21:40:27 +00:00
34 lines
930 B
PHP
34 lines
930 B
PHP
<?php
|
|
|
|
$path = "..";
|
|
$subtitle = ": What is a shader?";
|
|
include($path."/header.php");
|
|
include($path."/src/parsedown/Parsedown.php");
|
|
|
|
echo '
|
|
<div class="header">
|
|
<p><a href="http://patriciogonzalezvivo.com/2015/thebookofshaders/">The Book of Shaders</a> by <a href="http://patriciogonzalezvivo.com">Patricio Gonzalez Vivo</a> </p>
|
|
<p>Translations: <a href=".">English</a> - <a href="?lan=jp">Japanese</a></p>
|
|
</div>
|
|
<hr>
|
|
<div id="content">
|
|
';
|
|
|
|
$README = "README";
|
|
if(!empty($_GET['lan']))
|
|
$README .= '-'.$_GET['lan'];
|
|
$Parsedown = new Parsedown();
|
|
echo $Parsedown->text(file_get_contents($README.'.md'));
|
|
|
|
echo '
|
|
</div>
|
|
<hr>
|
|
<ul class="navigationBar" >
|
|
<li class="navigationBar" onclick="previusPage()">< < Previous</li>
|
|
<li class="navigationBar" onclick="homePage()"> Home </li>
|
|
<li class="navigationBar" onclick="nextPage()">Next > ></li>
|
|
</ul>';
|
|
|
|
include($path."/footer.php");
|
|
?>
|