Jump to content

While looking through a christmas countdown html code, I came across a date code that I have no idea what it is. Take a look for yourself. Any ideas?

All I know is that it changes the countdown when I change letters and numbers in the code.

 

Here is a link to the javascript that controls the countdown:

http://d3lb4mqc8jhyvq.cloudfront.net/assets/v1/cdp/timer-473c8f850ce24bb52247fbe12a74b5bd.js

http://d3lb4mqc8jhyvq.cloudfront.net/assets/v1/cdp/show-e26fc8196c01cfb661f4b939cf538cad.js

  <script type='text/javascript'>window.cdp_dataStr="Christmas|549b99d0|1";</script>
Link to comment
https://linustechtips.com/topic/265943-what-could-date-string-be/
Share on other sites

Link to post
Share on other sites

Maybe it's some kind of regular expression? Where did you get the code from?

CPU: i7-4790K --- HEATSINK: NZXT Kraken X61 --- MOBO: Asus Z97-A --- GPU: GTX 970 Strix --- RAM: 16GB ADATA XPG --- SSD: 512GB MX100 | 256GB BX200 HDD: 1TB WD Black --- PSU: EVGA SuperNova G2 --- CASE: NZXT H440 --- DISPLAY3 x Dell U2414H --- KEYBOARD: Pok3r (Clears) --- MOUSE: Logitech G Pro --- OS: Windows 10

Link to post
Share on other sites

Maybe it's some kind of regular expression? Where did you get the code from?

I actually don't remember lol. I have the javascript linked

 

edit: here is where i got it from http://www.onlinecountdowns.com/countdown-clock/show/Merry%20Christmas%20for%20Blockland%7C549b99d0%7C3

Link to post
Share on other sites

CPU: AMD Ryzen 7 3700X - CPU Cooler: Deepcool Castle 240EX - Motherboard: MSI B450 GAMING PRO CARBON AC

RAM: 2 x 8GB Corsair Vengeance Pro RBG 3200MHz - GPU: MSI RTX 3080 GAMING X TRIO

 

Link to post
Share on other sites

Looks like it's setting some variable values according to functions that get the current date, then delimiting it with pipelines characters.

 

I'm still not too sure though.

 

It's easier to see when the function code is more spread out:

jQuery(document).ready(function() {    function t(t) {        var a = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];        return a[t.getMonth()] + " " + t.getDate() + ", " + t.getFullYear()    }    if (window.cdp_dataStr) {        var a = cdp_dataStr.split("|"),            e = (a[0], 1e3 * parseInt(a[1], 16)),            r = new TimerManager;        r.start(e);        var n = new Date(e);        $("#formattedDate").html(t(n)), $("#share-link").val(location.href)    }});

CPU: i7-4790K --- HEATSINK: NZXT Kraken X61 --- MOBO: Asus Z97-A --- GPU: GTX 970 Strix --- RAM: 16GB ADATA XPG --- SSD: 512GB MX100 | 256GB BX200 HDD: 1TB WD Black --- PSU: EVGA SuperNova G2 --- CASE: NZXT H440 --- DISPLAY3 x Dell U2414H --- KEYBOARD: Pok3r (Clears) --- MOUSE: Logitech G Pro --- OS: Windows 10

Link to post
Share on other sites

 

Looks like it's setting some variable values according to functions that get the current date, then delimiting it with pipelines characters.

 

I'm still not too sure though.

 

It's easier to see when the function code is more spread out:

jQuery(document).ready(function() {    function t(t) {        var a = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];        return a[t.getMonth()] + " " + t.getDate() + ", " + t.getFullYear()    }    if (window.cdp_dataStr) {        var a = cdp_dataStr.split("|"),            e = (a[0], 1e3 * parseInt(a[1], 16)),            r = new TimerManager;        r.start(e);        var n = new Date(e);        $("#formattedDate").html(t(n)), $("#share-link").val(location.href)    }});

Confusing eh?

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×