Skip to content

Commit

Permalink
Move some files, make results page show full text if the text is supe…
Browse files Browse the repository at this point in the history
…r long
  • Loading branch information
dginovker committed Feb 26, 2024
1 parent 0f2bfc7 commit ee6e33e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion public/createPollPage/createPollPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ async function getNewPollId() {
return runTransaction(pollIdRef, (currentId) => {
return (currentId || 0) + 1;
}).then((transaction) => {
console.log("Updated poll ID to: ", transaction.snapshot.val());
return transaction.snapshot.val();
}).catch((error) => {
console.error('Transaction failed: ', error);
Expand Down
2 changes: 0 additions & 2 deletions public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ li {
background: #fff7e6; /* Matches rgb(255, 247, 230) */
margin-bottom: 10px;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 10px;
}
Expand All @@ -90,7 +89,6 @@ li {
z-index: 2;
margin-left: 10px;
font-weight: normal;
white-space: nowrap;
padding-left: 10px;
}

Expand Down
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1>Loading Results..</h1>
</ul>
<button>Vote</button>
`;
const { displayResultsPage } = await import('/createResultsPage/resultsPage.js');
const { displayResultsPage } = await import('/resultsPage/resultsPage.js');
displayResultsPage(path[0]);
} else if (path.length === 2 && path[1] === 'vote') {
document.getElementById('content').innerHTML = `
Expand All @@ -36,7 +36,7 @@ <h1>Loading Question..</h1>
<label class="vote-option"><input type="radio"></label>
<button style="margin-right: 0.5rem;">Vote</button><button>Results</button>
`;
const { displayVotePage } = await import('/createVotePage/votePage.js');
const { displayVotePage } = await import('/votePage/votePage.js');
displayVotePage(path[0]);
} else {
document.getElementById('content').innerHTML = `
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit ee6e33e

Please sign in to comment.