MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/sb_web/b1536/advancedfunctions.co/helpwebsite/
File Upload :
Current < : //hermes/sb_web/b1536/advancedfunctions.co/helpwebsite/homepageDisplay.js

var panels=['homeScreenPanel','homeScreenCircle','homeScreenLogo','testimonialLabelBackground','testimonialLabel','testimonyPanel1','testimonyPanelWithText1','testimonyPanel2','testimonyPanelWithText2','testimonyPanel3','testimonyPanelWithText3','testimonyPanel4','testimonyPanelWithText4','testimonialPanelBackground','testimonialPanelOverlay1','testimonialPanelOverlay2','testimonialPanelOverlay3','testimonialPanelOverlay4','aboutUsLabelBackground','aboutUsLabel','aboutUsPanelBackground','aboutUsPanel','aboutUsTextAndPanel','missionLabelBackground','missionLabel','missionPanelBackground','missionPanel','missionTextAndPanel','patientDisplayOnHomeScreen','videoPanel','loginOptions'];



function displayPanel(panelToDisplay){

document.getElementById('videoPlayer').muted=true;

for(var i=0;i<panels.length;i++){
if(panels[i].indexOf(panelToDisplay)!=-1){
if(panels[i]=='homeScreenCircle'||panels[i]=='homeScreenPanel'){
document.getElementById(panels[i]).style.display='block';}else{
fadeIn(panels[i]);}
}else{
document.getElementById(panels[i]).style.display='none';
}
}

}

function displayTestimony(panel){
var testimonyPanelBackground=["linear-gradient(to bottom,rgba(144,117,120,0.8),rgba(207,165,171,0.8),rgba(144,117,120,0.8))","linear-gradient(to bottom,rgba(144,121,102,0.8),rgba(220,183,152,0.8),rgba(144,121,102,0.8))","linear-gradient(to bottom,rgba(26,113,141,0.8),rgba(27,194,249,0.8),rgba(26,113,141,0.8))","linear-gradient(to bottom,rgba(144,121,102,0.8),rgba(220,183,152,0.8),rgba(144,121,102,0.8))"];
for(var i=1;i<5;i++){
if(panel==i){
fadeIn('testimonyPanel'+i);
fadeIn('testimonyPanelWithText'+i);
document.getElementById('testimonialPanelOverlay'+i).style.backgroundImage=testimonyPanelBackground[i-1];
}else{
document.getElementById('testimonyPanel'+i).style.display='none';
document.getElementById('testimonyPanelWithText'+i).style.display='none';
document.getElementById('testimonialPanelOverlay'+i).style.backgroundImage='';
}

}

}

function fadeIn(elementId){

document.getElementById(elementId).style.animationName='appear';
document.getElementById(elementId).style.animationDuration='1s';
document.getElementById(elementId).style.animationIterationCount='1';
document.getElementById(elementId).style.display='block';
}