Source: site.view [edit]
Function name: mediaTimeEliminateDay
Arguments: day
Description: Zero's out hours for that day
Page type: webl
Render function:  
Module: global

Page source:

var info = (WubCall("global.mediaTimeData", []) ? [. currentMedia = "tv", currentState = "STOP" .]);
var html = "Time zero'd out for " + day;

var timeLeft = [. tv = 0, computer = 0 .];
info[day] := timeLeft;

var funcinfo = Wub_GetFunctionInfo("global.mediaTimeData");
funcinfo.exec := ToString(info);
Wub_SaveFunctionInfo(funcinfo);

var m = Markup(WubCall("mediaTime", [html]));
m = Wub_ReplaceAll(m, `10"`, `4; URL=/webl/WubHub_DoIt?cmdline=global.mediaTime"`);

NewPage(m, "text/html");