@@ -3,23 +3,24 @@ jQuery(document).ready(function() {
3
3
4
4
// Fetch injected URL from DOM
5
5
var eiffelDocumentationUrlLinks = $ ( '#eiffelDocumentationUrlLinks' ) . text ( ) ;
6
-
6
+ var frontendServiceUrl = $ ( '#frontendServiceUrl' ) . text ( ) ;
7
+
7
8
document . getElementById ( "testRulesBtn" ) . onclick = function ( ) {
8
9
9
10
var iframe = document . getElementById ( "mainFrame" ) ;
10
- iframe . src = "http://localhost:8080 /testRules.html";
11
+ iframe . src = frontendServiceUrl + " /testRules.html";
11
12
}
12
13
13
14
document . getElementById ( "eiInfoBtn" ) . onclick = function ( ) {
14
15
15
16
var iframe = document . getElementById ( "mainFrame" ) ;
16
- iframe . src = "http://localhost:8080 /eiInfo.html";
17
+ iframe . src = frontendServiceUrl + " /eiInfo.html";
17
18
}
18
19
19
20
20
21
function loadLoginPage ( ) {
21
22
var iframe = document . getElementById ( "mainFrame" ) ;
22
- iframe . src = "http://localhost:8080 /login.html";
23
+ iframe . src = frontendServiceUrl + " /login.html";
23
24
}
24
25
25
26
document . getElementById ( "loginBtn" ) . onclick = function ( ) {
@@ -35,18 +36,18 @@ jQuery(document).ready(function() {
35
36
document . getElementById ( "registerBtn" ) . onclick = function ( ) {
36
37
37
38
var iframe = document . getElementById ( "mainFrame" ) ;
38
- iframe . src = "http://localhost:8080 /register.html";
39
+ iframe . src = frontendServiceUrl + " /register.html";
39
40
}
40
41
41
42
document . getElementById ( "forgotPasswordBtn" ) . onclick = function ( ) {
42
43
43
44
var iframe = document . getElementById ( "mainFrame" ) ;
44
- iframe . src = "http://localhost:8080 /forgot-password.html";
45
+ iframe . src = frontendServiceUrl + " /forgot-password.html";
45
46
}
46
47
47
48
function loadMainPage ( ) {
48
49
var iframe = document . getElementById ( "mainFrame" ) ;
49
- iframe . src = "http://localhost:8080 /subscriptionpage.html";
50
+ iframe . src = frontendServiceUrl + " /subscriptionpage.html";
50
51
}
51
52
52
53
document . getElementById ( "subscriptionBtn" ) . onclick = function ( ) {
0 commit comments