Skip to content

Instantly share code, notes, and snippets.

@peroon
Last active December 21, 2015 17:38
Show Gist options
  • Select an option

  • Save peroon/6341691 to your computer and use it in GitHub Desktop.

Select an option

Save peroon/6341691 to your computer and use it in GitHub Desktop.
index.html(複数のプロジェクトのindex.htmlへのリンク集)
<!--
github_repositories/index.html
github_repositories/project0/index.html
github_repositories/project1/index.html
github_repositories/project2/index.html
-->
<h1>Links</h1>
<script type="text/javascript"src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js">
</script>
<script>
var repository_array = [
'project0',
'project1',
'project2',
];
$(window).load(function() {
for(var i in repository_array){
var repo_name = repository_array[i];
var path = "http://192.168.33.10/github_repositories/" + repo_name;
var html = "<a href=\""+path+"\">" + repo_name + "</a><br>";
$("#links").append(html);
}
});
</script>
<div id="links">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment