关于页面鼠标移动到头像上时显示用户名,以及统一各语言显示的贡献者数量
parent
a8ea33ee5b
commit
8e660e80e6
|
@ -40,7 +40,7 @@ Thanks goes to these GitHub contributors:
|
|||
|
||||
and other lovely guys who give us help and information.
|
||||
|
||||
<script>var getJSON = function(url, callback) {var xhr = new XMLHttpRequest();xhr.open('GET', url, true);xhr.responseType = 'json';xhr.onload = function() {var status = xhr.status;if (status === 200) {callback(null, xhr.response);} else {callback(status, xhr.response);}};xhr.send();};getJSON('https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors',function(err, data) {if (err === null) {for(i in data){var para = document.createElement("li");var node = document.createElement("a");var node2 = document.createElement("img");para.style="margin: 4px;float: left;";node2.style="width: 32px;height: 32px;border-radius: 50%;";node.href=data[i].html_url;node2.src=data[i].avatar_url;node.appendChild(node2);para.appendChild(node);var element = document.getElementById("cons");element.appendChild(para);}}});</script>
|
||||
<script>var getJSON = function(url, callback) {var xhr = new XMLHttpRequest();xhr.open('GET', url, true);xhr.responseType = 'json';xhr.onload = function() {var status = xhr.status;if (status === 200) {callback(null, xhr.response);} else {callback(status, xhr.response);}};xhr.send();};getJSON('https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors?per_page=100',function(err, data) {if (err === null) {for(i in data){var para = document.createElement("li");var node = document.createElement("a");var node2 = document.createElement("img");para.style="margin: 4px;float: left;";node2.style="width: 32px;height: 32px;border-radius: 50%;";node.href=data[i].html_url;node.title=data[i].login;node2.src=data[i].avatar_url;node.appendChild(node2);para.appendChild(node);var element = document.getElementById("cons");element.appendChild(para);}}});</script>
|
||||
|
||||
## Contact
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ Gracias a los contribuyentes de GitHub:
|
|||
|
||||
y los otros queridos que nos dan ayuda y información.
|
||||
|
||||
<script>var getJSON = function(url, callback) {var xhr = new XMLHttpRequest();xhr.open('GET', url, true);xhr.responseType = 'json';xhr.onload = function() {var status = xhr.status;if (status === 200) {callback(null, xhr.response);} else {callback(status, xhr.response);}};xhr.send();};getJSON('https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors',function(err, data) {if (err === null) {for(i in data){var para = document.createElement("li");var node = document.createElement("a");var node2 = document.createElement("img");para.style="margin: 4px;float: left;";node2.style="width: 32px;height: 32px;border-radius: 50%;";node.href=data[i].html_url;node2.src=data[i].avatar_url;node.appendChild(node2);para.appendChild(node);var element = document.getElementById("cons");element.appendChild(para);}}});</script>
|
||||
<script>var getJSON = function(url, callback) {var xhr = new XMLHttpRequest();xhr.open('GET', url, true);xhr.responseType = 'json';xhr.onload = function() {var status = xhr.status;if (status === 200) {callback(null, xhr.response);} else {callback(status, xhr.response);}};xhr.send();};getJSON('https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors?per_page=100',function(err, data) {if (err === null) {for(i in data){var para = document.createElement("li");var node = document.createElement("a");var node2 = document.createElement("img");para.style="margin: 4px;float: left;";node2.style="width: 32px;height: 32px;border-radius: 50%;";node.href=data[i].html_url;node.title=data[i].login;node2.src=data[i].avatar_url;node.appendChild(node2);para.appendChild(node);var element = document.getElementById("cons");element.appendChild(para);}}});</script>
|
||||
|
||||
## Contacto
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ weight: 0
|
|||
|
||||
与其它对我们提供帮助和资讯的小可爱们。
|
||||
|
||||
<script>var getJSON = function(url, callback) {var xhr = new XMLHttpRequest();xhr.open('GET', url, true);xhr.responseType = 'json';xhr.onload = function() {var status = xhr.status;if (status === 200) {callback(null, xhr.response);} else {callback(status, xhr.response);}};xhr.send();};getJSON('https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors?per_page=100',function(err, data) {if (err === null) {for(i in data){var para = document.createElement("li");var node = document.createElement("a");var node2 = document.createElement("img");para.style="margin: 4px;float: left;";node2.style="width: 32px;height: 32px;border-radius: 50%;";node.href=data[i].html_url;node2.src=data[i].avatar_url;node.appendChild(node2);para.appendChild(node);var element = document.getElementById("cons");element.appendChild(para);}}});</script>
|
||||
<script>var getJSON = function(url, callback) {var xhr = new XMLHttpRequest();xhr.open('GET', url, true);xhr.responseType = 'json';xhr.onload = function() {var status = xhr.status;if (status === 200) {callback(null, xhr.response);} else {callback(status, xhr.response);}};xhr.send();};getJSON('https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors?per_page=100',function(err, data) {if (err === null) {for(i in data){var para = document.createElement("li");var node = document.createElement("a");var node2 = document.createElement("img");para.style="margin: 4px;float: left;";node2.style="width: 32px;height: 32px;border-radius: 50%;";node.href=data[i].html_url;node.title=data[i].login;node2.src=data[i].avatar_url;node.appendChild(node2);para.appendChild(node);var element = document.getElementById("cons");element.appendChild(para);}}});</script>
|
||||
|
||||
## 联络
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ weight: 0
|
|||
|
||||
與其它對我們提供幫助和資訊的小可愛們。
|
||||
|
||||
<script>var getJSON = function(url, callback) {var xhr = new XMLHttpRequest();xhr.open('GET', url, true);xhr.responseType = 'json';xhr.onload = function() {var status = xhr.status;if (status === 200) {callback(null, xhr.response);} else {callback(status, xhr.response);}};xhr.send();};getJSON('https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors',function(err, data) {if (err === null) {for(i in data){var para = document.createElement("li");var node = document.createElement("a");var node2 = document.createElement("img");para.style="margin: 4px;float: left;";node2.style="width: 32px;height: 32px;border-radius: 50%;";node.href=data[i].html_url;node2.src=data[i].avatar_url;node.appendChild(node2);para.appendChild(node);var element = document.getElementById("cons");element.appendChild(para);}}});</script>
|
||||
<script>var getJSON = function(url, callback) {var xhr = new XMLHttpRequest();xhr.open('GET', url, true);xhr.responseType = 'json';xhr.onload = function() {var status = xhr.status;if (status === 200) {callback(null, xhr.response);} else {callback(status, xhr.response);}};xhr.send();};getJSON('https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors?per_page=100',function(err, data) {if (err === null) {for(i in data){var para = document.createElement("li");var node = document.createElement("a");var node2 = document.createElement("img");para.style="margin: 4px;float: left;";node2.style="width: 32px;height: 32px;border-radius: 50%;";node.href=data[i].html_url;node.title=data[i].login;node2.src=data[i].avatar_url;node.appendChild(node2);para.appendChild(node);var element = document.getElementById("cons");element.appendChild(para);}}});</script>
|
||||
|
||||
## 聯絡
|
||||
|
||||
|
|
Loading…
Reference in New Issue