|
@@ -33,8 +33,9 @@
|
|
|
</div>
|
|
|
</body>
|
|
|
<script>
|
|
|
- $.ajax({ type:'GET', url: 'https://github.com/i12bretro/tutorials/file-list/main', success: function(html){
|
|
|
+ $.ajax({ type:'GET', url: 'https://api.allorigins.win/raw?url='+ encodeURIComponent('https://github.com/i12bretro/tutorials/file-list/main'), success: function(html){
|
|
|
m = null;
|
|
|
+ console.log(html);
|
|
|
regex = /<div role="rowheader".*?>.*?<a.*?href="\/i12bretro\/tutorials\/commit\/(.*?)">(\d{4}): (.*?)<\/a>.*?<time-ago.*?>(.*?)<\/time-ago>/gmsi
|
|
|
while ( (m = regex.exec( html )) != null ){
|
|
|
$('#tutorialList').append('<tr><td align="center">'+ m[2] +'</td><td align="left"><a href="https://i12bretro.github.io/tutorials/'+ m[2] +'.html" target="_blank">'+ m[3] +'</a></td><td align="center">'+ m[4] +'</td></tr>');
|