summaryrefslogtreecommitdiff
path: root/smoke/docs-main/src/components/HeadCommon.astro
diff options
context:
space:
mode:
authorGravatar github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> 2022-03-02 12:09:43 -0800
committerGravatar GitHub <noreply@github.com> 2022-03-02 12:09:43 -0800
commitd5ced6d0d18af666c6546db7d0df5166b81f01ee (patch)
tree0a0d53d493b3e0c1c609cbfa1f201c1ba1998d82 /smoke/docs-main/src/components/HeadCommon.astro
parentf957e46724a10d200be7f3a63463c9306a95d8e8 (diff)
downloadastro-d5ced6d0d18af666c6546db7d0df5166b81f01ee.tar.gz
astro-d5ced6d0d18af666c6546db7d0df5166b81f01ee.tar.zst
astro-d5ced6d0d18af666c6546db7d0df5166b81f01ee.zip
[ci] update smoke tests (remote) (#2699)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Diffstat (limited to 'smoke/docs-main/src/components/HeadCommon.astro')
-rw-r--r--smoke/docs-main/src/components/HeadCommon.astro16
1 files changed, 16 insertions, 0 deletions
diff --git a/smoke/docs-main/src/components/HeadCommon.astro b/smoke/docs-main/src/components/HeadCommon.astro
index daa39db13..c2fd24a61 100644
--- a/smoke/docs-main/src/components/HeadCommon.astro
+++ b/smoke/docs-main/src/components/HeadCommon.astro
@@ -30,6 +30,22 @@
}
</script>
+<!-- Double-click to highlight code blocks (inline only). -->
+<script>
+ document.addEventListener('dblclick', (el) => {
+ if (el.target.nodeName !== 'CODE') {
+ return;
+ }
+ if (el.target.parentElement.nodeName === 'PRE') {
+ return;
+ }
+ let range = new Range();
+ range.setStart(el.target, 0);
+ range.setEnd(el.target, 1);
+ document.getSelection().removeAllRanges();
+ document.getSelection().addRange(range);
+ });
+</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130280175-15"></script>
<script>