forked from janodvarko/harviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestRemoveToolbarButtonIndex.php
More file actions
32 lines (30 loc) · 1.04 KB
/
Copy pathtestRemoveToolbarButtonIndex.php
File metadata and controls
32 lines (30 loc) · 1.04 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
<?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.toolbar.removeButton("download");
preview.toolbar.removeButton("clear");
preview.toolbar.removeButton("showTimeline");
preview.toolbar.removeButton("showStats");
});
</script>
</body>
</html>