From 2fb8740c1b0a5d04ad786f979337a0f6de8c0719 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sun, 29 Mar 2015 17:53:14 +0430 Subject: [PATCH] [beginning] fix slice --- _posts/2015-03-09-beginning.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_posts/2015-03-09-beginning.markdown b/_posts/2015-03-09-beginning.markdown index 7ba1a58..3718ab7 100644 --- a/_posts/2015-03-09-beginning.markdown +++ b/_posts/2015-03-09-beginning.markdown @@ -21,7 +21,7 @@ let style = document.querySelector('style'); setInterval(() => { const now = Date.now(), birth = new Date(2015, 2, 9).getTime(), - color = `#(now - birth).toString(16).slice(0, -6)`, + color = `#(now - birth).toString(16).slice(0, -5)`, style.textContent = `#mahdi path { stroke: ${color} !important; @@ -39,7 +39,7 @@ var style = document.querySelector('style'); setInterval(function() { var now = Date.now(), birth = new Date(2015, 2, 9).getTime(), - color = '#' + (now - birth).toString(16).slice(0, -6); + color = '#' + (now - birth).toString(16).slice(0, -5); style.textContent = '#mahdi path {\ stroke: ' + color + ' !important; \