Skip to content

Commit

Permalink
Add Text devtool to CodeMirror example (#646)
Browse files Browse the repository at this point in the history
Co-authored-by: Youngteac Hong <[email protected]>
  • Loading branch information
chacha912 and hackerwins authored Sep 16, 2023
1 parent 2a49cfc commit 52ffdbd
Show file tree
Hide file tree
Showing 8 changed files with 1,612 additions and 163 deletions.
13 changes: 4 additions & 9 deletions public/counter.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,19 @@
</head>
<body>
<div>
<div>status: <span id="network-status"></span></div>
<div class="wrap">
<div id="network-status"></div>
<div id="online-clients"></div>
<div class="counter-wrap">
<span id="counter"></span>
<button id="increaseButton">+</button>
<button id="decreaseButton">-</button>
</div>
<div>Online clients:</div>
<pre
style="white-space: pre-wrap"
><code id="online-clients-holder"></code></pre>
</div>
<script src="./yorkie.js"></script>
<script src="./util.js"></script>
<script>
const statusHolder = document.getElementById('network-status');
const onlineClientsHolder = document.getElementById(
'online-clients-holder',
);
const onlineClientsHolder = document.getElementById('online-clients');
const counter = document.getElementById('counter');
const counterIncreaseButton = document.getElementById('increaseButton');
const counterDecreaseButton = document.getElementById('decreaseButton');
Expand Down
Loading

0 comments on commit 52ffdbd

Please sign in to comment.