Skip to content

Commit

Permalink
flexbox update and random order
Browse files Browse the repository at this point in the history
  • Loading branch information
jgroenen committed May 28, 2024
1 parent 01e66ab commit d9e17ed
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
15 changes: 15 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@
<link rel="shortcut icon" sizes="128x128" href="https://www.codefor.nl/img/CfNL.png" />
<title>{{ site.title }}</title>
<link rel="stylesheet" href="https://www.codefor.nl/css/style.css" type="text/css" media="all">
<style>
.person-list {
flex-wrap: wrap;
}
.person {
flex: 0 0 33.333333%;
margin: 40px auto;
padding: 0;
}
.person > .summary,
.person > .skills {
text-align: justify;
padding: 20px;
}
</style>
</head>

<body>
Expand Down
11 changes: 10 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,19 @@ <h2>Code Fellows</h2>
</div>
</script>
<script type="module">
Array.prototype.shuffle = function () {
for (var i = 0; i < this.length; ++i) {
var j = Math.floor(Math.random() * this.length);
var tmp = this[i];
this[i] = this[j];
this[j] = tmp;
}
return this;
};
var codeFellowResumeUrls = await fetch('code-fellows.json')
.then(response => response.json())
.then(data => data["code-fellows"]);
codeFellowResumeUrls.forEach(function (url) {
codeFellowResumeUrls.shuffle().forEach(function (url) {
fetch(url)
.then(response => response.json())
.then(resume => {
Expand Down

0 comments on commit d9e17ed

Please sign in to comment.