|
|
@@ -1,7 +1,10 @@
|
|
|
function initCheck() {
|
|
|
+ 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);
|
|
|
|
|
|
$('input[type="range"]').rangeslider();
|
|
|
- // alert(getVideoPosition())
|
|
|
|
|
|
// 仅选择日期
|
|
|
$("#start-time").datetimepicker({
|
|
|
@@ -364,9 +367,9 @@ function agreeApply() {
|
|
|
|
|
|
|
|
|
function getVideoPosition() {
|
|
|
- var X = $('#tabContent1').offset().top;
|
|
|
- var Y = $('#tabContent1').offset().left;
|
|
|
- var width = $('#tabContent1').width();
|
|
|
- var height = $('#tabContent1').height();
|
|
|
- return X + "|" + Y+ "|" +width+ "|" + height;
|
|
|
+ var X = $('#tabcontent').offset().top;
|
|
|
+ var Y = $('#tabcontent').offset().left;
|
|
|
+ var width = $('#tabcontent').width();
|
|
|
+ var height = $('#tabcontent').height();
|
|
|
+ return parseInt(Y) + "|" + parseInt(X) + "|" + parseInt(width) + "|" + parseInt(height);
|
|
|
}
|