php js css php js css

Changes

Changes to Page: tropic

17859
Today 12:07am
Vendeville, Mathieu
Modified page
Can't Undo: The page /tropic/ does not currently exist, it may have been moved or deleted. In order to undo this change, you first need to restore the page
17865
Today 12:07am
Vendeville, Mathieu
Modified page
Can't Undo: The page /tropic/ does not currently exist, it may have been moved or deleted. In order to undo this change, you first need to restore the page
Content:
Id:
/tropic/
/tropic/
Title:
Site3
Site3
Content Additional:
{}
{}
Css:
.videoContain {
position: relative;
height:100%;
overflow: hidden;
color:white;
}
video {
position: absolute;
top: -200px;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
transform: translateX(-50%) translateY(0%);
background: black url('//demosthenes.info/assets/images/polina.jpg') no-repeat;
background-size: cover;
transition: 1s opacity;
}
.stopfade {
opacity: .9;
}

.pause {
display: inline-block;
padding:10px;
background: rgba(0,0,0,0.8);
}

.pause:hover {
background: rgba(0,0,0,0.5);

}



@media screen and (max-device-width: 800px) {
.videoContain { background: url(/media/website_pages/tropic/about-us/video-test/thumbvid.jpg) #000 no-repeat center center; background-size: cover; }
#bgvid { display: none; }
}
.videoContain {
position: relative;
height:100%;
overflow: hidden;
color:white;
}
video {
position: absolute;
top: -200px;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
transform: translateX(-50%) translateY(0%);
background: black url('//demosthenes.info/assets/images/polina.jpg') no-repeat;
background-size: cover;
transition: 1s opacity;
}
.stopfade {
opacity: .9;
}

.pause {
display: inline-block;
padding:10px;
background: rgba(0,0,0,0.8);
}

.pause:hover {
background: rgba(0,0,0,0.5);

}



@media screen and (max-device-width: 800px) {
.videoContain { background: url(/media/website_pages/tropic/about-us/video-test/thumbvid.jpg) #000 no-repeat center center; background-size: cover; }
#bgvid { display: none; }
}
Js:
var vid = document.getElementById("bgvid");
var pauseButton = document.querySelector(".videoContain .pause");

if (window.matchMedia('(prefers-reduced-motion)').matches) {
vid.removeAttribute("autoplay");
vid.pause();
pauseButton.innerHTML = "Resume video";
}

function vidFade() {
vid.classList.add("stopfade");
}

vid.addEventListener('ended', function()
{
// only functional if "loop" is removed
vid.pause();
// to capture IE10
vidFade();
});


pauseButton.addEventListener("click", function() {
vid.classList.toggle("stopfade");
if (vid.paused) {
vid.play();
pauseButton.innerHTML = "Pause video";
} else {
vid.pause();
pauseButton.innerHTML = "Resume video";
}
})
var vid = document.getElementById("bgvid");
var pauseButton = document.querySelector(".videoContain .pause");

if (window.matchMedia('(prefers-reduced-motion)').matches) {
vid.removeAttribute("autoplay");
vid.pause();
pauseButton.innerHTML = "Resume video";
}

function vidFade() {
vid.classList.add("stopfade");
}

vid.addEventListener('ended', function()
{
// only functional if "loop" is removed
vid.pause();
// to capture IE10
vidFade();
});


pauseButton.addEventListener("click", function() {
vid.classList.toggle("stopfade");
if (vid.paused) {
vid.play();
pauseButton.innerHTML = "Pause video";
} else {
vid.pause();
pauseButton.innerHTML = "Resume video";
}
})
Php Source:

															

														
Accept Child 404:
0
0
Search Title:

															

														
Search Title Prefix:

															

														
Search Description:

															

														
Search Keywords:

															

														
Search Noindex:
0
0
Search Nofollow:
0
0
Search Change Frequency:

															

														
Search Priority:
0.5
0.5
Search Canonical Override:

															

														
Is Offline:
0
0
Is Hidden In Navigation:
0
0
Is Hidden In Sitemap:
0
0
Security New:
0
0
Security Contact Mode:

															

														
Security Contact Squeeze Viewlimit:

															

														
Security Contact Require Login:

															

														
Security Contact Groups:

															

														
Security Condition Id:

															

														
Security Heading:

															

														
Security Description:

															

														
Other Fields:

															

														
Order:
2
2
Parent Id:
/
/
Contact Id:
0
0
Design Id:
6
6
Header Functions:

															

														
Header Category:

															

														
Is Domain:
0
0