Make webpage unselectable Signed-off-by: Anirudh <icyph0x@pm.me>
Anirudh icyph0x@pm.me
Sun, 25 Nov 2018 10:54:44 +0530
2 files changed,
11 insertions(+),
4 deletions(-)
M
index.html
→
index.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"> © 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.css
→
static/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;