Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions-bot committed Jan 20, 2024
1 parent 4f743ee commit 85c9b55
Show file tree
Hide file tree
Showing 15 changed files with 64 additions and 13 deletions.
4 changes: 2 additions & 2 deletions index.3208ff47.js → index.03b28699.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions index.03b28699.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion index.3208ff47.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions index.5825fe7f.js → index.3badd5f8.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions index.3badd5f8.js.map

Large diffs are not rendered by default.

43 changes: 42 additions & 1 deletion index.4d663569.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.4d663569.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion index.5825fe7f.js.map

This file was deleted.

10 changes: 10 additions & 0 deletions index.975ef6c8.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,13 @@ beaming.debug = function(debug) {
};
// Silence debug logging by default since it can affect performance
beaming.debug((0, _util.params).has("debug") ?? false);
// Feedback module
const doorbellOptions = window.doorbellOptions;
const elements = Object.freeze({
dialog: document.getElementById("dialog"),
feedback: document.getElementById("feedback"),
feedbackContainer: document.getElementById("feedback-container"),
help: document.getElementById("help"),
info: document.getElementById("info"),
main: document.getElementById("main"),
message: document.getElementById("message"),
Expand All @@ -611,6 +616,10 @@ const elements = Object.freeze({
undo: document.getElementById("undo")
});
const puzzle = beaming.puzzle = new (0, _puzzle.Puzzle)(elements.puzzle);
elements.feedback.addEventListener("click", ()=>{
elements.help.setAttribute("open", "true");
elements.feedbackContainer.scrollIntoView(true);
});
elements.info.addEventListener("click", ()=>{
if (!elements.dialog.open) elements.dialog.showModal();
});
Expand All @@ -631,6 +640,7 @@ document.addEventListener((0, _puzzle.Puzzle).Events.Updated, (event)=>{
const state = event.detail.state;
const id = state.getId();
const title = state.getTitle();
doorbellOptions.properties.puzzleId = id;
elements.title.textContent = `Beaming: Puzzle ${title}`;
(0, _util.removeClass)("disabled", ...Array.from(document.querySelectorAll("#actions li")));
const disable = [];
Expand Down
2 changes: 1 addition & 1 deletion index.975ef6c8.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions index.aaee812f.css

This file was deleted.

Loading

0 comments on commit 85c9b55

Please sign in to comment.