Compare commits

...

59 Commits

Author SHA1 Message Date
cdd3167728 fix messing variable 2025-04-15 07:11:56 +00:00
802fa79eec show if selfie 2025-04-08 15:30:21 +00:00
9cc991c286 main marker always on top 2025-04-04 09:09:46 +00:00
d5e32b4829 show history data 2025-04-04 08:30:35 +00:00
a0483cb07e hide already added points 2025-04-04 08:05:14 +00:00
dcc9265adb fix if container not created 2025-04-04 07:45:17 +00:00
34780a741a remove global variable 2025-04-04 07:30:50 +00:00
49a3d4d493 fix colors 2025-04-01 15:08:46 +00:00
f3534eb17e fix color index 2025-04-01 15:01:33 +00:00
eb0236195d fix if label has html 2025-04-01 14:59:51 +00:00
4dc432c2f5 refactor createElement 2025-04-01 09:02:24 +00:00
edd7268b7b create new img instead of clone 2025-04-01 08:30:28 +00:00
facd974814 paint cp list on route edit page 2025-04-01 07:37:00 +00:00
4de91e933f swiper refactor 2025-03-31 08:27:47 +00:00
12fb7f4962 refactor createElement 2025-03-31 08:19:26 +00:00
311178d16d bind arrows only once 2025-03-31 07:28:47 +00:00
4b4990b123 add cp name to options on stages page 2025-03-28 12:47:01 +00:00
a5b62f30a2 add counter for history 2025-03-28 12:46:21 +00:00
bb0f44d4c7 check for errors 2025-03-26 10:52:25 +00:00
3746131d1f use common function 2025-03-26 10:34:54 +00:00
3f6daf97eb add counter for puzzles 2025-03-26 10:01:11 +00:00
a4ac19e516 use same request for receiving point by number 2025-03-26 08:36:27 +00:00
fbaff3bdf3 refactor createElement 2025-03-26 07:32:52 +00:00
b52b15accf target blank 2025-03-26 07:04:35 +00:00
51f3418bcf add cp links to route build page 2025-03-26 07:03:53 +00:00
1b56a8ba12 refactor receiving of json 2025-03-26 07:03:22 +00:00
aa98770385 create send button 2025-03-25 15:56:52 +00:00
73b1a3b24f show unknown points 2025-03-25 15:15:50 +00:00
c2e40b812a save routes on server 2025-03-25 09:25:08 +00:00
07d01839d1 add link to related points 2025-03-24 08:12:53 +00:00
ce50b1cecd fix history files 2025-03-21 14:18:07 +00:00
eeca874d35 mark empty inputs always 2025-03-21 10:18:41 +00:00
230b364206 add jquery cookie dependency 2025-03-21 09:50:29 +00:00
b44a986e4d remove jquery dependency 2025-03-21 09:47:13 +00:00
a17b9290be script for questionary 2025-03-21 09:39:56 +00:00
22db8f4575 refactor 2025-03-21 08:15:41 +00:00
358d7659b8 input for going to cp 2025-03-20 16:00:29 +00:00
08cf3333a8 methods for creating tags 2025-03-20 15:59:55 +00:00
8e0b2d874c add count for points 2025-03-20 14:37:19 +00:00
3958a610f9 make function local 2025-03-20 14:27:18 +00:00
cf7a722429 refactor 2025-03-20 12:52:08 +00:00
d891afbdf4 colspan for finish message 2025-03-20 12:34:22 +00:00
e963a3e179 refactor 2025-03-20 12:25:16 +00:00
0f8af9b014 update menu 2025-03-20 12:09:33 +00:00
64f55efca8 get param for hiding non-testers 2025-03-20 08:42:58 +00:00
43ff4dff97 always prettify edit cp by default 2025-03-20 07:52:50 +00:00
5ef6a9c5a7 fix name 2025-03-19 16:36:11 +00:00
b0b5da9447 margin 2025-03-19 15:40:05 +00:00
e05e78c71d fix & red borders 2025-03-19 15:36:16 +00:00
cadb4b5fbd style & scroll into view 2025-03-19 15:32:04 +00:00
76e46bd9b6 function for managing points 2025-03-19 14:50:01 +00:00
e169396914 small refactor 2025-03-19 12:32:56 +00:00
15923516c7 swap logic for prettify checkbox 2025-03-19 12:25:50 +00:00
6c45d14d21 fix if not found 2025-03-19 10:41:48 +00:00
f76a2f2ecd prettify route edit page 2025-03-19 10:26:53 +00:00
b6e1141d93 add prettify buttons 2025-03-19 09:36:36 +00:00
f83a2adf06 split styles 2025-03-18 10:11:44 +00:00
06e1d9d14f fix toggle text 2025-03-18 09:55:23 +00:00
10a8c9bcb2 add collapse button for stages page 2025-03-18 09:50:14 +00:00
2 changed files with 1827 additions and 838 deletions

2612
main.js

File diff suppressed because it is too large Load Diff

53
questionary.js Normal file
View File

@ -0,0 +1,53 @@
// ==UserScript==
// @name Runcity Questionary
// @namespace http://tampermonkey.net/
// @version 2024-11-18
// @description Add red border for empty inputs
// @author You
// @match https://www.runcity.org/ru/events/*/online/
// @icon https://www.google.com/s2/favicons?sz=64&domain=runcity.org
// @grant none
// ==/UserScript==
(function () {
'use strict'
/* COPY FROM MAIN */
function addStylesToHead(styles) {
let styleSheet = document.createElement("style")
styleSheet.textContent = styles
document.head.append(styleSheet)
}
/* END COPY FROM MAIN */
function addClassIfEmptyInput(input) {
if (input.value.trim() == "") {
input.classList.add("empty-input")
}
else {
input.classList.remove("empty-input")
}
}
function addEmptyInputCheck() {
let inputs = [...document.querySelectorAll(`input.cp_team_answer`)]
for (const input of inputs) {
addClassIfEmptyInput(input)
input.addEventListener("input", e => {
addClassIfEmptyInput(input)
})
}
addStylesToHead(`
.empty-input {
border-color: red !important;
}
`)
}
addEmptyInputCheck()
})();