-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/5252 #3
Feature/5252 #3
Changes from 5 commits
f5145fd
21ac52e
424b073
b29b123
bdc1c07
8ee0078
714d15b
879e0b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,16 @@ | ||
| //TODO: Code, der auf trello.com ausgeführt wird | ||
| function addButton(){ | ||
| const sidebar = document.querySelector(".window-sidebar") | ||
| sidebar.innerHTML = "<span class='button-link' id='togglbtn'><span class='icon-sm plugin-icon'>+</span><span>Toggl Task</span></span>" + sidebar.innerHTML | ||
| sidebar.querySelectorAll(".mod-no-top-margin")[1].classList.remove("mod-no-top-margin") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Das hier nimmt vom zweiten Element der Liste die Klasse weg. Ist das beabsichtigt oder meintest du das erste? Das wäre dann
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Das zweite ist schon richtig,
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aber innerhalb der sidebar der zweite? Der button kommt doch vor die erste
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, mir fällt gerade auf, dass es bei einigen Karten noch ein
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aaa ok. ich überlass die entscheidung dir. ich finds wie gesagt grad nicht so wichtig. wichtiger ist die funktionalität. hübsch machen, geht später immernoch. |
||
| document.querySelector("#togglbtn").addEventListener("click", onClick) | ||
|
ushi-as marked this conversation as resolved.
Outdated
|
||
| } | ||
|
|
||
| function onClick(){ | ||
| alert("work in progress ;)") | ||
| } | ||
|
|
||
| window.addEventListener("pushstate", function(){ | ||
| if(window.location.pathname.startsWith("/c/")){ | ||
| addButton() | ||
| } | ||
| }) | ||
Uh oh!
There was an error while loading. Please reload this page.