Added Source Code

This commit is contained in:
Agampreet Singh
2021-03-10 12:47:08 +05:30
parent 796ef92956
commit eeca4e0911
11 changed files with 348 additions and 0 deletions

7
updatescript.js Normal file
View File

@@ -0,0 +1,7 @@
const gitHubPath = 'agam778/Microsoft-Office-Electron';
const url = 'https://api.github.com/repos/' + gitHubPath + '/tags';
$.get(url).done(data => {
const versions = data.sort((v1, v2) => semver.compare(v2.name, v1.name));
$('#result').html(versions[0].name);
});