您现在的位置: 首页 > 视频中心

2021“一带一路”年度汉字“互”今天发布

更新时间:2023-02-15

// if (window.jQuery) { // $('#video_play_20200520_137').bind('contextmenu',function() { return false; }); // } if ('video' == document.getElementById('video_play_20200520_137').tagName.toLowerCase()) { if (!document.getElementById('video_play_20200520_137').controls) { document.getElementById('video_play_20200520_137').controls = 'controls'; } document.getElementById('video_play_20200520_137').setAttribute('controlslist', 'nodownload'); document.getElementById('video_play_20200520_137').setAttribute('oncontextmenu', 'return false'); } /**记录播放时长**/ var video = document.getElementById('video_play_20200520_137'); var timeDisplay; var times = 0; video.addEventListener('pause', function () { //暂停开始执行的函数 submitPlayRecord(); }); video.addEventListener('waiting', function() { if(times == 1){ timeDisplay = this.duration; submitPlayRecord(); } times ++; }, false); // video.addEventListener('canplaythrough', function() { // if(times == 1){ // timeDisplay = this.duration; // submitPlayRecord(); // } // times ++; // }, false); video.addEventListener('ended', function () { //结束 submitPlayRecord(); }, false); //监听播放时间 //使用事件监听方式捕捉事件 video.addEventListener("timeupdate",function(){ //用秒数来显示当前播放进度 timeDisplay = Math.floor(this.currentTime); },false); window.addEventListener('unload', function() { //窗口关闭后 submitPlayRecord(); }); function submitPlayRecord() { if (document.getElementById('fid1616057948')) { var fid = document.getElementById('fid1616057948').value; if (fid > 0) { var ajax = new XMLHttpRequest(); ajax.open("post", "/index.php?m=home&c=Media&a=record_process", true); ajax.setRequestHeader("X-Requested-With","XMLHttpRequest"); ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded"); ajax.send("aid=137&file_id="+fid+"&timeDisplay="+timeDisplay); ajax.onreadystatechange = function () { }; } } } /**记录播放时长**/ // 视频购买 function MediaOrderBuy_1592878548() { var ajax = new XMLHttpRequest(); ajax.open("post", '/index.php?m=user&c=Media&a=media_order_buy', true); ajax.setRequestHeader("X-Requested-With","XMLHttpRequest"); ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded"); ajax.send('aid=137'); ajax.onreadystatechange = function () { if (ajax.readyState==4 && ajax.status==200) { var json = ajax.responseText; var res = JSON.parse(json); if (1 == res.code && res.url) { window.location.href = res.url; } else if (0 == res.code && res.url) { window.location.href = res.url; } else { if (!window.layer) { alert(res.msg); } else { layer.alert(res.msg, {icon: 5, title: false, closeBtn: false}); } }  } }; }

5月19日,由中国公共关系协会主办的2022“一带一路”年度汉字线上发布活动成功举办。经过前期专家、媒体评选和推荐,“通”字最终脱颖而出,成为2022“一带一路”年度汉字。全国政协委员、中国公共关系协会会长、国务院新闻办原副主任郭卫民出席并揭晓年度汉字。

来源:网络

关键词: