You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.2 KiB

  1. <!--
  2. Copyright 2010 The Go Authors. All rights reserved.
  3. Use of this source code is governed by a BSD-style
  4. license that can be found in the LICENSE file.
  5. -->
  6. <style type='text/css'>@import "/doc/codewalk/codewalk.css";</style>
  7. <script type="text/javascript" src="/doc/codewalk/codewalk.js"></script>
  8. <div id="codewalk-main">
  9. <div class="left" id="code-column">
  10. <div id='sizer'></div>
  11. <div id="code-area">
  12. <div id="code-header" align="center">
  13. <a id="code-popout-link" href="" target="_blank">
  14. <img title="View code in new window" alt="Pop Out Code" src="/doc/codewalk/popout.png" style="display: block; float: right;"/>
  15. </a>
  16. <select id="code-selector">
  17. {{range .File}}
  18. <option value="/doc/codewalk/?fileprint=/{{urlquery .}}">{{html .}}</option>
  19. {{end}}
  20. </select>
  21. </div>
  22. <div id="code">
  23. <iframe class="code-display" name="code-display" id="code-display"></iframe>
  24. </div>
  25. </div>
  26. <div id="code-options" class="setting">
  27. <span>code on <a id="set-code-left" class="selected" href="#">left</a> &bull; <a id="set-code-right" href="#">right</a></span>
  28. <span>code width <span id="code-column-width">70%</span></span>
  29. <span>filepaths <a id="show-filepaths" class="selected" href="#">shown</a> &bull; <a id="hide-filepaths" href="#">hidden</a></span>
  30. </div>
  31. </div>
  32. <div class="right" id="comment-column">
  33. <div id="comment-area">
  34. {{range .Step}}
  35. <div class="comment first last">
  36. <a class="comment-link" href="/doc/codewalk/?fileprint=/{{urlquery .File}}&amp;lo={{urlquery .Lo}}&amp;hi={{urlquery .Hi}}#mark" target="code-display"></a>
  37. <div class="comment-title">{{html .Title}}</div>
  38. <div class="comment-text">
  39. {{with .Err}}
  40. ERROR LOADING FILE: {{html .}}<br/><br/>
  41. {{end}}
  42. {{.XML}}
  43. </div>
  44. <div class="comment-text file-name"><span class="path-file">{{html .}}</span></div>
  45. </div>
  46. {{end}}
  47. </div>
  48. <div id="comment-options" class="setting">
  49. <a id="prev-comment" href="#"><span class="hotkey">p</span>revious step</a>
  50. &bull;
  51. <a id="next-comment" href="#"><span class="hotkey">n</span>ext step</a>
  52. </div>
  53. </div>
  54. </div>