commit number in about page
diff --git a/dev.js b/dev.js
index 099d227..8b32071 100644
--- a/dev.js
+++ b/dev.js
@@ -885,7 +885,7 @@
<div style="width: calc(80%);border-radius: 30px;" class="card focus close abt">
<i onclick="fluid.cards.close('.card.abt')" class="material-icons close">close</i>
<h3>About</h3>
- <h5>Power+ ` + relDom + `</h5>
+ <h5>Power+ ` + relDom + `<div class="buildInfo" style="display: inline-block;margin: 0px 5px;font-size: 12px;display: none;cursor: pointer;"></div></h5>
Logged in as ` + dtps.user.first_name + ` ` + dtps.user.last_name + ` (` + dtps.user.login + `)
<div style="display:inline-block;" class="beta badge notice sudo">tester <i style="vertical-align: middle;" class="material-icons sudo">experiment</i></div>
<div style="display:inline-block;" class="beta badge notice contributor">contributor <i style="vertical-align: middle;" class="material-icons contributor">group</i></div>
@@ -935,6 +935,14 @@
<p>An error occured</p>
</div>
`);
+ var getURL = "https://api.github.com/repos/jottocraft/dtps/commits?path=init.js";
+ if (dtps.trackSuffix !== "") var getURL = "https://api.github.com/repos/jottocraft/dtps/commits?path=dev.js";
+ jQuery.getJSON(getURL, function(data) {
+ jQuery(".buildInfo").html("build " + data[0].sha.substring(7,0));
+ jQuery(".buildInfo").click(function() {
+ window.open("https://github.com/jottocraft/dtps/commit/" + data[0].sha)
+ });
+ })
jQuery.getScript("https://cdn.rawgit.com/showdownjs/showdown/1.8.6/dist/showdown.min.js", function() {
markdown = new showdown.Converter();
jQuery.getJSON("https://api.github.com/repos/jottocraft/dtps/releases", function(data) {