diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-09-19 19:28:47 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-10-11 09:37:53 +0300 |
commit | c5d6a6ef836be3cba8d78392bd8c0495841c43b5 (patch) | |
tree | 90a122ca33d28e9d420661b30b51cec393ef79c6 /docs/lab/index.html | |
parent | 724caef757f943e6350331b5371b2d13beefc2a8 (diff) | |
download | inter-c5d6a6ef836be3cba8d78392bd8c0495841c43b5.tar.xz |
website
Diffstat (limited to 'docs/lab/index.html')
-rw-r--r-- | docs/lab/index.html | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/docs/lab/index.html b/docs/lab/index.html index a7468f8fc..0c9ccb0a9 100644 --- a/docs/lab/index.html +++ b/docs/lab/index.html @@ -2,7 +2,8 @@ <html lang="en"> <head> <meta charset="utf-8"> - <link rel="icon" type="image/png" href="../favicon.png" /> + <title>lab</title> + <link rel="icon" type="image/png" href="favicon.png" /> <link href="../inter-ui.css" rel="stylesheet"> <script type="text/javascript"> @@ -743,8 +744,6 @@ for (const ch of uniqueChars) { // end of samples </script> - <meta charset="utf-8"> - <title>👀</title> <style id="font-css" type="text/css-template"> /* Roboto for comparison */ @import url('https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700,700i,900,900i&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese'); @@ -1295,6 +1294,15 @@ function main() { const repertoireControl = document.querySelector('.repertoireControl') const samplesElement = document.querySelector('samples') + // filter paste to match style + ;[].slice.call(document.querySelectorAll('[contenteditable]')).forEach(el => { + el.addEventListener('paste', ev => { + ev.preventDefault() + let text = ev.clipboardData.getData("text/plain") + document.execCommand("insertHTML", false, text) + }, {capture:true,passive:false}) + }) + let sizeVar = null function forEachGlyphlist(fn) { @@ -1513,10 +1521,6 @@ function main() { return e.valueAsNumber !== undefined ? e.valueAsNumber : e.value }) - vars.bind('varItalic', (e, v) => { - console.log('varItalic', v) - }) - // compare let secondarySampleClassNameAddition = null @@ -1709,6 +1713,9 @@ function main() { </body> <script type="text/javascript"> main(); - document.title += ' ' + (new Date()).toTimeString().split(':').slice(0,2).join(':'); + document.title = ( + (new Date()).toTimeString().split(':').slice(0,2).join(':') + + ' — ' + (new Date()).toDateString() + ); </script> </html> |