Skip to content
This repository was archived by the owner on May 13, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,17 @@ window.addEventListener("DOMContentLoaded", () => {

onChange: (watcher) => {
base.Database.get(base.Database.ONCE, `users/${watcher.newValue}`, (res) => {
console.log(res);

DOM("#Dialogs_Profile_InfoViewer_Content_Photo").dataset.uid = watcher.newValue,
DOM("#Dialogs_Profile_InfoViewer_Content_Info_Name").textContent = res.userName,
DOM("#Dialogs_Profile_InfoViewer_Content_Info_Detail").textContent = res.detail;

if (res.links) {
for (let i = 0; i < res.links.length; i++) {

}
}
});
}
});
Expand Down
1 change: 1 addition & 0 deletions Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ window.addEventListener("DOMContentLoaded", () => {
!DOM("#Drawer") || DOM("#Drawer").classList.remove("is-visible"),
!DOM("$Div.mdl-layout__obfuscator") || DOM("$Div.mdl-layout__obfuscator").classList.remove("is-visible");

if (DOM("$IFrame#Page").contentWindow.location.pathname != "/SimpleThread/Thread/Viewer/") DOM("#Header_Title").textContent = "Simple Thread";
DOM("#Screens_Loading").setAttribute("Disabled", "");
});

Expand Down
4 changes: 4 additions & 0 deletions Thread/Viewer/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ window.addEventListener("DOMContentLoaded", () => {
DOM('$Style[UUID="Thread_Post_Header_ActorPhoto--Manager"]').textContent = photoStyles.join("\r\n");
});

base.Database.get(base.Database.INTERVAL, "threads/" + querys.TID, (res) => {
doc.querySelector("#Header_Title").textContent = `Simple Thread == ${res.title}`;
});

base.Database.get(base.Database.INTERVAL, "threads/" + querys.TID + "/data", (res) => {
res = res.filter((post, index, parent) => {
if (post) {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<Div Class = "mdl-layout mdl-js-layout mdl-layout--fixed-header">
<Header ID = "Header" Class = "mdl-layout__header">
<Div Class = "mdl-layout__header-row">
<Span Class = "mdl-layout-title">Simple Thread</Span>
<Span ID = "Header_Title" Class = "mdl-layout-title">Simple Thread</Span>
<Div Class = "mdl-layout-spacer"></Div>

<Nav Class = "mdl-navigation">
Expand Down