1 {/* This is the slide template. It defines how presentations are formatted. */}
7 <title>{{.Title}}</title>
10 var notesEnabled = {{.NotesEnabled}};
12 <script src='/static/slides.js'></script>
16 var sections = {{.Sections}};
17 var titleNotes = {{.TitleNotes}}
19 <script src='/static/notes.js'></script>
23 // Initialize Google Analytics tracking code on production site only.
24 if (window["location"] && window["location"]["hostname"] == "talks.golang.org") {
25 var _gaq = _gaq || [];
26 _gaq.push(["_setAccount", "UA-11222381-6"]);
27 _gaq.push(["b._setAccount", "UA-49880327-6"]);
28 window.trackPageview = function() {
29 _gaq.push(["_trackPageview", location.pathname+location.hash]);
30 _gaq.push(["b._trackPageview", location.pathname+location.hash]);
32 window.trackPageview();
33 window.trackEvent = function(category, action, opt_label, opt_value, opt_noninteraction) {
34 _gaq.push(["_trackEvent", category, action, opt_label, opt_value, opt_noninteraction]);
35 _gaq.push(["b._trackEvent", category, action, opt_label, opt_value, opt_noninteraction]);
41 <body style='display: none'>
43 <section class='slides layout-widescreen'>
47 {{with .Subtitle}}<h3>{{.}}</h3>{{end}}
48 {{if not .Time.IsZero}}<h3>{{.Time.Format "2 January 2006"}}</h3>{{end}}
50 <div class="presenter">
51 {{range .TextElem}}{{elem $.Template .}}{{end}}
56 {{range $i, $s := .Sections}}
57 <!-- start of slide {{$s.Number}} -->
58 <article {{$s.HTMLAttributes}}>
61 {{range $s.Elem}}{{elem $.Template .}}{{end}}
65 <span class="pagenumber">{{pagenum $s 1}}</span>
67 <!-- end of slide {{$s.Number}} -->
68 {{end}}{{/* of Slide block */}}
73 <div class="presenter">
74 {{range .Elem}}{{elem $.Template .}}{{end}}
82 Use the left and right arrow keys or click the left and right
83 edges of the page to navigate between slides.<br>
84 (Press 'H' or navigate to hide this message.)
88 <script src='/play.js'></script>
93 // Load Google Analytics tracking code on production site only.
94 if (window["location"] && window["location"]["hostname"] == "talks.golang.org") {
95 var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true;
96 ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
97 var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s);