亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? floatingpane.js

?? 圖書管理系統包括圖書的增加、刪除、修改等功能
?? JS
字號:
/*	Copyright (c) 2004-2006, The Dojo Foundation	All Rights Reserved.	Licensed under the Academic Free License version 2.1 or above OR the	modified BSD license. For more information on Dojo licensing, see:		http://dojotoolkit.org/community/licensing.shtml*/dojo.provide("dojo.widget.FloatingPane");
dojo.provide("dojo.widget.html.FloatingPane");

//
// this widget provides a window-like floating pane
//

dojo.require("dojo.widget.*");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.html");
dojo.require("dojo.html.shadow");
dojo.require("dojo.style");
dojo.require("dojo.dom");
dojo.require("dojo.html.layout");
dojo.require("dojo.widget.ContentPane");
dojo.require("dojo.dnd.HtmlDragMove");
dojo.require("dojo.dnd.HtmlDragMoveSource");
dojo.require("dojo.dnd.HtmlDragMoveObject");
dojo.require("dojo.widget.ResizeHandle");

dojo.widget.html.FloatingPane = function(){
	dojo.widget.html.ContentPane.call(this);
}

dojo.inherits(dojo.widget.html.FloatingPane, dojo.widget.html.ContentPane);

dojo.lang.extend(dojo.widget.html.FloatingPane, {
	widgetType: "FloatingPane",

	// Constructor arguments
	title: '',
	iconSrc: '',
	hasShadow: false,
	constrainToContainer: false,
	taskBarId: "",
	resizable: true,
	titleBarDisplay: "fancy",

	windowState: "normal",
	displayCloseAction: false,
	displayMinimizeAction: false,
	displayMaximizeAction: false,

	maxTaskBarConnectAttempts: 5,
	taskBarConnectAttempts: 0,

	templatePath: dojo.uri.dojoUri("src/widget/templates/HtmlFloatingPane.html"),
	templateCssPath: dojo.uri.dojoUri("src/widget/templates/HtmlFloatingPane.css"),

	drag: null,

	fillInTemplate: function(args, frag){
		// Copy style info from input node to output node
		var source = this.getFragNodeRef(frag);
		dojo.html.copyStyle(this.domNode, source);

		// necessary for safari, khtml (for computing width/height)
		document.body.appendChild(this.domNode);

		// if display:none then state=minimized, otherwise state=normal
		if(!this.isShowing()){
			this.windowState="minimized";
		}

		// <img src=""> can hang IE!  better get rid of it
		if(this.iconSrc==""){
			dojo.dom.removeNode(this.titleBarIcon);
		}else{
			this.titleBarIcon.src = this.iconSrc.toString();// dojo.uri.Uri obj req. toString()
		}

		if(this.titleBarDisplay!="none"){	
			this.titleBar.style.display="";
			dojo.html.disableSelection(this.titleBar);

			this.titleBarIcon.style.display = (this.iconSrc=="" ? "none" : "");

			this.minimizeAction.style.display = (this.displayMinimizeAction ? "" : "none");
			this.maximizeAction.style.display= 
				(this.displayMaximizeAction && this.windowState!="maximized" ? "" : "none");
			this.restoreAction.style.display= 
				(this.displayMaximizeAction && this.windowState=="maximized" ? "" : "none");
			this.closeAction.style.display= (this.displayCloseAction ? "" : "none");

			this.drag = new dojo.dnd.HtmlDragMoveSource(this.domNode);	
			if (this.constrainToContainer) {
				this.drag.constrainTo();
			}
			this.drag.setDragHandle(this.titleBar);

			var self = this;

			dojo.event.topic.subscribe("dragMove",
				function (info){
					if (info.source.domNode == self.domNode){
						dojo.event.topic.publish('floatingPaneMove', { source: self } );
					}
				}
			);

		}

		if(this.resizable){
			this.resizeBar.style.display="";
			var rh = dojo.widget.createWidget("ResizeHandle", {targetElmId: this.widgetId, id:this.widgetId+"_resize"});
			this.resizeBar.appendChild(rh.domNode);
		}

		// add a drop shadow
		if(this.hasShadow){
			this.shadow=new dojo.html.shadow(this.domNode);
		}

		// Prevent IE bleed-through problem
		this.bgIframe = new dojo.html.BackgroundIframe(this.domNode);

		if( this.taskBarId ){
			this.taskBarSetup();
		}

		if (dojo.hostenv.post_load_) {
			this.setInitialWindowState();
		} else {
			dojo.addOnLoad(this, "setInitialWindowState");
		}

		// counteract body.appendChild above
		document.body.removeChild(this.domNode);

		dojo.widget.html.FloatingPane.superclass.fillInTemplate.call(this, args, frag);
	},

	postCreate: function(){
		if(this.isShowing()){
			this.width=-1;	// force resize
			this.resizeTo(dojo.style.getOuterWidth(this.domNode), dojo.style.getOuterHeight(this.domNode));
		}
	},

	maximizeWindow: function(evt) {
		this.previous={
			width: dojo.style.getOuterWidth(this.domNode) || this.width,
			height: dojo.style.getOuterHeight(this.domNode) || this.height,
			left: this.domNode.style.left,
			top: this.domNode.style.top,
			bottom: this.domNode.style.bottom,
			right: this.domNode.style.right
		};
		this.domNode.style.left =
			dojo.style.getPixelValue(this.domNode.parentNode, "padding-left", true) + "px";
		this.domNode.style.top =
			dojo.style.getPixelValue(this.domNode.parentNode, "padding-top", true) + "px";

		if ((this.domNode.parentNode.nodeName.toLowerCase() == 'body')) {
			this.resizeTo(
				dojo.html.getViewportWidth()-dojo.style.getPaddingWidth(document.body),
				dojo.html.getViewportHeight()-dojo.style.getPaddingHeight(document.body)
			);
		} else {
			this.resizeTo(
				dojo.style.getContentWidth(this.domNode.parentNode),
				dojo.style.getContentHeight(this.domNode.parentNode)
			);
		}
		this.maximizeAction.style.display="none";
		this.restoreAction.style.display="";
		this.windowState="maximized";
	},

	minimizeWindow: function(evt) {
		this.hide();
		this.windowState = "minimized";
	},

	restoreWindow: function(evt) {
		if (this.windowState=="minimized") {
			this.show() 
		} else {
			for(var attr in this.previous){
				this.domNode.style[attr] = this.previous[attr];
			}
			this.resizeTo(this.previous.width, this.previous.height);
			this.previous=null;

			this.restoreAction.style.display="none";
			this.maximizeAction.style.display=this.displayMaximizeAction ? "" : "none";
		}

		this.windowState="normal";
	},

	closeWindow: function(evt) {
		dojo.dom.removeNode(this.domNode);
		this.destroy();
	},

	onMouseDown: function(evt) {
		this.bringToTop();
	},

	bringToTop: function() {
		var floatingPanes= dojo.widget.manager.getWidgetsByType(this.widgetType);
		var windows = [];
		for (var x=0; x<floatingPanes.length; x++) {
			if (this.widgetId != floatingPanes[x].widgetId) {
					windows.push(floatingPanes[x]);
			}
		}

		windows.sort(function(a,b) {
			return a.domNode.style.zIndex - b.domNode.style.zIndex;
		});
		
		windows.push(this);

		var floatingPaneStartingZ = 100;
		for (x=0; x<windows.length;x++) {
			windows[x].domNode.style.zIndex = floatingPaneStartingZ + x;
		}
	},

	setInitialWindowState: function() {
		if (this.windowState == "maximized") {
			this.maximizeWindow();
			this.show();
			return;
		}

		if (this.windowState=="normal") {
			this.show();
			return;
		}

		if (this.windowState=="minimized") {
			this.hide();
			return;
		}

		this.windowState="minimized";
	},

	// add icon to task bar, connected to me
	taskBarSetup: function() {
		var taskbar = dojo.widget.getWidgetById(this.taskBarId);
		if (!taskbar){
			if (this.taskBarConnectAttempts <  this.maxTaskBarConnectAttempts) {
				dojo.lang.setTimeout(this, this.taskBarSetup, 50);
				this.taskBarConnectAttempts++;
			} else {
				dojo.debug("Unable to connect to the taskBar");
			}
			return;
		}
		taskbar.addChild(this);
	},

	show: function(){
		dojo.widget.html.FloatingPane.superclass.show.apply(this, arguments);
		this.bringToTop();
	},

	onShow: function(){
		dojo.widget.html.FloatingPane.superclass.onShow.call(this);
		this.resizeTo(dojo.style.getOuterWidth(this.domNode), dojo.style.getOuterHeight(this.domNode));
	},

	// This is called when the user adjusts the size of the floating pane
	resizeTo: function(w, h){
		dojo.style.setOuterWidth(this.domNode, w);
		dojo.style.setOuterHeight(this.domNode, h);

		dojo.html.layout(this.domNode,
			[
			  {domNode: this.titleBar, layoutAlign: "top"},
			  {domNode: this.resizeBar, layoutAlign: "bottom"},
			  {domNode: this.containerNode, layoutAlign: "client"}
			] );

		// If any of the children have layoutAlign specified, obey it
		dojo.html.layout(this.containerNode, this.children, "top-bottom");
		
		this.bgIframe.onResized();
		if(this.shadow){ this.shadow.size(w, h); }
		this.onResized();
	},

	checkSize: function() {
		// checkSize() is called when the user has resized the browser window,
		// but that doesn't affect this widget (or this widget's children)
		// so it can be safely ignored...
		// TODO: unless we are maximized.  then we should resize ourself.
	}
});

