RecReading=true campaignTrail_temp.credits = ""; credits = function() { credits = ["Credits", "CTA - Writing, some coding", "obummer - CYOA and endings", "RouteVenus - Coding, visuals, endings, additional writing ideas", "Tex, /u/rekkotekko - Coding endings and more", "Ettingermentum - Endings, playtesting, and additional writing ideas", "Verbluffen - Endings, advice and writing ideas", "Martha - Advice and writing ideas", "Danxv33 - CYOA advice", "QuoProQuid - Endings, playtesting, and additional writing ideas", "Endings", "Atom_Heart_Mother", "bonbishka", "Ebolaman", "River", "Decstar (for coding ending constructor)"] text = "CREDITS:\n\n" for (i in credits) { text += credits[i] + "\n" } alert(text) } campaignTrail_temp.election_json = JSON.parse("[{\"model\": \"campaign_trail.election\", \"pk\": 10, \"fields\": {\"year\": 1972, \"summary\": \"

As Richard Nixon takes command, he is peering over the edge of an abyss. With the war in Vietnam dragging on, rising inflation, and anarchy in the streets, it appears the United States is entering a period of terminal decline.

President Nixon believes he is the only man who can keep the United States as the world’s foremost superpower, and he needs a full eight years to do it. Horrified at what is perceived as the moral decay of the nation, every decision Nixon has made is geared towards ensuring his re-election. To gain a second term, Nixon must bring the Vietnam War to an honorable end and make the type of bold decisions which will enshrine him as one of the great men of history. Now more than ever.\", \"image_url\": \"https://i.imgur.com/RU3RsEA.jpg\", \"winning_electoral_vote_number\": 270, \"advisor_url\": \"https://i.imgur.com/4DwI72J.jpg\", \"recommended_reading\": \"

Main Sources

Nixonland: The Rise of a President and the Fracturing of America by Rick Perlstein
Nixon Agonistes: The Crisis of the Self-Made Man by Gary Wills
RN: The Memoirs of Richard Nixon by Richard Milhous Nixon
Nixon: The Triumph of a Politician 1962-1972 by Stephen Ambrose
Nixon tapes website
The Presidential Recordings of Richard M. Nixon

Nixon and Vietnam


Fatal Politics: The Nixon Tapes, the Vietnam War, and the Casualties of Reelection by Ken Hughes
Nixon's Vietnam War by Jeffrey P. Kimball
The Price of Power: Kissinger in the Nixon White House by Seymour Hersh
Nixon's Nuclear Specter by Jeffrey P. Kimball
Chasing Shadows: The Nixon Tapes, the Chennault Affair, and the Origins of Watergate by Ken Hughes
Vietnam & Other American Fantasies by H. Bruce Franklin
No Peace, No Honor: Nixon, Kissinger, and Betrayal in Vietnam by Larry Berman
Two, Three... Many Vietnams: A Radical Reader on the Wars in Southeast Asia and the Conflicts at Home by Ramparts magazine editors
My Lai 4: A Report on the Massacre and Its Aftermath by Seymour Hersh

Nixon and Cambodia


Sideshow: Kissinger, Nixon and the Destruction of Cambodia by William Shawcross
My War with the CIA: Cambodia's Fight for Survival by Norodom Sihanouk

Nixon and the Movement

The Turning: A History of Vietnam Veterans Against the War by Andrew E. Hunt
My Life So Far by Jane Fonda
Hanoi Jane: War, Sex, and Fantasies of Betrayal by Jerry Lembcke
Out Now!: A Participant's Account of the Movement in the United States Against the Vietnam War
Ravens in the Storm: A Personal History of the 1960s Anti-War Movement by Carl Oglesby
Whole World in an Uproar: Music, Rebellion, and Repression – 1955-1972 by Aaron Leonard

Nixon and Watergate


Nightmare: The Underside of the Nixon Years by J. Anthony Lukas
The Ends of Power by H.R. Haldeman
The Yankee and Cowboy War by Carl Oglesby
The American Police State: The Government Against the People by David Wise
All the President’s Men by Carl Bernstein and Bob Woodward
The Watergate Burglars: Nixon, Dirty Tricks and the CIA by Shane O'Sullivan
Nixon's War at Home: The FBI, Leftist Guerrillas, and the Origins of Counterterrorism by Daniel S. Chard
Scorpions' Dance: The President, the Spymaster, and Watergate by Jefferson Morley

Final Notes

Thanks for playing! I'm highly impressed if you read this far.
I sincerely hope you enjoyed this project, and maybe even found it educational about a turbulent period in American history. I find Richard Nixon to be an endlessly fascinating figure, so I enjoyed using this outlet to write about him and the times he lived in.

I quite literally could not have done it alone, so my endless thanks go to many people. Thanks to obummer for practically coding all of the CYOA parts of this himself, when I was hopelessly lost. Further thanks to RouteVenus, for a ton of help putting for the code of this entire project into working order, and for the amazing visuals for this mod. Additional thanks to Tex, for helping me with the code in so many different areas, but especially the million endings. Thanks again to ettingermentum for being a terrific playtester and helping write so many of these endings. Additionally thanks to verbluffen for advice on writing this project from the beginning, and spotting errors I wouldn't have otherwise noticed. Also, thanks to Danxv33, and Martha for providing excellent feedback from the start of this project through its conclusion. Thanks to Decstar for the ending constructor.

\", \"has_visits\": 1, \"no_electoral_majority_image\": \"/static/images/2012-no-majority.jpg\"}}]"); campaignTrail_temp.candidate_json = JSON.parse("[{\"model\": \"campaign_trail.candidate\", \"pk\": 91, \"fields\": {\"first_name\": \"'\", \"last_name\": \"The Enemy\", \"election\": 10, \"party\": \"Democrat\", \"state\": \"Washington DC\", \"priority\": 1, \"description\": \"''\", \"color_hex\": \"#6a6b6e\", \"secondary_color_hex\": \"#b3b4b5\", \"is_active\": 0, \"image_url\": \"/static/images/jimmy-carter-1976.jpg\", \"electoral_victory_message\": \"

Congratulations! You have won the 1976 Presidential Election.

Hopefully you can make good on your promises to clean up Washington and change the political and moral culture of the country. If you are successful, there is no reason you cannot run for reelection in 1980. Just be wary of any economic problems, or of some foreign policy crisis that could dent your popularity.

\", \"electoral_loss_message\": \"

Sorry, you have lost the 1976 Presidential Election.

As an outsider candidate, this was really your moment to make an impact on American politics and to win a national election. The beltway gossip already has it that Ted Kennedy is the frontrunner for the 1980 nomination. Perhaps you can run again for Governor of Georgia, or make an impact in some other way.

\", \"no_electoral_majority_message\": \"

Wow! You have won in a squeaker.

While the Electoral College ended in a tie, the Democrats have a huge advantage in the House of Representatives and are sure to elect you in that manner. Hopefully the closeness of this election doesn't undermine your promises to clean up Washington and unite the people of this country.

\", \"description_as_running_mate\": \"''\", \"candidate_score\": 1.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 92, \"fields\": {\"first_name\": \"Richard\", \"last_name\": \"Nixon\", \"election\": 10, \"party\": \"Republican\", \"state\": \"California\", \"priority\": 2, \"description\": \"

Dick Nixon is not a man of the arena, he is an animal. He rips, tears, and mauls his enemies, and his enemies are everywhere. They are the Franklins, the pin-striped New Dealer queers, the Kennedys, the left-wing columnists, the liberals. They always kick him down, but he always claws back, as a New Nixon, just for one more opportunity to shred them limb from limb. Voorhis, Hiss, Checkers, Ike’s heart attack, the Latin American mobs, that goddamned Kennedy, the Hughes loan, the dragon lady. Dick has overcome them all, and he’ll beat them again.

Since Whittier, Dick has known humiliation, channeling it into rage against his enemies, fueled by middle-class white Americans. The nonshouters, the nondemonstrators, the Silent Majority. Dick clawed to the top of the heap in ‘68, eeking out a pitiful winning margin of seven-tenths of a percent. Now, in his last campaign, Dick must win in a landslide, making the 1972 election a referendum on the shouters, the demonstrators, the enemy.

\", \"color_hex\": \"#c23636\", \"secondary_color_hex\": \"#fa6161\", \"is_active\": 1, \"image_url\": \"https://i.imgur.com/iDKBnG8.jpg\", \"electoral_victory_message\": \"

Congratulations! You have won the 1976 Presidential Election.

Hopefully you can continue to help the United States recover from the Watergate Scandal, the recent recession, and the debacle of Vietnam. In either case, this will be your final term as President. Speculation is sure to be intense on who will replace you. Will it be Ronald Reagan? Ted Kennedy? Or someone else entirely?

\", \"electoral_loss_message\": \"

Sorry, you have lost the 1976 Presidential Election.

Hopefully your opponent can make good on his promises to clean up Washington and change the political and moral culture of the country. Perhaps you can still play a role in 1980, or seek your old Congressional leadership positions. In any case, you can still take solace in the fact that you did the right thing by pardoning Nixon and moving the country beyond the Watergate episode.

\", \"no_electoral_majority_message\": \"

Sorry, you have lost the 1976 Presidential Election.

While the Electoral College ended in a tie, the Democrats have a huge advantage in the House of Representatives and are sure to elect your opponent in that manner. Perhaps you can still play a role in 1980, or seek your old Congressional leadership positions. In any case, you can still take solace in the fact that you did the right thing by pardoning Nixon and moving the country beyond the Watergate episode.

\", \"description_as_running_mate\": \"''\", \"candidate_score\": 1.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 93, \"fields\": {\"first_name\": \"'\", \"last_name\": \"Nuts and Kooks\", \"election\": 10, \"party\": \"American Independent Party\", \"state\": \"California\", \"priority\": 3, \"description\": \"''\", \"color_hex\": \"#db8223\", \"secondary_color_hex\": \"#d68036\", \"is_active\": 0, \"image_url\": \"''\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"''\", \"candidate_score\": 1.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 94, \"fields\": {\"first_name\": \"'\", \"last_name\": \"Flower Children\", \"election\": 10, \"party\": \"Independent\", \"state\": \"Alaska\", \"priority\": 4, \"description\": \"''\", \"color_hex\": \"#2ca853\", \"secondary_color_hex\": \"#5df08c\", \"is_active\": 0, \"image_url\": \"''\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"''\", \"candidate_score\": 1.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 95, \"fields\": {\"first_name\": \"Walter\", \"last_name\": \"Mondale\", \"election\": 10, \"party\": \"Democrat\", \"state\": \"Minnesota\", \"priority\": 5, \"description\": \"''\", \"color_hex\": \"#0000FF\", \"secondary_color_hex\": \"#90C0FF\", \"is_active\": 0, \"image_url\": \"/static/images/walter-mondale-1976.jpg\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

Walter Mondale is a Senator from Minnesota, a protege of Hubert H. Humphrey, and a key figure for mainstream Democrats. He would help unite the party after a competitive primary, and could help greatly in his home state. Mondale is also a good team player and very eager to help on the campaign.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 96, \"fields\": {\"first_name\": \"Frank\", \"last_name\": \"Church\", \"election\": 10, \"party\": \"Democrat\", \"state\": \"Idaho\", \"priority\": 6, \"description\": \"''\", \"color_hex\": \"#0000FF\", \"secondary_color_hex\": \"#90C0FF\", \"is_active\": 0, \"image_url\": \"/static/images/frank-church-1976.jpg\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

Frank Church is a Senator from Idaho, and one of Carter's rivals in the 1976 primaries. He is known for his opposition to the Vietnam War, and his investigations of America's intelligence bureaus. Both of these factors make him appealing to the anti-war bloc of the Democratic Party, and have made him a well-known, national figure in politics. He is also outgoing and charismatic, and could overshadow a more soft-spoken Carter.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 97, \"fields\": {\"first_name\": \"John\", \"last_name\": \"Glenn\", \"election\": 10, \"party\": \"Democrat\", \"state\": \"Ohio\", \"priority\": 7, \"description\": \"''\", \"color_hex\": \"#0000FF\", \"secondary_color_hex\": \"#90C0FF\", \"is_active\": 0, \"image_url\": \"/static/images/john-glenn-1976.jpg\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

John Glenn became the first American to orbit the earth during the Space Race of the 1960s. Now serving as a Senator from Ohio, he could be crucial to winning that state in November. Unfortunately, his keynote speech at the national convention has just landed with a thud. He is relatively new to the Senate and still has some outsider appeal, and does not have a long history with any particular wing of the party.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 98, \"fields\": {\"first_name\": \"Scoop\", \"last_name\": \"Jackson\", \"election\": 10, \"party\": \"Democrat\", \"state\": \"Washington\", \"priority\": 8, \"description\": \"''\", \"color_hex\": \"#0000FF\", \"secondary_color_hex\": \"#90C0FF\", \"is_active\": 0, \"image_url\": \"/static/images/scoop-jackson-1976.jpg\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

Henry \\\"Scoop\\\" Jackson is a Senator from Washington who also attempted to secure the 1976 Democratic nomination. He is a more traditional Democrat, favoring both high levels of social spending and a strong national defense policy. He is not popular with the left wing of the party, but would certainly help with moderates, and could swing his home state in the fall elections.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 99, \"fields\": {\"first_name\": \"Spiro\", \"last_name\": \"Agnew\", \"election\": 10, \"party\": \"Republican\", \"state\": \"Maryland\", \"priority\": 9, \"description\": \"''\", \"color_hex\": \"#FF0000\", \"secondary_color_hex\": \"#FFA0A0\", \"is_active\": 0, \"image_url\": \"https://i.imgur.com/vIicz3V.jpg\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

If the Silent Majority has a mouth, it's Spiro Agnew. Always shrieking from a podium about effete liberal snobs, Agnew excites the Republican Party faithful like no other. There's nothing behind his words, but Agnew is an intensely polarizing figure, fueling the divisions tearing the country apart. For Richard Nixon, that's all fine, as long as Agnew gets the base out to support their president.

Agnew has little else to offer, making his grandstanding far more important than it should be. Notoriously corrupt, the former Maryland Governor's closet is stuffed to the brim with skeletons. His uneasy relationship with the president threatens to spill over into the campaign, and if Agnew is taken off his leash, Nixon will not hesitate to kick him to the curb.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 100, \"fields\": {\"first_name\": \"Howard\", \"last_name\": \"Baker\", \"election\": 10, \"party\": \"Republican\", \"state\": \"Tennessee\", \"priority\": 10, \"description\": \"''\", \"color_hex\": \"#FF0000\", \"secondary_color_hex\": \"#FFA0A0\", \"is_active\": 0, \"image_url\": \"/static/images/howard-baker-1976.jpg\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

Howard Baker is a Senator from Tennessee who has served since 1967, and who was nearly appointed to the Supreme Court by Richard Nixon. The first Republican since Reconstruction to be elected to the Senate from his state, he is heavily involved in the passage of most legislation, and is a leading voice among Congressional Republicans. He has a moderate reputation, and is not a first choice of the Reaganites.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 101, \"fields\": {\"first_name\": \"John\", \"last_name\": \"Anderson\", \"election\": 10, \"party\": \"Republican\", \"state\": \"Illinois\", \"priority\": 11, \"description\": \"''\", \"color_hex\": \"#FF0000\", \"secondary_color_hex\": \"#FFA0A0\", \"is_active\": 0, \"image_url\": \"/static/images/john-anderson-1976.jpg\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

John Anderson is a long-time Congressman from Illinois who has conservative fiscal views, moderate social views, and was a strong critic of Richard Nixon during the Watergate hearings. His presence could help win moderates and could swing the state of Illinois. He could also help mitigate, at least somewhat, against Carter's outsider reputation. He would not do much to win back the conservative, Reaganite wing of the party.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 102, \"fields\": {\"first_name\": \"John\", \"last_name\": \"Connally\", \"election\": 10, \"party\": \"Republican\", \"state\": \"Texas\", \"priority\": 12, \"description\": \"''\", \"color_hex\": \"#FF0000\", \"secondary_color_hex\": \"#FFA0A0\", \"is_active\": 0, \"image_url\": \"/static/images/john-connally-1968.jpg\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

John Connally bolted from the Democrats to the Republicans in 1973. He was Governor of Texas for six years, and could help greatly in winning that state. He is strong on defense issues and conservative on social issues, and could even be seen as an olive branch to the Reaganites. He has good name-recognition, having been wounded in Kennedy's assassination.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 103, \"fields\": {\"first_name\": \"...\", \"last_name\": \"Other\", \"election\": 10, \"party\": \"Independent\", \"state\": \"Alaska\", \"priority\": 13, \"description\": \"''\", \"color_hex\": \"#00C100\", \"secondary_color_hex\": \"#A1FFA1\", \"is_active\": 0, \"image_url\": \"''\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"''\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 104, \"fields\": {\"first_name\": \"...\", \"last_name\": \"Other\", \"election\": 10, \"party\": \"Independent\", \"state\": \"Alaska\", \"priority\": 14, \"description\": \"''\", \"color_hex\": \"#FFFF00\", \"secondary_color_hex\": \"#FFFFC0\", \"is_active\": 0, \"image_url\": \"''\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"''\", \"candidate_score\": 0.0}}]"); campaignTrail_temp.running_mate_json = JSON.parse("[{\"model\": \"campaign_trail.running_mate\", \"pk\": 47, \"fields\": {\"candidate\": 70, \"running_mate\": 76}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 56, \"fields\": {\"candidate\": 79, \"running_mate\": 89}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 76, \"fields\": {\"candidate\": 116, \"running_mate\": 120}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 106, \"fields\": {\"candidate\": 155, \"running_mate\": 164}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 105, \"fields\": {\"candidate\": 154, \"running_mate\": 163}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 81, \"fields\": {\"candidate\": 118, \"running_mate\": 125}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 66, \"fields\": {\"candidate\": 93, \"running_mate\": 103}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 82, \"fields\": {\"candidate\": 119, \"running_mate\": 126}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 97, \"fields\": {\"candidate\": 145, \"running_mate\": 151}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 96, \"fields\": {\"candidate\": 144, \"running_mate\": 150}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 46, \"fields\": {\"candidate\": 69, \"running_mate\": 73}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 67, \"fields\": {\"candidate\": 94, \"running_mate\": 104}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 207, \"fields\": {\"candidate\": 302, \"running_mate\": 311}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 205, \"fields\": {\"candidate\": 301, \"running_mate\": 309}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 200, \"fields\": {\"candidate\": 300, \"running_mate\": 304}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 7, \"fields\": {\"candidate\": 18, \"running_mate\": 38}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 8, \"fields\": {\"candidate\": 19, \"running_mate\": 39}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 74, \"fields\": {\"candidate\": 107, \"running_mate\": 114}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 161, \"fields\": {\"candidate\": 203, \"running_mate\": 215}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 160, \"fields\": {\"candidate\": 202, \"running_mate\": 214}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 208, \"fields\": {\"candidate\": 303, \"running_mate\": 312}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 116, \"fields\": {\"candidate\": 168, \"running_mate\": 178}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 57, \"fields\": {\"candidate\": 80, \"running_mate\": 90}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 115, \"fields\": {\"candidate\": 167, \"running_mate\": 177}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 1, \"fields\": {\"candidate\": 16, \"running_mate\": 30}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 87, \"fields\": {\"candidate\": 131, \"running_mate\": 135}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 94, \"fields\": {\"candidate\": 143, \"running_mate\": 148}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 89, \"fields\": {\"candidate\": 132, \"running_mate\": 137}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 155, \"fields\": {\"candidate\": 201, \"running_mate\": 209}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 3, \"fields\": {\"candidate\": 17, \"running_mate\": 31}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 92, \"fields\": {\"candidate\": 142, \"running_mate\": 146}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 48, \"fields\": {\"candidate\": 77, \"running_mate\": 81}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 22, \"fields\": {\"candidate\": 20, \"running_mate\": 45}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 41, \"fields\": {\"candidate\": 25, \"running_mate\": 62}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 68, \"fields\": {\"candidate\": 105, \"running_mate\": 108}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 26, \"fields\": {\"candidate\": 21, \"running_mate\": 49}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 77, \"fields\": {\"candidate\": 117, \"running_mate\": 121}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 33, \"fields\": {\"candidate\": 23, \"running_mate\": 55}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 150, \"fields\": {\"candidate\": 200, \"running_mate\": 204}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 37, \"fields\": {\"candidate\": 24, \"running_mate\": 58}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 52, \"fields\": {\"candidate\": 78, \"running_mate\": 85}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 45, \"fields\": {\"candidate\": 68, \"running_mate\": 72}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 44, \"fields\": {\"candidate\": 67, \"running_mate\": 71}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 18, \"fields\": {\"candidate\": 36, \"running_mate\": 18}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 101, \"fields\": {\"candidate\": 153, \"running_mate\": 159}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 62, \"fields\": {\"candidate\": 92, \"running_mate\": 99}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 71, \"fields\": {\"candidate\": 106, \"running_mate\": 111}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 98, \"fields\": {\"candidate\": 152, \"running_mate\": 156}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 13, \"fields\": {\"candidate\": 29, \"running_mate\": 27}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 12, \"fields\": {\"candidate\": 27, \"running_mate\": 29}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 58, \"fields\": {\"candidate\": 91, \"running_mate\": 95}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 99, \"fields\": {\"candidate\": 152, \"running_mate\": 157}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 83, \"fields\": {\"candidate\": 67, \"running_mate\": 127}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 107, \"fields\": {\"candidate\": 165, \"running_mate\": 169}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 111, \"fields\": {\"candidate\": 166, \"running_mate\": 173}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 85, \"fields\": {\"candidate\": 68, \"running_mate\": 129}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 59, \"fields\": {\"candidate\": 91, \"running_mate\": 96}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 15, \"fields\": {\"candidate\": 29, \"running_mate\": 40}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 60, \"fields\": {\"candidate\": 91, \"running_mate\": 97}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 108, \"fields\": {\"candidate\": 165, \"running_mate\": 170}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 109, \"fields\": {\"candidate\": 165, \"running_mate\": 171}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 112, \"fields\": {\"candidate\": 166, \"running_mate\": 174}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 113, \"fields\": {\"candidate\": 166, \"running_mate\": 175}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 73, \"fields\": {\"candidate\": 106, \"running_mate\": 113}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 10, \"fields\": {\"candidate\": 27, \"running_mate\": 40}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 53, \"fields\": {\"candidate\": 78, \"running_mate\": 86}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 110, \"fields\": {\"candidate\": 165, \"running_mate\": 172}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 102, \"fields\": {\"candidate\": 153, \"running_mate\": 160}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 34, \"fields\": {\"candidate\": 23, \"running_mate\": 44}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 9, \"fields\": {\"candidate\": 27, \"running_mate\": 33}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 69, \"fields\": {\"candidate\": 105, \"running_mate\": 109}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 19, \"fields\": {\"candidate\": 36, \"running_mate\": 41}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 20, \"fields\": {\"candidate\": 36, \"running_mate\": 42}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 151, \"fields\": {\"candidate\": 200, \"running_mate\": 205}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 16, \"fields\": {\"candidate\": 29, \"running_mate\": 33}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 49, \"fields\": {\"candidate\": 77, \"running_mate\": 82}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 103, \"fields\": {\"candidate\": 153, \"running_mate\": 161}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 93, \"fields\": {\"candidate\": 142, \"running_mate\": 147}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 72, \"fields\": {\"candidate\": 106, \"running_mate\": 112}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 55, \"fields\": {\"candidate\": 78, \"running_mate\": 88}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 54, \"fields\": {\"candidate\": 78, \"running_mate\": 87}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 84, \"fields\": {\"candidate\": 67, \"running_mate\": 128}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 61, \"fields\": {\"candidate\": 91, \"running_mate\": 98}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 78, \"fields\": {\"candidate\": 117, \"running_mate\": 122}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 43, \"fields\": {\"candidate\": 25, \"running_mate\": 64}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 42, \"fields\": {\"candidate\": 25, \"running_mate\": 63}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 40, \"fields\": {\"candidate\": 24, \"running_mate\": 61}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 39, \"fields\": {\"candidate\": 24, \"running_mate\": 60}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 86, \"fields\": {\"candidate\": 68, \"running_mate\": 130}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 38, \"fields\": {\"candidate\": 24, \"running_mate\": 59}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 95, \"fields\": {\"candidate\": 143, \"running_mate\": 149}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 30, \"fields\": {\"candidate\": 21, \"running_mate\": 51}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 28, \"fields\": {\"candidate\": 21, \"running_mate\": 50}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 100, \"fields\": {\"candidate\": 152, \"running_mate\": 158}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 24, \"fields\": {\"candidate\": 20, \"running_mate\": 47}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 17, \"fields\": {\"candidate\": 29, \"running_mate\": 31}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 11, \"fields\": {\"candidate\": 27, \"running_mate\": 31}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 79, \"fields\": {\"candidate\": 117, \"running_mate\": 123}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 80, \"fields\": {\"candidate\": 117, \"running_mate\": 124}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 90, \"fields\": {\"candidate\": 132, \"running_mate\": 138}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 4, \"fields\": {\"candidate\": 17, \"running_mate\": 32}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 2, \"fields\": {\"candidate\": 16, \"running_mate\": 34}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 25, \"fields\": {\"candidate\": 20, \"running_mate\": 48}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 104, \"fields\": {\"candidate\": 153, \"running_mate\": 162}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 23, \"fields\": {\"candidate\": 20, \"running_mate\": 46}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 36, \"fields\": {\"candidate\": 23, \"running_mate\": 57}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 88, \"fields\": {\"candidate\": 131, \"running_mate\": 136}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 70, \"fields\": {\"candidate\": 105, \"running_mate\": 110}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 152, \"fields\": {\"candidate\": 200, \"running_mate\": 206}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 153, \"fields\": {\"candidate\": 200, \"running_mate\": 207}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 154, \"fields\": {\"candidate\": 200, \"running_mate\": 208}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 157, \"fields\": {\"candidate\": 201, \"running_mate\": 211}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 6, \"fields\": {\"candidate\": 17, \"running_mate\": 37}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 5, \"fields\": {\"candidate\": 17, \"running_mate\": 33}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 35, \"fields\": {\"candidate\": 23, \"running_mate\": 56}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 91, \"fields\": {\"candidate\": 132, \"running_mate\": 139}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 21, \"fields\": {\"candidate\": 36, \"running_mate\": 43}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 50, \"fields\": {\"candidate\": 77, \"running_mate\": 83}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 32, \"fields\": {\"candidate\": 21, \"running_mate\": 53}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 31, \"fields\": {\"candidate\": 21, \"running_mate\": 52}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 158, \"fields\": {\"candidate\": 201, \"running_mate\": 212}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 156, \"fields\": {\"candidate\": 201, \"running_mate\": 210}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 75, \"fields\": {\"candidate\": 106, \"running_mate\": 115}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 51, \"fields\": {\"candidate\": 77, \"running_mate\": 84}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 201, \"fields\": {\"candidate\": 300, \"running_mate\": 305}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 210, \"fields\": {\"candidate\": 300, \"running_mate\": 314}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 209, \"fields\": {\"candidate\": 300, \"running_mate\": 313}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 202, \"fields\": {\"candidate\": 300, \"running_mate\": 306}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 203, \"fields\": {\"candidate\": 300, \"running_mate\": 307}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 204, \"fields\": {\"candidate\": 300, \"running_mate\": 308}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 206, \"fields\": {\"candidate\": 301, \"running_mate\": 310}}]"); campaignTrail_temp.opponents_default_json = JSON.parse("[{\"election\": 10, \"candidates\": [93, 94, 91, 92]}]"); campaignTrail_temp.opponents_weighted_json = JSON.parse("[{\"election\": 10, \"candidates\": [91, 92, 93]}]"); campaignTrail_temp.difficulty_level_json = JSON.parse("[{\"model\": \"campaign_trail.difficulty_level\", \"pk\": 1, \"fields\": {\"name\": \"Easy\", \"multiplier\": 1.1}}, {\"model\": \"campaign_trail.difficulty_level\", \"pk\": 3, \"fields\": {\"name\": \"Normal\", \"multiplier\": 0.97}}, {\"model\": \"campaign_trail.difficulty_level\", \"pk\": 4, \"fields\": {\"name\": \"Hard\", \"multiplier\": 0.95}}, {\"model\": \"campaign_trail.difficulty_level\", \"pk\": 5, \"fields\": {\"name\": \"Impossible\", \"multiplier\": 0.9}}]"); campaignTrail_temp.global_parameter_json = JSON.parse("[{\"model\": \"campaign_trail.global_parameter\", \"pk\": 1, \"fields\": {\"vote_variable\": 1.125, \"max_swing\": 0.12, \"start_point\": 0.94, \"candidate_issue_weight\": 10.0, \"running_mate_issue_weight\": 3.0, \"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\"}}]"); campaignTrail_temp.candidate_dropout_json = JSON.parse("[{\"model\": \"campaign_trail.candidate_dropout\", \"pk\": 1, \"fields\": {\"candidate\": 36, \"affected_candidate\": 18, \"probability\": 1.0}}]"); campaignTrail_temp.temp_election_list = [{"id": 10, "year": 1976, "is_premium": 0, "display_year": "1972Nixon"}]; campaignTrail_temp.show_premium = true; campaignTrail_temp.premier_ab_test_version = -1; const gameThemes = { "Once More with Feeling" : function() { nct_stuff.themes[nct_stuff.selectedTheme].coloring_window = "#A36A6A" nct_stuff.themes[nct_stuff.selectedTheme].coloring_title = "#683838" $(".container")[0].style.backgroundColor = "#561414" $("#game_window")[0].style.backgroundImage = "url(https://i.imgur.com/MlrRBsf.png)" $("#game_window")[0].style.borderColor = "#C9C9C9" $("#game_window")[0].style.coloring_window = "#C1834D" document.body.background = "https://i.imgur.com/ntNyjE5.png" document.getElementById("header").src = "https://i.imgur.com/wdPFbFQ.png" document.getElementById("wittyquote").color = "red" nct_stuff.themes[nct_stuff.selectedTheme].text_col = "black" document.getElementsByClassName("container")[0].style="background-image: url('https://i.imgur.com/gwBCwAt.png')" quotes = [""] customquote = quotes[Math.floor((Math.random() * quotes.length))] corrr = `\n

The Campaign Trail

` + customquote + `` }, "WOODSTEIN!" : function() { nct_stuff.themes[nct_stuff.selectedTheme].coloring_window = "#57606B" nct_stuff.themes[nct_stuff.selectedTheme].coloring_title = "#97663B" $(".container")[0].style.backgroundColor = "#988370" $("#game_window")[0].style.backgroundImage = "url(https://i.imgur.com/iW8MBwl.png)" $("#game_window")[0].style.borderColor = "#514A43" $("#game_window")[0].style.coloring_window = "#C1834D" document.body.background = "https://i.imgur.com/u0lvRcq.png" document.getElementById("header").src = "https://i.imgur.com/6qgkOKU.png" document.getElementById("wittyquote").color = "red" nct_stuff.themes[nct_stuff.selectedTheme].text_col = "black" document.getElementsByClassName("container")[0].style="background-image: url('https://i.imgur.com/qqn4soK.jpg')" quotes = [""] customquote = quotes[Math.floor((Math.random() * quotes.length))] corrr = `\n

The Campaign Trail

` + customquote + `` }, "Winners and Losers" : function() { nct_stuff.themes[nct_stuff.selectedTheme].coloring_window = "#57606B" nct_stuff.themes[nct_stuff.selectedTheme].coloring_title = "#5C5969" $(".container")[0].style.backgroundColor = "#1E1D22" $("#game_window")[0].style.backgroundImage = "url(https://i.imgur.com/2GZk1LF.png)" $("#game_window")[0].style.borderColor = "#0E0B16" $("#game_window")[0].style.coloring_window = "#505155" document.body.background = "https://i.imgur.com/zRujMRN.png" document.getElementById("header").src = "https://i.imgur.com/AqimYZN.png" document.getElementById("wittyquote").color = "red" nct_stuff.themes[nct_stuff.selectedTheme].text_col = "white" document.getElementsByClassName("container")[0].style="background-image: url('https://i.imgur.com/OAFLxi9.png')" quotes = [""] customquote = quotes[Math.floor((Math.random() * quotes.length))] corrr = `\n

The Campaign Trail

` + customquote + `` }, "Tonight's Broadcast (Possible Epilepsy Warning)" : function() { nct_stuff.themes[nct_stuff.selectedTheme].coloring_window = "#04020F" nct_stuff.themes[nct_stuff.selectedTheme].coloring_title = "#04020F" $(".container")[0].style.backgroundColor = "#04020F" $("#game_window")[0].style.backgroundImage = "url(https://i.imgur.com/Xj0lFYc.png)" $("#game_window")[0].style.borderColor = "#C8D1F9" $("#game_window")[0].style.coloring_window = "#390654" document.body.background = "https://jetsimon.com/cts-media/public/1972Nixon_init_0.gif" document.getElementById("header").src = "https://i.imgur.com/yOFEMFA.png" document.getElementById("wittyquote").color = "red" nct_stuff.themes[nct_stuff.selectedTheme].text_col = "white" document.getElementsByClassName("container")[0].style="background-image: url('https://i.imgur.com/dxZDZ4F.png')" quotes = [""] customquote = quotes[Math.floor((Math.random() * quotes.length))] corrr = `\n

The Campaign Trail

` + customquote + `` }, "Come Home!" : function() { nct_stuff.themes[nct_stuff.selectedTheme].coloring_window = "#87C3FF" nct_stuff.themes[nct_stuff.selectedTheme].coloring_title = "#407EBD" $(".container")[0].style.backgroundColor = "#2C5782" $("#game_window")[0].style.backgroundImage = "url(https://i.imgur.com/TzOoFdE.png)" $("#game_window")[0].style.borderColor = "#E8F3FF" $("#game_window")[0].style.coloring_window = "#2C5782" document.body.background = "https://i.imgur.com/uvskb67.png" document.getElementById("header").src = "https://i.imgur.com/OkjhSfR.png" document.getElementById("wittyquote").color = "red" nct_stuff.themes[nct_stuff.selectedTheme].text_col = "black" document.getElementsByClassName("container")[0].style="background-image: url('https://i.imgur.com/WD5O7U5.png')" quotes = [""] customquote = quotes[Math.floor((Math.random() * quotes.length))] corrr = `\n

The Campaign Trail

` + customquote + `` }, "Follow the Money" : function() { nct_stuff.themes[nct_stuff.selectedTheme].coloring_window = "#E5E5E5" nct_stuff.themes[nct_stuff.selectedTheme].coloring_title = "#5B5B5B" $(".container")[0].style.backgroundColor = "#C9C9C9" $("#game_window")[0].style.backgroundImage = "url(https://i.imgur.com/07zHxyG.png)" $("#game_window")[0].style.borderColor = "#DBDBDB" $("#game_window")[0].style.coloring_window = "#C9C9C9" document.body.background = "https://i.imgur.com/C8S2lJh.png" document.getElementById("header").src = "https://i.imgur.com/49ytOQ0.png" document.getElementById("wittyquote").color = "red" nct_stuff.themes[nct_stuff.selectedTheme].text_col = "black" document.getElementsByClassName("container")[0].style="background-image: url('https://i.imgur.com/5QlYpu4.png')" quotes = [""] customquote = quotes[Math.floor((Math.random() * quotes.length))] corrr = `\n

The Campaign Trail

` + customquote + `` } } // Replace old theme picker const themePicker = document.getElementById("themePicker"); const newThemePicker = document.createElement("select"); newThemePicker.id = "themePicker"; newThemePicker.addEventListener("change", gameThemePicked); let newInnerHTML = ""; for(theme in gameThemes) { newInnerHTML += ``; } newThemePicker.innerHTML = newInnerHTML; themePicker.replaceWith(newThemePicker); function gameThemePicked() { gameThemes[newThemePicker.value](); } gameThemePicked(); HistHexcolour=["#c23636","#1072a1","#db8223","#2ca853"]; HistName=[" Richard Nixon"," George McGovern"," John Schmitz"," Dr. Spock"]; HistEV=[520,17,0,0]; HistPV=["47,168,710","29,173,222","1,100,896","301,202"]; HistPVP=["60.7%","37.5%","1.4%","0.3%"];