Skip to content

Commit aac93f3

Browse files
committed
Avoid usage of relative paths in file name
1 parent fb41fd5 commit aac93f3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

changes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,11 +1477,11 @@
14771477
8. Fix several problems with markers drawing; implement plus, asterisk, mult symbols.
14781478
9. Implement custom layout, which allows to configure user-defined layout for displayed objects
14791479
10. Fix errors with scaling of axis labels.
1480-
11. Support also Y axis with custom labels like: http://jsroot.gsi.de/dev/?nobrowser&file=../files/atlas.root&item=LEDShapeHeightCorr_Gain0;1&opt=col
1480+
11. Support also Y axis with custom labels like: https://jsroot.gsi.de/dev/?nobrowser&file=https://jsroot.gsi.de/files/atlas.root&item=LEDShapeHeightCorr_Gain0;1&opt=col
14811481

14821482

14831483
## Changes in 3.7
1484-
1. Support of X axis with custom labels like: http://jsroot.gsi.de/dev/?nobrowser&json=../files/hist_xlabels.json
1484+
1. Support of X axis with custom labels like: https://jsroot.gsi.de/dev/?nobrowser&json=https://jsroot.gsi.de/files/hist_xlabels.json
14851485
2. Extend functionality of JSROOT.addDrawFunc() function. One could register type-specific
14861486
`make_request` and `after_request` functions; `icon`, `prereq`, `script`, `monitor` properties.
14871487
This let add more custom elements to the generic gui, implemented with JSROOT.HierarchyPainter
@@ -1668,7 +1668,7 @@
16681668
13. Provide example fileitem.htm how read and display item from ROOT file.
16691669
14. In default index.htm page one could specify 'file', 'layout',
16701670
'item' and 'items' parameters like:
1671-
<http://root.cern.ch/js/3.0/index.htm?file=../files/hsimple.root&layout=grid3x2&item=hpx;1>
1671+
<https://root.cern/js/3.0/index.htm?file=https://root.cern/js/files/hsimple.root&layout=grid3x2&item=hpx;1>
16721672
15. Support direct reading of objects from sub-sub-directories.
16731673
16. Introduce demo.htm, which demonstrates online usage of JSROOT.
16741674
17. One could use demo.htm directly with THttpServer providing address like:

docs/JSROOT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ One also can load some special components directly like:
674674
h.setDisplay("simple", "myMainDiv");
675675

676676
// open file and display element
677-
await h.openRootFile('../../files/hsimple.root');
677+
await h.openRootFile('https://root.cern/js/files/hsimple.root');
678678
await h.display('hpxpy;1","colz');
679679
</script>
680680
```

docs/main.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ JavaScript ROOT provides interactive ROOT-like graphics in the web browsers.
44
Data can be read and displayed from binary and JSON ROOT files.
55
JSROOT implements user interface for THttpServer class.
66

7-
<a href="https://root.cern/js/latest/?nobrowser&file=../files/hsimple.root&item=ntuple;1&opt=px:py::pz%3E4"><img src="https://root.cern/js/files/img/ttree.png" align="left" hspace="10" vspace="6" alt="TTree::Draw()" title="2-dimensional TTree::Draw with cut options"></a>
8-
<a href="https://root.cern/js/latest/?nobrowser&file=../files/histpainter6.root&item=draw_hstack;1"><img src="https://root.cern/js/files/img/thstack.png" align="left" hspace="10" vspace="6" alt="THStack" title="Several varians of THStack drawing"></a>
9-
<a href="https://root.cern/js/latest/?nobrowser&json=../files/geom/simple_alice.json.gz&file=../files/geom/tracks_hits.root&item=simple_alice.json.gz+tracks_hits.root/tracks;1+tracks_hits.root/hits;1"><img src="https://root.cern/js/files/img/geo_tracks.png" align="left" hspace="10" vspace="6" alt="Geometry" title="Drawing of TGeo model superimposed with tracks and hits"></a>
7+
<a href="https://root.cern/js/latest/?nobrowser&file=https://root.cern/js/files/hsimple.root&item=ntuple;1&opt=px:py::pz%3E4"><img src="https://root.cern/js/files/img/ttree.png" align="left" hspace="10" vspace="6" alt="TTree::Draw()" title="2-dimensional TTree::Draw with cut options"></a>
8+
<a href="https://root.cern/js/latest/?nobrowser&file=https://root.cern/js/files/histpainter6.root&item=draw_hstack;1"><img src="https://root.cern/js/files/img/thstack.png" align="left" hspace="10" vspace="6" alt="THStack" title="Several varians of THStack drawing"></a>
9+
<a href="https://root.cern/js/latest/?nobrowser&json=https://root.cern/js/files/geom/simple_alice.json.gz&file=https://root.cern/js/files/geom/tracks_hits.root&item=simple_alice.json.gz+tracks_hits.root/tracks;1+tracks_hits.root/hits;1"><img src="https://root.cern/js/files/img/geo_tracks.png" align="left" hspace="10" vspace="6" alt="Geometry" title="Drawing of TGeo model superimposed with tracks and hits"></a>
1010
<br/>
1111
<br/>
1212
<br/>

modules/gui/HierarchyPainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4074,7 +4074,7 @@ class HierarchyPainter extends BasePainter {
40744074
'<label style="margin-right:5px"><input type="checkbox" name="monitoring" class="gui_monitoring"/>Monitoring</label>';
40754075
} else if (!this.no_select) {
40764076
const myDiv = d3_select('#' + this.gui_div),
4077-
files = myDiv.attr('files') || '../files/hsimple.root',
4077+
files = myDiv.attr('files') || 'https://root.cern/js/files/hsimple.root',
40784078
path = decodeUrl().get('path') || myDiv.attr('path') || '',
40794079
arrFiles = files.split(';');
40804080

server/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Can be used to serve JSROOT and ROOT files on localhost httpserver.
2020
```
2121
4. Open ROOT file in JSROOT with the link:
2222
```
23-
http://localhost:8000/jsroot/?file=../files/hsimple.root&item=hpxpy&opt=colz
23+
http://localhost:8000/jsroot/?file=https://root.cern/js/files/hsimple.root&item=hpxpy&opt=colz
2424
```
2525
5. Also test examples.htm and api.htm:
2626
```

0 commit comments

Comments
 (0)