Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cameo
hey-ho
Commits
ceb2a22e
Commit
ceb2a22e
authored
Jan 15, 2021
by
cameo
Browse files
FIX
#6
parent
df13591d
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.user.js
View file @
ceb2a22e
// ==UserScript==
// @name hey-ho
// @namespace fr.cines
// @version 0.
5
// @version 0.
6
// @updateURL https://git.cines.fr/cameo/hey-ho/raw/master/main.user.js
// @downloadURL https://git.cines.fr/cameo/hey-ho/raw/master/main.user.js
// @description try to take over the time, White Snow way
...
...
@@ -109,5 +109,8 @@ $(document).ready(function() {
table_row_patern
.
replace
(
"
__TITLE__
"
,
"
Solde D/C avec sortie immédiate
"
)
.
replace
(
"
__COMMENT__
"
,
""
)
.
replace
(
"
__VALUE__
"
,
toHHMMSS
(
current_time_today_dc
.
add
(
solde_dc
))));
$
(
'
#con-ZR_CPT > tbody:last-child
'
).
append
(
table_row_patern
.
replace
(
"
__TITLE__
"
,
"
Départ pour journée complète
"
)
.
replace
(
"
__COMMENT__
"
,
""
)
.
replace
(
"
__VALUE__
"
,
now
.
subtract
(
current_time_today_dc
).
format
(
"
HH:mm
"
)));
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment