mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-17 21:25:40 +00:00
34 lines
782 B
PHP
34 lines
782 B
PHP
<?php
|
|
|
|
$path = "..";
|
|
$subtitle = ": What is a shader?";
|
|
$README = "README";
|
|
$language = "";
|
|
|
|
if ( !empty($_GET['lan']) ) {
|
|
if (file_exists($README.'-'.$_GET['lan'].'.md')) {
|
|
$language = '-'.$_GET['lan'];
|
|
$README .= $language;
|
|
}
|
|
}
|
|
|
|
include($path."/header.php");
|
|
include($path."/chap-header.php");
|
|
echo '<div id="content">';
|
|
|
|
include($path."/src/parsedown/Parsedown.php");
|
|
$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");
|
|
?>
|