diff --git a/src/Schedule/Schedule.js b/src/Schedule/Schedule.js index 49e1201..5b57ab0 100644 --- a/src/Schedule/Schedule.js +++ b/src/Schedule/Schedule.js @@ -44,9 +44,10 @@ export default function Schedule () { document.getElementById('closing').style.visibility = 'hidden' } - window.onload = initfunc + window.onload = initfunc() - function showzynga () { + function showzynga (e) { + e.preventDefault() if (zynga === 0) { document.getElementById('zynga').style.visibility = 'hidden' zynga = 1 @@ -55,7 +56,8 @@ export default function Schedule () { zynga = 0 } } - function showbloomberg () { + function showbloomberg (e) { + e.preventDefault() if (bloomberg === 0) { document.getElementById('bloomberg').style.visibility = 'hidden' bloomberg = 1 @@ -64,7 +66,8 @@ export default function Schedule () { bloomberg = 0 } } - function showintrovertmsft () { + function showintrovertmsft (e) { + e.preventDefault() if (introvertsmsft === 0) { document.getElementById('introvertmsft').style.visibility = 'hidden' introvertsmsft = 1 @@ -73,7 +76,8 @@ export default function Schedule () { introvertsmsft = 0 } } - function showreactandrails () { + function showreactandrails (e) { + e.preventDefault() if (reactandrails === 0) { document.getElementById('reactandrails').style.visibility = 'hidden' reactandrails = 1 @@ -82,7 +86,8 @@ export default function Schedule () { reactandrails = 0 } } - function showechoar () { + function showechoar (e) { + e.preventDefault() if (echoar === 0) { document.getElementById('echoar').style.visibility = 'hidden' echoar = 1 @@ -91,7 +96,8 @@ export default function Schedule () { echoar = 0 } } - function showreplit () { + function showreplit (e) { + e.preventDefault() if (replit === 0) { document.getElementById('replit').style.visibility = 'hidden' replit = 1 @@ -100,7 +106,8 @@ export default function Schedule () { replit = 0 } } - function showgcloud () { + function showgcloud (e) { + e.preventDefault() if (gcloud === 0) { document.getElementById('gcloud').style.visibility = 'hidden' gcloud = 1 @@ -109,7 +116,8 @@ export default function Schedule () { gcloud = 0 } } - function showmsftpitch () { + function showmsftpitch (e) { + e.preventDefault() if (storypitchmsft === 0) { document.getElementById('storypitchmsft').style.visibility = 'hidden' storypitchmsft = 1 @@ -118,7 +126,8 @@ export default function Schedule () { storypitchmsft = 0 } } - function showteamformation () { + function showteamformation (e) { + e.preventDefault() if (teamformation === 0) { document.getElementById('teamformation').style.visibility = 'hidden' teamformation = 1 @@ -127,7 +136,8 @@ export default function Schedule () { teamformation = 0 } } - function showopeningceremony () { + function showopeningceremony (e) { + e.preventDefault() if (openingceremony === 0) { document.getElementById('openingceremony').style.visibility = 'hidden' openingceremony = 1 @@ -136,7 +146,8 @@ export default function Schedule () { openingceremony = 0 } } - function shownetworkingsession () { + function shownetworkingsession (e) { + e.preventDefault() if (networkingsession === 0) { document.getElementById('networkingsession').style.visibility = 'hidden' networkingsession = 1 @@ -145,7 +156,8 @@ export default function Schedule () { networkingsession = 0 } } - function showwerewolf () { + function showwerewolf (e) { + e.preventDefault() if (werewolf === 0) { document.getElementById('werewolf').style.visibility = 'hidden' werewolf = 1 @@ -154,7 +166,8 @@ export default function Schedule () { werewolf = 0 } } - function showcapturetheflag () { + function showcapturetheflag (e) { + e.preventDefault() if (capturetheflag === 0) { document.getElementById('capturetheflag').style.visibility = 'hidden' capturetheflag = 1 @@ -163,7 +176,8 @@ export default function Schedule () { capturetheflag = 0 } } - function showbobross () { + function showbobross (e) { + e.preventDefault() if (bobross === 0) { document.getElementById('bobross').style.visibility = 'hidden' bobross = 1 @@ -172,7 +186,8 @@ export default function Schedule () { bobross = 0 } } - function showexpoandjudging () { + function showexpoandjudging (e) { + e.preventDefault() if (expoandjudging === 0) { document.getElementById('expoandjudging').style.visibility = 'hidden' expoandjudging = 1 @@ -181,7 +196,8 @@ export default function Schedule () { expoandjudging = 0 } } - function showyoga () { + function showyoga (e) { + e.preventDefault() if (yoga === 0) { document.getElementById('yoga').style.visibility = 'hidden' yoga = 1 @@ -190,7 +206,8 @@ export default function Schedule () { yoga = 0 } } - function showclosing () { + function showclosing (e) { + e.preventDefault() if (closing === 0) { document.getElementById('closing').style.visibility = 'hidden' closing = 1 @@ -206,22 +223,22 @@ export default function Schedule () {