You are viewing a single comment's thread from:

RE: Steem.Supply Update: Easter Eggs All Over The Place

in #steemit7 years ago

Nice incentive to an already useful tool, @dragosroua. You set that up to display a percentage of the time or every time the page is loaded?

If you set it to show like 33% of the time, you could show a small egg icon or something in random (x,y) position on the page. Then it wouldn't matter if someone viewed the source. Just a thought. :)

<?php $egg = rand(0,2); ?>

<script language="javascript">
var egg = <?=$egg?>;
if (egg == '1')
  // fill div with Easter Egg
else
  // empty egg div
</script>

Just some psuedo-code to illustrate my idea. Not sure if you're already using a PHP file, but would just have to change the extension to .php if not.

Sort:  

nice one, thanks :)

Happy to contribute. :)

Coin Marketplace

STEEM 0.15
TRX 0.15
JST 0.028
BTC 53776.88
ETH 2232.91
USDT 1.00
SBD 2.30