From 70306507a4574382f3da55edb8a8753266cb76e3 Mon Sep 17 00:00:00 2001 From: mrfry Date: Sat, 15 May 2021 16:38:29 +0200 Subject: [PATCH] Minor style change, help button fix --- stable.user.js | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/stable.user.js b/stable.user.js index 792aa34..cc84c88 100755 --- a/stable.user.js +++ b/stable.user.js @@ -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, }) }