diff --git a/02/index.php b/02/index.php index cbde027c..8e4def15 100644 --- a/02/index.php +++ b/02/index.php @@ -6,13 +6,19 @@ include($path."/src/parsedown/Parsedown.php"); echo ' -

The Book of Shaders by Patricio Gonzalez Vivo

+
+

The Book of Shaders by Patricio Gonzalez Vivo

+

Translations: English - Japanese

+

'; + $README = "README"; + if(!empty($_GET['lan'])) + $README .= '-'.$_GET['lan']; $Parsedown = new Parsedown(); - echo $Parsedown->text(file_get_contents ('README.md')); + echo $Parsedown->text(file_get_contents($README.'.md')); echo '
diff --git a/03/index.php b/03/index.php index 4e67d927..19de56e9 100644 --- a/03/index.php +++ b/03/index.php @@ -6,13 +6,19 @@ include($path."/src/parsedown/Parsedown.php"); echo ' -

The Book of Shaders by Patricio Gonzalez Vivo

+
+

The Book of Shaders by Patricio Gonzalez Vivo

+

Translations: English - Japanese

+

'; + $README = "README"; + if(!empty($_GET['lan'])) + $README .= '-'.$_GET['lan']; $Parsedown = new Parsedown(); - echo $Parsedown->text(file_get_contents ('README.md')); + echo $Parsedown->text(file_get_contents($README.'.md')); echo '
diff --git a/04/index.php b/04/index.php index 0eff319b..0adc855e 100644 --- a/04/index.php +++ b/04/index.php @@ -6,13 +6,19 @@ include($path."/src/parsedown/Parsedown.php"); echo ' -

The Book of Shaders by Patricio Gonzalez Vivo

+
+

The Book of Shaders by Patricio Gonzalez Vivo

+

Translations: English - Japanese

+

'; + $README = "README"; + if(!empty($_GET['lan'])) + $README .= '-'.$_GET['lan']; $Parsedown = new Parsedown(); - echo $Parsedown->text(file_get_contents ('README.md')); + echo $Parsedown->text(file_get_contents($README.'.md')); echo '