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