Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maint: Create a better demo. #31

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading