Lines Matching refs:window
23 window.onunload = mxUtils.bind(this, function()
80 window.openWindow = mxUtils.bind(this, function(url, pre, fallback)
92 wnd = window.open(url);
114 window.showOpenAlert = mxUtils.bind(this, function(message)
117 if (window.openFile != null)
119 window.openFile.cancel(true);
142 if (window.console != null)
155 window.Draw.loadPlugin = mxUtils.bind(this, function(callback)
256 App.DROPBOX_APPKEY = window.DRAWIO_DROPBOX_ID;
261 App.DROPBOX_URL = window.DRAWIO_BASE_URL + '/js/dropbox/Dropbox-sdk.min.js';
272 App.ONEDRIVE_URL = mxClient.IS_IE11? 'https://js.live.net/v7.2/OneDrive.js' : window.DRAWIO_BASE_UR…
282 App.TRELLO_JQUERY_URL = window.DRAWIO_BASE_URL + '/js/jquery/jquery-3.3.1.min.js';
302 App.SOCKET_IO_URL = window.DRAWIO_BASE_URL + '/js/socket.io/socket.io.min.js';
303 App.SIMPLE_PEER_URL = window.DRAWIO_BASE_URL + '/js/socket.io/simplepeer9.10.0.min.js';
436 if (window.location.hostname == 'db.draw.io' && urlParams['mode'] == null)
453 if (window.mxscript != null)
458 if (typeof window.DriveClient === 'function')
465 window.location.hash == '') || (window.location.hash != null &&
466 window.location.hash.substring(0, 2) == '#G'))
471 else if (urlParams['chrome'] == '0' && (window.location.hash == null ||
472 window.location.hash.substring(0, 45) !== '#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D'))
475 window.DriveClient = null;
481 window.DriveClient = null;
487 if (typeof window.DropboxClient === 'function')
493 if (App.mode == App.MODE_DROPBOX || (window.location.hash != null &&
494 window.location.hash.substring(0, 2) == '#D'))
504 window.DropboxClient = null;
510 window.DropboxClient = null;
515 if (typeof window.OneDriveClient === 'function')
521 if (App.mode == App.MODE_ONEDRIVE || (window.location.hash != null &&
522 window.location.hash.substring(0, 2) == '#W'))
529 window.OneDriveClient = null;
535 window.OneDriveClient = null;
540 if (typeof window.TrelloClient === 'function')
546 if (App.mode == App.MODE_TRELLO || (window.location.hash != null &&
547 window.location.hash.substring(0, 2) == '#T'))
556 window.TrelloClient = null;
562 window.TrelloClient = null;
600 window.onerror = function(message, url, linenumber, colno, err)
607 if (window.top == window.self &&
608 (/ac\.draw\.io$/.test(window.location.hostname) ||
609 /ac-ent\.draw\.io$/.test(window.location.hostname) ||
610 /aj\.draw\.io$/.test(window.location.hostname)))
635 if (window.mxscript != null)
671 /www\.draw\.io$/.test(window.location.hostname) ||
690 if (window.console != null)
697 if (('ArrayBuffer' in window) && !mxClient.IS_CHROMEAPP && !EditorUi.isElectronApp &&
752 var tmp = window.location.protocol + '//' + window.location.host;
793 if (typeof window.DriveClient === 'function' &&
801 else if (typeof window.gapi === 'undefined')
803 window.DriveClient = null;
827 if (isLocalStorage && localStorage != null && window.location.hash != null &&
828 window.location.hash.substring(0, 9) == '#_CONFIG_')
856 var value = JSON.parse(Graph.decompress(window.location.hash.substring(9)));
882 window.location.hash = '';
896 window.location.hash = '';
897 window.location.reload();
901 window.location.hash = '';
905 window.location.hash = '';
924 if (window.mxscript != null)
928 if (typeof window.DropboxClient === 'function' &&
929 (window.Dropbox == null && window.DrawDropboxClientCallback != null &&
944 else if (typeof window.Dropbox === 'undefined' || typeof window.Dropbox.choose === 'undefined')
946 window.DropboxClient = null;
950 if (typeof window.OneDriveClient === 'function' &&
951 (typeof OneDrive === 'undefined' && window.DrawOneDriveClientCallback != null &&
957 mxscript(App.ONEDRIVE_URL, window.DrawOneDriveClientCallback);
960 else if (typeof window.OneDrive === 'undefined')
962 window.OneDriveClient = null;
966 if (typeof window.TrelloClient === 'function' && !mxClient.IS_IE11 &&
967 typeof window.Trello === 'undefined' && window.DrawTrelloClientCallback != null &&
981 else if (typeof window.Trello === 'undefined')
983 window.TrelloClient = null;
1079 if (window.console != null)
1111 var op = window.opener || window.parent;
1123 mxEvent.removeListener(window, 'message', configHandler);
1131 if (window.console != null)
1140 mxEvent.addListener(window, 'message', configHandler);
1148 if (window.DRAWIO_CONFIG != null)
1152 EditorUi.debug('Using global configuration', window.DRAWIO_CONFIG);
1153 Editor.configure(window.DRAWIO_CONFIG);
1158 if (window.console != null)
1185 if (window.console != null)
1276 window.Draw = new Object();
1277 window.Draw.loadPlugin = function(callback)
1312 if (typeof window.drawDevUrl === 'undefined')
1336 else if (window.console != null)
1343 if (window.console != null)
1359 if (window.location.hostname == 'app.diagrams.net')
1382 var parent = window.opener || window.parent;
1498 else if (window.DrawOneDriveClientCallback == null)
1500 window.DrawOneDriveClientCallback = initOneDriveClient;
1517 if (typeof window.Trello !== 'undefined')
1535 if (window.console != null)
1541 else if (window.DrawTrelloClientCallback == null)
1543 window.DrawTrelloClientCallback = initTrelloClient;
1577 if (window.DrawGapiClientCallback != null)
1584 window.DrawGapiClientCallback = null;
1591 else if (window.DrawGapiClientCallback == null)
1593 window.DrawGapiClientCallback = initDriveClient;
1612 window.DrawDropboxClientCallback = null;
1632 if (window.console != null)
1638 else if (window.DrawDropboxClientCallback == null)
1640 window.DrawDropboxClientCallback = initDropboxClient;
1674 window.addEventListener('beforeinstallprompt', mxUtils.bind(this, function(e)
1712 var timeoutThread = window.setTimeout(mxUtils.bind(this, function()
1738 window.clearTimeout(timeoutThread);
1796 this.sanityCheckThread = window.setTimeout(mxUtils.bind(this, function()
1811 window.clearTimeout(this.sanityCheckThread);
1887 (window.location.hostname == 'test.draw.io' ||
1888 window.location.hostname == 'www.draw.io' ||
1889 window.location.hostname == 'drive.draw.io' ||
1890 window.location.hostname == 'app.diagrams.net' ||
1891 window.location.hostname == 'jgraph.github.io');
1899 if (this.pusher == null && typeof window.Pusher === 'function')
2060 …window.open('https://marketplace.atlassian.com/apps/1210933/draw-io-diagrams-for-confluence?hostin…
2068 window.setTimeout(mxUtils.bind(this, function()
2074 window.setTimeout(mxUtils.bind(this, function()
2079 window.setTimeout(hide, 60000);
2324 var timeoutThread = window.setTimeout(mxUtils.bind(this, function()
2332 window.clearTimeout(timeoutThread);
2542 window.clearTimeout(timeoutThread);
2776 var id = window.location.hash;
2811 if (window.opener != null)
2823 var doc = mxUtils.parseXml(window.opener[value]);
2826 else if (window.opener.openFile != null)
2828 window.opener.openFile.setConsumer(mxUtils.bind(this, function(xml, filename, temp)
2901 if ((window.location.hash == null || window.location.hash.length == 0) &&
2910 window.location.hash = 'G' + urlParams['fileId'];
2911 window.location.search = this.getSearch(['fileId']);
2968 window.location.reload();
3030 window.setTimeout(function()
3036 window.setTimeout(function()
3041 window.setTimeout(function()
3073 window.onerror = function(message, url, linenumber, colno, err)
3093 window.addEventListener('storage', mxUtils.bind(this, function(evt)
3107 urlParams['open'] == null && /www\.draw\.io$/.test(window.location.hostname) &&
3118 mxEvent.addListener(window, 'hashchange', mxUtils.bind(this, function(evt)
3139 window.location.hash = (file != null) ? file.getHash() : '';
3147 …if ((window.location.hash == null || window.location.hash.length <= 1) && urlParams['desc'] != nul…
3163 …else if ((window.location.hash == null || window.location.hash.length <= 1) && urlParams['url'] !=…
3172 if (urlParams['client'] == '1' && (window.location.hash == null ||
3173 window.location.hash.length == 0 || window.location.hash.substring(0, 2) == '#P'))
3196 if (window.location.hash != null && window.location.hash.substring(0, 2) == '#P')
3200 return window.location.hash.substring(1);
3208 var parent = window.opener || window.parent;
3210 if (parent != window)
3258 waiting = window.opener != null && window.opener.openFile != null;
3317 if ((window.location.hash == null || window.location.hash.length <= 1) &&
3325 window.location.search = this.getSearch(['create', 'title']);
3401 if (window.opener != null && window.opener[value] != null)
3403 showCreateDialog(window.opener[value]);
3430 if ((window.location.hash == null || window.location.hash.length <= 1) &&
3435 if (window.history && window.history.replaceState)
3438 window.history.replaceState(null, null, window.location.pathname +
3442 window.location.hash = 'G' + this.stateArg.ids[0];
3445 else if ((window.location.hash == null || window.location.hash.length <= 1) &&
3448 if (window.history && window.history.replaceState)
3451 window.history.replaceState(null, null, window.location.pathname +
3471 if (urlParams['open'] != null && window.history && window.history.replaceState)
3473 window.history.replaceState(null, null, window.location.pathname +
3475 window.location.hash = urlParams['open'];
3496 window.setTimeout(mxUtils.bind(this, function()
3524 window.setTimeout(mxUtils.bind(this, function()
3884 window.showSaveFilePicker(opts).then(mxUtils.bind(this, function(fileHandle)
3929 window.showOpenFilePicker().then(mxUtils.bind(this, function(fileHandles)
3975 window.openNew = this.getCurrentFile() != null && !this.isDiagramEmpty();
3976 window.baseUrl = this.getUrl();
3977 window.openKey = 'open';
3979 window.listBrowserFiles = mxUtils.bind(this, function(success, error)
3984 window.openBrowserFile = mxUtils.bind(this, function(title, success, error)
3989 window.deleteBrowserFile = mxUtils.bind(this, function(title, success, error)
3999 window.openFile.setConsumer(mxUtils.bind(this, function(xml, filename)
4163 window.openNew = false;
4164 window.openKey = 'open';
4166 window.listBrowserFiles = mxUtils.bind(this, function(success, error)
4171 window.openBrowserFile = mxUtils.bind(this, function(title, success, error)
4176 window.deleteBrowserFile = mxUtils.bind(this, function(title, success, error)
4185 window.openFile = new OpenFile(mxUtils.bind(this, function(cancel)
4190 window.openFile.setConsumer(mxUtils.bind(this, function(xml, filename)
4208 window.openFile = null;
4528 window.openFile = new OpenFile(function()
4530 window.openFile = null;
4534 window.openFile.setData(this.getFileData(true));
4535 this.openLink(this.getUrl(window.location.pathname), null, true);
4589 var data = (!base64) ? responseData : ((window.atob && !mxClient.IS_IE && !mxClient.IS_IE11) ?
4842 var url = window.location.pathname;
4869 var redirect = window.location.protocol + '//' + window.location.hostname + url;
4906 window.openFile = null;
4957 window.openFile = new OpenFile(function()
4959 window.openFile = null;
4962 window.openFile.setData(file.getData(), file.getTitle(), file.getMode() == null);
4970 window.openWindow(url, null, fn2);
5031 window.location.hash = (tempFile != null) ? tempFile.getHash() : '';
5041 window.location.hash = (tempFile != null) ? tempFile.getHash() : '';
5082 window.location.href = 'https://app.diagrams.net/?desc=' + id.substring(1);
5143 (this.drive != null || typeof window.DriveClient === 'function'))
5166 window.location.hash = '#' + currentFile.getHash();
5305 window.location.hash = (currentFile != null) ? currentFile.getHash() : '';
5321 window.location.hash = '';
5332 window.location.hash = '#' + currentFile.getHash();
5350 if (window.console != null && resp != null)
5361 window.location.hash = '';
5366 window.location.hash = '#' + currentFile.getHash();
5389 window.location.hash = currentFile.getHash();
5554 window.setTimeout(mxUtils.bind(this, function()
6129 window.open(notif.link, 'notifWin');
6460 window.location.hash = newHash;
6462 else if (window.location.hash.length > 0)
6464 window.location.hash = '';
6682 … data = (window.atob && !mxClient.IS_IE && !mxClient.IS_IE11) ? atob(data) : Base64.decode(data);
7029 window.setTimeout(mxUtils.bind(this, function()
7192 window.setTimeout(mxUtils.bind(this, function()
7328 window.focus();
7450 window.location.hash = '';
7481 window.location.hash = '';
7512 window.location.hash = '';
7543 window.location.hash = '';
7574 window.location.hash = '';
7606 window.location.hash = '';