Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 450274d

Browse files
DRSDavidSoftJackbennett
authored andcommitted
Display the latest released version (#21)
* Added latest version to the downloads section Sets title in the downloads section to the latest version name string.
1 parent 0db35c7 commit 450274d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ <h3>Download</h3>
6868
<section class="download container">
6969

7070
<div class="bit-1">
71+
<h4 id="latest-version">&nbsp;</h4>
7172
<a href="https://github.com/cmderdev/cmder">GitHub Repo</a> (for issues/requests/source)
7273
</div>
7374

@@ -209,6 +210,7 @@ <h4>Other documentations</h4>
209210

210211
function getLatestReleases() {
211212
$.getJSON("https://api.github.com/repos/cmderdev/cmder/releases/latest").done(function (release) {
213+
$("#latest-version").html("Latest Version: " + release.name);
212214
for (const asset of release.assets) {
213215
switch (asset.name) {
214216
case "cmder.zip":

0 commit comments

Comments
 (0)