blob: dd3c4b1bf30232d74f5a52f0dec3d37dc625a415 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
rect {
/*fill: None;*/
stroke: #aaa;
<script src=""></script>
<script src="js/draper.activity_logger-2.1.1.js"></script>
<script src=""></script>
<div id="canvas"></div>
<p>Mouse over elements to simulate user actions.</p>
<p>You should be able to see these coming through real time on the Kibana server.</p>
<p>Also, if you open the JavaScript console, you should see the logs going out.</p>
var activies = [
var colors = d3.scale.category10()
var svg ='#canvas').append('svg')
.attr({'w': 200, 'h': 200});
x: function(d) { return d%20*10; },
y: function(d) { return Math.floor(d/20)*10; },
fill: function(d) { return colors(d%7); },
height: 10,
width: 10,
.on('mouseover', function(d) {
'description', // description
activies[d%activies.length], // activity_code
d%7 // workflow State
var worker = "js/draper.activity_worker-2.1.1.js"
var ac = new activityLogger(worker)
.testing(false) // simulate POST, won't send log
.echo(true) // log to console
.mute(['SYS']); // don't log SYSTEM actions
'User hovered over element to read popup', // description
'hover_start', // activity_code
ac.WF_EXPLORE // workflow State