-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
1 lines (1 loc) · 1.2 KB
/
app.js
File metadata and controls
1 lines (1 loc) · 1.2 KB
1
!function(){function e(){document.getElementById("banner").style.display="inherit"}function n(){document.getElementById("banner").style.display="none"}function t(){document.getElementById("servicesDiv").style.display="inherit"}function i(){document.getElementById("servicesDiv").style.display="none"}function o(){document.getElementById("demosDiv").style.display="inherit"}function d(){document.getElementById("demosDiv").style.display="none"}function c(){document.getElementById("contactDiv").style.display="inherit"}function l(){document.getElementById("contactDiv").style.display="none"}document.getElementById("contact").addEventListener("click",function(){n(),i(),d(),c()}),document.getElementById("demos").addEventListener("click",function(){n(),i(),l(),o()}),document.getElementById("services").addEventListener("click",function(){n(),d(),l(),t()}),document.getElementById("home").addEventListener("click",function(){i(),d(),l(),e()}),window.onhashchange=function(){window.location.href.indexOf("contactDiv")>-1?(n(),i(),d(),c()):window.location.href.indexOf("demosDiv")>-1?(n(),i(),l(),o()):window.location.href.indexOf("servicesDiv")>-1?(n(),d(),l(),t()):window.location.href.indexOf("container")>-1&&(i(),d(),l(),e())}}();