all repos — site @ 68f4f05f984ee8e9fb0c05eaf2f42e1040f39ffa

source for my site, found at icyphox.sh

Make webpage unselectable

Signed-off-by: Anirudh <icyph0x@pm.me>
Anirudh icyph0x@pm.me
Sun, 25 Nov 2018 10:54:44 +0530
commit

68f4f05f984ee8e9fb0c05eaf2f42e1040f39ffa

parent

6f48c38dfbf657bcd17189ffed1f119d2b43615e

2 files changed, 11 insertions(+), 4 deletions(-)

jump to
M index.htmlindex.html

@@ -21,17 +21,15 @@ <title>

Anirudh </title> +<body class="noselect"> <div class="container"> - <body> <div class="introduction"> <h1 align="center"> <!-- logo credits: Akshay Oppiliappan (@nerdypepper) --> <img src="/static/icynobg.svg" class="logo"> </h1> </div> - </body> - <footer> <div class="footer"> <div class="left"> &copy; 2018 — <a href="mailto:icyph0x@pm.me">icyph0x@pm.me</a>

@@ -44,5 +42,5 @@ <a href="/static/resume.pdf" target="_blank">Résumé</a>

<a href="/static/gpg.txt" target="_blank">GPG</a> </div> </div> - </footer> +</body> </html>
M static/style.cssstatic/style.css

@@ -115,6 +115,15 @@ display: inline-block;

margin-right: 30px; } +.noselect{ + -webkit-touch-callout:none; + -webkit-user-select:none; + -khtml-user-select:none; + -moz-user-select:none; + -ms-user-select:none; + user-select:none +} + @media only screen and (max-width: 40em) { .left { display: block;