Skip to content

Commit 1f12cfe

Browse files
committed
Update examples, add jslinks.htm
git-svn-id: https://subversion.gsi.de/dabc/trunk/plugins/root/js@2826 bcbf6573-9a26-0410-9ebc-ce4ab7aade96
1 parent 478d3b3 commit 1f12cfe

File tree

2 files changed

+61
-3
lines changed

2 files changed

+61
-3
lines changed

demo/drawoptions.htm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818

1919
if (JSROOT.source_dir.indexOf("root.cern.ch")>0)
2020
global_dir = "http://root.cern.ch/js/files/";
21-
if (JSROOT.source_dir.indexOf("web-docs.gsi.de/~linev")>0)
21+
if (JSROOT.source_dir.indexOf("web-docs.gsi.de")>0)
2222
global_dir = "http://web-docs.gsi.de/~linev/js/files/";
23-
2423

2524
function draw_item(file, itemname, divid, drawopt) {
2625
file.ReadObject(itemname, function(obj) {
@@ -32,7 +31,7 @@
3231
function draw_item_options(file, itemname, divid, options, factor) {
3332
var arr = options.split(";");
3433

35-
var fname = (file.fURL.indexOf("http://")==0) ? fname : "demo/"+ file.fURL;
34+
var fname = (file.fURL.indexOf("http://")==0) ? file.fURL : "demo/"+ file.fURL;
3635

3736
var has_equal = false;
3837

demo/jslinks.htm

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<head>
4+
5+
<meta http-equiv="X-UA-Compatible" content="IE=Edge; text/html">
6+
7+
<title>JavaScript ROOT links collection</title>
8+
9+
</head>
10+
11+
<body>
12+
13+
<h1>Links collection</h1>
14+
15+
<h2>Main project page</h2>
16+
<ul>
17+
<li><a href="http://root.cern.ch/js/3.1/">ROOT web site</a></li>
18+
<li><a href="http://web-docs.gsi.de/~linev/js/3.1/">S.Linev mirror</a></li>
19+
</ul>
20+
21+
<h2>Loading ROOT files</h2>
22+
<ul>
23+
<li><a href="../index.htm?file=../files/hsimple.root">Load file</a></li>
24+
<li><a href="../index.htm?file=../files/hsimple.root&item=hpxpy;1&opt=colz">Load file and display item</a></li>
25+
<li><a href="../index.htm?nobrowser&file=../files/hsimple.root&item=hprof;1">Display item without browser pane</a></li>
26+
<li><a href='../index.htm?file=../files/hsimple.root&layout=grid2x2&items=["hpx;1", "hpxpy;1"]&opts=["", "colz"]'>Display several items</a></li>
27+
</ul>
28+
29+
<h2>Snapshot from running THttpServer</h2>
30+
<ul>
31+
<li><a href="index.htm">Default page</a></li>
32+
<li><a href="Files/job1.root/index.htm">Sub-folder</a></li>
33+
<li><a href="index.htm?item=Files/job1.root/hpxpy&opt=colz&monitoring=1000">Display item</a>
34+
<li><a href="Files/job1.root/hpxpy/draw.htm?opt=colz">Draw without browser</a></li>
35+
</ul>
36+
37+
<h2>Standalone JSROOT usage</h2>
38+
<ul>
39+
<li><a href="example.htm">Embed JSROOT graphic in HTML page</a></li>
40+
</ul>
41+
42+
<h2>Demonstration of online JSROOT usage</h2>
43+
44+
<ul>
45+
<li><a href="demo.htm">Update JSROOT graphic from JSON files</a></li>
46+
<li><a href="demo.htm?layout=grid3x2">Display online data on grid layout</a></li>
47+
</ul>
48+
49+
<h2>All supported draw options</h2>
50+
51+
<ul>
52+
<li><a href="drawoptions.htm?minimal">Only list</a></li>
53+
<li><a href="drawoptions.htm?default&w=800&h=600">Default draw options</a></li>
54+
<li><a href="drawoptions.htm?all&w=1400&h=800">All drawing at once (many large canvases)</a></li>
55+
</ul>
56+
</body>
57+
58+
</html>
59+

0 commit comments

Comments
 (0)