less copy protection, more size visualization
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.
 
 
 

223 lines
8.2 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Macrovision</title>
  6. <link rel="stylesheet" href="reset.css">
  7. <link rel="stylesheet" href="macrovision.css"><script src="https://kit.fontawesome.com/10a16c6083.js" crossorigin="anonymous"></script>
  8. <script src="math.min.js"></script>
  9. <script src="presets/characters.js"></script>
  10. <script src="presets/buildings.js"></script>
  11. <script src="presets/landmarks.js"></script>
  12. <script src="presets/species.js"></script>
  13. <script src="presets/objects.js"></script>
  14. <script src="presets/fiction.js"></script>
  15. <script src="presets/food.js"></script>
  16. <script src="presets/naturals.js"></script>
  17. <script src="presets/vehicles.js"></script>
  18. <script src="presets/cities.js"></script>
  19. <script src="presets/pokemon.js"></script>
  20. <script src="presets/scenes.js"></script>
  21. <script src="media/attribution.js"></script>
  22. <script src="macrovision.js"></script>
  23. <meta name="viewport" content="width=device-width, initial-scale=0.75, maximum-scale=0.75, user-scalable=0"/>
  24. <meta name="theme-color" content="#000000" />
  25. <meta name="description" content="How big are they anyway?" />
  26. <meta property="og:title" content="Macrovision" />
  27. <meta property="og:description" content="How big are they anyway?" />
  28. <meta property="og:image" content="https://crux.sexy/images/macrovision.png" />
  29. <link rel="icon" href="https://crux.sexy/images/macrovision.ico">
  30. </head>
  31. <body class="toggle-bottom-name toggle-top-name toggle-scale">
  32. <div id="help">
  33. <h1>Menu</h1>
  34. <div id="help-icons">
  35. </div>
  36. <h1>Navigation</h1>
  37. <p>
  38. <ul>
  39. <li>Drag to move entities</li>
  40. <li>Alt-drag to ignore snapping and bounds</li>
  41. </ul>
  42. </p>
  43. <p>
  44. <ul>
  45. <li>Scroll to zoom.</li>
  46. <li>Alt-scroll to zoom preserve positions on the screen.</li>
  47. <li>Shift-scroll with an entity selected to scale it.</li>
  48. <li>Shift-scroll without a selection to move horizontally.</li>
  49. </ul>
  50. </p>
  51. <h1>Adding/removing entities</h1>
  52. <p>
  53. <ul>
  54. <li>Remove the selected entity with the Delete key</li>
  55. <li>Alternatively, drag them off the top of the screen</li>
  56. </ul>
  57. </p>
  58. <button id="close-help">Close</button>
  59. </div>
  60. <div id="menubar">
  61. <span class="menubar-group" id="spawners">
  62. </span>
  63. <span class="menubar-group" id="scenes">
  64. <button id="load-scene">
  65. <i class="fas fa-cloud-upload-alt"></i>
  66. <span class="sr-only">Load Scene</span>
  67. </button>
  68. <select id="scene-choices">
  69. </select>
  70. </span>
  71. <span class="menubar-group">
  72. <button id="open-help">
  73. <i class="far fa-question-circle"></i>
  74. <span class="sr-only">Help</span>
  75. </button>
  76. </span>
  77. </div>
  78. <div id="main-area">
  79. <div id="options" class="">
  80. <a href="https://docs.google.com/forms/d/e/1FAIpQLScRC-okDZ3FtzDTkbqSrpj5_OGD-1Vl-VYizOK3QM6quus11g/viewform?usp=sf_link" class="options-banner">Submit your<br>character!</a>
  81. <h3 class="options-header">World options</h3>
  82. <span id="options-world">
  83. <div class="options-label">
  84. World height
  85. </div>
  86. <div class="options-row">
  87. <input class="options-field-numeric" type="number" id="options-height-value" min="1" value="10">
  88. <select class="options-field-unit" id="options-height-unit">
  89. </select>
  90. </div>
  91. <div class="options-row">
  92. <button class="options-button" id="options-world-scroll-left">Scroll left</button>
  93. </div>
  94. <div class="options-row">
  95. <button class="options-button" id="options-world-scroll-right">Scroll right</button>
  96. </div>
  97. <div class="options-row">
  98. <button class="options-button" id="options-world-fit">Fit to entities</button>
  99. </div>
  100. <div class="options-row">
  101. <input type="checkbox" id="options-show-extra">
  102. <label for="options-show-extra">Show extra options</label>
  103. </div>
  104. <div class="options-block options-block-optional">
  105. <div class="options-row">
  106. <input type="checkbox" id="options-world-autofit">
  107. <label for="options-world-autofit">Auto-size world</label>
  108. </div>
  109. <div class="options-row">
  110. <input type="checkbox" id="options-world-show-names">
  111. <label for="options-world-show-names">Names over entities</label>
  112. </div>
  113. <div class="options-row">
  114. <input type="checkbox" id="options-world-show-bottom-names" checked="true">
  115. <label for="options-world-show-bottom-names">Names at bottom</label>
  116. </div>
  117. <div class="options-row">
  118. <input type="checkbox" id="options-world-show-top-names" checked="true">
  119. <label for="options-world-show-top-names">Arrows for very large entities</label>
  120. </div>
  121. <div class="options-row">
  122. <input type="checkbox" id="options-world-show-height-bars">
  123. <label for="options-world-show-height-bars">Height bars</label>
  124. </div>
  125. <div class="options-row">
  126. <input type="checkbox" id="options-world-show-entity-glow">
  127. <label for="options-world-show-entity-glow">Glowing edges</label>
  128. </div>
  129. <div class="options-row">
  130. <input type="checkbox" id="options-world-show-scale-sliders">
  131. <label for="options-world-show-scale-sliders">Scale sliders</label>
  132. </div>
  133. <div class="options-row">
  134. <input type="checkbox" id="options-world-show-bottom-cover">
  135. <label for="options-world-show-bottom-cover">Opaque ground</label>
  136. </div>
  137. <div class="options-row">
  138. <input type="checkbox" id="options-world-show-scale" checked="true">
  139. <label for="options-world-show-scale">Scale</label>
  140. </div>
  141. </div>
  142. </span>
  143. <div class="options-label">
  144. Selected Entity
  145. </div>
  146. <div class="options-row">
  147. <select id="options-selected-entity" class="options-selector">
  148. <option id="options-selected-entity-none">None</option>
  149. </select>
  150. </div>
  151. <div class="options-row">
  152. <button id="delete-entity">
  153. <i class="fas fa-trash-alt symbol-button"></i>
  154. <span class="sr-only">Delete Entity</span>
  155. </button>
  156. </div>
  157. <h3 class="options-header" id="entity-category-header">Entity options</h3>
  158. <div class="options-category" id="entity-category">
  159. <div class="options-label">
  160. View
  161. </div>
  162. <select class="options-selector" id="entity-view"></select>
  163. <div class="options-label">
  164. Ordering
  165. </div>
  166. <div class="options-two-buttons" id="options-ordering">
  167. <button id="options-order-back">Toward back</button>
  168. <div id="options-order-display"></div>
  169. <button id="options-order-forward">Toward front</button>
  170. </div>
  171. <div class="options-label">
  172. Sizes
  173. </div>
  174. <div class="options-block" id="options-entity-defaults">
  175. </div>
  176. <span id="options-entity">
  177. </span>
  178. </div>
  179. <h3 class="options-header" id="view-category-header">View options</h3>
  180. <div class="options-category" id="view-category">
  181. <span id="options-view">
  182. </span>
  183. </div>
  184. <h3 class="options-header" id="attribution-category-header" >Attribution</h3>
  185. <span id="options-attribution">
  186. <div class="options-label">
  187. Authors
  188. </div>
  189. <span id="options-attribution-authors">
  190. </span>
  191. <div class="options-label">
  192. Owners
  193. </div>
  194. <span id="options-attribution-owners">
  195. </span>
  196. <div class="options-label">
  197. Source
  198. </div>
  199. <span id="options-attribution-source">
  200. </span>
  201. </span>
  202. </div>
  203. <div id="world">
  204. <input type="range" step="0.001" min="0" max="2" value="1" class="floating-slider" id="slider-scale"/>
  205. <input type="range" step="0.001" min="0" max="2" value="1" class="floating-slider" id="slider-entity-scale"/>
  206. <div id="entities">
  207. </div>
  208. <canvas id="display">
  209. </canvas>
  210. <div class="bottom-cover"></div>
  211. </div>
  212. </div>
  213. </body>
  214. </html>