Source: site.view [edit]
Function name: gfGifts
Arguments: coins,reward
Description: A gifts page
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 oncontextmenu="return false">
<div id="bg3">
  <div id="bg4">
    <div id="bg5">
      <div id="page">
        <div id="content">
          <div class="post">
            <div class="title">
              <h2><a href="#">Give Back!</a></h2>
              
            </div>
            <div class="entry">

             <h3 align="center">You have 
<webl>if (ToInt(coins) > 0) then ToInt(coins) div 1000 else 0 end
</webl>
                 reward points to spend. </h3>

<MAP NAME="menu">
  <webl>
     var pay = fun(bank, sum, prize)
       bank = ToInt(bank);
       if (bank - sum >= 0) then
           bank = bank - sum
       else
           prize = "none"
       end;
       return ToString(bank) + "," + prize
     end;

     var c1 = pay(coins, 1000, "rice");
     var c2 = pay(coins, 3000, "rainforest");
     var c3 = pay(coins, 5000, "water");
     var c4 = pay(coins, 10000, "book");
     var c5 = pay(coins, 15000, "carbon");
     var c6 = pay(coins, 25000, "stray");
     var c7 = pay(coins, 40000, "vaccine");
     var c8 = pay(coins, 50000, "tree");
      `<AREA SHAPE="rect" COORDS="0,0,387,153" 
     HREF="WubHub_DoIt?cmdline=gfGifts(` + c1 + `)" target="_top">` +
          `<AREA SHAPE="rect" COORDS=388,0,775,153" 
     HREF="WubHub_DoIt?cmdline=gfGifts(` + c2 + `)" target="_top">` +
          `<AREA SHAPE="rect" COORDS="0,154,387,323" 
     HREF="WubHub_DoIt?cmdline=gfGifts(` + c3 + `)" target="_top">` +
          `<AREA SHAPE="rect" COORDS="388,154,775,323" 
     HREF="WubHub_DoIt?cmdline=gfGifts(` + c4 + `)" target="_top">` +
          `<AREA SHAPE="rect" COORDS="0,324,387,489" 
     HREF="WubHub_DoIt?cmdline=gfGifts(` + c5 + `)" target="_top">` +
          `<AREA SHAPE="rect" COORDS="388,324,775,489" 
     HREF="WubHub_DoIt?cmdline=gfGifts(` + c6 + `)" target="_top">` +
          `<AREA SHAPE="rect" COORDS="0,490,387,645" 
     HREF="WubHub_DoIt?cmdline=gfGifts(` + c7 + `)" target="_top">` +
          `<AREA SHAPE="rect" COORDS="388,490,775,645" 
     HREF="WubHub_DoIt?cmdline=gfGifts(` + c8 + `)" target="_top">`;
   </webl>
</MAP>

<p align=center style='text-align:center'>
<img src="http://www.adam.cheyer.com/images/gifts.png" usemap="#menu">
</p>


                  <p align="center"><a href="WubHub_DoIt?cmdline=gfRewards(%coins%,none)">Earn more Reward Points</a><br>
                  </p>

              </div>
            </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>