From 5981eea827cde4211ff08f43f09e65600ab9cae3 Mon Sep 17 00:00:00 2001
From: Peder Bergebakken Sundt
Date: Sat, 11 Nov 2017 22:10:43 +0100
Subject: [PATCH] Make parts of kalender non-selectable
---
www/css/style.css | 15 +++++++++++++++
www/kalender/index.php | 22 +++++++++++-----------
2 files changed, 26 insertions(+), 11 deletions(-)
diff --git a/www/css/style.css b/www/css/style.css
index def22e9..7c5851a 100644
--- a/www/css/style.css
+++ b/www/css/style.css
@@ -199,3 +199,18 @@ a.btn:active {
.collapsable:target {
display: block;
}
+
+.noselect {
+ /* iOS Safari */
+ -webkit-touch-callout: none;
+ /* Safari */
+ -webkit-user-select: none;
+ /* Konqueror HTML */
+ -khtml-user-select: none;
+ /* Firefox */
+ -moz-user-select: none;
+ /* Internet Explorer/Edge */
+ -ms-user-select: none;
+ /* Non-prefixed version, currently supported by Chrome and Opera */
+ user-select: none;
+}
diff --git a/www/kalender/index.php b/www/kalender/index.php
index 78f0dd3..14c315e 100644
--- a/www/kalender/index.php
+++ b/www/kalender/index.php
@@ -53,20 +53,20 @@ $days_in_month = date('t', mktime(0, 0, 0, $month, 1, $year));
if ($pmonth==0) {$pmonth=12; $pyear--;}
if ($nmonth==13) {$nmonth=1; $nyear++;}
?>
- Forrige måned
- Neste måned
+ Forrige måned
+ Neste måned