HUAWEI Mate 9

HUAWEI Mate 9

Kirin 960
„MACHINE LEARNINGSEE MORE PRODUCT DETAILS  Click the link
"); } }, "onPlay": function () { $(".jwdisplay").removeClass("x-mask"); $(".jwpreview").removeClass("x-opacity"); $('.jwplayer .x-over').hide(); }, "onTime": function (event) { var time = event.position; var duration = event.duration; var _l = jwplayer().getDuration(); var _s = jwplayer().getPosition(); eventAction = time/duration*100; //eventAction = (_s/_l)*100; eventAction = (_s/_l)*100 if(eventAction <= 25){ eventAction = 25; }else if(eventAction <= 50){ eventAction = 50; }else if(eventAction <= 75){ eventAction = 75; }else if(eventAction < 100){ eventAction = 100; } if ( eventAction != oldEventAction ) { //console.log('track video event:' + eventAction); //play // trackEvent("Video", eventAction+"%", video.label, ""); } oldEventAction = eventAction; }, "onPause": function () { $(".jwdisplay").addClass("x-mask"); $('.jwplayer .x-over').show(); }, "onComplete": function () { //end $(".jwdisplay").addClass("x-mask"); $(".jwpreview").addClass("x-opacity"); $('.jwplayer .x-over').show(); trackEvent("Video", "end", video.label, ""); } } }; // Force using flash player in ie9 if ($('html').hasClass('ie9')) { video.primary = 'flash'; } var width = 1600, height = 900; if (typeof (video.aspectratio) == 'string' && /^[0-9]{1,2}:[0-9]{1,2}$/.test(video.aspectratio)) { var ratio = video.aspectratio.split(':'); height = width * parseInt(ratio[1]) / parseInt(ratio[0]); } $.fancybox('
', { width: width, height: height, padding: 0, margin: 20, autoSize: false, aspectRatio: true, scrolling: 'no', beforeShow: function () { try { jwplayer(video.id).setup(video); jwplayer(video.id).onFullscreen(function (event) { event.fullscreen ? $('.fancybox-close').hide() : $('.fancybox-close').show(); }) jwplayer(video.id).onReady(function (event) { // Remove video mask $('.cbg-video-mask').fadeOut(); }); $('#cbg-banner').flexslider('pause'); } catch (e) { } }, afterClose: function () { if (eventAction < 100) { trackEvent("Video", eventAction+"%", video.label, ""); } } }); }); // 一般情况加载头部、底部HTML //CommonHtml('#topPlaceholder'); //跳转到内页的按钮监测 $('.btn_toInside').on('click', function() { var thisBtn = $(this), action = thisBtn.data('btn-action'), url = thisBtn.data('btn-href'), target = thisBtn.data('btn-target') || '_self'; trackEvent("LearnMore", action, "mate9_pdp", ""); setTimeout(function() { if ( target == '_blank' ) { window.open(url); } else { location.href = url; } }, 200); return false; }); });