2015-07-15 12:12:44 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// main menu
|
|
|
|
echo '
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>The Book of Shaders</title>
|
|
|
|
<meta name="keywords" content="shader,shaders,GLSL,book,pixel,fragment,uniform,texture,procedural,generative,matrix,random,noise" />
|
|
|
|
<meta name="description" content="This is a gentle step-by-step guide through the abstract and complex universe of Fragment Shaders." />
|
|
|
|
|
|
|
|
<!-- CodeMirror -->
|
2015-07-17 20:44:54 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="'.$path.'/src/codemirror/css/codemirror.css">
|
|
|
|
<link type="text/css" rel="stylesheet" href="'.$path.'/src/codemirror/addon/fold/foldgutter.css">
|
|
|
|
<link type="text/css" rel="stylesheet" href="'.$path.'/src/codemirror/addon/dialog/dialog.css">
|
|
|
|
<link type="text/css" rel="stylesheet" href="'.$path.'/src/codemirror/addon/hint/show-hint.css">
|
|
|
|
<link type="text/css" rel="stylesheet" href="'.$path.'/src/codemirror/theme/neo.css">
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/addon/search/searchcursor.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/addon/search/search.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/addon/dialog/dialog.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/addon/edit/matchbrackets.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/addon/edit/closebrackets.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/addon/comment/comment.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/addon/wrap/hardwrap.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/addon/fold/foldcode.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/addon/fold/brace-fold.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/keymap/sublime.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/addon/hint/show-hint.js"></script>
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/codemirror/mode/clike.js"></script>
|
2015-07-15 12:12:44 +00:00
|
|
|
|
|
|
|
<!-- Highlight -->
|
2015-07-17 20:44:54 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="'.$path.'/css/github.css">
|
|
|
|
<script type="text/javascript" src="'.$path.'/src/highlight.min.js"></script>
|
2015-07-15 12:12:44 +00:00
|
|
|
|
|
|
|
<!-- My stuff -->
|
2015-07-17 20:44:54 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="'.$path.'/css/style.css">
|
2015-07-15 12:12:44 +00:00
|
|
|
<script type="text/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslCanvas/master/build/GlslCanvas.min.js"></script>
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
';
|
|
|
|
?>
|