MCPcopy Create free account
hub / github.com/Milkyroad/SCiPNET / cancelButtonFun

Function cancelButtonFun

public/src/js/military.js:496–510  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

494}
495
496function cancelButtonFun() {
497 $("#nuclearCancel").on('click.cancel', function () {
498 // TODO: add sound effect
499 addMiInterval()
500 $(".nuclearHide").fadeOut(500)
501 $("#hiddenDash").fadeOut(500, function () {
502 $(".showDash").fadeIn(500)
503 })
504 $("#nuclearText").text("NUCLEAR WARHEAD DEPLOYMENT")
505 $(".nuclearButton:not(#nuclearCancel)").attr("id", "")
506 addPowerGraph()
507 deploymentButtonFun()
508 resetMarkers()
509 })
510}
511
512cancelButtonFun()
513deploymentButtonFun()

Callers 1

military.jsFile · 0.85

Calls 4

addPowerGraphFunction · 0.85
deploymentButtonFunFunction · 0.85
resetMarkersFunction · 0.85
$Function · 0.50

Tested by

no test coverage detected