mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-03 23:15:23 +00:00
Merge pull request #109 from patriciogonzalezvivo/lang-switcher
Add language links to the top page
This commit is contained in:
commit
30381315c8
@ -97,18 +97,29 @@ img {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.header .subtitle {
|
||||
|
||||
.toc-header {
|
||||
font-size: 16px;
|
||||
line-height: 16px;
|
||||
margin-top: 24px;
|
||||
margin-bottom: 24px;
|
||||
text-align: right;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.header .subtitle a{
|
||||
.header .subtitle {
|
||||
|
||||
}
|
||||
|
||||
.header .subtitle a,
|
||||
.toc-header .subtitle a {
|
||||
font-size: 1.3em;
|
||||
font-style: italic;
|
||||
text-decoration: none;
|
||||
border: 0!important;
|
||||
}
|
||||
|
||||
.header a{
|
||||
.header a,
|
||||
.toc-header a {
|
||||
font-size: 0.8em;
|
||||
font-style: italic;
|
||||
text-decoration: none;
|
||||
@ -228,7 +239,7 @@ code {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 700px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.simpleFunction .CodeMirror {
|
||||
@ -357,4 +368,3 @@ code {
|
||||
font-style: italic;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
11
index.php
11
index.php
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
$path = ".";
|
||||
$subtitle = "";
|
||||
$README = "README";
|
||||
@ -12,13 +12,14 @@
|
||||
}
|
||||
|
||||
include("header.php");
|
||||
|
||||
|
||||
include("toc-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>';
|
||||
include("footer.php");
|
||||
?>
|
||||
?>
|
||||
|
3
toc-header.php
Normal file
3
toc-header.php
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="toc-header">
|
||||
<p> <a href="?lan=jp">日本語</a> - <a href="?lan=ch">中文版</a> - <a href="?lan=kr">한국어</a> - <a href="?lan=es">Español</a> - <a href="?lan=fr">Français</a> - <a href="?lan=it">Italiano</a> - <a href=".">English</a></p>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user