diff --git a/index.html b/index.html index ac1ee75..1f227d0 100644 --- a/index.html +++ b/index.html @@ -769,31 +769,27 @@ /* Add these styles to your existing CSS */ .share-button { - background: var(--darker); - border: 1px solid var(--border); - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--text-muted); - font-size: 14px; - transition: all 0.2s ease; - padding: 6px 10px; - border-radius: 0; - margin-left: 10px; - font-family: 'Roboto Mono', monospace; -} - -.share-button:hover { - background-color: var(--darker); - color: var(--primary); - border-color: var(--primary); + background: var(--darker); + border: 1px solid var(--border); + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + color: var(--text-muted); + font-size: 14px; + transition: all 0.2s ease; + padding: 6px 14px; + border-radius: 0; + margin-left: 10px; } .share-icon { - font-size: 14px; + display: block; + background-color: transparent !important; + mix-blend-mode: screen; /* This helps with image transparency */ } + /* Optional: Add a tooltip for the share button */ .share-button { position: relative; @@ -1029,9 +1025,9 @@ const sortSelect = document.getElementById('sort-select'); if (sortSelect) { const options = sortSelect.querySelectorAll('option'); - if (options[0]) options[0].textContent = 'Latest Petitions'; - if (options[1]) options[1].textContent = 'Most Signatures'; - if (options[2]) options[2].textContent = 'Most Debated'; + if (options[0]) options[0].textContent = 'Latest ideas'; + if (options[1]) options[1].textContent = 'Most liked'; + if (options[2]) options[2].textContent = 'controversial'; } const proposalInput = document.getElementById('proposal-input'); @@ -1265,26 +1261,32 @@ } // Handle voting - async function handleVote(proposalId, voteType) { - currentProposalId = proposalId; - currentVoteType = voteType; +async function handleVote(proposalId, voteType) { + currentProposalId = proposalId; + currentVoteType = voteType; - // Check if user needs to provide AEC details for petition signing - if (voteType === 'upvote') { - // Check if user already verified for this vote - if (verifiedUsers[currentUser.id] && verifiedUsers[currentUser.id][proposalId]) { - // User already verified for this proposal, proceed with vote - submitVote(proposalId, voteType, true, verifiedUsers[currentUser.id][proposalId].userData); - return; - } + // TEMPORARILY DISABLED AEC VERIFICATION + // Simply submit the vote directly regardless of vote type + submitVote(proposalId, voteType, voteType === 'upvote'); - // Show verification modal for petition signing - showVerificationModal(proposalId); - } else { - // Downvotes don't require verification - submitVote(proposalId, voteType, false); - } + /* Original code commented out + // Check if user needs to provide AEC details for petition signing + if (voteType === 'upvote') { + // Check if user already verified for this vote + if (verifiedUsers[currentUser.id] && verifiedUsers[currentUser.id][proposalId]) { + // User already verified for this proposal, proceed with vote + submitVote(proposalId, voteType, true, verifiedUsers[currentUser.id][proposalId].userData); + return; } + + // Show verification modal for petition signing + showVerificationModal(proposalId); + } else { + // Downvotes don't require verification + submitVote(proposalId, voteType, false); + } + */ +} // Submit vote with petition data if applicable async function submitVote(proposalId, voteType, isPetition = false, petitionDetails = null) { @@ -1391,30 +1393,31 @@ Meme for petition ` : ''; - proposalCard.innerHTML = ` - ${badgeHtml} -
${proposal.author_name}
-
${proposal.text}
- ${memeHtml} - ${petitionInfo} -
-
- - - ${netVotes > 0 ? '+' : ''}${netVotes} - + + ${netVotes > 0 ? '+' : ''}${netVotes} + -
-
${formatDate(proposal.timestamp)}
-
- `; + +
${formatDate(proposal.timestamp)}
+ +`; proposalsContainer.appendChild(proposalCard);