campaignTrail_temp.election_json = [ { "model": "campaign_trail.election", "pk": 4, "fields": { "year": 1968, "summary": "

1968 has been a no-good, very-bad year. America is sinking in Vietnam and sagging at home. Many are beginning to wonder if the putrid stench of blood can ever be scrubbed off the executive office. As the Democrats lumber toward a contested convention in Chicago, Tricky Dick Nixon seems like he will receive his coronation without much opposition.

\n

Hold on just a second...

\n

I'm sorry, who?

\n

Surely, you can't be serious.

", "image_url": "https://i.imgur.com/2AbIKow.png", "winning_electoral_vote_number": 270, "advisor_url": "https://i.imgur.com/woVLWaX.png", "recommended_reading": "

Canon Ending

Full sized collage.", "has_visits": 1, "no_electoral_majority_image": "https://www.jetsimon.com/public/static/images/1968-no-majority.jpg", "creator": "Dan Bryan", "display_year": "1968 Stassen", "recommended_reading_enabled": true } } ]; campaignTrail_temp.temp_election_list = [ { "id": 4, "year": 1968, "is_premium": 0, "display_year": "1968 Stassen" } ]; RecReading = true; campaignTrail_temp.credits = "Atlascarlos and littleamericanman_85501 (E)"; campaignTrail_temp.global_parameter_json = [ { "model": "campaign_trail.global_parameter", "pk": 1, "fields": { "vote_variable": 1.125, "max_swing": 0.12, "start_point": 0.94, "candidate_issue_weight": 10, "running_mate_issue_weight": 3, "issue_stance_1_max": -0.71, "issue_stance_2_max": -0.3, "issue_stance_3_max": -0.125, "issue_stance_4_max": 0.125, "issue_stance_5_max": 0.3, "issue_stance_6_max": 0.71, "global_variance": 0.01, "state_variance": 0.005, "question_count": 25, "default_map_color_hex": "#C9C9C9", "no_state_map_color_hex": "#999999" } } ]; HistHexcolour=["#042576","#61AE2A","#b5b5b5"]; HistName=["Harold Stassen","Lyndon B. Johnson","George Wallace"]; HistEV=[280,194,64]; HistPV=["32,822,612","31,265,557","9,464,970"]; HistPVP=["44.6%","42.5%","12.9%"]; campaignTrail_temp.candidate_json = [ { "model": "campaign_trail.candidate", "pk": 23, "fields": { "first_name": "Harold", "last_name": "Stassen", "election": 4, "party": "Republican", "state": "Pennsylvania", "priority": 1, "description": "

Harold Stassen is serious, and don't call him Shirley.

By all conventional wisdom, Harold Stassen's political career died sixteen years ago, with Ike winning the Republican nomination. He last held elected office in 1943, and hasn't been in office at all for over a decade. He can't even win a mayoral race. However, \"conventional\" is not a word in Harold Stassen's vocabulary.

\n

Officially, his base consists of Republicans of the vaguely liberal sort. Unofficially, all the public really knows of him is that he is not Lyndon Johnson. For some, this is enough to justify a vote, but for most it is not. He will need to coalesce the shattered Republican Party behind him if he hopes to stand a fighting chance against LBJ.

\n

Good luck, Harold. God knows you need it.

", "color_hex": "#042576", "secondary_color_hex": "#729afa", "is_active": 1, "image_url": "https://i.imgur.com/8A2OsfY.png", "electoral_victory_message": "

Congratulations! You have won the 1968 election!

In one of the great turnarounds of American politics, you have salvaged your once-wrecked political career and shed your label as a 'loser' once and for all. As it turns out, the press will have Nixon to kick around.

If you can end the War in Vietnam and roll back the excesses of the Great Society, you may just go down as a truly great President. Good luck working with a Democratic Congress, however...

", "electoral_loss_message": "

Sorry, you have lost the 1968 election.

Never has a candidate been so far ahead in a Presidential election, only to come up short. After your heartbreaking loss in 1960, it's going to take a long while for you to recover from this new defeat.

The American public will never know what might have transpired with you in the Oval Office. As it is, you are sure to enjoy a long retirement after this one...

", "no_electoral_majority_message": "

Wow! No candidate holds a majority in the electoral college.

Wallace's machinations have succeeded. The election will go to the House of Representatives where the Democrats hold a clear majority.

You do hold some cards however -- Humphrey would certainly rather make concessions to you, rather than deal with George Wallace. Perhaps you could obtain a place in his Administration, or some assurances on a policy issue of your choice.

", "description_as_running_mate": null, "candidate_score": 0.666, "running_mate": false } }, { "model": "campaign_trail.candidate", "pk": 24, "fields": { "first_name": "Lyndon B.", "last_name": "Johnson", "election": 4, "party": "Democratic", "state": "Texas", "priority": 2, "description": "

President Lyndon Baines Johnson enters 1968 as America's king of the hill, and if anyone else wants that title, they'll have to pry it from his cold, dead hands. One of the finest political operators of his time, he is entirely unafraid of playing dirty. Playing dirty allowed him to enter the Senate in the first place, after all. It is also what allowed him to clinch the nomination this year.

As president, Johnson is fighting countless wars. Some are on concepts, like the War On Poverty. Others are on Asian children, like the war Vietnam. He believes, no, he knows that no other man can be trusted with any of his wars. Not the golden boy Robert F. Kennedy, not the crook Richard Nixon, and not the old fogy Harold Stassen. They are his and his alone.

", "color_hex": "#61AE2A", "secondary_color_hex": "#aee287", "is_active": 1, "image_url": "https://i.imgur.com/ZhZMAoo.png", "electoral_victory_message": "

Congratulations! You have won the 1968 election!

It looked like a hopeless case as you accepted the nomination, but you have run an outstanding campaign in the interval.

Now you must press forward with your efforts to defend the Great Society and to end the war in Vietnam. Failure in the latter case could be devastating when you seek reelection in 1972. After all, just look at what happened to the once-lustrous reputation of Lyndon Johnson over the past four years...

", "electoral_loss_message": "

Sorry, you have lost the 1968 election.

You may have performed admirably under trying circumstances, but it was always a tough sell for you after the chaos at the Democratic Convention in Chicago.

Your only consolation is that Nixon himself is a former loser. Even so, this is a horrednous turn of events for Democrats after the landslide of 1964. The best you can do now is to plot a comeback to the Senate, or as a candidate for President in 1972.

", "no_electoral_majority_message": "

Wow! No candidate achieved a majority in the electoral college.

Fortunately for you the Democrats have won a majority of the nation's Congressional delegations. Unfortunately, you also have to deal with George Wallace. He will not allow the Southern states to support any candidate who advocates desegregation.

Your best chance, sadly, is to try to broker a deal with Nixon or with other moderate Republicans.

You are the likely winner, but who knows where this all ends?

", "description_as_running_mate": null, "candidate_score": 0.7, "running_mate": false } }, { "model": "campaign_trail.candidate", "pk": 25, "fields": { "first_name": "George", "last_name": "Wallace", "election": 4, "party": "Courage", "state": "Alabama", "priority": 3, "description": "

You know the name George Wallace. I know the name George Wallace. In fact, all of America knows the name George Wallace. Strangely, however, nobody can agree on who this \"George Wallace\" person is. If you asked someone from Alabama, you'd think he's the second coming of Christ. If you asked someone from New York, you'd think he's the Antichrist.

\n

The hardest of the hardline segregationists, George Wallace is running a race he knows he cannot win. But, he does not need to. All he needs to do is take up enough space in the electoral college to force a deadlock. Then, he can force Stassen or Johnson to bend to his will, and stomp out any hopes of racial integration in the south. Of course, they could just make a deal with each other, but George doesn't like thinking about that.

", "color_hex": "#b5b5b5", "secondary_color_hex": "#e2e2e2", "is_active": 1, "image_url": "https://i.imgur.com/lOEpQ6Y.png", "electoral_victory_message": "

Wow! You have won the 1968 election in a shocker!

Dixie forever! Even with the Long Hot Summer of 1967, nobody guessed that you could do well enough in the Northern states to win the election outright. You have instantly become most polarizing President-elect since Abraham Lincoln.

", "electoral_loss_message": "

Sorry, you did not prevent an electoral college majority.

You put in a good effort, but your dream of brokering an end to desegregation will not come to fruition in 1968. No winning candidate will negotiate that point with you unless they absolutely have no choice.

The best you can do for now is continue to sound the call for a return to sanity in American politics. Perhaps if the riots and discord continue, you will have a better chance of making your voice heard in 1972.

", "no_electoral_majority_message": "

Congratulations! You have deadlocked the electoral college with your votes in the South.

In a close election, your electoral votes in the South have prevented either candidate from winning a majority. Get ready to put the squeeze on Humphrey and Nixon.

Of course, you still have to deal with the possibility that Humphrey and Nixon dislike you so much that they will simply strike a deal with each other. Whatever happens, it's sure to be interesting.

", "description_as_running_mate": null, "candidate_score": 1, "running_mate": false } }, { "model": "campaign_trail.candidate", "pk": 55, "fields": { "first_name": "Robert", "last_name": "Finch", "election": 4, "party": "Republican", "state": "California", "priority": 29, "description": "n/a", "color_hex": "#FF0000", "secondary_color_hex": "#FFA0A0", "is_active": 0, "image_url": "https://i.imgur.com/MpA6TYM.png", "electoral_victory_message": "n/a", "electoral_loss_message": "n/a", "no_electoral_majority_message": "n/a", "description_as_running_mate": "

Alright, Harold. The nomination is yours. Obviously, Nixon was not happy about you usurping his position as leader of the Grand Old Party. You can't afford to have such a powerful enemy, so you want to allow him some concessions.

Based on our research on Nixon and his friends, Robert Finch is the easiest way to Nixon's heart.

The Lieutenant Governor of California under Reagan, he is a direct protege of Nixon and was at the top of Nixon's shortlist of VP options. He is not a well-known figure, nor a particularly inspiring one, so he will not be of much help making stump speeches. However, the closeness with Nixon he brings to the table cannot be underestimated.

", "candidate_score": 0, "running_mate": true } }, { "model": "campaign_trail.candidate", "pk": 56, "fields": { "first_name": "John V.", "last_name": "Lindsay", "election": 4, "party": "Republican", "state": "New York", "priority": 30, "description": "n/a", "color_hex": "#FF0000", "secondary_color_hex": "#FFA0A0", "is_active": 0, "image_url": "https://i.imgur.com/Nkr9sFf.png", "electoral_victory_message": "n/a", "electoral_loss_message": "n/a", "no_electoral_majority_message": "n/a", "description_as_running_mate": "

There is another option. If you don't want to bend over backwards for Nixon, and instead empower your liberal Republican roots, than glamorous New York City mayor John V. Lindsay seems like the most helpful option in that regard. A more known quantity than Finch, he has a bit of the handsome New England charisma that John and Bobby Kennedy had.

As you probably guessed, running as a liberal Republican would require you to run a particularly strong campaign in the North, as his commitment to racial equality would practically write off every state below the Mason-Dixon to Wallace and Johnson. On top of this, he is known to be a bit of a vibrant, aloof figure. But, it's your call, of course.

", "candidate_score": 0, "running_mate": true } } ]; campaignTrail_temp.running_mate_json = [ { "model": "campaign_trail.running_mate", "pk": 33, "fields": { "candidate": 23, "running_mate": 55 } }, { "model": "campaign_trail.running_mate", "pk": 35, "fields": { "candidate": 23, "running_mate": 56 } } ]; campaignTrail_temp.opponents_default_json = [ { "election": 4, "candidates": [ 23, 24, 25 ] } ]; campaignTrail_temp.opponents_weighted_json = [ { "election": 4, "candidates": [ 23, 24, 25 ] } ]; jet_data = { "headerColor": "#243c79", "headerTextColor": "#ffffff", "windowColor": "#243c79", "containerColor": "#304520", "innerWindowColor": "#c0c0c0", "innerWindowTextColor": "#000000", "descriptionWindowColor": "#000000", "descriptionWindowTextColor": "#f8f8f8", "startButtonColor": "#000000", "bannerImageUrl": "https://i.imgur.com/OaAp74b.png", "backgroundImageUrl": "https://i.imgur.com/d386rMO.jpeg", "gameTitle": "THE STASSEN TRAIL", "customQuote": "\"I don't care to be involved in the crash-landing unless I can be in on the take-off.\" - Harold Stassen", "quoteTextColor": "#ffffff", "endingTextColor": "#000000" }; //#startcode function applyTheme(theme) { const gameHeader = document.querySelector(".game_header"); if (gameHeader && theme.coloring_title) { gameHeader.style.backgroundColor = theme.coloring_title; } const gameWindow = document.getElementById("game_window"); if (gameWindow && theme.coloring_window) { gameWindow.style.backgroundColor = theme.coloring_window; } const container = document.querySelector(".container"); if (container && theme.coloring_container) { container.style.backgroundColor = theme.coloring_container; } const headerImg = document.getElementById("header"); if (headerImg && theme.header_image) { headerImg.src = theme.header_image; } if (theme.body_background) { document.body.style.backgroundImage = `url("${theme.body_background}")`; document.body.style.backgroundSize = "cover"; document.body.style.backgroundAttachment = "fixed"; } const style = document.createElement("style"); style.textContent = ` #results_container { color: #000000; } #wittyquote { color: #ffffff; } .game_header h2 { color: #ffffff; } .inner_window_w_desc { background-color: #c0c0c0 !important; color: #000000; } .inner_window_front, .person_description_window, .election_description_window, .description_window_small { background-color: #000000 !important; color: #f8f8f8; } .campaign_trail_start_emphasis { background-color: #000000 !important; } .person_image { border-color: #ffffff00} `; document.head.appendChild(style); } corrr = '\n

THE STASSEN TRAIL

"I don't care to be involved in the crash-landing unless I can be in on the take-off." - Harold Stassen\n '; const theme = nct_stuff.themes[nct_stuff.selectedTheme]; // define / override theme values theme.coloring_title = "#243c79"; theme.coloring_window = "#c0c0c0"; theme.coloring_container = "#597564"; theme.header_image = "https://i.imgur.com/OaAp74b.png"; theme.body_background = "https://i.imgur.com/d386rMO.jpeg"; applyTheme(theme); // This is a recreation of the music player // showcased in the mod They'll Love Me When I'm Dead sneak peeks. class Song { constructor(title, artist, coverLink, audioLink) { this.title = title; this.artist = artist; this.coverLink = coverLink; this.audioLink = audioLink; } getTitle() { return this.title; } getArtist() { return this.artist; } getCoverLink() { return this.coverLink; } getAudioLink() { return this.audioLink; } } class Playlist { constructor() { this.songs = []; this.currentSongIndex = 0; } addSong(song) { this.songs.push(song); } getCurrentSong() { return this.songs[this.currentSongIndex]; } playNext() { this.currentSongIndex = (this.currentSongIndex + 1) % this.songs.length; } playPrevious() { this.currentSongIndex = (this.currentSongIndex - 1 + this.songs.length) % this.songs.length; } } window.Playlist = Playlist; window.Song = Song; // globals let playlist = new Playlist(); let playlistA = new Playlist(); let playlistB = new Playlist(); let activePlaylist = null; let audioInstance = null; let currentVolume = 1; const prevIconSVG = `data:image/svg+xml;utf8,`; const playIconSVG = `data:image/svg+xml;utf8,`; const pauseIconSVG = `data:image/svg+xml;utf8,`; const nextIconSVG = `data:image/svg+xml;utf8,`; // button toggle tracking let ppBTN = playIconSVG; let ppBTN_pause = pauseIconSVG; // helpers function getAudioElement() { if (!audioInstance) { audioInstance = document.createElement("audio"); audioInstance.id = "audio"; document.body.appendChild(audioInstance); } return audioInstance; } function updatePlayPauseIcon(isPlaying) { const btn = document.getElementById("playPauseButton"); if (btn) btn.src = isPlaying ? ppBTN_pause : ppBTN; const vinyl = document.getElementById("vinyl"); if (vinyl) { if (isPlaying) { vinyl.classList.add("spinning"); } else { vinyl.classList.remove("spinning"); } } } function safePlay(audioElement) { let playPromise = audioElement.play(); if (playPromise !== undefined) { playPromise.then(() => { updatePlayPauseIcon(true); }).catch(error => { if (error.name !== "AbortError") { console.error("audio play error:", error); updatePlayPauseIcon(false); } }); } } function changePlaylist(newPlaylist) { playlist = newPlaylist; playlist.currentSongIndex = 0; updateUI(playlist); // ensure audio exists before trying to access it const audio = getAudioElement(); audio.src = playlist.getCurrentSong().audioLink; safePlay(audio); } window.changePlaylist = changePlaylist; function updateUI(playlist) { const currentSong = playlist.getCurrentSong(); const player = document.getElementById("player"); if (!player || !currentSong) return; player.querySelector("#cover").src = currentSong.getCoverLink(); player.querySelector("#title").textContent = currentSong.getTitle(); player.querySelector("#artist").textContent = currentSong.getArtist(); } window.updateUI = updateUI; function formatTime(secs) { if (isNaN(secs)) return "0:00"; const minutes = Math.floor(secs / 60); const seconds = Math.floor(secs % 60); return `${minutes}:${seconds < 10 ? '0' : ''}${seconds}`; } function playCurrentSong() { updateUI(playlist); const audio = getAudioElement(); audio.src = playlist.getCurrentSong().audioLink; // reset duration display temporarily const durationDisplay = document.getElementById("duration-display"); if (durationDisplay) durationDisplay.textContent = "0:00"; safePlay(audio); } // setup function setupMusicPlayer() { const gameWindow_player = document.getElementById("game_window"); if (!gameWindow_player) return; // prevent duplicate players const existingPlayer = document.getElementById("player"); if (existingPlayer) existingPlayer.remove(); playlist = new Playlist(); playlistA = new Playlist(); playlistB = new Playlist(); const commonSongs = [ ["I Love You More Than You’ll Ever Know", "Blood, Sweat, & Tears", "https://i.imgur.com/SvIOumm.png", "https://audio.jukehost.co.uk/019ecd7a-8d47-7255-93aa-469aef7d5c16"], ["Season of the Witch", "Donovan", "https://i.imgur.com/Hj3BWie.png", "https://audio.jukehost.co.uk/019ecd4f-e19c-725a-a972-73ce4546d929"], ["Windy", "The Association", "https://i.imgur.com/BCsCNFL.png", "https://audio.jukehost.co.uk/019ecd56-b8e1-70a0-99ce-0b2baa2de21e"], ["You Showed Me", "The Turtles", "https://i.imgur.com/NNHymr4.png", "https://audio.jukehost.co.uk/5b12da79-40b0-11f1-a012-fa163edb0845"], ["You Can’t Do That", "Harry Nilsson", "https://i.imgur.com/R6KuIL3.png", "https://audio.jukehost.co.uk/019ecd8b-b052-7227-a4d7-016dd7429d82"], ]; const songUniqueA = new Song("Overture", "Blood, Sweat, & Tears", "https://i.imgur.com/SvIOumm.png", "https://audio.jukehost.co.uk/019ecd7a-4ae2-711f-b0c1-3e1032a572a1"); const songUniqueB = new Song("Picture Book", "The Kinks", "https://i.imgur.com/dCODUSD.jpeg", "https://audio.jukehost.co.uk/019f1f64-de5d-73f5-b26e-e060e22fcb86"); playlistA.addSong(songUniqueA); playlistB.addSong(songUniqueB); commonSongs.forEach(data => { let s = new Song(data[0], data[1], data[2], data[3]); playlistA.addSong(s); playlistB.addSong(s); }); activePlaylist = playlistA; // create HTML const playerContainer = document.createElement("div"); playerContainer.id = "player"; playerContainer.innerHTML = `

-

0:00
Previous Play/Pause Next
`; gameWindow_player.insertAdjacentElement("afterend", playerContainer); // set up audio & logic const audio = getAudioElement(); audio.volume = currentVolume / 9; const playPauseBtn = document.getElementById("playPauseButton"); const prevBtn = document.getElementById("prevButton"); const nextBtn = document.getElementById("nextButton"); const progressBar = document.getElementById("progress-bar"); const volumeSlider = document.getElementById("volumeSlider"); const coverImg = document.getElementById("cover"); // playlist switching via cover double-click coverImg.addEventListener("dblclick", () => { if (activePlaylist === playlistA) { activePlaylist = playlistB; changePlaylist(playlistB); changePlayerStyle("#02A6CF"); } else { activePlaylist = playlistA; changePlaylist(playlistA); changePlayerStyle("#B42D1B"); } }); playPauseBtn.addEventListener("click", () => { if (audio.paused) safePlay(audio); else { audio.pause(); updatePlayPauseIcon(false); } }); nextBtn.addEventListener("click", () => { playlist.playNext(); playCurrentSong(); }); prevBtn.addEventListener("click", () => { playlist.playPrevious(); playCurrentSong(); }); // progress bars progressBar.addEventListener("click", function (e) { if (!audio.duration || isNaN(audio.duration)) return; const rect = this.getBoundingClientRect(); const clickX = e.clientX - rect.left; const percent = clickX / rect.width; audio.currentTime = percent * audio.duration; }); audio.addEventListener("timeupdate", () => { if (audio.duration && !isNaN(audio.duration)) { progressBar.value = (audio.currentTime / audio.duration) * 100; const durationDisplay = document.getElementById("duration-display"); if (durationDisplay) { durationDisplay.textContent = formatTime(audio.duration); } } }); audio.addEventListener("loadedmetadata", () => { const durationDisplay = document.getElementById("duration-display"); if (durationDisplay && audio.duration) { durationDisplay.textContent = formatTime(audio.duration); } }); audio.addEventListener("ended", () => { playlist.playNext(); playCurrentSong(); }); volumeSlider.addEventListener("input", function () { currentVolume = parseInt(this.value, 10); audio.volume = currentVolume / 9; }); // inject CSS if (!document.getElementById("tape-base-style")) { document.documentElement.style.setProperty('--theme-color', "#243c79"); const style = document.createElement("style"); style.id = "tape-base-style"; style.textContent = ` #player { position: relative; border: 1px solid #ffffff; outline: 1px solid #ffffff; outline-offset: -4px; display: flex; flex-direction: row; align-items: center; height: 191px; background-color:#243c79; font-family: Arial, sans-serif; padding: 10px; box-sizing: border-box; } #cover-wrapper { position: relative; width: 240px; height: 176px; display: flex; align-items: center; z-index: 2; } #cover { width: 176px; height: 176px; cursor: pointer; z-index: 3; border: 1px solid rgba(255, 255, 255, 0.2); } #vinyl { width: 176px; height: 176px; background: radial-gradient(circle, #000 30%, #333 31%, #000 40%, #111 41%, #000 70%); border-radius: 50%; position: absolute; left: 50px; z-index: 1; border: 1px solid #111; display: flex; align-items: center; justify-content: center; } #vinyl::after { content: ''; width: 45px; height: 45px; background-color: var(--theme-color); border-radius: 50%; transition: background-color 0.3s ease; } .spinning { animation: spin 3.5s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } #center-column { display: flex; flex-direction: column; justify-content: center; flex: 1; height: 100%; padding-left: 20px; padding-right: 40px; } #song-info { display: flex; flex-direction: column; color: #ffffff; margin-bottom: 2px; margin-top: 5px; } #song-title-artist { font-size: 20px; font-weight: bold; margin: 0; white-space: nowrap; } #title { margin-right: 10px; } #artist { margin-left: 10px; } #progress-bar-container { position: relative; width: 100%; max-width: 660px; height: 14px; margin-top: 6px; margin-bottom: 4px; } #duration-display { position: absolute; right: 0; top: -20px; color: #ffffff; font-size: 15px; font-weight: bold; } #progress-bar { width: 100%; height: 100%; appearance: none; -webkit-appearance: none; border: 1px solid #ffffff; cursor: pointer; background-color: transparent; } #progress-bar::-webkit-progress-bar { background-color: transparent; } #progress-bar::-webkit-progress-value { background-color: #ffffff; } #progress-bar::-moz-progress-bar { background-color: #ffffff; } #progress-bar::-ms-fill { background-color: #ffffff; } #controls { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 20px; margin-top: 5px; } #controls img { cursor: pointer; height: 30px; } #prevButton, #nextButton { width: 30px; } #volume-container { position: absolute; right: 5px; top: 0; bottom: 0; width: 30px; display: flex; justify-content: center; align-items: center; } .is-vertical { height: 140px; width: 30px; display: flex; justify-content: center; align-items: center; transform: rotate(-90deg); transform-origin: center; } #volumeSlider { width: 140px; height: 10px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; border-left: 2px solid #ffffff; border-right: 2px solid #ffffff; padding: 0 3px; } #volumeSlider::-webkit-slider-runnable-track { width: 100%; height: 2px; border-radius: 0px; } #volumeSlider::-moz-range-track { width: 100%; height: 2px; border-radius: 0px; } #volumeSlider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; background: #ffffff; border: none; width: 12px; height: 6px; margin-top: -2px; border-radius: 0px; } #volumeSlider::-moz-range-thumb { background: #ffffff; border: 1px solid #ffffff; width: 12px; height: 6px; border-radius: 0px; } `; document.head.appendChild(style); } // start player changePlaylist(playlistA); changePlayerStyle("#B42D1B"); } function changePlayerStyle(txtColor) { document.documentElement.style.setProperty('--theme-color', txtColor); const prevBtn = document.getElementById("prevButton"); const ppBtn = document.getElementById("playPauseButton"); const ffBtn = document.getElementById("nextButton"); if (prevBtn) prevBtn.src = prevIconSVG; if (ffBtn) ffBtn.src = nextIconSVG; ppBTN = playIconSVG; ppBTN_pause = pauseIconSVG; const audio = getAudioElement(); updatePlayPauseIcon(!audio.paused); } setupMusicPlayer(); function addDynamicCSS() { var css = ` .inner_window_question h3 .mytooltip{ background-color: lightskyblue; } .mytooltip { position: relative; display: inline-block; cursor: pointer; background-color: lightblue; } .mytooltip .mytooltiptext { width: 240px; background-color: lightblue; color: black; text-align: center; border-radius: 6px; padding: 10px; position: absolute; z-index: 99; bottom: 20%; left: 20%; margin-left: -90px; opacity: 0; transition: opacity 0.3s; border: 1px solid black; pointer-events: none; font-size: 13px !important; line-height: 1.5em !important; font-weight: normal !important; font-style: normal !important; } .mytooltip .mytooltiptext img { max-width: 240px; height: auto; } .mytooltip:hover .mytooltiptext { opacity: 1; transition-delay: 0.5s; } `; var styleElem = document.createElement('style'); styleElem.type = 'text/css'; styleElem.appendChild(document.createTextNode(css)); document.head.appendChild(styleElem); } addDynamicCSS(); tooltipList = [ {searchString: "Lyndon Johnson", explanationText: " A lying, cheating demagogue who smokes cigarettes like it’s a hobby, shovels steak into his mouth, and sends young boys to die in Asia. Also, the 36th President of the United States."}, {searchString: "Lyndon", explanationText: " A lying, cheating demagogue who smokes cigarettes like it’s a hobby, shovels steak into his mouth, and sends young boys to die in Asia. Also, the 36th President of the United States."}, {searchString: "Johnson", explanationText: " A lying, cheating demagogue who smokes cigarettes like it’s a hobby, shovels steak into his mouth, and sends young boys to die in Asia. Also, the 36th President of the United States."}, {searchString: "Nixon", explanationText: " Many thought he was inevitable. But he now sits in the shadows, pulling the strings."}, {searchString: "Republican", explanationText: " A big tent club of politicians."}, {searchString: "Reagan", explanationText: " Despite retiring from hollywood, he is still an actor."}, {searchString: "Vietnam", explanationText: " A terrible thing to see on the television, especially in Technicolor."}, {searchString: "Kennedy", explanationText: " Tried to be his brother’s usurper, now he thinks of things that never were..."}, {searchString: "McCarthy", explanationText: " A man who is pushed forward by communists, hippies, and other wackos. He is also the politician who is most likely to kill the president."}, {searchString: "Tower", explanationText: " The mind of Goldwater trapped inside a man with the stature of James Madison."}, {searchString: "Goldwater", explanationText: " Tried to remake the Republican party, the results only got him 52 electoral votes."}, {searchString: "Vietnam", explanationText: " A whole can of worms and the main issue."}, {searchString: "Rockefeller", explanationText: " His star shone bright but sat it out this time around."}, {searchString: "Finch", explanationText: " A diversity hire to reel the Nixon guys in."}, {searchString: "Lindsay", explanationText: " Some call him the next John Kennedy, others call him the next Franklin Pierce."}, {searchString: "Wallace", explanationText: " Speaks like a preacher, acts like Thurmond."}, ]; const customStyling = document.createElement("style"); customStyling.innerHTML = `#map_container { background-image: url("https://i.imgur.com/2HMtzR5.png"); background-size: cover; }`; customStyling.id=`map_image` document.head.appendChild(customStyling); campaignTrail_temp.modBoxTheme = { "header_color" : "#243c79", "header_text_color" : "#FFFFFF", "description_text_color" : "#FFFFFF", "description_background_color" : "#243c79", "main_color" : "#597564", "secondary_color" : "#243c79", "ui_text_color": "#000000" } //#endcode