Skip to content

Commit 51f9d9a

Browse files
committed
ci: add dist folder in submodule
1 parent cde7013 commit 51f9d9a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Diff for: src/main.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,24 @@ function escapeHtml(unsafe) {
5959

6060
function renderOrganizationMembers() {
6161
fetch("https://api.github.com/orgs/materializecss/members")
62-
.then((resp) => resp.json())
63-
.then((items) => {
64-
console.log(items);
65-
const elements = items.map(item => {
66-
const div = document.createElement('div');
67-
div.setAttribute('style', 'text-align: center; width: 150px;')
68-
div.innerHTML = `<img src="${item.avatar_url}" alt="" style="width: 100px;" class="circle responsive-img"/>
62+
.then((resp) => resp.json())
63+
.then((items) => {
64+
console.log(items);
65+
const elements = items.map((item) => {
66+
const div = document.createElement("div");
67+
div.setAttribute("style", "text-align: center; width: 150px;");
68+
div.innerHTML = `<img src="${item.avatar_url}" alt="" style="width: 100px;" class="circle responsive-img"/>
6969
<p>${item.login}</p>`;
70-
return div;
70+
return div;
71+
});
72+
document.querySelector(".orga-members").replaceChildren(...elements);
7173
});
72-
document.querySelector('.orga-members').replaceChildren(...elements);
73-
});
7474
}
7575

7676
document.addEventListener("DOMContentLoaded", () => {
7777
const themes = new Themes(document);
7878

79-
if (location.pathname.endsWith('about.html')) {
79+
if (location.pathname.endsWith("about.html")) {
8080
renderOrganizationMembers();
8181
}
8282

0 commit comments

Comments
 (0)