github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/doc/root.html (about)

     1  <!--{
     2  	"Path": "/"
     3  }-->
     4  
     5  <div class="left">
     6  
     7  <div id="learn">
     8  <img class="icon share" src="/doc/share.png" alt="View full screen" title="View full screen">
     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="http://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="fib.go">Fibonacci Closure</option>
    35  	<option value="peano.go">Peano Integers</option>
    36  	<option value="pi.go">Concurrent pi</option>
    37  	<option value="sieve.go">Concurrent Prime Sieve</option>
    38  	<option value="solitaire.go">Peg Solitaire Solver</option>
    39  	<option value="tree.go">Tree Comparison</option>
    40  </select>
    41  </div>
    42  </div>
    43  
    44  </div>
    45  
    46  <div class="right">
    47  
    48  <div id="about">
    49  Go is an open source programming environment that makes it easy to build
    50  simple, reliable, and efficient software.
    51  </div>
    52  
    53  <div id="gopher"></div>
    54  
    55  <a href="/doc/install" id="start">
    56  <span class="big">Download Go</span>
    57  <span class="desc">
    58  Binary distributions available for<br>
    59  Linux, Mac OS X, Windows, and more.
    60  </span>
    61  </a>
    62  
    63  </div>
    64  
    65  <div style="clear: both"></div>
    66  
    67  <div class="left">
    68  
    69  <div id="video">
    70  <div class="rootHeading">Featured video</div>
    71  <iframe width="415" height="241" src="http://www.youtube.com/embed/ytEkHepK08c" frameborder="0" allowfullscreen></iframe>
    72  </div>
    73  
    74  </div>
    75  
    76  <div class="right">
    77  
    78  <div id="blog">
    79  <div class="rootHeading">Featured articles</div>
    80  <div class="read"><a href="http://blog.golang.org/">Read more</a></div>
    81  </div>
    82  
    83  </div>
    84  
    85  <div style="clear: both;"></div>
    86  
    87  <script type="text/javascript">
    88  
    89  function readableTime(t) {
    90  	var m = ["January", "February", "March", "April", "May", "June", "July",
    91  		"August", "September", "October", "November", "December"];
    92  	var p = t.substring(0, t.indexOf("T")).split("-");
    93  	var d = new Date(p[0], p[1]-1, p[2]);
    94  	return d.getDate() + " " + m[d.getMonth()] + " " + d.getFullYear();
    95  }
    96  
    97  function feedLoaded(result) {
    98  	var blog = document.getElementById("blog");
    99  	var read = blog.getElementsByClassName("read")[0];
   100  	for (var i = 0; i < result.length && i < 2; i++) {
   101  		var entry = result[i];
   102  		var title = document.createElement("a");
   103  		title.className = "title";
   104  		title.href = entry.Link;
   105  		title.innerHTML = entry.Title;
   106  		blog.insertBefore(title, read);
   107  		var extract = document.createElement("div");
   108  		extract.className = "extract";
   109  		extract.innerHTML = entry.Summary;
   110  		blog.insertBefore(extract, read);
   111  		var when = document.createElement("div");
   112  		when.className = "when";
   113  		when.innerHTML = "Published " + readableTime(entry.Time);
   114  		blog.insertBefore(when, read);
   115  	}
   116  }
   117  
   118  $(function() {
   119  	// Set up playground.
   120  	playground({
   121  		"codeEl":        "#learn .code",
   122  		"outputEl":      "#learn .output",
   123  		"runEl":         "#learn .run",
   124  		"shareEl":       "#learn .share",
   125  		"shareRedirect": "http://play.golang.org/p/",
   126  		"toysEl":        "#learn .toys select"
   127  	});
   128  
   129  	// Load blog feed.
   130  	$('<script/>').attr('text', 'text/javascript')
   131  		.attr('src', 'http://blog.golang.org/.json?jsonp=feedLoaded')
   132  		.appendTo('body');
   133  });
   134  
   135  </script>