github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/misc/tour/template/tour.tmpl (about) 1 {{/* This is the tour template. */}} 2 3 {{define "root"}} 4 <!DOCTYPE html> 5 <html> 6 <head> 7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > 8 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> 9 <title>{{.Title}}</title> 10 11 <link rel="stylesheet" href="/static/codemirror/lib/codemirror.css"> 12 <link rel="stylesheet" href="static/tour.css"> 13 <script> 14 window.socketAddr = "{{socketAddr}}"; 15 </script> 16 <script src="/script.js"></script> 17 18 </head> 19 <body> 20 <div id="wrap"> 21 <div id="header"> 22 <div id="slidenum">1</div> 23 <a href="#toc" id="tocbtn" title="Table of Contents"></a> 24 <h1>{{.Title}}</h1> 25 </div> 26 27 <div id="slides" class="slides"><!-- begin slides --> 28 29 {{range .Sections}} 30 <div class="slide{{if nocode .}} nocode{{end}}"> 31 {{elem $.Template .}} 32 </div> 33 {{end}} 34 35 </div><!-- end slides --> 36 37 <div id="workspace"> 38 <div class="controls"> 39 <div><a id="run" href="#run" title="Compile and Run">Run</a><a href="#more" id="more" title="Options">▼</a></div> 40 <ul class="more"> 41 <li><a href="#" id="reset">Reset Slide</a></li> 42 <li><a href="#" id="format">Format Source Code</a></li> 43 <li><a href="#" id="kill" class="localMode">Kill Program</a></li> 44 <li><hr></li> 45 <li><a href="#" id="togglesyntax">Syntax-Highlighting: off</a></li> 46 <li><a href="#" id="togglelineno">Line-Numbers: on</a></li> 47 </ul> 48 </div> 49 50 <div id="workspace-top"> 51 <div id="workspace-editor"> 52 <textarea id="editor" spellcheck="false"></textarea> 53 </div> 54 </div> 55 56 <div id="workspace-bottom"> 57 <div id="output"></div> 58 </div> 59 </div> 60 </div> 61 62 </body> 63 </html> 64 {{end}} 65 66 {{define "TOC"}} 67 <ul> 68 {{range .}} 69 <li><a href="#TOC_{{.FormattedNumber}}">{{.Title}}</a></li> 70 {{with .Sections}}{{template "TOC" .}}{{end}} 71 {{end}} 72 </ul> 73 {{end}} 74 75 {{define "newline"}} 76 {{/* No automatic line break. Paragraphs are free-form. */}} 77 {{end}}