-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from incpi/Dev
v1.3.2
- Loading branch information
Showing
10 changed files
with
473 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
|
||
function loadDynamicContent() { | ||
const contentDiv = document.getElementById('dynamicContent'); | ||
contentDiv.innerHTML = ''; | ||
|
||
for (const [key, title] of Object.entries(data_sections)) { | ||
if (data_updates[key] && data_updates[key].length > 0) { | ||
const section = document.createElement('div'); | ||
const sectionTitle = document.createElement('h3'); | ||
sectionTitle.className = 'text-xl font-semibold py-2'; | ||
sectionTitle.innerHTML = title; | ||
|
||
const list = document.createElement('ul'); | ||
list.className = 'list-disc list-inside ml-4'; | ||
const contentDiv = document.getElementById("dynamicContent"); | ||
contentDiv.innerHTML = "<br>"; | ||
|
||
data_updates[key].forEach(item => { | ||
const listItem = document.createElement('li'); | ||
listItem.innerHTML = item.description; | ||
for (const [key, title] of Object.entries(data_sections)) { | ||
if (data_updates[key] && data_updates[key].length > 0) { | ||
const section = document.createElement("div"); | ||
const sectionTitle = document.createElement("h3"); | ||
sectionTitle.className = "text-xl font-semibold py-2"; | ||
sectionTitle.innerHTML = title; | ||
|
||
if (item.author) { | ||
const authorLink = document.createElement('a'); | ||
authorLink.href = data_authors[item.author] || '#'; | ||
authorLink.innerHTML = ` (${item.author})`; | ||
authorLink.className = 'text-blue-500 hover:underline'; | ||
listItem.appendChild(authorLink); | ||
} | ||
const list = document.createElement("ol"); | ||
list.className = "list-disc list-inside ml-4"; | ||
|
||
list.appendChild(listItem); | ||
}); | ||
data_updates[key].forEach((item) => { | ||
const listItem = document.createElement("li"); | ||
listItem.innerHTML = item.description; | ||
|
||
section.appendChild(sectionTitle); | ||
section.appendChild(list); | ||
contentDiv.appendChild(section); | ||
if (item.author) { | ||
const authorLink = document.createElement("a"); | ||
authorLink.href = data_authors[item.author] || "#"; | ||
authorLink.innerHTML = `By (${item.author})`; | ||
authorLink.className = "link link-primary"; | ||
listItem.appendChild(authorLink); | ||
} | ||
|
||
list.appendChild(listItem); | ||
}); | ||
section.appendChild(sectionTitle); | ||
section.appendChild(document.createElement("br")); | ||
section.appendChild(list); | ||
section | ||
.appendChild(document.createElement("div")) | ||
.classList.add("divider"); | ||
contentDiv.appendChild(section); | ||
} | ||
} | ||
} | ||
} |
Binary file not shown.
Oops, something went wrong.