diff --git a/Contributors_Page/android-contributors.js b/Contributors_Page/android-contributors.js new file mode 100644 index 0000000..0b666f7 --- /dev/null +++ b/Contributors_Page/android-contributors.js @@ -0,0 +1,30 @@ +var users = [] +var i = 0 + +var getData = (function ($) { + var URL = 'https://api.github.com/repos/trebleshot/android/contributors' + + $.get(URL, function (data, status) { + data.forEach(function (d) { + if (d.login == null) { + return true + } + + if (users.indexOf(d.url) == -1) { + var template = + "
" + + "" + + "" + + '' + + "
" + + '' + d.login + '' + + '

Contributions: ' + d.contributions + '

' + + '
' + + $('#android-contributors').append(template) + users[i] = d.url + i = i + 1 + } + }) + }) +})($) diff --git a/Contributors_Page/desktop-contributors.js b/Contributors_Page/desktop-contributors.js new file mode 100644 index 0000000..57c4f06 --- /dev/null +++ b/Contributors_Page/desktop-contributors.js @@ -0,0 +1,30 @@ +var users = [] +var i = 0 + +var getData = (function ($) { + var URL = 'https://api.github.com/repos/trebleshot/desktop/contributors' + + $.get(URL, function (data, status) { + data.forEach(function (d) { + if (d.login == null) { + return true + } + + if (users.indexOf(d.url) == -1) { + var template = + "
" + + "" + + "" + + '' + + "
" + + '' + d.login + '' + + '

Contributions: ' + d.contributions + '

' + + '
' + + $('#desktop-contributors').append(template) + users[i] = d.url + i = i + 1 + } + }) + }) +})($) diff --git a/Contributors_Page/index.css b/Contributors_Page/index.css new file mode 100644 index 0000000..cf34285 --- /dev/null +++ b/Contributors_Page/index.css @@ -0,0 +1,31 @@ +body { + background-color: #303030; + padding: 0px; + margin: 0px; + color: #E8E8E8; +} + +h1,h3 { + text-align: center; + margin-top: 0px; +} + +h1 { + margin-bottom: 15px; +} + +h3 { + margin-bottom: 25px; +} +.template { + display: none; +} + +#author { + padding :2%; + min-height: 55vh; + max-height: 55vh; +} +#wrap { + min-height: 55vh; +} diff --git a/Contributors_Page/index.html b/Contributors_Page/index.html new file mode 100644 index 0000000..6b8842d --- /dev/null +++ b/Contributors_Page/index.html @@ -0,0 +1,50 @@ + + + + + + Contributors + + + + + + + + + + + + +
+
+ +

Trebleshot

+
+

Android App Contributors

+
+
+
+
+ +
+
+

Desktop App Contributors

+
+
+
+
+
+ + +
+

Website Contributors

+
+
+
+
+
+ +
+ + diff --git a/Contributors_Page/web-contributors.js b/Contributors_Page/web-contributors.js new file mode 100644 index 0000000..622f3cd --- /dev/null +++ b/Contributors_Page/web-contributors.js @@ -0,0 +1,30 @@ +var users = [] +var i = 0 + +var getData = (function ($) { + var URL = 'https://api.github.com/repos/trebleshot/trebleshot.github.io/contributors' + + $.get(URL, function (data, status) { + data.forEach(function (d) { + if (d.login == null) { + return true + } + + if (users.indexOf(d.url) == -1) { + var template = + "
" + + "" + + "" + + '' + + "
" + + '' + d.login + '' + + '

Contributions: ' + d.contributions + '

' + + '
' + + $('#web-contributors').append(template) + users[i] = d.url + i = i + 1 + } + }) + }) +})($) diff --git a/index.html b/index.html index 83c7a76..94ff815 100644 --- a/index.html +++ b/index.html @@ -95,6 +95,9 @@ +