| {{/* This is the tour template. */}} |
| |
| {{define "root"}} |
| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> |
| <title>{{.Title}}</title> |
| |
| <link rel="stylesheet" href="/static/codemirror/lib/codemirror.css"> |
| <link rel="stylesheet" href="static/tour.css"> |
| <script> |
| window.socketAddr = "{{socketAddr}}"; |
| </script> |
| <script src="/script.js"></script> |
| |
| </head> |
| <body> |
| <div id="wrap"> |
| <div id="header"> |
| <div id="slidenum">1</div> |
| <a href="#toc" id="tocbtn" title="Table of Contents"></a> |
| <h1>{{.Title}}</h1> |
| </div> |
| |
| <div id="slides" class="slides"><!-- begin slides --> |
| |
| {{range .Sections}} |
| <div class="slide{{if nocode .}} nocode{{end}}"> |
| {{elem $.Template .}} |
| </div> |
| {{end}} |
| |
| </div><!-- end slides --> |
| |
| <div id="workspace"> |
| <div class="controls"> |
| <div><a id="run" href="#run" title="Compile and Run">Run</a><a href="#more" id="more" title="Options">▼</a></div> |
| <ul class="more"> |
| <li><a href="#" id="reset">Reset Slide</a></li> |
| <li><a href="#" id="format">Format Source Code</a></li> |
| <li><a href="#" id="kill" class="localMode">Kill Program</a></li> |
| <li><hr></li> |
| <li><a href="#" id="togglesyntax">Syntax-Highlighting: off</a></li> |
| <li><a href="#" id="togglelineno">Line-Numbers: on</a></li> |
| </ul> |
| </div> |
| |
| <div id="workspace-top"> |
| <div id="workspace-editor"> |
| <textarea id="editor" spellcheck="false"></textarea> |
| </div> |
| </div> |
| |
| <div id="workspace-bottom"> |
| <div id="output"></div> |
| </div> |
| </div> |
| </div> |
| |
| </body> |
| </html> |
| {{end}} |
| |
| {{define "TOC"}} |
| <ul> |
| {{range .}} |
| <li><a href="#TOC_{{.FormattedNumber}}">{{.Title}}</a></li> |
| {{with .Sections}}{{template "TOC" .}}{{end}} |
| {{end}} |
| </ul> |
| {{end}} |
| |
| {{define "newline"}} |
| {{/* No automatic line break. Paragraphs are free-form. */}} |
| {{end}} |