| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | |
| 5 | <meta charset="utf-8" /> |
| 6 | <link rel="icon" href="assets/favicon.png" /> |
| 7 | <title>Download ▲ Prism</title> |
| 8 | <link rel="stylesheet" href="assets/style.css" /> |
| 9 | <link rel="stylesheet" href="themes/prism.css" data-noprefix /> |
| 10 | <style> |
| 11 | form label { |
| 12 | display: block; |
| 13 | padding: .2em; |
| 14 | padding-left: 1.9em; |
| 15 | page-break-inside: avoid; |
| 16 | break-inside: avoid; |
| 17 | -webkit-column-break-inside: avoid; |
| 18 | } |
| 19 | |
| 20 | form label .name { |
| 21 | margin-right: .3em; |
| 22 | } |
| 23 | |
| 24 | form label a.owner { |
| 25 | margin-left: 0; |
| 26 | hyphens: none; |
| 27 | } |
| 28 | |
| 29 | form label input { |
| 30 | margin-right: .7em; |
| 31 | margin-left: -1.7em; |
| 32 | } |
| 33 | |
| 34 | form > p:first-of-type > label { |
| 35 | font-size: 150%; |
| 36 | } |
| 37 | |
| 38 | form > p:first-of-type > label input { |
| 39 | vertical-align: .3em; |
| 40 | } |
| 41 | |
| 42 | .filesize:empty { |
| 43 | display: none; |
| 44 | } |
| 45 | |
| 46 | #components { |
| 47 | overflow: hidden; |
| 48 | } |
| 49 | |
| 50 | section.options { |
| 51 | width: 33.3%; |
| 52 | width: calc(100% / 3); |
| 53 | float: left; |
| 54 | } |
| 55 | |
| 56 | section.options#category-languages, |
| 57 | section.options#category-plugins { |
| 58 | width: 100%; |
| 59 | float: none; |
| 60 | column-count: 3; |
| 61 | padding-top: 2em; |
| 62 | overflow: visible; |
| 63 | } |
| 64 | |
| 65 | section.options#category-languages label, |
| 66 | section.options#category-plugins label { |
| 67 | break-inside: avoid; |
| 68 | } |
| 69 | section.options#category-languages > h1, |
| 70 | section.options#category-plugins > h1 { |
| 71 | margin-top: 0; |
| 72 | column-span: all; |
| 73 | } |
| 74 | |
| 75 | section.options#category-languages label[data-id="javascript"], |
| 76 | section.options label[data-id^="check-all-"] { |
| 77 | border-bottom: 1px solid #aaa; |
| 78 | padding-bottom: 1em; |
| 79 | margin-bottom: 1em; |
| 80 | } |
| 81 | |
| 82 | section.options#category-themes { |
| 83 | width: 66.6%; |
| 84 | width: calc(100% * 2/3); |
| 85 | column-count: 2; |
| 86 | overflow: visible; |
| 87 | float: none; |
| 88 | } |
| 89 | |
| 90 | section.options#category-themes > h1 { |
| 91 | column-span: all; |
| 92 | } |
| 93 | |
| 94 | section.download { |
| 95 | width: 50%; |
| 96 | float: left; |
| 97 | } |
| 98 | |
| 99 | #download { |
| 100 | overflow: hidden; |
| 101 | padding: .3em; |
| 102 | } |
| 103 | |
| 104 | #download .error { |
| 105 | color: #B61500; |
| 106 | display: none; |
| 107 | } |
| 108 | #download pre { |
| 109 | height: 20em; |
| 110 | } |
| 111 | #download .download-button { |
| 112 | cursor: pointer; |
| 113 | width: 100%; |
| 114 | } |
| 115 | |
| 116 | #download-js .download-button { |
| 117 | border-top-right-radius: 0; |
| 118 | border-bottom-right-radius: 0; |
| 119 | } |
| 120 | |
| 121 | #download-css .download-button { |
| 122 | background-color: #dc9e23; |
| 123 | border-top-left-radius: 0; |
| 124 | border-bottom-left-radius: 0; |
| 125 | } |
| 126 | </style> |
| 127 | <script src="assets/vendor/prefixfree.min.js"></script> |
| 128 | |
| 129 | <script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script> |
| 130 | <script src="https://www.google-analytics.com/ga.js" async></script> |
| 131 | </head> |
| 132 | <body> |
| 133 | |
| 134 | <header> |
| 135 | <div class="intro" data-src="assets/templates/header-main.html" data-type="text/html"></div> |
| 136 | |
| 137 | <h2>Customize your download</h2> |
| 138 | <p>Select your compression level, as well as the languages and plugins you need.</p> |
| 139 | </header> |
| 140 | |
| 141 | <section> |
| 142 | <form> |
| 143 | <p> |
| 144 | Compression level: |
| 145 | <label><input type="radio" name="compression" value="0" /> Development version</label> |
| 146 | <label><input type="radio" name="compression" value="1" checked /> Minified version</label> |
| 147 | </p> |
| 148 | |
| 149 | <section id="components"></section> |
| 150 | |
| 151 | <p> |
| 152 | Total filesize: <strong id="filesize"></strong> (<strong id="percent-js"></strong> JavaScript + <strong id="percent-css"></strong> CSS) |
| 153 | </p> |
| 154 | <p><strong>Note:</strong> The filesizes displayed refer to non-gizipped files and include any CSS code required.</p> |
| 155 | |
| 156 | <section id="download"> |
| 157 | <div class="error"></div> |
| 158 | <section id="download-js" class="download"> |
| 159 | <pre><code class="language-javascript"></code></pre> |
| 160 | <button type="button" class="download-button">Download JS</button> |
| 161 | </section> |
| 162 | |
| 163 | <section id="download-css" class="download"> |
| 164 | <pre><code class="language-css"></code></pre> |
| 165 | <button type="button" class="download-button">Download CSS</button> |
| 166 | </section> |
| 167 | </section> |
| 168 | |
| 169 | </form> |
| 170 | |
| 171 | </section> |
| 172 | |
| 173 | <footer data-src="assets/templates/footer.html" data-type="text/html"></footer> |
| 174 | |
| 175 | <script src="assets/vendor/utopia.js"></script> |
| 176 | <script src="prism.js"></script> |
| 177 | <script src="components.js"></script> |
| 178 | <script src="dependencies.js"></script> |
| 179 | <script src="assets/code.js"></script> |
| 180 | <script src="assets/vendor/promise.js"></script> |
| 181 | <script src="assets/vendor/FileSaver.min.js"></script> |
| 182 | <script src="assets/download.js"></script> |
| 183 | |
| 184 | </body> |
| 185 | </html> |