Skip to content

Commit eb17ebe

Browse files
committed
Fix für ariva.js von Karl Heesch
1 parent 443a173 commit eb17ebe

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

docs/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Verfügbare Plugins / Available plugins
22

3-
For website ariva.de: [Download](https://raw.githubusercontent.com/faiteanu/JavaStockQuotes/master/js/ariva.js) (updated 5.10.2022)
3+
For website ariva.de: [Download](https://raw.githubusercontent.com/faiteanu/JavaStockQuotes/master/js/ariva.js) (updated 21.03.2023)
4+
5+
Danke an [Karl Heesch](https://github.com/KarlHeesch) für den letzten Fix.
46

57
# Installation to Hibiscus Depot-Viewer
68

js/ariva.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Script for Hibiscus Depot Viewer
22
// Updated 05.10.2022 by @faiteanu
33
// Original version by @mikekorb
4+
// Hotfix 21.03.2023 Karl Heesch
45

56
try {
67
load("nashorn:mozilla_compat.js");
@@ -16,6 +17,7 @@ var fetcher;
1617
var webClient;
1718
var url;
1819
var kursUrl;
20+
var secu; // KH: zugefügt
1921

2022
var y1,m1,d1,y2,m2,d2;
2123

@@ -48,6 +50,8 @@ function prepare(fetch, search, startyear, startmon, startday, stopyear, stopmon
4850

4951

5052
page = webClient.getPage(url + "/search/livesearch.m?searchname=" + search);
53+
54+
secu = page.getContent().match(/<input type="hidden" id="liveSearchRowAG1" value="([^"]+)"/)[1]; // KH: hinzugefügt.
5155

5256
var link = page.getContent().match(/<a href="([^"]+)"/);
5357
if (link){
@@ -142,7 +146,8 @@ function process(config) {
142146
}
143147
}
144148
if (boerse_id){
145-
var histUrl= getURL() + "/quote/historic/historic.csv?secu=" + Packages.jsq.tools.HtmlUnitTools.getFirstElementByXpath(page, "//input[@name='secu']").getValueAttribute()
149+
//var histUrl= getURL() + "/quote/historic/historic.csv?secu=" + Packages.jsq.tools.HtmlUnitTools.getFirstElementByXpath(page, "//input[@name='secu']").getValueAttribute()
150+
var histUrl= getURL() + "/quote/historic/historic.csv?secu=" + secu // KH: Zeile geändert
146151
+ "&boerse_id=" + boerse_id + "&clean_split=0&clean_payout=0&clean_bezug=0&currency=" + currency_id + "&min_time=" + d1 + "." + m1 + "." + y1
147152
+"&max_time=" + d2 + "." + m2 + "." + y2 + "&trenner=%3B&go=Download";
148153
print(histUrl);

js/overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<body>
33
<h1>Verfügbare Plugins / Available plugins</h1>
4-
For website ariva.de: <a href="ariva.js">Download</a> (updated 26.04.2021)<br>
4+
For website ariva.de: <a href="ariva.js">Download</a> (updated 21.03.2023)<br>
55

66
<h2>Installation to Hibiscus Depot-Viewer</h2>
77
<p>Save file <a href="ariva.js">ariva.js</a> in folder C:\Users\&lt;username&gt;\.jameica\hibiscus.depotviewer\js and restart Jameica.</p>

0 commit comments

Comments
 (0)