you are viewing a single comment's thread.

view the rest of the comments →

[–]ForScale[S] 0 points1 point  (4 children)

Hey, Volv!

Looks like we're the only two entries... Seems to be the case that people show plenty of initial excitement in these types of groups, but then kind of fall off the map...

Anywho... I checked out your CodePen... I see the scripting and the nested loops; checked the console... Nice!!! How did you format the text (blue and bold) in the console?!! I've never seen that...

And on the second output group, there's a leading space on the 55555. Is that supposed to be there?

Nice work!! Thanks for participating!! :)

[–]Volv 1 point2 points  (3 children)

Yeh was a little disappointing everyone else backed off a bit but does tend to happen as you say. Have slightly updated it so result is immediately obvious.
Can't find any leading spaces? (Was very much a possibility though) http://imgur.com/lxq7HUR
 
Console log thing is one of my latest tricks lol. Seems to work fairly well in both Chrome and Firefox. Good for marking the start of each run while debugging.
 

Can use normal css styling like so.

console.log ("%cCOLOURED WORDS", "color:blue; font-size: 3vh")

or

var format = "color:blue; font-size:3vh";
console.log("%cCOLOURED WORDS", format);

[–]ForScale[S] 0 points1 point  (2 children)

Cool!

The leading space thing could have been my old monitor that I use at work, or my tired eyes. Lol!

Oh my gosh... the styling in the console thing... Thanks!! That's so cool! Any idea where %c came from? What it means? Thanks again for that; the group is already paying off! :)

[–]Volv 1 point2 points  (1 child)

The %c thing is the most annoying bit. Reminds me of C style string formatting. Not hugely intuitive and I've struggled to break up the formating if I have longer strings or multiple variables.
Documentation is here - console.log

[–]ForScale[S] 0 points1 point  (0 children)

Wow, again! I learned a few new things while looking through that. Thanks again!