Location: PHPKode > scripts > WAMP Error Log Watcher > wawa/index.html
<!DOCTYPE HTML>
<html>
 <!--
 jReply Wamp Error Watcher
 Copyright © 2013 jReply LLC http://jreply.com
 This code is made available under the terms of the 
 MIT License - http://opensource.org/licenses/MIT
 -->
 <head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  <title>jReply WAMP Error watcher</title>
  <link type="text/css" href="http://cdn.jreply.net/fcss/jreply_freebies.css" rel="stylesheet"/>
  <style type='text/css'>
  .corps{padding:1em;border:none;font-family:arial}
  h1{font-size:0.8em;color:yellow;rgba(238,153,19,1);}
 .trig{color:lime;font-weight:bold}
 .warn{color:rgb(238,153,19);font-weight:bold;}
 .parse{color:white;text-decoration:underline;}
 .fatal{color:red;font-weight:bold;}
 .inp{color:aqua}
 .olp{color:fuchsia}
 .line{font-size:0.8em;}
 .hdr,.err{color:white;font-size:1.2em;font-weight:bold;text-align:center;padding:10px;border:1px solid white;border-radius:8px;background-color:rgba(238,153,19,0.5);}
 .err{font-size:1em;color:red;font-weight:bold;text-align:left;padding:4px;background-color:silver;margin-top:10px;}
 .time{color:blue;}
 .info{color:black;font-weight:bold;}
 .copyp{font-size:0.8em;color:#9f9f9f;text-align:left;}
 .copyp a{color:#EE9913;}
  </style>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
  <script src='wawa.js'></script>
  <script type='text/javascript'>
  var _safeSource = location.protocol + '//' + location.hostname;
  $(document).ready(function()
  {
   var haveES = ('function' == typeof(EventSource));
   if (haveES)
   {
    var esrc = new EventSource('wawa.php');
	esrc.addEventListener('message',function(e){handleMessage(e);},false);
	esrc.addEventListener('error',function(e){sourceError(e);},false);
	$('#spnsrc').text(_safeSource);
	_inter = setInterval(showTicks,1000);
	$('#btnForce').button();
   }
   var displ = (haveES)?'block':'none';
   $('#divHaveES').css('display',displ);
   var displ = (!haveES)?'block':'none';
   $('#divNotHaveES').css('display',displ);
   
  });
  </script>
</head>
<body class="ui-widget ui-widget-content corps">
<audio id="audError" style="display:none;" src='wawa.mp3'></audio>
<div id='divHaveES'>
<div class='hdr'>jReply WAMP Error Watcher for <span id='spnsrc'></span></div>
<div id='lasterr'></div>
<div class='err' id='divMsg'>
<span class='info'>Updated:</span>
<span id='spnLastTime'>Not Yet</span>&nbsp;&nbsp;
<span class='info'>Next update in</span> <span id='spnNextTick'>3</span>s&nbsp;&nbsp;
<span class='info'>Last Error:</span><span id='spnLastErr'>Never</span>
<button id='btnForce' onclick='doForceErrors()' title='Click to test WAMP Watcher'>Simulate Errors</button>
</div>
</div>
<div id='divNotHaveES' class='hdr'>
This browser does not support Server Sent Events
</div>
<p class='copyp'>Copyright &copy; 2013 <a href='http://jreply.com'>jReply LLC</a>&nbsp;&nbsp;<a href='http://jreply.com/wawa'>Current Version 1.0.0</a></p>
</body>
</html>
Return current item: WAMP Error Log Watcher