You are viewing a single comment's thread from:
RE: Steem.Supply Update: Easter Eggs All Over The Place
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.
nice one, thanks :)
Happy to contribute. :)