]> littlesong.place Git - poll.git/commitdiff
Prevent selecting option text in vote master
authorChris Fulljames <christianfulljames@gmail.com>
Sat, 11 Jul 2026 19:24:22 +0000 (15:24 -0400)
committerChris Fulljames <christianfulljames@gmail.com>
Sat, 11 Jul 2026 19:24:22 +0000 (15:24 -0400)
index.php

index 019f5a39a0f12c162c5a3730a08a62bf69ea32f7..c181d80a62e4af6090c5646730e9384edac057f6 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -235,6 +235,10 @@ if (isset($qid) && isset($_GET['count'])) {
         border-radius: 5px;
         background-color: #dff;
         box-shadow: 5px 5px 5px #ccc;
         border-radius: 5px;
         background-color: #dff;
         box-shadow: 5px 5px 5px #ccc;
+
+        -webkit-user-select: none; /* Safari */
+        -ms-user-select: none; /* IE 10 and IE 11 */
+        user-select: none; /* Everyone else */
     }
     .result {
         background-color: #dff;
     }
     .result {
         background-color: #dff;