|
NGÀY
|
Ban lãnh đạo
|
SÁNG
|
|
window.wpbCustomElement = 1;
(function() {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, ‘woocommerce-js’);
document.body.className = c;
})();
if (typeof revslider_showDoubleJqueryError === “undefined”) {
function revslider_showDoubleJqueryError(sliderID) {
console.log(“You have some jquery.js library include that comes after the Slider Revolution files js inclusion.”);
console.log(“To fix this, you can:”);
console.log(“1. Set ‘Module General Options’ -> ‘Advanced’ -> ‘jQuery & OutPut Filters’ -> ‘Put JS to Body’ to on”);
console.log(“2. Find the double jQuery.js inclusion and remove it”);
return “Double Included jQuery Library”;
}
}
#rev_slider_1_1_wrapper .uranus.tparrows {
width: 50px;
height: 50px;
background: rgba(255, 255, 255, 0)
}
#rev_slider_1_1_wrapper .uranus.tparrows:before {
width: 50px;
height: 50px;
line-height: 50px;
font-size: 40px;
transition: all 0.3s;
-webkit-transition: all 0.3s
}
#rev_slider_1_1_wrapper .uranus.tparrows.rs-touchhover:before {
opacity: 0.75
}
/*
*/
/*
*/
/*
*/
var tpj = jQuery;
var revapi1;
if (window.RS_MODULES === undefined) window.RS_MODULES = {};
if (RS_MODULES.modules === undefined) RS_MODULES.modules = {};
RS_MODULES.modules[“revslider11”] = {
once: RS_MODULES.modules[“revslider11”] !== undefined ? RS_MODULES.modules[“revslider11”].once : undefined,
init: function() {
window.revapi1 = window.revapi1 === undefined || window.revapi1 === null || window.revapi1.length === 0 ? document.getElementById(“rev_slider_1_1”) : window.revapi1;
if (window.revapi1 === null || window.revapi1 === undefined || window.revapi1.length == 0) {
window.revapi1initTry = window.revapi1initTry === undefined ? 0 : window.revapi1initTry + 1;
if (window.revapi1initTry < 20) requestAnimationFrame(function() {
RS_MODULES.modules["revslider11"].init()
});
return;
}
window.revapi1 = jQuery(window.revapi1);
if (window.revapi1.revolution == undefined) {
revslider_showDoubleJqueryError("rev_slider_1_1");
return;
}
revapi1.revolutionInit({
revapi: "revapi1",
sliderLayout: "fullscreen",
visibilityLevels: "1240,1024,778,480",
gridwidth: "1240,1024,778,480",
gridheight: "868,768,960,720",
lazyType: "smart",
perspectiveType: "local",
responsiveLevels: "1240,1024,778,480",
disableForceFullWidth: true,
progressBar: {
disableProgressBar: true
},
navigation: {
mouseScrollNavigation: false,
onHoverStop: false,
touch: {
touchenabled: true
},
arrows: {
enable: true,
style: "uranus",
hide_onmobile: true,
hide_under: 992,
left: {},
right: {}
}
},
parallax: {
levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50, 47, 48, 49, 50, 51, 55],
type: "mouse",
origo: "slidercenter",
speed: 2000,
disable_onmobile: true
},
fanim: {
in : {
"o": 0
},
out: {
"a": false
},
speed: 1500
},
viewPort: {
global: true,
globalDist: "-200px",
enable: false,
visible_area: "20%"
},
fallbacks: {
allowHTML5AutoPlayOnAndroid: true
},
});
}
} // End of RevInitScript
if (window.RS_MODULES.checkMinimal !== undefined) {
window.RS_MODULES.checkMinimal();
};
.fancybox-content {
padding: 5px !important;
}
#video-popup p {
margin: 0 !important;
}
(function($) {
$(document).ready(function() {
//$(‘.fancybox’).fancybox();
});
})(jQuery);
$(document).ready(function() {
$(‘#video-link’).on(‘click’, function() {
$.fancybox.open({
src: ‘#video-popup’,
type: ‘inline’,
opts: {
afterShow : function( instance, current ) {
// Khi popup mở, tự động phát video
//$(‘#video-iframe’).attr(‘src’, $(‘#video-iframe’).attr(‘src’));
// Dùng biến iframeSrc để lấy lại src
$(‘#video-iframe’).attr(‘src’, function(i, val) {
return val + ‘?autoplay=1’; // Thêm tham số autoplay
});
},
beforeClose : function( instance, current ) {
// Khi popup đóng, dừng video
var iframeSrc = $(‘#video-iframe’).attr(‘src’);
var newSrc = iframeSrc.split(‘?’)[0]; // Lấy phần src không có tham số
$(‘#video-iframe’).attr(‘src’, newSrc); // Khôi phục lại src
}
}
});
});
});