github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/doc/root.html (about) 1 <!--{ 2 "Path": "/" 3 }--> 4 5 <div class="left"> 6 7 <div id="learn"> 8 <a class="popout share">Pop-out</a> 9 <div class="rootHeading">Try Go</div> 10 <div class="input"> 11 <textarea spellcheck="false" class="code">// You can edit this code! 12 // Click here and start typing. 13 package main 14 15 import "fmt" 16 17 func main() { 18 fmt.Println("Hello, 世界") 19 }</textarea> 20 </div> 21 <div class="output"> 22 <pre> 23 Hello, 世界 24 </pre> 25 </div> 26 <div class="buttons"> 27 <a class="run" href="#" title="Run this code [shift-enter]">Run</a> 28 <a class="share" href="#" title="Share this code">Share</a> 29 <a class="tour" href="//tour.golang.org/" title="Learn Go from your browser">Tour</a> 30 </div> 31 <div class="toys"> 32 <select> 33 <option value="hello.go">Hello, World!</option> 34 <option value="life.go">Conway's Game of Life</option> 35 <option value="fib.go">Fibonacci Closure</option> 36 <option value="peano.go">Peano Integers</option> 37 <option value="pi.go">Concurrent pi</option> 38 <option value="sieve.go">Concurrent Prime Sieve</option> 39 <option value="solitaire.go">Peg Solitaire Solver</option> 40 <option value="tree.go">Tree Comparison</option> 41 </select> 42 </div> 43 </div> 44 45 </div> 46 47 <div class="right"> 48 49 <div id="about"> 50 Go is an open source programming language that makes it easy to build 51 simple, reliable, and efficient software. 52 </div> 53 54 <div id="gopher"></div> 55 56 <a href="/doc/install" id="start"> 57 <span class="big">Download Go</span> 58 <span class="desc"> 59 Binary distributions available for<br> 60 Linux, Mac OS X, Windows, and more. 61 </span> 62 </a> 63 64 </div> 65 66 <div style="clear: both"></div> 67 68 <div class="left"> 69 70 <div id="video"> 71 <div class="rootHeading">Featured video</div> 72 <iframe width="415" height="241" src="//www.youtube.com/embed/ytEkHepK08c" frameborder="0" allowfullscreen></iframe> 73 </div> 74 75 </div> 76 77 <div class="right"> 78 79 <div id="blog"> 80 <div class="rootHeading">Featured articles</div> 81 <div class="read"><a href="//blog.golang.org/">Read more</a></div> 82 </div> 83 84 </div> 85 86 <div style="clear: both;"></div> 87 88 <script type="text/javascript"> 89 90 function readableTime(t) { 91 var m = ["January", "February", "March", "April", "May", "June", "July", 92 "August", "September", "October", "November", "December"]; 93 var p = t.substring(0, t.indexOf("T")).split("-"); 94 var d = new Date(p[0], p[1]-1, p[2]); 95 return d.getDate() + " " + m[d.getMonth()] + " " + d.getFullYear(); 96 } 97 98 function feedLoaded(result) { 99 var blog = document.getElementById("blog"); 100 var read = blog.getElementsByClassName("read")[0]; 101 for (var i = 0; i < result.length && i < 2; i++) { 102 var entry = result[i]; 103 var title = document.createElement("a"); 104 title.className = "title"; 105 title.href = entry.Link; 106 title.innerHTML = entry.Title; 107 blog.insertBefore(title, read); 108 var extract = document.createElement("div"); 109 extract.className = "extract"; 110 extract.innerHTML = entry.Summary; 111 blog.insertBefore(extract, read); 112 var when = document.createElement("div"); 113 when.className = "when"; 114 when.innerHTML = "Published " + readableTime(entry.Time); 115 blog.insertBefore(when, read); 116 } 117 } 118 119 window.initFuncs.push(function() { 120 // Set up playground if enabled. 121 if (window.playground) { 122 window.playground({ 123 "codeEl": "#learn .code", 124 "outputEl": "#learn .output", 125 "runEl": "#learn .run", 126 "shareEl": "#learn .share", 127 "shareRedirect": "//play.golang.org/p/", 128 "toysEl": "#learn .toys select" 129 }); 130 } else { 131 $('#learn').hide() 132 } 133 134 // Load blog feed. 135 $('<script/>').attr('text', 'text/javascript') 136 .attr('src', '//blog.golang.org/.json?jsonp=feedLoaded') 137 .appendTo('body'); 138 139 // Set the video at random. 140 var videos = [ 141 {h: 241, s: "//www.youtube.com/embed/ytEkHepK08c"}, // Tour of Go 142 {h: 241, s: "//www.youtube.com/embed/f6kdp27TYZs"}, // Concurrency Patterns 143 {h: 233, s: "//player.vimeo.com/video/69237265"} // Simple environment 144 ]; 145 var v = videos[Math.floor(Math.random()*videos.length)]; 146 $('#video iframe').attr('height', v.h).attr('src', v.s); 147 }); 148 149 </script>