mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Minor style change, help button fix
This commit is contained in:
parent
27211c7bc8
commit
70306507a4
1 changed files with 16 additions and 12 deletions
|
@ -46,7 +46,7 @@
|
|||
// : Script header {{{
|
||||
// ==UserScript==
|
||||
// @name Moodle/Elearning/KMOOC test help
|
||||
// @version 2.1.1.6
|
||||
// @version 2.1.1.7
|
||||
// @description Online Moodle/Elearning/KMOOC test help
|
||||
// @author MrFry
|
||||
// @match https://elearning.uni-obuda.hu/*
|
||||
|
@ -160,7 +160,7 @@
|
|||
},
|
||||
},
|
||||
help: {
|
||||
title: 'Help',
|
||||
title: 'GYIK',
|
||||
onClick: () => {
|
||||
ShowHelp()
|
||||
},
|
||||
|
@ -1388,9 +1388,13 @@
|
|||
: '📬'
|
||||
}
|
||||
|
||||
overlay.querySelector('#infoMainDiv').innerText = `${
|
||||
subjInfo.subjects
|
||||
} tárgy, ${subjInfo.questions} kérdés. User ID: ${getUid()}`
|
||||
overlay.querySelector(
|
||||
'#infoMainDiv'
|
||||
).innerText = `${subjInfo.subjects.toLocaleString(
|
||||
'hu'
|
||||
)} tárgy, ${subjInfo.questions.toLocaleString(
|
||||
'hu'
|
||||
)} kérdés. User ID: ${getUid()}`
|
||||
// FIXME: if cwith() throws an unhandled error it sais server is not avaible
|
||||
cwith()
|
||||
})
|
||||
|
@ -1848,10 +1852,10 @@
|
|||
textAlign: 'center',
|
||||
width: width + 'px',
|
||||
padding: '0px',
|
||||
background: '#222d32',
|
||||
color: '#ffffff',
|
||||
border: '3px solid #99f',
|
||||
borderRadius: '5px',
|
||||
border: '2px solid #f2cb05',
|
||||
borderRadius: '0px',
|
||||
backgroundColor: '#222426',
|
||||
top: startFromTop + 'px',
|
||||
left: (window.innerWidth - width) / 2 + 'px',
|
||||
opacity: getVal(`${id}_opacity`),
|
||||
|
@ -2179,9 +2183,9 @@
|
|||
bottom: '30px',
|
||||
left: '10px',
|
||||
zIndex: 999999,
|
||||
background: '#262626',
|
||||
border: '3px solid #99f',
|
||||
borderRadius: '5px',
|
||||
border: '2px solid #f2cb05',
|
||||
borderRadius: '0px',
|
||||
backgroundColor: '#222426',
|
||||
opacity: getVal(`${id}_opacity`),
|
||||
fontSize: '14px',
|
||||
})
|
||||
|
@ -2599,7 +2603,7 @@
|
|||
if (query) {
|
||||
q = query
|
||||
}
|
||||
openInTab(serverAdress + `manual?${q}`, {
|
||||
openInTab(serverAdress + `faq${q ? '?' + q : ''}`, {
|
||||
active: true,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue