123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- PublicAction.AjaxSend({CORID:'apply_s'});
- $('.m_Relevant_l li').each(function(){
- var _length = $(this).find('.m_Relevant_text span.dz').text().length;
- var _plength = $(this).find('.Reporting p').length;
- if(_length > 3 && _plength == 2){
- $(this).find('.m_Relevant_text span.dz').css('top','0');
- }
- if(_length > 2){
- $(this).find('.m_Relevant_text .Reporting p').css({'padding-right':'12px','margin-right':'12px'})
- }
- var style = $(this).find('.Reporting p').attr('style');
- if(style == 'display:none;'){
- $(this).find('.m_Relevant_text span.dz').css('top','0');
- }
- })
-
- PublicAction.AjaxSend({CORID:'ybm_buttom'});
- function getParams(url) {
- var theRequest = new Object();
- if (!url)
- url = location.href;
- if (url.indexOf("?") !== -1) {
- var str = url.substr(url.indexOf("?") + 1) + "&";
- var strs = str.split("&");
- for (var i = 0; i < strs.length - 1; i++) {
- var key = strs[i].substring(0, strs[i].indexOf("="));
- var val = strs[i].substring(strs[i].indexOf("=") + 1);
- theRequest[key] = val;
- }
- }
- return theRequest;
- }
- var objUrl = {};
- var url = window.location.href;
- var searchParams = '';
- var urlParams = '';
- var params = getParams(url);
- if (params.type=='live') {
- $('.liveBm_bg,.liveBm_gb a').click(function(){
- $('.liveBm_bg,.liveBm').hide();
- })
-
-
- var lpvideo = document.getElementById("myVideo");
- var btn_vid = document.getElementById("lpvideo");
- var musitime= 0;
- var cubicle = "true";
- if (btn_vid) {
- btn_vid.onclick = function () {
-
-
- if (lpvideo.paused) {
- $('#myVideo').attr('controls','controls');
- $('.m_video_img').hide();
- if(musitime >= 600 && cubicle == "true"){
- AudioWind_video();
- return false;
- }
- lpvideo.play();
- watchMusicTime_vid()
- }else{
- lpvideo.pause();
- }
- var getCookie=cookie.get("authorization");
-
- if(getCookie){
- $('body #lpvideo').attr('data-boole','false');
- }
- }
- };
-
- function AudioWind_video(){
-
-
-
-
-
-
-
- if($('body .liveBm').is(':hidden')){
- $('body .liveBm').show(10);
- $('body .liveBm_bg').show();
- parent.w_id = $("#lpvideo").attr('data-id');
- }
- }
-
- function watchMusicTime_vid(){
- let _this = this;
-
-
- let musicDom =lpvideo;
-
- musicDom.addEventListener("timeupdate",function(){
- cubicle = $('#lpvideo').attr('data-boole');
-
-
- let timeDisplay;
-
- timeDisplay = Math.floor(musicDom.currentTime);
- musitime = timeDisplay;
-
-
-
- if(timeDisplay >= 600 && cubicle == "true"){
- lpvideo.pause();
- AudioWind_video();
- }
-
-
- let minute = timeDisplay / 60;
- let minutes = parseInt(minute);
- if (minutes < 10) {
- minutes = "0" + minutes;
- }
-
- let second = timeDisplay % 60;
- let seconds = Math.round(second);
- if (seconds < 10) {
- seconds = "0" + seconds;
- }
- let shun= minutes+":"+seconds;
-
-
- },false);
- }
-
- }else{
- $('.m_video_img').on('click',function(){
- var _video = document.getElementById("myVideo");
- myVideo.play();
- $('#myVideo').attr('controls','controls');
- $(this).hide();
- var id = $(".m_video_img").attr('data-id');
- $.ajax({
- url:'/video/houseplays',
- dataType:"json",
- type:'GET',
- data:{id:id},
- success:function(data){
- }
- });
- })
- }
|