boredbutton3

Log | Files | Refs | README

commit 3b98b9b2339b43adc74c27b1303ab7ffdda4c3e3
parent 18f99e175c644aa6085734e092f45c6b659c14d0
Author: Francisco Boudagh <franciscoboudagh1@gmail.com>
Date:   Sun, 19 Dec 2021 18:48:20 +0100

Disabled text selection

Diffstat:
Mindex.html | 2+-
Mstyle.css | 10++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/index.html b/index.html @@ -11,7 +11,7 @@ </head> - <body> + <body class="noselect"> <canvas id="bang" width="800" height="800"></canvas> <script src="./script.js"></script> diff --git a/style.css b/style.css @@ -18,6 +18,16 @@ canvas{ background-color: #fcfcfc; } +.noselect { + -webkit-touch-callout: none; /* iOS Safari */ + -webkit-user-select: none; /* Safari */ + -khtml-user-select: none; /* Konqueror HTML */ + -moz-user-select: none; /* Old versions of Firefox */ + -ms-user-select: none; /* Internet Explorer/Edge */ + user-select: none; /* Non-prefixed version, currently + supported by Chrome, Edge, Opera and Firefox */ +} + /* Rubrik */ .headline { color: #3F617C;