Skip to content

Commit

Permalink
Merge pull request #31 from Patternslib/better-demo
Browse files Browse the repository at this point in the history
maint: Create a better demo.
  • Loading branch information
thet authored Jan 14, 2025
2 parents 17ee0db + 3144221 commit 891488a
Showing 1 changed file with 42 additions and 23 deletions.
65 changes: 42 additions & 23 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,45 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Content-mirror pattern demo</title>
<script src="/dist/bundle.js"></script>
</head>
<body class="sidebar-left-open generic application- ">
<div id="content" class="application">
<h1>Content-mirror pattern demo</h1>
<p class="my-mirror"
><span class="text"
><em class="placeholder">Leave a comment</em></span
><em class="selected-users" id="selected-users"></em
><em class="selected-tags" id="selected-tags"></em
></p>
<textarea class="pat-content-mirror" placeholder="Type some text" data-pat-content-mirror="target:.my-mirror .text"></textarea>
<hr />
<p class="my-other-mirror"
><span class="text"
><em class="placeholder">I am the other mirror. Try me.</em></em
></p>
<textarea class="pat-content-mirror" placeholder="Say what's on your mind" data-pat-content-mirror="target:.my-other-mirror .text"></textarea>
</div>
</body>
<head>
<meta charset="utf-8" />
<title>Content-mirror pattern demo</title>
<script src="/bundle.min.js"></script>
</head>
<body class="sidebar-left-open generic application-">
<div class="application"
id="content"
>
<form>
<h1>Content-mirror pattern demo</h1>
<fieldset>
<p class="my-mirror">
<span class="text">
<em class="placeholder"></em>
</span>
</p>
<textarea class="pat-content-mirror"
placeholder="Type some text"
data-pat-content-mirror="target:.my-mirror .text"
autocomplete="off"
></textarea>
</fieldset>
<fieldset>
<p class="my-other-mirror">
<span class="text">
<em class="placeholder"></em>
</span>
</p>
<textarea class="pat-content-mirror"
placeholder="Say what's on your mind"
data-pat-content-mirror="target:.my-other-mirror .text"
autocomplete="off"
></textarea>
</fieldset>
<!-- Form reset -->
<input type="reset"
value="Reset"
/>
</form>
</div>
</body>
</html>

0 comments on commit 891488a

Please sign in to comment.