[beginning] revert .slice back
This commit is contained in:
parent
2fb8740c1b
commit
437fb1f6b9
@ -21,7 +21,7 @@ let style = document.querySelector('style');
|
|||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
const now = Date.now(),
|
const now = Date.now(),
|
||||||
birth = new Date(2015, 2, 9).getTime(),
|
birth = new Date(2015, 2, 9).getTime(),
|
||||||
color = `#(now - birth).toString(16).slice(0, -5)`,
|
color = `#(now - birth).toString(16).slice(0, 6)`,
|
||||||
|
|
||||||
style.textContent = `#mahdi path {
|
style.textContent = `#mahdi path {
|
||||||
stroke: ${color} !important;
|
stroke: ${color} !important;
|
||||||
@ -39,7 +39,7 @@ var style = document.querySelector('style');
|
|||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
var now = Date.now(),
|
var now = Date.now(),
|
||||||
birth = new Date(2015, 2, 9).getTime(),
|
birth = new Date(2015, 2, 9).getTime(),
|
||||||
color = '#' + (now - birth).toString(16).slice(0, -5);
|
color = '#' + (now - birth).toString(16).slice(0, 6);
|
||||||
|
|
||||||
style.textContent = '#mahdi path {\
|
style.textContent = '#mahdi path {\
|
||||||
stroke: ' + color + ' !important; \
|
stroke: ' + color + ' !important; \
|
||||||
|
Loading…
Reference in New Issue
Block a user