diff --git a/docs/index.css b/docs/index.css index e226318e1..bcac587df 100644 --- a/docs/index.css +++ b/docs/index.css @@ -162,8 +162,6 @@ h1 { box-shadow: inset -1px -1px 0 var(--gridColor); cursor: cell; - user-select: none; - -webkit-user-select: none; } /* for window width >= 1600 */ @media only screen and (min-width: 1599px) { diff --git a/docs/index.html b/docs/index.html index a28d79ff4..76fe23cbb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -300,29 +300,6 @@ html { font-family: 'Inter', sans-serif; }

Character set

-
{% for g in site.data.glyphinfo.glyphs %} @@ -333,15 +310,89 @@ function csc(node) { {% endcomment %} {% if g[1] == 0 and g[2] %} {% if g[3] %} - &#x{{g[2]}} + &#x{{g[2]}} {% else %} - &#x{{g[2]}} + &#x{{g[2]}} {% endif %} {% endif %} {% endfor %}
+
@@ -511,14 +562,18 @@ for (i = 0; i < av.length; ++i) { // clipboard copy var copyToClipboard = (function(){ - var hiddenTextInput = $('#hidden-text-input') + var ti = $('#hidden-text-input') return function(text) { - hiddenTextInput.style.display = null - hiddenTextInput.value = text - hiddenTextInput.select() + let range = document.createRange() + + // ti.style.display = null + ti.value = text + ti.select() + document.execCommand("copy") - hiddenTextInput.value = "" - hiddenTextInput.style.display = 'none' + ti.value = "" + // ti.style.display = 'none' + ti.readOnly = true HUDNotification.show('Copied to clipboard') } })(); diff --git a/docs/res/base.css b/docs/res/base.css index 0cc95c042..3bab3837b 100644 --- a/docs/res/base.css +++ b/docs/res/base.css @@ -641,10 +641,10 @@ box.large tablex r out { #hud-notification .msg { background: #000; color: white; - height: 50px; - line-height: 50px; - font-size: 22px; - letter-spacing: -0.012em; + height: 32px; + line-height: 32px; + font-size: 14px; + letter-spacing: 0em; padding: 0 0.7em; border-radius: 4px; opacity: 0.1;