forked from janodvarko/harviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestCustomPageTimingIndex.php
More file actions
33 lines (31 loc) · 1 KB
/
Copy pathtestCustomPageTimingIndex.php
File metadata and controls
33 lines (31 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
require_once("config.php");
// Compute proper URLs for includes resources (depends on config.php).
// Don't forget on trailinig slash.
$scriptsURL = $harviewer_base."scripts/";
$cssURL = $harviewer_base."css/";
?>
<!doctype html>
<html>
<head>
<title>HTTP Archive Viewer Test</title>
<link rel="stylesheet" href="<?php echo $cssURL; ?>harViewer.css" type="text/css">
</head>
<body class="harBody">
<div id="content" version="Test"></div>
<script src="<?php echo $scriptsURL; ?>jquery.js"></script>
<script data-main="<?php echo $scriptsURL; ?>harViewer" src="<?php echo $scriptsURL; ?>require.js"></script>
<script type="text/javascript">
$("#content").bind("onViewerPreInit", function(event)
{
var viewer = event.target.repObject;
var preview = viewer.getTab("Preview");
preview.addPageTiming({
name: "_onMyEvent",
classes: "onMyEventBar",
description: "A custom page timing"
});
});
</script>
</body>
</html>