index.template 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!DOCTYPE html>
  2. <!-- this file is auto-generated from {{src_file_name}}. Do not edited directly -->
  3. <!--
  4. Copyright 2018, Google Inc.
  5. All rights reserved.
  6. Redistribution and use in source and binary forms, with or without
  7. modification, are permitted provided that the following conditions are
  8. met:
  9. * Redistributions of source code must retain the above copyright
  10. notice, this list of conditions and the following disclaimer.
  11. * Redistributions in binary form must reproduce the above
  12. copyright notice, this list of conditions and the following disclaimer
  13. in the documentation and/or other materials provided with the
  14. distribution.
  15. * Neither the name of Google Inc. nor the names of their
  16. contributors may be used to endorse or promote products derived from
  17. this software without specific prior written permission.
  18. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  21. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  22. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  24. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. -->
  30. <html lang="{{langInfo.langCode}}">
  31. <head>
  32. <meta charset="utf-8">
  33. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
  34. <meta name="description" content="Three.js tutorials and solutions">
  35. <meta name="keywords" content="webgl graphics three.js">
  36. <meta name="thumbnail" content="https://threejsfundamentals.org/threejs/lessons/resources/threejsfundamentals.jpg">
  37. <meta property="og:title" content="{{title}}">
  38. <meta property="og:type" content="website">
  39. <meta property="og:image" content="https://threejsfundamentals.org/threejs/lessons/resources/threejsfundamentals.jpg">
  40. <meta property="og:description" content="{{templateOptions.description}}">
  41. <meta property="og:url" content="https://threejsfundamentals.org">
  42. <meta name="twitter:card" content="summary_large_image">
  43. <meta name="twitter:site" content="@greggman">
  44. <meta name="twitter:creator" content="@greggman">
  45. <meta name="twitter:domain" content="threejsfundamentals.org">
  46. <meta name="twitter:title" content="threejsfundamentals.org">
  47. <meta name="twitter:url" content="https://threejsfundamentals.org">
  48. <meta name="twitter:description" content="{{templateOptions.description}}">
  49. <meta name="twitter:image:src" content="https://threejsfundamentals.org/threejs/lessons/resources/threejsfundamentals.jpg">
  50. <title>{{title}}</title>
  51. {{{include "build/templates/langs-meta.template"}}}
  52. <link rel="alternate" type="application/atom+xml" title="threejs fundamentals" href="https://threejsfundamentals.org/atom.xml">
  53. <script type="application/ld+json">
  54. {
  55. "@context":"https://schema.org",
  56. "@type":"ItemList",
  57. "itemListElement":
  58. {{{langInfo.carousel}}}
  59. }
  60. </script>
  61. <link href="/threejs/lessons/resources/threejsfundamentals-icon.png" rel="shortcut icon" type="image/png">
  62. <link rel="apple-touch-icon" href="/threejs/lessons/resources/threejsfundamentals-icon.png">
  63. <link rel="icon" href="/threejs/lessons/resources/threejsfundamentals-icon.png">
  64. <link rel="stylesheet" href="/threejs/lessons/lang.css">
  65. {{#ifexists filename="/threejs/lessons/{{langCode}}/lang.css" langCode=langInfo.baseDirname}}
  66. <link rel="stylesheet" href="/threejs/lessons/{{langInfo.baseDirname}}/lang.css">
  67. {{/ifexists}}
  68. <link rel="stylesheet" href="/threejs/lessons/resources/lesson.css">
  69. <link rel="stylesheet" href="/threejs/lessons/resources/index.css">
  70. </head>
  71. <body>
  72. <div id="canvas">
  73. </div>
  74. <div class="threejs_navbar">
  75. <div>
  76. {{{include "build/templates/languages.template"}}}
  77. </div>
  78. </div>
  79. <div class="container">
  80. <div class="lesson">
  81. <div class="lesson-main">
  82. <h1>{{title}} <span class="rss"><a href="http://threejsfundamentals.org/atom.xml"><img src="/threejs/lessons/resources/rss-icon.svg" alt="rss"/></a></span></h1>
  83. <div class="home-lang">
  84. {{{include "build/templates/languages.template"}}}
  85. </div>
  86. {{{content}}}
  87. <div>
  88. flamingo by: <a href="http://mirada.com/">mirada</a> from <a href="https://github.com/dataarts/3-dreams-of-black">3 Dreams of Black</a>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. {{{include "build/templates/repobanner.template"}}}
  94. <iframe class="background" src="/threejs/background.html"></iframe>
  95. </body>
  96. <script>
  97. const settings = {
  98. contribTemplate: {{{stringify names="langInfo.contribTemplate,originalLangInfo.contribTemplate"}}},
  99. owner: {{{stringify names="settings.owner"}}},
  100. repo: {{{stringify names="settings.repo"}}},
  101. };
  102. </script>
  103. <script src="/contributors.js"></script>
  104. <script src="/3rdparty/jquery-3.3.1.slim.min.js"></script>
  105. <script src="/threejs/lessons/resources/lesson.js"></script>
  106. {{{include "build/templates/analytics.template" }}}
  107. </html>