Skip to content

Commit

Permalink
update demo page with link to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillmer committed Jul 2, 2020
1 parent 7dc842d commit 011d957
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<css-pattern pattern="zig-zag"></css-pattern>
<css-pattern pattern="carbon-fibre"></css-pattern>
<css-pattern pattern="brady-bunch"></css-pattern>
... --> </div> <h2>Pattern by name (example)</h2> <p>Displays always the same pattern for the given input name.</p> <div class="patterns"> <css-pattern pattern-for="John Doe"></css-pattern> <css-pattern pattern-for="Vessel"></css-pattern> <css-pattern pattern-for="Bannanas"></css-pattern> </div> <h2>Available pattern objects</h2> <table id="patternList"> <tbody><tr> <th>Title</th> <th>Code</th> <th>Author</th> <th>Author URL</th> </tr> </tbody></table> <template id="patternObject"> <tr> <td></td> <td></td> <td></td> <td></td> </tr> </template> <script type="text/javascript">async function seedPatterns() {
... --> </div> <h2>Pattern by name (example)</h2> <p>Displays always the same pattern for the given input name.</p> <div class="patterns"> <css-pattern pattern-for="John Doe"></css-pattern> <css-pattern pattern-for="Vessel"></css-pattern> <css-pattern pattern-for="Bannanas"></css-pattern> </div> <h2>Available pattern objects</h2> <table id="patternList"> <tbody><tr> <th>Title</th> <th>Code</th> <th>Author</th> <th>Author URL</th> </tr> </tbody></table> <h2>Source Code</h2> <p>Source code can be found on <a href="https://github.com/jwillmer/pattern-component">GitHub: jwillmer/pattern-component</a></p> <template id="patternObject"> <tr> <td></td> <td></td> <td></td> <td></td> </tr> </template> <script type="text/javascript">async function seedPatterns() {
const patternElement = document.getElementsByTagName("css-pattern")[0];
await patternElement.componentOnReady();
const patternContainer = document.getElementsByClassName("patterns")[0];
Expand Down
3 changes: 3 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ <h2>Available pattern objects</h2>
</tr>
</table>

<h2>Source Code</h2>
<p>Source code can be found on <a href="https://github.com/jwillmer/pattern-component">GitHub: jwillmer/pattern-component</a></p>

<template id="patternObject">
<tr>
<td></td>
Expand Down

0 comments on commit 011d957

Please sign in to comment.