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 {{{
|
// : Script header {{{
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Moodle/Elearning/KMOOC test help
|
// @name Moodle/Elearning/KMOOC test help
|
||||||
// @version 2.1.1.6
|
// @version 2.1.1.7
|
||||||
// @description Online Moodle/Elearning/KMOOC test help
|
// @description Online Moodle/Elearning/KMOOC test help
|
||||||
// @author MrFry
|
// @author MrFry
|
||||||
// @match https://elearning.uni-obuda.hu/*
|
// @match https://elearning.uni-obuda.hu/*
|
||||||
|
@ -160,7 +160,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
help: {
|
help: {
|
||||||
title: 'Help',
|
title: 'GYIK',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
ShowHelp()
|
ShowHelp()
|
||||||
},
|
},
|
||||||
|
@ -1388,9 +1388,13 @@
|
||||||
: '📬'
|
: '📬'
|
||||||
}
|
}
|
||||||
|
|
||||||
overlay.querySelector('#infoMainDiv').innerText = `${
|
overlay.querySelector(
|
||||||
subjInfo.subjects
|
'#infoMainDiv'
|
||||||
} tárgy, ${subjInfo.questions} kérdés. User ID: ${getUid()}`
|
).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
|
// FIXME: if cwith() throws an unhandled error it sais server is not avaible
|
||||||
cwith()
|
cwith()
|
||||||
})
|
})
|
||||||
|
@ -1848,10 +1852,10 @@
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
width: width + 'px',
|
width: width + 'px',
|
||||||
padding: '0px',
|
padding: '0px',
|
||||||
background: '#222d32',
|
|
||||||
color: '#ffffff',
|
color: '#ffffff',
|
||||||
border: '3px solid #99f',
|
border: '2px solid #f2cb05',
|
||||||
borderRadius: '5px',
|
borderRadius: '0px',
|
||||||
|
backgroundColor: '#222426',
|
||||||
top: startFromTop + 'px',
|
top: startFromTop + 'px',
|
||||||
left: (window.innerWidth - width) / 2 + 'px',
|
left: (window.innerWidth - width) / 2 + 'px',
|
||||||
opacity: getVal(`${id}_opacity`),
|
opacity: getVal(`${id}_opacity`),
|
||||||
|
@ -2179,9 +2183,9 @@
|
||||||
bottom: '30px',
|
bottom: '30px',
|
||||||
left: '10px',
|
left: '10px',
|
||||||
zIndex: 999999,
|
zIndex: 999999,
|
||||||
background: '#262626',
|
border: '2px solid #f2cb05',
|
||||||
border: '3px solid #99f',
|
borderRadius: '0px',
|
||||||
borderRadius: '5px',
|
backgroundColor: '#222426',
|
||||||
opacity: getVal(`${id}_opacity`),
|
opacity: getVal(`${id}_opacity`),
|
||||||
fontSize: '14px',
|
fontSize: '14px',
|
||||||
})
|
})
|
||||||
|
@ -2599,7 +2603,7 @@
|
||||||
if (query) {
|
if (query) {
|
||||||
q = query
|
q = query
|
||||||
}
|
}
|
||||||
openInTab(serverAdress + `manual?${q}`, {
|
openInTab(serverAdress + `faq${q ? '?' + q : ''}`, {
|
||||||
active: true,
|
active: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue