Source: site.view [edit]
Function name: gfRewards
Arguments: coins,prize
Description: Rewards page for GF ScreenSaver
Page type: html
Render function:  
Module: sandbox

Page source:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>GeneticFinance.com</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="WubHub_DoIt?cmdline=gfCSS" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="bg3">
  <div id="bg4">
    <div id="bg5">
      <div id="page">
        <div id="content">
          <div class="post">
            <div class="title">
              <h2>Earn Rewards to spend on Valuable Prizes<h2>
            </div>
            <div class="entry">
              <h3>Current Reward Points: 
<webl>
   if (ToInt(coins) > 0) then ToInt(coins) div 1000 else 0 end
</webl>       </h3>
              </p>
              <h2>Earn Reward Points</h2>
              </p>
              <p> To earn more reward points, you can: </p>
              <ul>
                <li>Let our screensaver run on your computer when you  aren't using it! It doesn't cost you anything and you quickly gain  valuable reward points. </li>
                <li><a href="WubHub_DoIt?cmdline=gfInviteFriends(%coins%,Enter email addresses for friends separated by commas)">Invite friends</a> and earn 25 points for each invitation! </li>
                <li><a href="WubHub_DoIt?cmdline=gfBuyPoints(%coins%)">Buy points</a> ($1 = 3 points) </li>
              </ul>
            </div>
          </div>
          <div class="post">
            <div class="entry">
              <h2>Redeem Reward Points</h2>
              </br>
              Once you have reward points, you can:
              </p>
              <ul>
                <li> <a href="WubHub_DoIt?cmdline=gfPrizes(%coins%)">Buy tickets to our prize pool</a>.  Each week, we give away iPhones, WII games, etc. </li>
                <li> <a href="WubHub_DoIt?cmdline=gfLottery(%coins%)">Win $Millions!</a> Use your rewards to buy real lottery tickets for the NY State Lotto.  Current prize: 
<webl>
   var P = GetURL("http://www.nylottery.org/index.php");
   var Amount = Pat(P, `\$(\d+) million`);
   if Size(Amount) >= 0 then
      Amount[0][0];
   else
      "?? million";
   end;
</webl>
</li>
                <li> <a href="WubHub_DoIt?cmdline=gfGifts(%coins%,none)">Improve the world!</a> When you redeem your free reward points, we will give a donation to a charity supporting the cause of your choice.</li>
              </ul>
            </div>
          </div>
        </div>
        <div style="clear: both; height: 40px;">&nbsp;</div>
      </div>
    </div>
  </div>
</div>
<div id="footer">
  <p>(c) 2009  geneticfinance.com</p>
</div>
</body>
</html>