git ssb

0+

Rômulo Alves / website



Commit cb0cf1da7b3874924353117f31270b1187559fdd

Merge branch 'master' of git.sr.ht:~romuloalves/website

romuloalves committed on 4/20/2020, 11:02:43 PM
Parent: 8aea3d23d4451e56e0de079459173a384addf300
Parent: d28b1230833c80ff3fbc697f30cd5e51de0fe115

Files changed

index.htmlchanged
index.htmlView
@@ -85,9 +85,9 @@
8585 <h1>You can find me on...</h1>
8686 <ul>
8787 <li>
8888 <span>Secure Scuttlebutt</span>
89- <code>@xr/Q/zqaEwmmd4wg8xRU1TrMLQhc9qBqNCioCqmv1vQ=.ed25519</code>
89 + <code class="click-select">@xr/Q/zqaEwmmd4wg8xRU1TrMLQhc9qBqNCioCqmv1vQ=.ed25519</code>
9090 </li>
9191 <li>
9292 <span>Twitter</span>
9393 <code>
@@ -138,6 +138,26 @@
138138 </a>
139139 </li>
140140 </ul>
141141 </section>
142 + <script type="text/javascript">
143 + var itemsToSelect = document.querySelectorAll('.click-select');
144 +
145 + for (let index = 0; index < itemsToSelect.length; index++) {
146 + var element = itemsToSelect[index];
147 +
148 + element.addEventListener('click', function() {
149 + var selection = window.getSelection();
150 +
151 + if (selection.rangeCount > 0) {
152 + selection.removeAllRanges();
153 + }
154 +
155 + var range = document.createRange();
156 +
157 + range.selectNode(element);
158 + selection.addRange(range);
159 + });
160 + }
161 + </script>
142162 </body>
143163 </html>

Built with git-ssb-web