Source: site.view [edit]
Function name: home
Arguments:
Description:
Page type: html
Render function:  
Module: greatest-at

Page source:

<head>

<style type="text/css">

body {
	margin:50px 0px; padding:0px;
	text-align:center;
	}

.backgroundBox {
  background: url("http://www.greatest.at/images/trophy.jpg") 50% 50% no-repeat;
  width: 371;
  height: 646;
  margin:0px auto;
}

.searchBox {
  width: 500;
  height: 100;
  margin:0px auto;
  text-align: left;
  border: 1px dashed #333;
  background-color: #eee;
}

.awardBox {
  position:relative;
  top: 500;
  font-weight: bold;
}


</style>

</head>

<body>

<webl>

var domain = wubinfo.domain ? nil;

var res = "";
var skill = "";
if (domain != nil) then
   var pieces = Str_Split(Str_ToLowerCase(domain), ".");
   skill = pieces[0];
   skill = Wub_ReplaceAll(skill, "-", " ");
   if skill == "greatest" or skill == "www" then
      res = `<div class="searchBox">`;
      res = res  +"Who's the Greatest?\n";
      res = res + "<form>Skill/Game/Competition: <input></input></form>\n";
      res = res + "</div>\n";
   else
      res = `<div class="backgroundbox"><div class="awardBox">`;
      res = res + "The World's Greates at " + skill + "<P>" + WubCall("greatestPerson", [skill]);
      res = res + "</div></div>\n";
   end
end;

res;

</webl>

</body>