REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 2.51 KB
Close
/home/jambtst2015/public_html/editor/ckeditor/_source/core/dom/window.js
Text
Base64
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.document} class, which * represents a DOM document. */ /** * Represents a DOM window. * @constructor * @augments CKEDITOR.dom.domObject * @param {Object} domWindow A native DOM window. * @example * var document = new CKEDITOR.dom.window( window ); */ CKEDITOR.dom.window = function( domWindow ) { CKEDITOR.dom.domObject.call( this, domWindow ); }; CKEDITOR.dom.window.prototype = new CKEDITOR.dom.domObject(); CKEDITOR.tools.extend( CKEDITOR.dom.window.prototype, /** @lends CKEDITOR.dom.window.prototype */ { /** * Moves the selection focus to this window. * @function * @example * var win = new CKEDITOR.dom.window( window ); * <b>win.focus()</b>; */ focus : function() { // Webkit is sometimes failed to focus iframe, blur it first(#3835). if ( CKEDITOR.env.webkit && this.$.parent ) this.$.parent.focus(); this.$.focus(); }, /** * Gets the width and height of this window's viewable area. * @function * @returns {Object} An object with the "width" and "height" * properties containing the size. * @example * var win = new CKEDITOR.dom.window( window ); * var size = <b>win.getViewPaneSize()</b>; * alert( size.width ); * alert( size.height ); */ getViewPaneSize : function() { var doc = this.$.document, stdMode = doc.compatMode == 'CSS1Compat'; return { width : ( stdMode ? doc.documentElement.clientWidth : doc.body.clientWidth ) || 0, height : ( stdMode ? doc.documentElement.clientHeight : doc.body.clientHeight ) || 0 }; }, /** * Gets the current position of the window's scroll. * @function * @returns {Object} An object with the "x" and "y" properties * containing the scroll position. * @example * var win = new CKEDITOR.dom.window( window ); * var pos = <b>win.getScrollPosition()</b>; * alert( pos.x ); * alert( pos.y ); */ getScrollPosition : function() { var $ = this.$; if ( 'pageXOffset' in $ ) { return { x : $.pageXOffset || 0, y : $.pageYOffset || 0 }; } else { var doc = $.document; return { x : doc.documentElement.scrollLeft || doc.body.scrollLeft || 0, y : doc.documentElement.scrollTop || doc.body.scrollTop || 0 }; } } });
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 14
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
comment.js
690 B
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
document.js
6.17 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
documentfragment.js
1.34 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
domobject.js
7.93 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
element.js
48.88 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
elementpath.js
2.96 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
event.js
3.68 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
node.js
18.34 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
nodelist.js
481 B
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
range.js
62.68 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rangelist.js
6.40 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
text.js
4.02 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
walker.js
13.27 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
window.js
2.51 KB
lrw-r--r--
2024-11-22 17:53:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).