x
This commit is contained in:
parent
62d4d8f2da
commit
e38cbc75e6
1 changed files with 58 additions and 37 deletions
95
index.html
95
index.html
|
|
@ -25,62 +25,62 @@
|
|||
|
||||
<!-- Icon -->
|
||||
<meta name="twitter:image"
|
||||
content="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
content="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<meta name="twitter:image:src"
|
||||
content="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
content="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<meta name="twitter:image:alt" content="RADICAL Logo">
|
||||
<link rel="shortcut icon" href="https://radical.omar-c29.workers.dev/memes/favicon.jpg" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="https://radical.omar-c29.workers.dev/memes/favicon.jpg"
|
||||
<link rel="shortcut icon" href="https://theradicalparty.com/memes/favicon.jpg" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="https://theradicalparty.com/memes/favicon.jpg"
|
||||
type="image/jpg">
|
||||
<link rel="mask-icon" href="https://radical.omar-c29.workers.dev/memes/favicon.jpg"
|
||||
<link rel="mask-icon" href="https://theradicalparty.com/memes/favicon.jpg"
|
||||
color="#ff0099">
|
||||
<meta property="og:image"
|
||||
content="https://radical.omar-c29.workers.dev/memes/mickeymeta.PNG">
|
||||
content="https://theradicalparty.com/memes/mickeymeta.PNG">
|
||||
<meta property="og:image:url"
|
||||
content="https://radical.omar-c29.workers.dev/memes/mickeymeta.PNG">
|
||||
content="https://theradicalparty.com/memes/mickeymeta.PNG">
|
||||
<meta property="og:image:secure_url"
|
||||
content="https://radical.omar-c29.workers.dev/memes/mickeymeta.PNG">
|
||||
content="https://theradicalparty.com/memes/mickeymeta.PNG">
|
||||
<meta property="og:image:type" content="image/png">
|
||||
<meta property="og:image:width" content="256">
|
||||
<meta property="og:image:height" content="256">
|
||||
<meta property="og:image:alt" content="The RADICAL logo.">
|
||||
<meta itemprop="image" content="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
<meta itemprop="image" content="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="icon" type="image/jpg" sizes="512x512"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="icon" type="image/jpg" sizes="256x256"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="icon" type="image/jpg" sizes="128x128"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="icon" type="image/jpg" sizes="64x64"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="icon" type="image/jpg" sizes="32x32"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="icon" type="image/jpg"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="512x512"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="256x256"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="128x128"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="64x64"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="32x32"
|
||||
href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
|
||||
<!-- APPLE TOUCH ICONS -->
|
||||
<link rel="apple-touch-icon" href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="167x167" href="https://radical.omar-c29.workers.dev/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
<link rel="apple-touch-icon" sizes="167x167" href="https://theradicalparty.com/memes/favicon.jpg">
|
||||
|
||||
<!-- SPLASH SCREEN IMAGES -->
|
||||
<!-- iPhone X (1125px x 2436px) -->
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)" href="https://radical.omar-c29.workers.dev/memes/splash-1125x2436.png">
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)" href="https://theradicalparty.com/memes/splash-1125x2436.png">
|
||||
<!-- iPhone 8, 7, 6s, 6 (750px x 1334px) -->
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" href="https://radical.omar-c29.workers.dev/memes/splash-750x1334.png">
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" href="https://theradicalparty.com/memes/splash-750x1334.png">
|
||||
<!-- iPhone 8 Plus, 7 Plus, 6s Plus, 6 Plus (1242px x 2208px) -->
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3)" href="https://radical.omar-c29.workers.dev/memes/splash-1242x2208.png">
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3)" href="https://theradicalparty.com/memes/splash-1242x2208.png">
|
||||
|
||||
|
||||
<!-- Author -->
|
||||
|
|
@ -156,7 +156,7 @@
|
|||
"@type": "WebSite",
|
||||
"name": "RADICAL",
|
||||
"description": "Australia's direct democracy movement. Share policy ideas, vote on proposals, take back control. Vibe, Vote, Veto.",
|
||||
"image": "https://radical.omar-c29.workers.dev/memes/mickeymeta.PNG",
|
||||
"image": "https://theradicalparty.com/memes/mickeymeta.PNG",
|
||||
"url": "https://theradicalparty.com",
|
||||
"author": {
|
||||
"@type": "Organization",
|
||||
|
|
@ -265,12 +265,33 @@ function smartCopyShare(proposalId, proposalText) {
|
|||
copyToClipboard(link);
|
||||
}
|
||||
}
|
||||
// Configuration
|
||||
const API_BASE_URL =
|
||||
window.location.hostname === 'localhost'
|
||||
? 'http://localhost:8787/api'
|
||||
: 'https://theradicalparty.com/api';
|
||||
|
||||
function getAPIBaseURL() {
|
||||
const hostname = window.location.hostname;
|
||||
const protocol = window.location.protocol;
|
||||
|
||||
switch(hostname) {
|
||||
case 'localhost':
|
||||
return 'http://localhost:8787/api';
|
||||
case 'theradicalparty.com':
|
||||
case 'www.theradicalparty.com':
|
||||
return `${protocol}//theradicalparty.com/api`;
|
||||
case 'radical.omar-c29.workers.dev':
|
||||
return `${protocol}//radical.omar-c29.workers.dev/api`;
|
||||
default:
|
||||
return `${protocol}//${hostname}/api`;
|
||||
}
|
||||
}
|
||||
|
||||
const API_BASE_URL = getAPIBaseURL();
|
||||
|
||||
function getMediaURL(path) {
|
||||
const baseURL = window.location.hostname === 'localhost'
|
||||
? 'http://localhost:8787'
|
||||
: `https://${window.location.hostname}`;
|
||||
return `${baseURL}${path}`;
|
||||
}
|
||||
|
||||
|
||||
// Character limit
|
||||
const CHAR_LIMIT = 280;
|
||||
|
||||
|
|
@ -907,7 +928,7 @@ async function submitVote(proposalId, voteType, isPetition = false, petitionDeta
|
|||
</button>
|
||||
<span class="net-votes ${voteClass}">${netVotes > 0 ? '+' : ''}${netVotes}</span>
|
||||
<div class="custom-copy-button" data-id="${proposal.id}" style="display: inline-block; background-color: #000000; border: 0px solid #333333; color: #aaaaaa; padding: 4px 8px; font-size: 20px; position: relative; z-index: 10; cursor: pointer; vertical-align: middle;" onclick="event.stopPropagation(); event.preventDefault(); smartCopyShare('${proposal.id}', '${encodeURIComponent(proposal.text)}');">
|
||||
<img src="https://radical.omar-c29.workers.dev/memes/share-arrow-icon-md.png" alt="Share" style="width: 20px; height: 14px; filter: brightness(0) invert(1); pointer-events: none;">
|
||||
<img src="https://theradicalparty.com/memes/share-arrow-icon-md.png" alt="Share" style="width: 20px; height: 14px; filter: brightness(0) invert(1); pointer-events: none;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="proposal-time">${formatDate(proposal.timestamp)}</div>
|
||||
|
|
@ -1007,7 +1028,7 @@ updateCommentCount(proposal.id);
|
|||
|
||||
const uploadIcon = document.createElement('img');
|
||||
uploadIcon.className = 'meme-upload-icon';
|
||||
uploadIcon.src = 'https://radical.omar-c29.workers.dev/memes/pepe.jpg';
|
||||
uploadIcon.src = 'https://theradicalparty.com/memes/pepe.jpg';
|
||||
uploadIcon.alt = 'Pepe';
|
||||
uploadIcon.style.width = '20px';
|
||||
uploadIcon.style.height = '20px';
|
||||
|
|
@ -2283,7 +2304,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
console.log("Music prompt element found, adding click listener");
|
||||
|
||||
// Audio file URL - this should point to your audio file in R2
|
||||
const audioUrl = 'https://radical.omar-c29.workers.dev/memes/steppingout.mp3';
|
||||
const audioUrl = getMediaURL('/audio/steppingout.mp3');
|
||||
|
||||
// Initialize music only when the "hit me" button is clicked
|
||||
musicPrompt.addEventListener('click', function(e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue