800 triệu đồng nên chọn Peugeot 2008 hay Toyota Corolla Cross?

800 triệu đồng nên chọn Peugeot 2008 hay Toyota Corolla Cross?



Nếu như so sánh với các đối thủ khác, Peugeot 2008 có mức giá khá cao thì với Corolla Cross, cuộc so tài đã cân sức hơn.

“).insertBefore(“#zplayer_1e6821_ga_videoviewership”);
if(document.getElementById(“link_ga_midpoint_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_videoviewership = “/ajax/ga_tong_tai_nguyen_video_viewership.php?id_news=1472334&id_cate=747&v_thiet_bi_ga=pc&metric=midpoint”;
document.getElementById(“link_ga_midpoint_zplayer_1e6821″).innerHTML = ”;
}
}
});
videozplayer_1e6821.player.on(“content_third_quarter”, function(){
// Gọi GA load video
if(v_videoviewership_log_zplayer_1e6821){
// Tao thẻ div để chưa link GA
$(“

“).insertBefore(“#zplayer_1e6821_ga_videoviewership”);
if(document.getElementById(“link_ga_third_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_videoviewership = “/ajax/ga_tong_tai_nguyen_video_viewership.php?id_news=1472334&id_cate=747&v_thiet_bi_ga=pc&metric=third_quarter”;
document.getElementById(“link_ga_third_zplayer_1e6821″).innerHTML = ”;
}
}
});
videozplayer_1e6821.player.on(“content_complete”, function(){
// Gọi GA load video
if(v_videoviewership_log_zplayer_1e6821){
// Tao thẻ div để chưa link GA
$(“

“).insertBefore(“#zplayer_1e6821_ga_videoviewership”);
if(document.getElementById(“link_ga_complete_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_videoviewership = “/ajax/ga_tong_tai_nguyen_video_viewership.php?id_news=1472334&id_cate=747&v_thiet_bi_ga=pc&metric=complete”;
document.getElementById(“link_ga_complete_zplayer_1e6821″).innerHTML = ”;
}
}
});
videozplayer_1e6821.player.on(“miniPlayerClosed”, function(){
// Gọi GA load video
if(v_videoviewership_log_zplayer_1e6821){
// Tao thẻ div để chưa link GA
$(“

“).insertBefore(“#zplayer_1e6821_ga_videoviewership”);
if(document.getElementById(“link_ga_mini_close_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_videoviewership = “/ajax/ga_tong_tai_nguyen_video_viewership.php?id_news=1472334&id_cate=747&v_thiet_bi_ga=pc&metric=click_close”;
document.getElementById(“link_ga_mini_close_zplayer_1e6821″).innerHTML = ”;
}
}
});

// End 12-12-2018 trungcq XLCYCMHENG_33549_xu_ly_scroll_to_top

var v_event_tracking_impression_prerollzplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_preroll”);
// các trường hợp mã lỗi của trình duyệt trả về
videozplayer_1e6821.player.on(“AE_impression”, function(name) {
// Gọi GA load video
if(v_event_tracking_impression_prerollzplayer_1e6821){
// Tao thẻ div để chưa link GA
$(“

“).insertBefore(“#zplayer_1e6821_ga_preroll”);
if(document.getElementById(“link_ga_tracking_impression_preroll_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_tracking_impression_preroll = “/ajax/ga_tong_tai_nguyen_click_preroll.php?id_news=1472334&ma_type_ads=impression&v_thiet_bi_ga=pc&id_cate=747”;
document.getElementById(“link_ga_tracking_impression_preroll_zplayer_1e6821″).innerHTML = ”;
}
}
});

var v_event_tracking_click_prerollzplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_preroll”);
// các trường hợp mã lỗi của trình duyệt trả về
videozplayer_1e6821.player.on(“AE_clicked”, function(name) {
// Gọi GA load video
if(v_event_tracking_click_prerollzplayer_1e6821){
// Tao thẻ div để chưa link GA
$(“

“).insertBefore(“#zplayer_1e6821_ga_preroll”);
if(document.getElementById(“link_ga_tracking_click_preroll_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_tracking_click_preroll = “/ajax/ga_tong_tai_nguyen_click_preroll.php?id_news=1472334&ma_type_ads=ads_click&v_thiet_bi_ga=pc&id_cate=747”;
document.getElementById(“link_ga_tracking_click_preroll_zplayer_1e6821″).innerHTML = ”;
}
}
});

var v_err_log_1zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_error1”);
// các trường hợp mã lỗi của trình duyệt trả về
videozplayer_1e6821.player.on(“MEDIA_ERROR_1”, function (name) {
// Gọi GA load video
if(v_err_log_1zplayer_1e6821){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_video_err = “/ajax/ga_tong_tai_nguyen_loi_load_video.php?id_news=1472334&ma_error=ERROR_1″;
v_err_log_1zplayer_1e6821.innerHTML = ”;
}
});
var v_err_log_2zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_error2”);
videozplayer_1e6821.player.on(“MEDIA_ERROR_2”, function (name) {
// Gọi GA load video
if(v_err_log_2zplayer_1e6821){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_video_err = “/ajax/ga_tong_tai_nguyen_loi_load_video.php?id_news=1472334&ma_error=ERROR_2″;
v_err_log_2zplayer_1e6821.innerHTML = ”;
}
});
var v_err_log_3zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_error3”);
videozplayer_1e6821.player.on(“MEDIA_ERROR_3”, function (name) {
// Gọi GA load video
if(v_err_log_3zplayer_1e6821){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_video_err = “/ajax/ga_tong_tai_nguyen_loi_load_video.php?id_news=1472334&ma_error=ERROR_3″;
v_err_log_3zplayer_1e6821.innerHTML = ”;
}
});
var v_err_log_4zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_error4”);
videozplayer_1e6821.player.on(“MEDIA_ERROR_4”, function (name) {
// Gọi GA load video
if(v_err_log_4zplayer_1e6821){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_video_err = “/ajax/ga_tong_tai_nguyen_loi_load_video.php?id_news=1472334&ma_error=ERROR_4″;
v_err_log_4zplayer_1e6821.innerHTML = ”;
}
});
var v_err_log_5zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_error5”);
videozplayer_1e6821.player.on(“MEDIA_ERROR_5”, function (name) {
// Gọi GA load video
if(v_err_log_5zplayer_1e6821){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_video_err = “/ajax/ga_tong_tai_nguyen_loi_load_video.php?id_news=1472334&ma_error=ERROR_5″;
v_err_log_5zplayer_1e6821.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_1”, function(){
console.log(“track_slow_playlist_next_1”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68211 = document.getElementById(“link_slow_playlist_next_zplayer_1e68211”);
if(v_track_slow_playlist_zplayer_1e68211){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_1 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=1″;
v_track_slow_playlist_zplayer_1e68211.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_2”, function(){
console.log(“track_slow_playlist_next_2”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68212 = document.getElementById(“link_slow_playlist_next_zplayer_1e68212”);
if(v_track_slow_playlist_zplayer_1e68212){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_2 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=2″;
v_track_slow_playlist_zplayer_1e68212.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_3”, function(){
console.log(“track_slow_playlist_next_3”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68213 = document.getElementById(“link_slow_playlist_next_zplayer_1e68213”);
if(v_track_slow_playlist_zplayer_1e68213){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_3 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=3″;
v_track_slow_playlist_zplayer_1e68213.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_4”, function(){
console.log(“track_slow_playlist_next_4”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68214 = document.getElementById(“link_slow_playlist_next_zplayer_1e68214”);
if(v_track_slow_playlist_zplayer_1e68214){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_4 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=4″;
v_track_slow_playlist_zplayer_1e68214.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_5”, function(){
console.log(“track_slow_playlist_next_5”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68215 = document.getElementById(“link_slow_playlist_next_zplayer_1e68215”);
if(v_track_slow_playlist_zplayer_1e68215){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_5 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=5″;
v_track_slow_playlist_zplayer_1e68215.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_6”, function(){
console.log(“track_slow_playlist_next_6”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68216 = document.getElementById(“link_slow_playlist_next_zplayer_1e68216”);
if(v_track_slow_playlist_zplayer_1e68216){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_6 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=6″;
v_track_slow_playlist_zplayer_1e68216.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_7”, function(){
console.log(“track_slow_playlist_next_7”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68217 = document.getElementById(“link_slow_playlist_next_zplayer_1e68217”);
if(v_track_slow_playlist_zplayer_1e68217){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_7 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=7″;
v_track_slow_playlist_zplayer_1e68217.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_8”, function(){
console.log(“track_slow_playlist_next_8”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68218 = document.getElementById(“link_slow_playlist_next_zplayer_1e68218”);
if(v_track_slow_playlist_zplayer_1e68218){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_8 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=8″;
v_track_slow_playlist_zplayer_1e68218.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_9”, function(){
console.log(“track_slow_playlist_next_9”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68219 = document.getElementById(“link_slow_playlist_next_zplayer_1e68219”);
if(v_track_slow_playlist_zplayer_1e68219){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_9 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=9″;
v_track_slow_playlist_zplayer_1e68219.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_10”, function(){
console.log(“track_slow_playlist_next_10”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e682110 = document.getElementById(“link_slow_playlist_next_zplayer_1e682110”);
if(v_track_slow_playlist_zplayer_1e682110){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_10 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=10″;
v_track_slow_playlist_zplayer_1e682110.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“timeupdated”, function () {
if(v_load_recommend_boxzplayer_1e6821 && typeof(v_thoi_luong_hien_thi) != “undefined” && v_thoi_luong_hien_thi != “”){
try{
var v_time_current = videozplayer_1e6821.player.currentTime();
if(v_time_current > 0){
if(v_time_current >= v_thoi_luong_hien_thi){
function getJsonRecomment(url,callback){
if(url == “”){
return “”;
}
dynamicIdLive = new Date().valueOf();
url = url+dynamicIdLive;
console.log(url);
var xhr = new XMLHttpRequest();
// Get url
xhr.open(“GET”, url, true);
// Kiểu phản hồi
xhr.responseType = “json”;
xhr.timeout = 50000; // Set timeout to 2 seconds
xhr.ontimeout = function () {console.log(“timeout”);}
// Load data
xhr.onload = function() {
var status = xhr.status;
if (status == 200) {
callback(xhr.response);
}else{
console.log(“B3: status != 200”);
}
};
xhr.send();
}
if(typeof v_url_json_data_recomment != “undefined”){
getJsonRecomment(v_url_json_data_recomment,function(v_object_recomend){
if(typeof v_object_recomend != “undefined” && parseInt(v_object_recomend.length) > 0){
var recomment_arr_video_ngay_hien_tai = _getStorageJson24h(“recomment_video_ngay_hien_tai_data_news_id”);
var recomment_video_ngay_hom_qua_data_news_id = _getStorageJson24h(“recomment_video_ngay_hom_qua_data_news_id”);
// Lặp để loại bỏ những bài đang xem
var arr_recomend_video = new Array();
var k=0;
var v_so_luong_tin_hien_thi = parseInt(v_object_recomend[0][“c_tong_so_luong_tin_hien_thi”]);
for(j=0;j 0){
if(v_recomment_news_id== parseInt(v_object_recomend[j][“c_new_id”])){
continue;
}
if(typeof(recomment_arr_video_ngay_hien_tai) != “undefined” && recomment_arr_video_ngay_hien_tai.indexOf(parseInt(v_object_recomend[j][“c_new_id”])) >= 0){
continue;
}
if(typeof(recomment_video_ngay_hom_qua_data_news_id) != “undefined” && recomment_video_ngay_hom_qua_data_news_id.indexOf(parseInt(v_object_recomend[j][“c_new_id”])) >= 0){
continue;
}
}
arr_recomend_video[k] = v_object_recomend[j];
k++;
if(k >= v_so_luong_tin_hien_thi){
break;
}
}
var v_total_page_recommend =0;
v_total_page_recommend = parseInt(Math.ceil(parseInt(arr_recomend_video.length)/parseInt(v_object_recomend[0][“c_number_items”])));
// Tao HTML video recommend
arr_recomend_video[0][“c_tracking_onclick”] = “return send_ga_gtag(‘box_goi_y_ngoai_khung_play’, ‘chuyen_muc_747~~vi_tri_tin_999~~id_tin_1472334~~phien_ban_pc’,’eyJjYXRlZ29yeUlkXzI0aCI6Ijc0NyIsImxldmVsMV9jYXRlZ29yeUlkXzI0aCI6Ijc0NyIsInBhZ2VDYXRlZ29yeV8yNGgiOiJjYXIiLCJjb25maWdJZF8yNGgiOiIxNDcyMzM0IiwiYXJ0aWNsZUlkXzI0aCI6Im51bGwiLCJkZXZpY2VfMjRoIjoicGMiLCJhY3Rpb25fMjRoIjoiY2xpY2sifQ==’, this, ”, ”)”;
arr_recomend_video[0][“c_tracking_onload”] = “id_chuyen_muc_747_id_bai_viet_1472334_phien_ban_pc”;
arr_recomend_video[0][“c_tracking_onload_gatag”] = “gtag(‘event’, ‘box_goi_y_ngoai_khung_play’,{categoryId_24h:’747′,pageCategory_24h:’car’, ‘articleId_24h’:’1472334′,device_24h:’pc’,action_24h:’impression’});”;
var v_html_recomend = tao_html_recommend_video_tu_object(arr_recomend_video,”zplayer_1e6821″);
// Gắn HTML vào chuỗi
if(v_html_recomend !=””){
// Nếu tồn tại video highlight
if ($(“#vjs-marker-tableinfo-zplayer_1e6821”).length) {
$(“#vjs-marker-tableinfo-zplayer_1e6821”).after(v_html_recomend);
} else {
if ($(“#zplayer_1e6821_ga_preroll”).length) {
$(“#zplayer_1e6821_ga_preroll”).before(v_html_recomend);
}
}
// Hiển thị dạng slide
if ($(“#box_recommend_zplayer_1e6821”).length) {
$(“#box_recommend_zplayer_1e6821”).show(1000);
setTimeout(function(){
create_slide_page_number_recommend_video_json(“swiper_recommend_v2018zplayer_1e6821”, “swpier_container_zplayer_1e6821″,”swiper_active_slide_zplayer_1e6821”, “pagination-zplayer_1e6821″,”wrapper_zplayer_1e6821”,v_total_page_recommend, “swiper-slide slide_zplayer_1e6821”, “prvVid_recommendzplayer_1e6821”, “nxtVid_recommendzplayer_1e6821”);
$(“#box_recommend_zplayer_1e6821”).css(“height”, “”);
}, 900);
}
}
}
});
}
v_load_recommend_boxzplayer_1e6821 = false;
}
}
}catch(e){
console.log([“Errors”, e]);
}
}
});

videozplayer_1e6821.player.on(“MEDIA_SLOW_WAITING”, function (evt, data) {
//console.log(data.waitTime);
var v_slow_waiting_zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_media_slow_waiting”);
if(v_slow_waiting_zplayer_1e6821){
//đổi ms về s
v_so_giay_load = parseInt(data.waitTime/1000);
// Gọi link ga qua iframe để tracking slow
v_link_ga_slow = “/ajax/ga_tong_tai_nguyen_loi_media_slow.php?id_news=1472334&ma_slow=waiting&second_load=”+v_so_giay_load;
v_slow_waiting_zplayer_1e6821.innerHTML = ”;
}
//console.log(“listener MEDIA_SLOW_WAITING: “);
});
videozplayer_1e6821.player.on(“MEDIA_SLOW_METADATA”, function (evt, data) {
//console.log(data.waitTime);
var v_slow_metadata_zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_media_slow_metadata”);
if(v_slow_metadata_zplayer_1e6821){
//đổi ms về s
v_so_giay_load_metadata = parseInt(data.waitTime/1000);
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_slow = “/ajax/ga_tong_tai_nguyen_loi_media_slow.php?id_news=1472334&ma_slow=metadata&second_load=”+v_so_giay_load_metadata;
v_slow_metadata_zplayer_1e6821.innerHTML = ”;
}
//console.log(“listener MEDIA_SLOW_METADATA: “);
});
videozplayer_1e6821.player.on(‘onPrerollStart’, function(name){
//console.log(‘ON PREROLL START’);
docGaPreroll_zplayer_1e6821 = document.getElementById(‘zplayer_1e6821_ga_preroll’);
if(docGaPreroll_zplayer_1e6821){
docGaPreroll_zplayer_1e6821.innerHTML = ”;
}
/* begin 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */
/*event_ga_preroll_video_content*/
/* end 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */

});videozplayer_1e6821.player.on(‘onOverlayStart’, function(name){
//console.log(‘ON OVERLAY START’);
docGaOverlay_zplayer_1e6821 = document.getElementById(‘zplayer_1e6821_ga_overlay’);
if(docGaOverlay_zplayer_1e6821){
docGaOverlay_zplayer_1e6821.innerHTML = ”;
}
/* begin 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */
/*event_ga_overlay_video_content*/
/* end 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */

});videozplayer_1e6821.player.on(‘onPostRollStart’, function(name){
//console.log(‘ON POSTROLL START’);
docGaPostroll_zplayer_1e6821 = document.getElementById(‘zplayer_1e6821_ga_overlay’);
if(docGaPostroll_zplayer_1e6821){
docGaPostroll_zplayer_1e6821.innerHTML = ”;
}
/* begin 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */
/*event_ga_postroll_video_content*/
/* end 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */

});

videozplayer_1e6821.player.on([
“play”,
“playing”,
“adstart”,
“adplaying”,
], function (evt, data) {

if (typeof stop_video_news_live == “function”){
stop_video_news_live(“___”);
}

});
videozplayer_1e6821.player.on(“onStop”, function(name) {
//console.log(“listener onStop: “);

});

}
videoAdsInitzplayer_1e6821 = true;
}
// Ga video load luôn được chạy
var docLoadTrang = document.getElementById(‘zplayer_1e6821_content_ga’);docLoadTrang.innerHTML= ”;
function inViewport( element ){
// Get the elements position relative to the viewport
var bb = element.getBoundingClientRect();
// Check if the element is outside the viewport
// Then invert the returned value because you want to know the opposite
return !(bb.top > innerHeight || bb.bottom < 0);
}
var zplayer_1e6821VpElm = document.getElementById( “zplayer_1e6821” );

var viszplayer_1e6821 = (function () {
var stateKey, eventKey, keys = {
hidden: “visibilitychange”,
webkitHidden: “webkitvisibilitychange”,
mozHidden: “mozvisibilitychange”,
msHidden: “msvisibilitychange”
};
for (stateKey in keys) {
if (stateKey in document) {
eventKey = keys[stateKey];
break;
}
}
return function (c) {
if (c) document.addEventListener(eventKey, c);
return !document[stateKey];
}
})();

var videoAds1Elmzplayer_1e6821 = document.getElementById(“v-24hContainer_zplayer_1e6821”);
document.addEventListener(“DOMContentLoaded”, function () {
if(videoAds1Elmzplayer_1e6821){
var videoAdsInitzplayer_1e6821 = false;
var checkTabActivezplayer_1e6821 = setInterval(function () {
if (inViewport(videoAds1Elmzplayer_1e6821) && viszplayer_1e6821() && !videoAdsInitzplayer_1e6821 && typeof(window.videojs) !== “undefined” && (typeof(google) !== “undefined” || adBlockCheckedStatus) && videoObj) {
initvideozplayer_1e6821();
clearInterval(checkTabActivezplayer_1e6821);
}
}, 100);
}
}, false);

//]]>



Nếu như so sánh với các đối thủ khác, Peugeot 2008 có mức giá khá cao thì với Corolla Cross, cuộc so tài đã cân sức hơn.

“).insertBefore(“#zplayer_1e6821_ga_videoviewership”);
if(document.getElementById(“link_ga_midpoint_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_videoviewership = “/ajax/ga_tong_tai_nguyen_video_viewership.php?id_news=1472334&id_cate=747&v_thiet_bi_ga=pc&metric=midpoint”;
document.getElementById(“link_ga_midpoint_zplayer_1e6821″).innerHTML = ”;
}
}
});
videozplayer_1e6821.player.on(“content_third_quarter”, function(){
// Gọi GA load video
if(v_videoviewership_log_zplayer_1e6821){
// Tao thẻ div để chưa link GA
$(“

“).insertBefore(“#zplayer_1e6821_ga_videoviewership”);
if(document.getElementById(“link_ga_third_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_videoviewership = “/ajax/ga_tong_tai_nguyen_video_viewership.php?id_news=1472334&id_cate=747&v_thiet_bi_ga=pc&metric=third_quarter”;
document.getElementById(“link_ga_third_zplayer_1e6821″).innerHTML = ”;
}
}
});
videozplayer_1e6821.player.on(“content_complete”, function(){
// Gọi GA load video
if(v_videoviewership_log_zplayer_1e6821){
// Tao thẻ div để chưa link GA
$(“

“).insertBefore(“#zplayer_1e6821_ga_videoviewership”);
if(document.getElementById(“link_ga_complete_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_videoviewership = “/ajax/ga_tong_tai_nguyen_video_viewership.php?id_news=1472334&id_cate=747&v_thiet_bi_ga=pc&metric=complete”;
document.getElementById(“link_ga_complete_zplayer_1e6821″).innerHTML = ”;
}
}
});
videozplayer_1e6821.player.on(“miniPlayerClosed”, function(){
// Gọi GA load video
if(v_videoviewership_log_zplayer_1e6821){
// Tao thẻ div để chưa link GA
$(“

“).insertBefore(“#zplayer_1e6821_ga_videoviewership”);
if(document.getElementById(“link_ga_mini_close_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_videoviewership = “/ajax/ga_tong_tai_nguyen_video_viewership.php?id_news=1472334&id_cate=747&v_thiet_bi_ga=pc&metric=click_close”;
document.getElementById(“link_ga_mini_close_zplayer_1e6821″).innerHTML = ”;
}
}
});

// End 12-12-2018 trungcq XLCYCMHENG_33549_xu_ly_scroll_to_top

var v_event_tracking_impression_prerollzplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_preroll”);
// các trường hợp mã lỗi của trình duyệt trả về
videozplayer_1e6821.player.on(“AE_impression”, function(name) {
// Gọi GA load video
if(v_event_tracking_impression_prerollzplayer_1e6821){
// Tao thẻ div để chưa link GA
$(“

“).insertBefore(“#zplayer_1e6821_ga_preroll”);
if(document.getElementById(“link_ga_tracking_impression_preroll_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_tracking_impression_preroll = “/ajax/ga_tong_tai_nguyen_click_preroll.php?id_news=1472334&ma_type_ads=impression&v_thiet_bi_ga=pc&id_cate=747”;
document.getElementById(“link_ga_tracking_impression_preroll_zplayer_1e6821″).innerHTML = ”;
}
}
});

var v_event_tracking_click_prerollzplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_preroll”);
// các trường hợp mã lỗi của trình duyệt trả về
videozplayer_1e6821.player.on(“AE_clicked”, function(name) {
// Gọi GA load video
if(v_event_tracking_click_prerollzplayer_1e6821){
// Tao thẻ div để chưa link GA
$(“

“).insertBefore(“#zplayer_1e6821_ga_preroll”);
if(document.getElementById(“link_ga_tracking_click_preroll_zplayer_1e6821”)){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_tracking_click_preroll = “/ajax/ga_tong_tai_nguyen_click_preroll.php?id_news=1472334&ma_type_ads=ads_click&v_thiet_bi_ga=pc&id_cate=747”;
document.getElementById(“link_ga_tracking_click_preroll_zplayer_1e6821″).innerHTML = ”;
}
}
});

var v_err_log_1zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_error1”);
// các trường hợp mã lỗi của trình duyệt trả về
videozplayer_1e6821.player.on(“MEDIA_ERROR_1”, function (name) {
// Gọi GA load video
if(v_err_log_1zplayer_1e6821){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_video_err = “/ajax/ga_tong_tai_nguyen_loi_load_video.php?id_news=1472334&ma_error=ERROR_1″;
v_err_log_1zplayer_1e6821.innerHTML = ”;
}
});
var v_err_log_2zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_error2”);
videozplayer_1e6821.player.on(“MEDIA_ERROR_2”, function (name) {
// Gọi GA load video
if(v_err_log_2zplayer_1e6821){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_video_err = “/ajax/ga_tong_tai_nguyen_loi_load_video.php?id_news=1472334&ma_error=ERROR_2″;
v_err_log_2zplayer_1e6821.innerHTML = ”;
}
});
var v_err_log_3zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_error3”);
videozplayer_1e6821.player.on(“MEDIA_ERROR_3”, function (name) {
// Gọi GA load video
if(v_err_log_3zplayer_1e6821){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_video_err = “/ajax/ga_tong_tai_nguyen_loi_load_video.php?id_news=1472334&ma_error=ERROR_3″;
v_err_log_3zplayer_1e6821.innerHTML = ”;
}
});
var v_err_log_4zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_error4”);
videozplayer_1e6821.player.on(“MEDIA_ERROR_4”, function (name) {
// Gọi GA load video
if(v_err_log_4zplayer_1e6821){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_video_err = “/ajax/ga_tong_tai_nguyen_loi_load_video.php?id_news=1472334&ma_error=ERROR_4″;
v_err_log_4zplayer_1e6821.innerHTML = ”;
}
});
var v_err_log_5zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_error5”);
videozplayer_1e6821.player.on(“MEDIA_ERROR_5”, function (name) {
// Gọi GA load video
if(v_err_log_5zplayer_1e6821){
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_video_err = “/ajax/ga_tong_tai_nguyen_loi_load_video.php?id_news=1472334&ma_error=ERROR_5″;
v_err_log_5zplayer_1e6821.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_1”, function(){
console.log(“track_slow_playlist_next_1”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68211 = document.getElementById(“link_slow_playlist_next_zplayer_1e68211”);
if(v_track_slow_playlist_zplayer_1e68211){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_1 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=1″;
v_track_slow_playlist_zplayer_1e68211.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_2”, function(){
console.log(“track_slow_playlist_next_2”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68212 = document.getElementById(“link_slow_playlist_next_zplayer_1e68212”);
if(v_track_slow_playlist_zplayer_1e68212){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_2 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=2″;
v_track_slow_playlist_zplayer_1e68212.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_3”, function(){
console.log(“track_slow_playlist_next_3”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68213 = document.getElementById(“link_slow_playlist_next_zplayer_1e68213”);
if(v_track_slow_playlist_zplayer_1e68213){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_3 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=3″;
v_track_slow_playlist_zplayer_1e68213.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_4”, function(){
console.log(“track_slow_playlist_next_4”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68214 = document.getElementById(“link_slow_playlist_next_zplayer_1e68214”);
if(v_track_slow_playlist_zplayer_1e68214){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_4 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=4″;
v_track_slow_playlist_zplayer_1e68214.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_5”, function(){
console.log(“track_slow_playlist_next_5”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68215 = document.getElementById(“link_slow_playlist_next_zplayer_1e68215”);
if(v_track_slow_playlist_zplayer_1e68215){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_5 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=5″;
v_track_slow_playlist_zplayer_1e68215.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_6”, function(){
console.log(“track_slow_playlist_next_6”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68216 = document.getElementById(“link_slow_playlist_next_zplayer_1e68216”);
if(v_track_slow_playlist_zplayer_1e68216){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_6 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=6″;
v_track_slow_playlist_zplayer_1e68216.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_7”, function(){
console.log(“track_slow_playlist_next_7”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68217 = document.getElementById(“link_slow_playlist_next_zplayer_1e68217”);
if(v_track_slow_playlist_zplayer_1e68217){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_7 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=7″;
v_track_slow_playlist_zplayer_1e68217.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_8”, function(){
console.log(“track_slow_playlist_next_8”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68218 = document.getElementById(“link_slow_playlist_next_zplayer_1e68218”);
if(v_track_slow_playlist_zplayer_1e68218){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_8 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=8″;
v_track_slow_playlist_zplayer_1e68218.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_9”, function(){
console.log(“track_slow_playlist_next_9”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e68219 = document.getElementById(“link_slow_playlist_next_zplayer_1e68219”);
if(v_track_slow_playlist_zplayer_1e68219){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_9 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=9″;
v_track_slow_playlist_zplayer_1e68219.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“track_slow_playlist_next_10”, function(){
console.log(“track_slow_playlist_next_10”);
$(“

“).insertBefore(“#zplayer_1e6821_ga_media_slow_waiting”);

var v_track_slow_playlist_zplayer_1e682110 = document.getElementById(“link_slow_playlist_next_zplayer_1e682110”);
if(v_track_slow_playlist_zplayer_1e682110){
// Gọi link ga qua iframe để tracking slow
var v_link_ga_slow_playlist_next_10 = “/ajax/ga_tong_tai_nguyen_video_slow_playlist_next.php?id_news=1472334&v_thiet_bi_ga=pc&second_load=10″;
v_track_slow_playlist_zplayer_1e682110.innerHTML = ”;
}
});

videozplayer_1e6821.player.on(“timeupdated”, function () {
if(v_load_recommend_boxzplayer_1e6821 && typeof(v_thoi_luong_hien_thi) != “undefined” && v_thoi_luong_hien_thi != “”){
try{
var v_time_current = videozplayer_1e6821.player.currentTime();
if(v_time_current > 0){
if(v_time_current >= v_thoi_luong_hien_thi){
function getJsonRecomment(url,callback){
if(url == “”){
return “”;
}
dynamicIdLive = new Date().valueOf();
url = url+dynamicIdLive;
console.log(url);
var xhr = new XMLHttpRequest();
// Get url
xhr.open(“GET”, url, true);
// Kiểu phản hồi
xhr.responseType = “json”;
xhr.timeout = 50000; // Set timeout to 2 seconds
xhr.ontimeout = function () {console.log(“timeout”);}
// Load data
xhr.onload = function() {
var status = xhr.status;
if (status == 200) {
callback(xhr.response);
}else{
console.log(“B3: status != 200”);
}
};
xhr.send();
}
if(typeof v_url_json_data_recomment != “undefined”){
getJsonRecomment(v_url_json_data_recomment,function(v_object_recomend){
if(typeof v_object_recomend != “undefined” && parseInt(v_object_recomend.length) > 0){
var recomment_arr_video_ngay_hien_tai = _getStorageJson24h(“recomment_video_ngay_hien_tai_data_news_id”);
var recomment_video_ngay_hom_qua_data_news_id = _getStorageJson24h(“recomment_video_ngay_hom_qua_data_news_id”);
// Lặp để loại bỏ những bài đang xem
var arr_recomend_video = new Array();
var k=0;
var v_so_luong_tin_hien_thi = parseInt(v_object_recomend[0][“c_tong_so_luong_tin_hien_thi”]);
for(j=0;j 0){
if(v_recomment_news_id== parseInt(v_object_recomend[j][“c_new_id”])){
continue;
}
if(typeof(recomment_arr_video_ngay_hien_tai) != “undefined” && recomment_arr_video_ngay_hien_tai.indexOf(parseInt(v_object_recomend[j][“c_new_id”])) >= 0){
continue;
}
if(typeof(recomment_video_ngay_hom_qua_data_news_id) != “undefined” && recomment_video_ngay_hom_qua_data_news_id.indexOf(parseInt(v_object_recomend[j][“c_new_id”])) >= 0){
continue;
}
}
arr_recomend_video[k] = v_object_recomend[j];
k++;
if(k >= v_so_luong_tin_hien_thi){
break;
}
}
var v_total_page_recommend =0;
v_total_page_recommend = parseInt(Math.ceil(parseInt(arr_recomend_video.length)/parseInt(v_object_recomend[0][“c_number_items”])));
// Tao HTML video recommend
arr_recomend_video[0][“c_tracking_onclick”] = “return send_ga_gtag(‘box_goi_y_ngoai_khung_play’, ‘chuyen_muc_747~~vi_tri_tin_999~~id_tin_1472334~~phien_ban_pc’,’eyJjYXRlZ29yeUlkXzI0aCI6Ijc0NyIsImxldmVsMV9jYXRlZ29yeUlkXzI0aCI6Ijc0NyIsInBhZ2VDYXRlZ29yeV8yNGgiOiJjYXIiLCJjb25maWdJZF8yNGgiOiIxNDcyMzM0IiwiYXJ0aWNsZUlkXzI0aCI6Im51bGwiLCJkZXZpY2VfMjRoIjoicGMiLCJhY3Rpb25fMjRoIjoiY2xpY2sifQ==’, this, ”, ”)”;
arr_recomend_video[0][“c_tracking_onload”] = “id_chuyen_muc_747_id_bai_viet_1472334_phien_ban_pc”;
arr_recomend_video[0][“c_tracking_onload_gatag”] = “gtag(‘event’, ‘box_goi_y_ngoai_khung_play’,{categoryId_24h:’747′,pageCategory_24h:’car’, ‘articleId_24h’:’1472334′,device_24h:’pc’,action_24h:’impression’});”;
var v_html_recomend = tao_html_recommend_video_tu_object(arr_recomend_video,”zplayer_1e6821″);
// Gắn HTML vào chuỗi
if(v_html_recomend !=””){
// Nếu tồn tại video highlight
if ($(“#vjs-marker-tableinfo-zplayer_1e6821”).length) {
$(“#vjs-marker-tableinfo-zplayer_1e6821”).after(v_html_recomend);
} else {
if ($(“#zplayer_1e6821_ga_preroll”).length) {
$(“#zplayer_1e6821_ga_preroll”).before(v_html_recomend);
}
}
// Hiển thị dạng slide
if ($(“#box_recommend_zplayer_1e6821”).length) {
$(“#box_recommend_zplayer_1e6821”).show(1000);
setTimeout(function(){
create_slide_page_number_recommend_video_json(“swiper_recommend_v2018zplayer_1e6821”, “swpier_container_zplayer_1e6821″,”swiper_active_slide_zplayer_1e6821”, “pagination-zplayer_1e6821″,”wrapper_zplayer_1e6821”,v_total_page_recommend, “swiper-slide slide_zplayer_1e6821”, “prvVid_recommendzplayer_1e6821”, “nxtVid_recommendzplayer_1e6821”);
$(“#box_recommend_zplayer_1e6821”).css(“height”, “”);
}, 900);
}
}
}
});
}
v_load_recommend_boxzplayer_1e6821 = false;
}
}
}catch(e){
console.log([“Errors”, e]);
}
}
});

videozplayer_1e6821.player.on(“MEDIA_SLOW_WAITING”, function (evt, data) {
//console.log(data.waitTime);
var v_slow_waiting_zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_media_slow_waiting”);
if(v_slow_waiting_zplayer_1e6821){
//đổi ms về s
v_so_giay_load = parseInt(data.waitTime/1000);
// Gọi link ga qua iframe để tracking slow
v_link_ga_slow = “/ajax/ga_tong_tai_nguyen_loi_media_slow.php?id_news=1472334&ma_slow=waiting&second_load=”+v_so_giay_load;
v_slow_waiting_zplayer_1e6821.innerHTML = ”;
}
//console.log(“listener MEDIA_SLOW_WAITING: “);
});
videozplayer_1e6821.player.on(“MEDIA_SLOW_METADATA”, function (evt, data) {
//console.log(data.waitTime);
var v_slow_metadata_zplayer_1e6821 = document.getElementById(“zplayer_1e6821_ga_media_slow_metadata”);
if(v_slow_metadata_zplayer_1e6821){
//đổi ms về s
v_so_giay_load_metadata = parseInt(data.waitTime/1000);
// Gọi link ga qua iframe để tracking lỗi
v_link_ga_slow = “/ajax/ga_tong_tai_nguyen_loi_media_slow.php?id_news=1472334&ma_slow=metadata&second_load=”+v_so_giay_load_metadata;
v_slow_metadata_zplayer_1e6821.innerHTML = ”;
}
//console.log(“listener MEDIA_SLOW_METADATA: “);
});
videozplayer_1e6821.player.on(‘onPrerollStart’, function(name){
//console.log(‘ON PREROLL START’);
docGaPreroll_zplayer_1e6821 = document.getElementById(‘zplayer_1e6821_ga_preroll’);
if(docGaPreroll_zplayer_1e6821){
docGaPreroll_zplayer_1e6821.innerHTML = ”;
}
/* begin 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */
/*event_ga_preroll_video_content*/
/* end 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */

});videozplayer_1e6821.player.on(‘onOverlayStart’, function(name){
//console.log(‘ON OVERLAY START’);
docGaOverlay_zplayer_1e6821 = document.getElementById(‘zplayer_1e6821_ga_overlay’);
if(docGaOverlay_zplayer_1e6821){
docGaOverlay_zplayer_1e6821.innerHTML = ”;
}
/* begin 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */
/*event_ga_overlay_video_content*/
/* end 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */

});videozplayer_1e6821.player.on(‘onPostRollStart’, function(name){
//console.log(‘ON POSTROLL START’);
docGaPostroll_zplayer_1e6821 = document.getElementById(‘zplayer_1e6821_ga_overlay’);
if(docGaPostroll_zplayer_1e6821){
docGaPostroll_zplayer_1e6821.innerHTML = ”;
}
/* begin 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */
/*event_ga_postroll_video_content*/
/* end 4/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc */

});

videozplayer_1e6821.player.on([
“play”,
“playing”,
“adstart”,
“adplaying”,
], function (evt, data) {

if (typeof stop_video_news_live == “function”){
stop_video_news_live(“___”);
}

});
videozplayer_1e6821.player.on(“onStop”, function(name) {
//console.log(“listener onStop: “);

});

}
videoAdsInitzplayer_1e6821 = true;
}
// Ga video load luôn được chạy
var docLoadTrang = document.getElementById(‘zplayer_1e6821_content_ga’);docLoadTrang.innerHTML= ”;
function inViewport( element ){
// Get the elements position relative to the viewport
var bb = element.getBoundingClientRect();
// Check if the element is outside the viewport
// Then invert the returned value because you want to know the opposite
return !(bb.top > innerHeight || bb.bottom < 0);
}
var zplayer_1e6821VpElm = document.getElementById( “zplayer_1e6821” );

var viszplayer_1e6821 = (function () {
var stateKey, eventKey, keys = {
hidden: “visibilitychange”,
webkitHidden: “webkitvisibilitychange”,
mozHidden: “mozvisibilitychange”,
msHidden: “msvisibilitychange”
};
for (stateKey in keys) {
if (stateKey in document) {
eventKey = keys[stateKey];
break;
}
}
return function (c) {
if (c) document.addEventListener(eventKey, c);
return !document[stateKey];
}
})();

var videoAds1Elmzplayer_1e6821 = document.getElementById(“v-24hContainer_zplayer_1e6821”);
document.addEventListener(“DOMContentLoaded”, function () {
if(videoAds1Elmzplayer_1e6821){
var videoAdsInitzplayer_1e6821 = false;
var checkTabActivezplayer_1e6821 = setInterval(function () {
if (inViewport(videoAds1Elmzplayer_1e6821) && viszplayer_1e6821() && !videoAdsInitzplayer_1e6821 && typeof(window.videojs) !== “undefined” && (typeof(google) !== “undefined” || adBlockCheckedStatus) && videoObj) {
initvideozplayer_1e6821();
clearInterval(checkTabActivezplayer_1e6821);
}
}, 100);
}
}, false);

//]]>