mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added latest commit to the site because why not
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<br>
|
||||
Enjoy!
|
||||
</p>
|
||||
<p id="latest-commit" class="grey-text text-lighten-4 truncate"></p>
|
||||
</div>
|
||||
<div class="col l4 offset-l2 s12 valign-wrapper">
|
||||
<ul>
|
||||
|
||||
@@ -48,7 +48,7 @@ if(isset($_GET['chan'])){
|
||||
Zöff is mainly a webbased service, but an <a href="https://play.google.com/store/apps/details?id=no.lqasse.zoff&hl=en">Android app</a> is made by Lasse Drevland, which has been a huge asset for the dev. team.<br><br>
|
||||
The website uses <a href="https://nodejs.org/">NodeJS</a> with <a href="http://socket.io/">Socket.IO</a>, <a href="https://www.mongodb.org/">MongoDB</a> and PHP on the backend, with JavaScript, jQuery and <a href="http://materializecss.com/">Materialize</a> on the frontend. More about the project itself can be found on <a href="https://github.com/nixolas1/Zoff">GitHub</a><br><br>
|
||||
The team consists of Kasper Rynning-Tønnesen and Nicolas Almagro Tonne, and the project has been worked on since late 2014.<br><br>
|
||||
The team can be reached on <a href="mailto:contact@zoff.no?Subject=Contact%20Zoff">contact@zoff.no</a>
|
||||
The team can be reached on <a href="mailto:contact@zoff.no?Subject=Contact%20Zoff">contact@zoff.no</a><br><br>
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
@@ -127,6 +127,7 @@ if(isset($_GET['chan'])){
|
||||
<br>
|
||||
Enjoy!
|
||||
</p>
|
||||
<p id="latest-commit" class="grey-text text-lighten-4 truncate"></p>
|
||||
</div>
|
||||
<div class="col l4 offset-l2 s12 valign-wrapper">
|
||||
<ul>
|
||||
|
||||
@@ -194,6 +194,13 @@ success mdi-action-done
|
||||
vote mdi-action-thumb-up
|
||||
hide mdi-action-visibility mdi-action-visibility-off
|
||||
*/
|
||||
/*Global style for commit container*/
|
||||
|
||||
#latest-commit{
|
||||
font-size: 12px !important;
|
||||
padding-left: 15px !important;
|
||||
padding-top: 40px !important;
|
||||
}
|
||||
|
||||
/* INDEX PAGE */
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
var list_html;
|
||||
var git_info;
|
||||
|
||||
function getCookie(cname) {
|
||||
var name = cname + "=";
|
||||
@@ -114,5 +115,14 @@ $(document).ready(function (){
|
||||
}
|
||||
}
|
||||
|
||||
git_info = $.ajax({ type: "GET",
|
||||
url: "https://api.github.com/repos/nixolas1/zoff/commits",
|
||||
async: false
|
||||
}).responseText;
|
||||
|
||||
git_info = $.parseJSON(git_info);
|
||||
$("#latest-commit").html("Latest Commit: <br>" + git_info[0].commit.author.date.substring(0,10) + ": " + git_info[0].commit.author.name + "<br>" + git_info[0].sha.substring(0,10) + ": " + git_info[0].commit.message+"<br>");
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
@@ -128,6 +128,15 @@ $(document).ready(function()
|
||||
}
|
||||
if(navigator.userAgent.toLowerCase().indexOf("firefox") > -1) //quickdickfix for firefoxs weird percent handling
|
||||
$(".main").height(window.innerHeight-64);
|
||||
|
||||
git_info = $.ajax({ type: "GET",
|
||||
url: "https://api.github.com/repos/nixolas1/zoff/commits",
|
||||
async: false
|
||||
}).responseText;
|
||||
|
||||
git_info = $.parseJSON(git_info);
|
||||
$("#latest-commit").html("Latest Commit: <br>" + git_info[0].commit.author.date.substring(0,10) + ": " + git_info[0].commit.author.name + "<br>" + git_info[0].sha.substring(0,10) + ": " + git_info[0].commit.message+"<br>");
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user