File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export os="linux" # or macos
37
37
&& sudo mv hkubectl /usr/local/bin/<button id =" copyBtn " onclick =" copyToClipboard (' bashCode' )" class =" copy-btn " >Copy</button >
38
38
</pre >
39
39
40
- <p >For <strong >Windows</strong >, download <code >hkubectl-win.exe</code > from <a id =" windowsLink " href =" /hkubectl_files/hkubectl-win.exe " >here</a >.</p >
40
+ <p >For <strong >Windows</strong >, download <code >hkubectl-win.exe</code > from <a id =" windowsLink " href =" https://hkube-domain.com /hkubectl_files/hkubectl-win.exe" >here</a >.</p >
41
41
42
42
43
43
---
@@ -65,20 +65,24 @@ kubectl get nodes
65
65
<script >
66
66
document .addEventListener (' DOMContentLoaded' , function () {
67
67
var fullUrl = window .location .href ;
68
-
69
68
var learnIndex = fullUrl .indexOf (' /learn' );
70
69
var serverUrl = learnIndex !== - 1 ? fullUrl .substring (0 , learnIndex) : window .location .origin ;
71
70
72
71
var bashCodeElement = document .getElementById (' bashCode' );
73
-
74
72
if (bashCodeElement) {
75
73
var updatedCode = bashCodeElement .innerHTML .replace (/ hkube-domain\. com/ g , serverUrl);
76
74
bashCodeElement .innerHTML = updatedCode;
77
75
}
76
+
77
+ var windowsLink = document .getElementById (' windowsLink' );
78
+ if (windowsLink) {
79
+ windowsLink .href = windowsLink .href .replace (/ ^ https? :\/\/ hkube-domain\. com/ , serverUrl);
80
+ }
78
81
});
79
82
</script >
80
83
81
84
85
+
82
86
<script >
83
87
function copyToClipboard (elementId ) {
84
88
var code = document .getElementById (elementId);
You can’t perform that action at this time.
0 commit comments