Skip to content

Commit 303a761

Browse files
committed
CZ : innerJS : Link to latest version updated to use of embedded function
1 parent abc6caa commit 303a761

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

cs/innerJS.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ Obsah kapitoly se načte, zobrazí se a s krátkým odstupem se provedou potřeb
1212
1. Stáhněte si balíček <span id="linkhereI"></span> a rozbalte jej.
1313
1414
<script>
15-
async function insertDownloadLink() {
16-
const fname = 'package.zip';
17-
const path = await getLatestReleaseBundleUri(null, fname);
18-
const parentO = document.getElementById('linkhereI');
19-
parentO.innerHTML = `<a href="${path}" alt="${fname}" title= "${path}">${fname}</a>`;
20-
}
21-
22-
insertDownloadLink();
15+
insertDownloadLink('linkhereI');
2316
</script>
2417
```
2518

@@ -28,12 +21,5 @@ Ukázka připraví hypertextový odkaz na stažení poslední vydané verze **He
2821
1. Stáhněte si balíček <span id="linkhereI"></span> a rozbalte jej.
2922

3023
<script>
31-
async function insertDownloadLink() {
32-
const fname = 'package.zip';
33-
const path = await getLatestReleaseBundleUri(null, fname);
34-
const parentO = document.getElementById('linkhereI');
35-
parentO.innerHTML = `<a href="${path}" alt="${fname}" title= "${path}">${fname}</a>`;
36-
}
37-
38-
insertDownloadLink();
24+
insertDownloadLink('linkhereI');
3925
</script>

0 commit comments

Comments
 (0)