wenhongquan 9 лет назад
Родитель
Сommit
e1ed191ada
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      VisualInspection/js/mytask/check.js

+ 6 - 1
VisualInspection/js/mytask/check.js

@@ -4,7 +4,12 @@ function initCheck() {
 		event.initMessageEvent ('setvideoposition', true, true, getVideoPosition(), origin, 1234, window, null);
 		document.dispatchEvent (event);
 
-
+ $(window).scroll(function(event){
+event = document.createEvent('MessageEvent');
+		var origin = window.location.protocol + '//' + window.location.host;
+		event.initMessageEvent ('setvideoposition', true, true, getVideoPosition(), origin, 1234, window, null);
+		document.dispatchEvent (event);
+    });
 
     // 仅选择日期
     $("#start-time").datetimepicker({