|
|
@@ -1,6 +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);
|
|
|
+
|
|
|
|
|
|
- alert(getVideoPosition())
|
|
|
|
|
|
// 仅选择日期
|
|
|
$("#start-time").datetimepicker({
|
|
|
@@ -351,9 +355,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);
|
|
|
}
|