Как сделать:
<script>
function videoStart (idBlock) { var videoContainer = document.querySelector(idBlock), video = videoContainer.querySelector("video"); var startTime = 0; video.currentTime = startTime; video.play(); } function videoClose (idBlock) { var videoContainer = document.querySelector(idBlock), video = videoContainer.querySelector("video"); video.pause(); };
</script>
<script>
window.onload = function () {
$('a').click(function(e){
var anch = this.hash.slice(0);
if(!anch || !anch[0] === "#") return;
e.preventDefault();
window.location.hash = '';
if(history.pushState) { history.pushState({}, null, window.location.pathname); }
});
}
</script>
<!-- Как в ZERO BLOCK сделать popup со своей кнопкой закрытия? -->
<!-- https://nolim.cc/zeropopup -->
<a href="#taycan" class="nolimpopupshow" style="display:none"></a>
<script>$(document).ready(function(){$("#rec352776183 .t396__filter").click(function(){videoClose("#rec352776183"),$("#rec352776183").fadeOut("slow"),$("html,body").css("overflow","visible"),$("#rec352776183").css("overflow","hidden")}),$('[href="#taycan"]').click(function(){videoStart("#rec352776183"),$("#rec352776183").fadeIn("slow"),$("html,body").css("overflow","hidden"),$("#rec352776183").css("overflow","auto"),"y"===window.lazy&&t_lazyload_update(),$(window).trigger("resize")}),$(".popupclose").click(function(){videoClose("#rec352776183"),$("#rec352776183").fadeOut("slow"),$("html,body").css("overflow","visible"),$("#rec352776183").css("overflow","hidden")})})</script><style>#rec352776183 .t396__filter,.popupclose{cursor:pointer}#rec352776183{display:none;position:fixed;left:0;top:0;right:0;bottom:0;z-index:9999}</style>