2011-07-07 17:12:14 +04:00
|
|
|
function handleRequest(request, response)
|
|
|
|
{
|
|
|
|
var count = parseInt(getState('count'));
|
2013-07-26 02:57:25 +04:00
|
|
|
if (!count || request.queryString == 'countreset')
|
2011-07-07 17:12:14 +04:00
|
|
|
count = 0;
|
2013-07-26 02:57:25 +04:00
|
|
|
|
2011-07-07 17:12:14 +04:00
|
|
|
setState('count', count + 1 + '');
|
|
|
|
|
|
|
|
response.setHeader('Content-Type', 'text/html', false);
|
|
|
|
response.setHeader('Cache-Control', 'max-age=0');
|
|
|
|
response.write('<html><body onload="opener.onChildLoad()" ' +
|
|
|
|
'onunload="parseInt(\'0\')">' +
|
|
|
|
count + '</body></html>');
|
|
|
|
}
|