e = campaignTrail_temp;
var hasMusic = false;
RecReading=true
campaignTrail_temp.election_json = JSON.parse("[{\"model\": \"campaign_trail.election\", \"pk\": 15, \"fields\": {\"year\": 2076, \"summary\": \"
America is a fallen nation, the shining beacon of democracy sold to the CEO's dollar. The nation has suffered from food shortages, riots, the New Plague, and hyperinflation; since 2051, it seems the US has been at war. The American people have lost all hope as they see no action from Congress and the White House abandoned.
President Anderson has a country to run and a re-election bid to wage. He must fight his own unpopularity and keep the riots at bay
Senator Stephenson must maintain his large lead and make his case for new, fresh, leadership.
Thanks for playing my second mod! It was a ton of fun to make and I hope you all will enjoy the story that will unfold through each playthrough and update. This mod could not have been done without the oversight of my friend, Ruskipop, for the lore, and the talented efforts of the coders CatBoxXD, gamergirld20, and max_6711! A special thanks go out to Ana (plutooo2) and Otto von Habsburg for playtesting this mod to ensure its quality.
The development of this mod has surely been a trip! From researching all I could of pre-war America to coming up with state votes and margins, it surely has taken a long time but it was certainly worth it!
Thank you so much for playing this mod and I hope to continue making mods to be enjoyed!
-Gelid Lagopus
\", \"has_visits\": 1, \"no_electoral_majority_image\": \"/static/images/2012-no-majority.jpg\"}}]");
campaignTrail_temp.candidate_json = JSON.parse("[{\"model\": \"campaign_trail.candidate\", \"pk\": 152, \"fields\": {\"first_name\": \"Dillon E.\", \"last_name\": \"Anderson\", \"election\": 15, \"party\": \"Republican\", \"state\": \"Indiana\", \"priority\": 1, \"description\": \"NOT PLAYABLEFor the first time since 1812, the heart of American democracy lays abandoned; to all outward appearances, President Dillion Anderson is missing. Hidden from the public eye and unseen by even close allies in Congress. However, he is still very much in charge.
Anderson is no kind man. Under the smile and handshake is nothing more than a shell of a \\\"public figure\\\", bought and sold to the highest corporate seller. His administration, controlled by the Enclave, has stomped on the American Dream and convinced the voter it doesn't matter. His cronies have censored the press and ran a war into stagnation and yet, Anderson lives on. He won in 2068 and 2072, and he'll be damned if he won't win again.
Anderson needs not campaign, those loyal patriots in Congress and voters will do that for him. No, we have a war to win. The godless commies won't stop until we crush them...but neither will those union rioters.\", \"color_hex\": \"#d53939\", \"secondary_color_hex\": \"#ff9c9c\", \"is_active\": 1, \"image_url\": \"https://static.miraheze.org/mockelectionswiki/5/50/Presidential_portrait_of_Dillion_E._Anderson_%283x4_crop%29.jpg\", \"electoral_victory_message\": \"
Congratulations! You have won the 1988 election.
In spite of a hard-fought challenge from Michael Dukakis, you have held on to succeed Ronald Reagan.
Whatever you did, it must have worked. Observers were leaving your campaign for dead just a few months ago. On the political front, you can continue the policies of Reagan or turn in a more moderate direction. Internationally, you can hopefully oversee a period of relaxed tension with the Soviet Union.
\", \"electoral_loss_message\": \"
Sorry. You have lost the 1988 election.
Perhaps it was always a long-shot -- the American people just seemed ready to move on from Reagan.
Time will tell if Dukakis governs as a moderate, a liberal, or a technocrat. A lot can happen in four years, but the early gossip is that Bob Dole has the inside track for the 1992 nomination. Your next steps are unclear.
\", \"no_electoral_majority_message\": \"
Sorry. You have lost the 1988 election.
Although the Electoral College was tied, the Democrats have won a solid majority in the House, and will elevate Michael Dukakis to the Presidency.
Time will tell if Dukakis governs as a moderate, a liberal, or a technocrat. A lot can happen in four years, but the early gossip is that Bob Dole has the inside track for the 1992 nomination. Your next steps are unclear.
\", \"description_as_running_mate\": \"'\", \"candidate_score\": 1.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 153, \"fields\": {\"first_name\": \"Gary A.\", \"last_name\": \"Stephenson\", \"election\": 15, \"party\": \"Democratic\", \"state\": \"Colorado\", \"priority\": 2, \"description\": \"This administration is nothing but a corporate-sold sham. Everyone knows it. They have sat idly by while the poor starve and are left jobless while the rich eat hundred-dollar steaks in fancy hotel rooms. The people are rioting while the administration does nothing. The people are sick of it...and so is Gary Stephenson.
Elected in the wake of the Democratic wave of 2070, Gary Stephenson is a brave supporter of labor unions and the worker; he's bolstered himself as a voice for the common man. Going against the military industrial complex in both parties, he is no stranger to a fight.
Defeating more experienced candidates in the primaries, Stephenson leads President Anderson by a very wide margin. With no one even knowing where the President is, it seems like this race is Stephenson's to win. Let's hope there's still time to save America...\", \"color_hex\": \"#5353b2\", \"secondary_color_hex\": \"#ababff\", \"is_active\": 1, \"image_url\": \"https://static.miraheze.org/mockelectionswiki/0/05/Gary_A._Stephenson_%283x4%29.png\", \"electoral_victory_message\": \"
Congratulations! You have won the 1988 election.
In spite of a hard-fought challenge from George Bush, you have held on to succeed Ronald Reagan.
You were always the favorite to win, but a lot could have gone wrong. On the political front, you can work a Democratic House to overturn the worst excesses of Reagan. Internationally, you can hopefully oversee a period of relaxed tension with the Soviet Union.
\", \"electoral_loss_message\": \"
Sorry. You have lost the 1988 election.
In spite of you being the favorite, things just never seemed to click once the real campaigning began.
Time will tell if Bush governs as a moderate, or a staunch conservative. Many Democrats feel that this election was yours to lose, and it seems unlikely that you will be welcome to run again in four years. Your term as Governor, however, runs through 1991.
\", \"no_electoral_majority_message\": \"
Congratulations! You have won the 1988 election.
Although the Electoral College was tied, the Democrats have won a solid majority in the House, and will elevate Michael Dukakis to the Presidency.
On the political front, you can work a Democratic House to overturn the worst excesses of Reagan. Internationally, you can hopefully oversee a period of relaxed tension with the Soviet Union.
\", \"description_as_running_mate\": \"'\", \"candidate_score\": 1.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 156, \"fields\": {\"first_name\": \"Edward\", \"last_name\": \"Johnston\", \"election\": 15, \"party\": \"Republican\", \"state\": \"Alabama\", \"priority\": 5, \"description\": \"'\", \"color_hex\": \"#FF0000\", \"secondary_color_hex\": \"#FFA0A0\", \"is_active\": 0, \"image_url\": \"https://static.miraheze.org/mockelectionswiki/3/3b/Portrait_of_Edward_Johnston_%283x4_crop%29.jpg\", \"electoral_victory_message\": \"'\", \"electoral_loss_message\": \"'\", \"no_electoral_majority_message\": \"'\", \"description_as_running_mate\": \"A loyal party man, Johnston has remained steadfast in his support for the administration. A candidate backed by corporate power, Johnston is a true Southern Republican. As a Representative he supported every Republican initiative, from automation to the invasion of Mexico.
Johnston has stayed on the ticket two times before and he's ready to go a third time. Alongside President Anderson, he has also conveniently remained missing. However, he has a home with the Enclave...just as President Anderson does.
For the President, Johnston has no issues to him. Johnston stumps for the conservative causes and woos the CEOs with southern charm when needed. Despite what the liberals like Stephenson or Blackwell say, Johnston will remain Vice President...or else..\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 159, \"fields\": {\"first_name\": \"Michael\", \"last_name\": \"Richards\", \"election\": 15, \"party\": \"Democratic\", \"state\": \"Tennessee\", \"priority\": 8, \"description\": \"'\", \"color_hex\": \"#0000FF\", \"secondary_color_hex\": \"#90C0FF\", \"is_active\": 0, \"image_url\": \"https://static.miraheze.org/mockelectionswiki/d/d1/Gov._Michael_Richards_%283x4%29.jpeg\", \"electoral_victory_message\": \"'\", \"electoral_loss_message\": \"'\", \"no_electoral_majority_message\": \"'\", \"description_as_running_mate\": \"The Governor of Tennessee, Michael Richards is a moderate. He governed with a knack for compromise and governed with both parties in mind. Popular in his own state, he's someone the party bosses are comfortable with...and that's why he was chosen.
Make no mistake though, Richards is a helluva vote-getter. He was dealing with a budget scandal and a popular opponent in his re-election bid yet still won with 66.5% of the popular vote. He'll help Stephenson mix with other voters who just won't jive with the union talk and anti-corporation conspiracies. He's a comfort pick, that's all.
2021DE (tooltips), 1996EOH (endings), and others i cant remember :( (pint-sized brain)";
HistHexcolour=["#d53838","#5353b2"];
HistName=[" Dillion E. Anderson"," Gary A. Stephenson", "-", "-"];
HistEV=[278,260, "-", "-"];
HistPV=["104,691,785","102,818,573", "-", "-"];
HistPVP=["50.3%","49.4%", "-", "-"];
nct_stuff.themes[nct_stuff.selectedTheme].coloring_title = "#404040";
nct_stuff.themes[nct_stuff.selectedTheme].coloring_window = "#878787";
document.getElementsByClassName("game_header")[0].style.backgroundColor = nct_stuff.themes[nct_stuff.selectedTheme].coloring_title;
$("#game_window")[0].style.backgroundColor = nct_stuff.themes[nct_stuff.selectedTheme].coloring_window;
$(".container")[0].style.backgroundColor = "#696969";
document.getElementById("header").src = "https://static.miraheze.org/mockelectionswiki/f/ff/Fallout_mod_banner.png";
document.body.background = "https://static.miraheze.org/mockelectionswiki/6/60/952B9326-DD59-46E3-A1E2-26CFA3960A13.png";
quotes = ["To the cynical, the idealist is the enemy..."]
customquote = quotes[Math.floor((Math.random() * quotes.length))]
document.getElementById("wittyquote").color = "white"
corrr=`\n
2076: The End.
`+customquote+``
campaignTrail_temp.achievements = {
"Tossed Out." : {
"image" : "https://i.imgur.com/kZifWKS.png",
"description" : "After winning, see the consequences of what you said."
},
"A House Divided" : {
"image" : "https://i.imgur.com/M8Lma2v.png",
"description" : "See the consequences of your actions."
},
"Ungrateful Little Bastards" : {
"image" : "https://i.imgur.com/mEJM7WC.png",
"description" : "Ally yourself with ungrateful radicals and win.",
},
"Turn Your Back Away" : {
"image" : "https://i.imgur.com/svmEzNM.png",
"description" : "Forget the people who got you where you are.",
}
}
campaignTrail_temp.modBoxTheme = {
"header_color" : "#757688",
"header_text_color" : "#FFFFFF",
"description_text_color" : "#FFFFFF",
"description_background_color" : "#A6A8C1",
"main_color" : "#8C91A4",
"secondary_color" : "#757688",
"ui_text_color": "#FFFFFF"
}
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: "New Plague", explanationText: "A highly contagious disease, entered the US in the early 50s."},
{searchString: "Plague", explanationText: "A highly contagious disease, entered the US in the early 50s."},
{searchString: "Bailey Gordon", explanationText: "The current Speaker of the House, a moderate. An inactive fool who won’t do much for America."},
{searchString: "Joshua Henderson", explanationText: "Senator from Michigan, very in the pocket of corporate America. Conservative. A dumbass."},
{searchString: "Michael Richards", explanationText: "The Governor of Tennessee, moderate. Not terribly exciting."},
{searchString: "Richards", explanationText: "The Governor of Tennessee, moderate. Not terribly exciting."},
{searchString: "Governor Richards", explanationText: "The Governor of Tennessee, moderate. Not terribly exciting."},
{searchString: "Governor Michael Richards", explanationText: "The Governor of Tennessee, moderate. Not terribly exciting."},
{searchString: "Appalachian Territory", explanationText: "One of the 13 US Commonwealths, it encompasses Ohio, Kentucky, Maryland, Tennessee, Virginia, and West Virginia."},
{searchString: "Evans", explanationText: "A real bastard, the definition of political and moral corruption. True scum."},
{searchString: "Governor Evans", explanationText: "A real bastard, the definition of political and moral corruption. True scum."},
{searchString: "Sino-American War", explanationText: "An extension of the Resource Wars, beginning in 2066 after the capture of Anchorage by the Chinese. Fought over the last resources Earth has."},
{searchString: "Hornwright", explanationText: "Hornwright Industries, a mining company big in the automation sector."},
{searchString: "Canada", explanationText: "Former neighbor to the north, now is a part of America. America began eroding Canada’s sovereignty in 2059 and finally annexed her in 2072 after the invasion of Alaska."},
{searchString: "Wan Yang", explanationText: "Chinese saboteur arrested over the Niagara Sabotage."},
{searchString: "HUAC", explanationText: "House Committee on Un-American Activities, formed in 1938, it was formed to investigate internal subversion."},
{searchString: "European Commonwealth", explanationText: " Formed in 2025, Encompassing the majority of Western Europe. Fall apart in 2060 after the end of the Euro-Arab War due to the oil wells running dry."},
{searchString: "European Civil War", explanationText: "Beginning in 2060, the European Commonwealth collapsed into bickering nationstates after the drying up of the Arab oil fields."},
{searchString: "United Nations", explanationText: "Formed in 1946, it united the world’s nations to work out their problems without war. The world decided to go back to war, though, and the UN dissolved in 2052."},
{searchString: "Sam Blackwell", explanationText: "Senator from West Virginia. Investigating the odd investment records of the Dept. of Agriculture. Supporter of the Free States Movement."},
{searchString: "Senator Blackwell", explanationText: "Senator from West Virginia. Investigating the odd investment records of the Dept. of Agriculture. Supporter of the Free States Movement."},
{searchString: "Senator Sam Blackwell", explanationText: "Senator from West Virginia. Investigating the odd investment records of the Dept. of Agriculture. Supporter of the Free States Movement."},
{searchString: "Blackwell", explanationText: "Senator from West Virginia. Investigating the odd investment records of the Dept. of Agriculture. Supporter of the Free States Movement."},
{searchString: "Rocky Mountain Arsenal", explanationText: "A toxic waste dump outside of Denver. It leaked in 2075, killing many in Denver."},
{searchString: "Tom Eckhart", explanationText: "Current Secretary of Agriculture. A no good idiot who's done nothing for anything."},
{searchString: "Mike Hampton", explanationText: "Senate Majority Whip, the darling of party bosses."},
{searchString: "John Conrad", explanationText: "Governor of Nebraska, social conservative and economic moderate. Connects with the farmers like no other."},
{searchString: "Sara Edwards", explanationText: "Senator from Washington, economic moderate and social liberal. Member of the Senate Foreign Relations Committee."},
{searchString: "Don Gaither", explanationText: "Your Secretary of Defense, a real go-getter. Always been a loyal member of the administration, trigger happy."},
{searchString: "Secretary Gaither", explanationText: "Your now former Secretary of Defense, a real go-getter. Always been a loyal member of the administration, trigger happy."},
{searchString: "Gaither", explanationText: "Your now former Secretary of Defense, a real go-getter. Always been a loyal member of the administration, trigger happy."},
{searchString: "Secretary Eckhart", explanationText: "Your Secretary of Agriculture. A loyal American conservative."},
{searchString: "USSA", explanationText: " The United States Space Administration, our connection to the stars. They put the first man in space in 1961 and landed a man on the moon in 1969."},
{searchString: "P.A.M.", explanationText: "The Predictive Analytic Machine. A machine invented in 2067, it predicts the future based on current data. Supposed to be reliable, not proven to be so."},
];
$("#game_start").click((event) => {
event.preventDefault();
musicMode()
})
// MUSIC MODE
musicMode = () => {
// Initialise custom music
$("#music_player")[0].children[0].style.display = "none"
$("#music_player")[0].children[1].style.display = "none"
document.getElementById("modLoadReveal").style.display = "none"
document.getElementById("modloaddiv").style.display = "none"
musicBox = document.getElementById("music_player")
musicBox.style.display = ""
var trackSel;
e = campaignTrail_temp
e.selectedSoundtrack = 0
toTime = (seconds) => {
var date = new Date(null);
date.setSeconds(seconds);
return date.toISOString().substr(11, 8);
}
generateTime = () => {
// Get the audio element
var audio = document.getElementById("campaigntrailmusic");
timeTracker = document.createElement("div");
timeTracker.style = `
text-align:left;
border-style:solid;
border-width:3px;
height:150px;
width:200px;
background-color:#999999;
float:right;
padding: 10px;
`
$("#trackSelParent")[0].prepend(timeTracker);
$("#trackSelParent")[0].prepend(document.createElement("br"));
// Create a new element to display the current position of the audio
var positionDisplay = document.createElement("gg");
positionDisplay.id = "position-display";
// Create a new slider element to change the time
var timeSlider = document.createElement("input");
timeSlider.type = "range";
timeSlider.min = 0;
timeSlider.max = 1;
timeSlider.step = 0.001;
timeSlider.value = 0;
timeSlider.style.width = "200px";
timeSlider.id = "time-slider";
var pausePlay = document.createElement("button");
pausePlay.id = "position-display";
pausePlay.innerHTML = "Pause"
pausePlay.style.width = "100%";
pausePlay.addEventListener("click", event => {
event.preventDefault();
updatePositionDisplay();
let audio = document.getElementById("campaigntrailmusic");
if (audio.paused) {
audio.play();
event.target.innerHTML = "Pause";
return;
}
audio.pause();
event.target.innerHTML = "Play";
return;
})
var volumeLabel = document.createElement("gg");
volumeLabel.id = "volume-label";
volumeLabel.innerHTML = " Volume: "
var volumeSlider = document.createElement("input");
volumeSlider.type = "range";
volumeSlider.min = 0;
volumeSlider.max = 1;
volumeSlider.step = 0.001;
volumeSlider.value = 0;
volumeSlider.style.width = "200px";
volumeSlider.id = "volume-slider";
volumeSlider.value = audio.volume;
timeTracker.appendChild(pausePlay);
timeTracker.appendChild(document.createElement("br"));
timeTracker.appendChild(document.createElement("br"));
timeTracker.appendChild(positionDisplay);
timeTracker.appendChild(timeSlider);
timeTracker.appendChild(volumeLabel);
timeTracker.appendChild(volumeSlider);
updatePositionDisplay();
//for (let i = 0; i < 10; i++)
//timeTracker.append(document.createElement("br"));
// Function to update the position display
function updatePositionDisplay() {
positionDisplay.innerHTML = "Time: " + toTime(audio.currentTime) + " ";
timeSlider.value = audio.duration ? audio.currentTime / audio.duration : 0;
}
// Function to change the time of the audio
function changeTime() {
positionDisplay.innerHTML = "Time: " + toTime(audio.currentTime) + " ";
audio.currentTime = timeSlider.value * audio.duration;
}
updateVolume = event => {
audio.volume = event.target.value;
}
// Update the position display and slider every second
setInterval(updatePositionDisplay, 1000);
// Listen for changes to the time slider and change the time of the audio
timeSlider.addEventListener("input", changeTime);
volumeSlider.addEventListener("input", updateVolume)
}
function newMusicPlayer() {
trackSel = document.createElement("div");
trackSel.id = "trackSelParent"
let z = `
`
z += `
`
//
for (i in soundtracks[e.selectedSoundtrack].tracklist) {
let a = soundtracks[e.selectedSoundtrack].tracklist[i]
let b = ` `
z += b
}
z += "
"
trackSel.innerHTML = z
// select correct song
musicBox.appendChild(trackSel);
Array.from(document.getElementById("trackSel").children).filter(f => {
return f.tagName == "LABEL"
}).map(f => f.children[0])[0].checked = true
// set soundtrack changer
soundtrackSelector = document.getElementById("selectSoundtrack")
soundtrackSelector.onchange = function() {
for (i in soundtracks) {
if (soundtracks[i].name == soundtrackSelector.value) {
e.selectedSoundtrack = i
break
}
}
document.getElementById("trackSelParent").remove()
newMusicPlayer()
}
var matches = document.querySelectorAll('.trackSelector');
for (match in matches) {
matches[match].onchange = function() {
audio = $("#campaigntrailmusic")[0];
audio.src = soundtracks[e.selectedSoundtrack].tracklist[this.value].url
audio.currentTime = 0
}
}
musicBox.children[2].loop = false
musicBox.children[2].src = soundtracks[e.selectedSoundtrack].tracklist[0].url
musicBox.children[2].onended = function() {
console.log("next track")
let selected = Number(document.querySelector('input[name="trackSelector"]:checked').value);
let newSel = clamp(selected + 1, soundtracks[e.selectedSoundtrack].tracklist.length - 1, 0)
let buttons = Array.from(document.getElementById("trackSel").children).filter(f => {
return f.tagName == "LABEL"
}).map(f => f.children[0])
//let selectedIndex = buttons.map(f=>f.children[0]).map(f=>f.checked)
buttons[newSel].click()
}
for (w = 0; w < 7; w++) {
document.getElementById("trackSelParent").appendChild(document.createElement("br"))
}
generateTime();
}
clamp = function(a, max, min, overflow = true) {
if (overflow) {
return a > max ? min : a < min ? max : a;
}
return a > max ? max : a < min ? min : a;
}
// Track list
var soundtracks = {
0: {
name: "97.3 Jet Set Radio",
tracklist: [
{
"name": "I Don’t Want to See Tomorrow - Nat King Cole",
"url": "https://files.catbox.moe/an073j.mp3"
},
{
"name": "So Doggone Lonesome - Johnny Cash",
"url": "https://files.catbox.moe/bzh8kj.mp3"
},
{
"name": "Maybe - The Ink Spots",
"url": "https://files.catbox.moe/zs96m3.mp3"
},
{
"name": "A Kiss to Build a Dream On - Louis Armstrong",
"url": "https://files.catbox.moe/jsyvlp.mp3"
},
{
"name": "Undecided - Ella Fitzgerald",
"url": "https://files.catbox.moe/78g9s7.mp3"
},
{
"name": "I Don't Want to Set the World on Fire - The Ink Spots",
"url": "https://files.catbox.moe/khyrnn.mp3"
},
{
"name": "Love Me As Though There Were No Tomorrow - Nat King Cole",
"url": "https://files.catbox.moe/478lsa.mp3"
},
{
"name": "Mr. Shorty - Marty Robbins",
"url": "https://files.catbox.moe/l131sf.mp3"
}
]
}
}
// Set up new music player
if (!hasMusic) {
newMusicPlayer()
hasMusic = true;
}
}