1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <%- partial('partials/sidebar', { type: page.type, index: page.index }) %>
- <div class="Content js-Content <%- page.type ? page.type + ' with-sidebar' : '' %>">
- <h1><%- page.title %> Example</h1>
- <p>
- Hey there stranger!
- Uppy
- <img src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f436.png" width="16">
- is in the early stages of development and the example section
- is our playground. Things might not yet work, but we're working hard to improve this.
- <br />
- We're on a monthly
- <a href="https://github.com/transloadit/uppy/blob/master/CHANGELOG.md">monthly release cycle</a>
- and our latest version is v<%- config.uppy_gz_size %>, but the example
- pages reflect the latest work in our master branch, so here's
- <a href="https://github.com/transloadit/uppy/compare/v<%- config.uppy_version %>...master">what changed since v<%- config.uppy_version %></a>.
- </p>
- <!-- Add textarea already so it's available immediately for logging.
- It is later made visible, and moved into the #console-wrapper to position it in layout how
- you see fit. -->
- <textarea id="console-log" class="Console"></textarea>
- <script>
- console.log = (function (old_function, div_log) {
- return function (text) {
- old_function(text);
- if (text !== (text + '')) {
- text = JSON.stringify(text);
- }
- div_log.value = text + "\n" + div_log.value;
- };
- } (console.log.bind(console), document.getElementById("console-log")));
- </script>
- <%- page.content %>
- <script>
- // #console-log textarea is declared earlier so it's available immediately for logging.
- // Here it is made visible, and moved into the #console-wrapper, so you can position it in the layout how
- // you see fit.
- document.getElementById('console-wrapper').appendChild(document.getElementById('console-log'));
- document.getElementById('console-log').style.display = 'block';
- </script>
- <div class="footer">Caught a mistake or want to contribute to the documentation?
- <a href="https://github.com/transloadit/uppy/blob/master/website/src/<%- page.source %>" target="_blank">Edit/fork this page directly on Github</a>!
- </div>
- </div>
|