dojo.widget.tags.addParseTreeHandler("dojo:FloatingPane");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
热久久国产精品| 久久97超碰国产精品超碰| 久久久精品黄色| 久久亚洲精品小早川怜子| 久久久精品日韩欧美| 国产精品入口麻豆九色| 综合激情成人伊人| 亚洲国产欧美日韩另类综合| 亚洲一区二区偷拍精品| 日韩av一区二区在线影视| 蜜臀av性久久久久av蜜臀妖精| 欧美96一区二区免费视频| 久久精品国产999大香线蕉| 国产麻豆一精品一av一免费| 99视频精品在线| 在线免费观看视频一区| 欧美精品久久一区| 久久久久国产精品厨房| 亚洲私人黄色宅男| 午夜欧美在线一二页| 狠狠色综合播放一区二区| 成人黄色a**站在线观看| 欧美三级中文字| 精品久久久久久最新网址| 国产精品丝袜在线| 午夜亚洲国产au精品一区二区| 精品一区二区三区影院在线午夜| 丰满亚洲少妇av| 欧美日韩视频第一区| 久久久久青草大香线综合精品| 国产精品久久久久7777按摩| 亚洲一区二区三区中文字幕| 九九久久精品视频| 99国产精品久| 日韩视频一区二区三区在线播放| 中文一区二区完整视频在线观看 | 日本va欧美va精品| 国产黄色精品网站| 欧美日韩小视频| 欧美经典一区二区三区| 日韩高清在线不卡| 成+人+亚洲+综合天堂| 日韩免费福利电影在线观看| 亚洲桃色在线一区| 国产激情91久久精品导航| 欧美日韩的一区二区| 最新国产精品久久精品| 九色综合狠狠综合久久| 欧美色倩网站大全免费| 亚洲国产经典视频| 国内久久精品视频| 制服丝袜中文字幕亚洲| 一区二区三区在线视频免费观看| 国产另类ts人妖一区二区| 欧美精品久久久久久久久老牛影院| 国产精品进线69影院| 久久成人久久鬼色| 日韩欧美一级片| 视频精品一区二区| 欧美日韩一级大片网址| 亚洲精品免费在线播放| 成人av免费在线观看| 久久久www免费人成精品| 免费高清在线一区| 日韩一区二区免费在线电影| 亚洲成人av免费| 欧美日免费三级在线| 亚洲欧美国产高清| 97超碰欧美中文字幕| 国产精品美女久久久久久久| 国产裸体歌舞团一区二区| 久久综合视频网| 韩国精品久久久| 亚洲精品一区二区三区四区高清 | 国产成人精品一区二区三区网站观看 | 毛片一区二区三区| 欧美精品日韩综合在线| 亚洲电影一级片| 欧美一区二区三区成人| 免费一区二区视频| 精品国产三级电影在线观看| 国产麻豆精品久久一二三| 中文字幕+乱码+中文字幕一区| gogogo免费视频观看亚洲一| 亚洲欧美日韩国产综合| 欧美网站大全在线观看| 偷拍一区二区三区| 精品第一国产综合精品aⅴ| 国产传媒一区在线| 亚洲免费av在线| 欧美一级欧美三级在线观看| 韩国三级中文字幕hd久久精品| 精品99一区二区| 成人午夜av影视| 亚洲一二三四久久| 日韩欧美一二区| 不卡的av中国片| 亚洲国产精品久久人人爱蜜臀| 日韩视频免费直播| 99精品久久只有精品| 午夜精品一区二区三区三上悠亚| 欧美成人在线直播| 91视视频在线观看入口直接观看www | 波多野结衣欧美| 五月综合激情日本mⅴ| 久久精品视频免费| 91成人免费电影| 国产精品亚洲综合一区在线观看| 亚洲情趣在线观看| 日韩精品一区二区三区在线 | 激情久久五月天| 亚洲精品国产精华液| 日韩美一区二区三区| 99re亚洲国产精品| 六月丁香婷婷色狠狠久久| 亚洲天堂精品在线观看| 欧美成人精精品一区二区频| 日本高清不卡一区| 国产一区二区三区久久久| 亚洲福中文字幕伊人影院| 国产欧美一区二区精品性色超碰| 欧美亚洲高清一区| 成人国产一区二区三区精品| 日精品一区二区| 亚洲精品国产无天堂网2021| 26uuu亚洲综合色| 欧美精品九九99久久| 99国产欧美另类久久久精品| 韩国v欧美v日本v亚洲v| 视频一区二区三区在线| 亚洲综合激情另类小说区| 国产精品久久久久久久浪潮网站 | 一区二区三国产精华液| 国产亚洲欧美一区在线观看| 日韩一级视频免费观看在线| 欧美亚洲高清一区二区三区不卡| 99久久综合精品| 丁香一区二区三区| 国产盗摄精品一区二区三区在线 | 一区二区三区在线影院| 国产精品久久看| 国产欧美综合在线观看第十页| 日韩三级伦理片妻子的秘密按摩| 欧美综合天天夜夜久久| 99久久精品费精品国产一区二区| 懂色av中文一区二区三区| 国产伦精品一区二区三区视频青涩 | 国产精品电影一区二区| 国产精品理论在线观看| 中文字幕永久在线不卡| 国产精品色婷婷| 国产精品麻豆欧美日韩ww| 中文字幕一区二区三区乱码在线 | 亚洲精品中文字幕在线观看| 日韩毛片精品高清免费| 亚洲视频免费在线观看| 亚洲免费在线播放| 亚洲一区二区三区小说| 无吗不卡中文字幕| 麻豆精品国产传媒mv男同| 国产一区二区三区精品欧美日韩一区二区三区 | 日韩欧美你懂的| 久久日韩粉嫩一区二区三区| 久久久久久一级片| 中文字幕精品三区| 一区二区成人在线视频| 婷婷开心久久网| 韩国女主播一区二区三区| 成熟亚洲日本毛茸茸凸凹| 99精品国产热久久91蜜凸| 欧美自拍丝袜亚洲| 欧美不卡一区二区三区| 欧美国产精品一区二区三区| 1000精品久久久久久久久| 香蕉成人伊视频在线观看| 精久久久久久久久久久| 成人免费视频网站在线观看| 91久久国产综合久久| 欧美一区二区三区四区视频| 久久女同精品一区二区| 亚洲靠逼com| 麻豆精品国产传媒mv男同| 丰满白嫩尤物一区二区| 欧洲精品在线观看| 综合亚洲深深色噜噜狠狠网站| 亚洲国产成人va在线观看天堂| 黄色小说综合网站| 欧美性三三影院| 久久亚洲综合色| 亚洲国产综合人成综合网站| 韩国女主播一区| 欧美亚洲愉拍一区二区| 国产女人18毛片水真多成人如厕| 一区二区三区欧美日| 国产一区啦啦啦在线观看| 在线免费观看不卡av| 国产亚洲短视频| 日韩中文字幕一区二区三区| 成人精品高清在线| 久久综合久久综合久久|