diff --git a/php/footer.php b/php/footer.php
index c1a74d93..8c3f118b 100755
--- a/php/footer.php
+++ b/php/footer.php
@@ -11,6 +11,7 @@
Enjoy!
+
diff --git a/php/nochan.php b/php/nochan.php
index 70026e06..a460ad94 100755
--- a/php/nochan.php
+++ b/php/nochan.php
@@ -48,7 +48,7 @@ if(isset($_GET['chan'])){
Zöff is mainly a webbased service, but an Android app is made by Lasse Drevland, which has been a huge asset for the dev. team.
The website uses NodeJS with Socket.IO, MongoDB and PHP on the backend, with JavaScript, jQuery and Materialize on the frontend. More about the project itself can be found on GitHub
The team consists of Kasper Rynning-Tønnesen and Nicolas Almagro Tonne, and the project has been worked on since late 2014.
- The team can be reached on contact@zoff.no
+ The team can be reached on contact@zoff.no
diff --git a/static/css/style.css b/static/css/style.css
index dfdcaae5..3ae5028e 100755
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -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 */
diff --git a/static/js/nochan.js b/static/js/nochan.js
index 1d79eac9..41c6bb65 100755
--- a/static/js/nochan.js
+++ b/static/js/nochan.js
@@ -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:
" + git_info[0].commit.author.date.substring(0,10) + ": " + git_info[0].commit.author.name + "
" + git_info[0].sha.substring(0,10) + ": " + git_info[0].commit.message+"
");
+
+
});
diff --git a/static/js/youtube.js b/static/js/youtube.js
index 46bd0556..967de448 100755
--- a/static/js/youtube.js
+++ b/static/js/youtube.js
@@ -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:
" + git_info[0].commit.author.date.substring(0,10) + ": " + git_info[0].commit.author.name + "
" + git_info[0].sha.substring(0,10) + ": " + git_info[0].commit.message+"
");
+
}
});