EstebanDLPT (Talk | contribs) |
EstebanDLPT (Talk | contribs) |
||
Line 43: | Line 43: | ||
</footer> | </footer> | ||
<script> | <script> | ||
+ | /*********************************************** Popup Javascript *************************************/ | ||
function openPopup(wrapperName, backgroundName) { | function openPopup(wrapperName, backgroundName) { | ||
(wrapperName).style.display="block"; | (wrapperName).style.display="block"; | ||
(backgroundName).style.display="block"; | (backgroundName).style.display="block"; | ||
+ | (wrapperName).style.opacity="1"; | ||
+ | (backgroundName).style.opacity="1"; | ||
$(".masthead").toggleClass("blurredBackground"); | $(".masthead").toggleClass("blurredBackground"); | ||
$("#teamMembers").toggleClass("blurredBackground"); | $("#teamMembers").toggleClass("blurredBackground"); | ||
Line 51: | Line 54: | ||
} | } | ||
function closePopup(wrapperName, backgroundName) { | function closePopup(wrapperName, backgroundName) { | ||
− | (wrapperName).style. | + | (wrapperName).style.opacity="0"; |
− | (backgroundName).style. | + | (backgroundName).style.opacity="0"; |
$(".masthead").toggleClass("blurredBackground"); | $(".masthead").toggleClass("blurredBackground"); | ||
$("#teamMembers").toggleClass("blurredBackground"); | $("#teamMembers").toggleClass("blurredBackground"); | ||
$(".footer").toggleClass("blurredBackground"); | $(".footer").toggleClass("blurredBackground"); | ||
+ | setTimeOut(function (){ | ||
+ | (wrapperName).style.display="none"; | ||
+ | (backgroundName).style.display="none"; | ||
+ | }, 500); | ||
} | } | ||
</script> | </script> |
Revision as of 19:53, 19 July 2018