For an explanation, refer to the respective solutions submitted by broll and Charlie in the comments section.
blackjack
flooble's webmaster puzzle