view release on metacpan or search on metacpan
lib/JQuery/jquery_js/plugins/blockUI/jquery.block.js view on Meta::CPAN
$.blockUI.impl.remove(this);
});
};
// override these in your code to change the default messages and styles
$.blockUI.defaults = {
// the message displayed when blocking the entire page
pageMessage: '<h1>Please wait...</h1>',
// the message displayed when blocking an element
elementMessage: '', // none
// styles for the overlay iframe
overlayCSS: { backgroundColor: '#fff', opacity: '0.5' },
// styles for the message when blocking the entire page
pageMessageCSS: { width:'250px', margin:'-50px 0 0 -125px', top:'50%', left:'50%', textAlign:'center', color:'#000', backgroundColor:'#fff', border:'3px solid #aaa' },
// styles for the message when blocking an element
elementMessageCSS: { width:'250px', padding:'10px', textAlign:'center', backgroundColor:'#fff'}
};
// the gory details
$.blockUI.impl = {
pageBlock: null,
op8: window.opera && window.opera.version() < 9,
lib/JQuery/jquery_js/plugins/blockUI/jquery.block.js view on Meta::CPAN
msg = msg ? (msg.nodeType ? $(msg) : msg) : full ? $.blockUI.defaults.pageMessage : $.blockUI.defaults.elementMessage;
var basecss = jQuery.extend({}, full ? $.blockUI.defaults.pageMessageCSS : $.blockUI.defaults.elementMessageCSS);
css = jQuery.extend(basecss, css || {});
var f = ($.browser.msie) ? $('<iframe class="blockUI" style="z-index:1000;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;document.write(\'\');"></iframe>')
: $('<div class="blockUI" style="display:none"></div>');
var w = $('<div class="blockUI" style="z-index:1001;cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
var m = full ? $('<div class="blockUI blockMsg" style="z-index:1002;cursor:wait;padding:0;position:fixed"></div>')
: $('<div class="blockUI" style="display:none;z-index:1002;cursor:wait;position:absolute"></div>');
w.css('position', full ? 'fixed' : 'absolute');
if (msg) m.css(css);
if (!noalpha) w.css($.blockUI.defaults.overlayCSS);
if (this.op8) w.css({ width:''+el.clientWidth,height:''+el.clientHeight }); // lame
if ($.browser.msie) f.css('opacity','0.0');
$([f[0],w[0],m[0]]).appendTo(full ? 'body' : el);
if (full) this.pageBlock = m[0];
var activex = $.browser.msie && $('object,embed', full ? null : el).length > 0
if (this.ie6 || activex) { // ie7 needs abs positioning to account for activex issues (when scrolling)
// simulate fixed position
$.each([f,w,m], function(i) {
lib/JQuery/jquery_js/plugins/greybox/greybox.css view on Meta::CPAN
html, body {
padding: 0;
margin: 0;
min-height: 100%;
height: 100%;
width: 100%;
}
#GB_overlay {
position: absolute;
z-index:100;
top: 0px;
left: 0px;
background-color:#000;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
lib/JQuery/jquery_js/plugins/greybox/greybox.js view on Meta::CPAN
* @cat Plugins/Greybox
*/
/*
Defaults, all configurable via options:
{
close_img: "close.gif",
height: 400,
width: 400,
animation: false,
overlay_clickable: true,
overflow: "auto",
callback: null,
caption: ""
}
*/
(function() {
var settings = {};
GB_getPageScrollTop = function(){
var yScrolltop;
lib/JQuery/jquery_js/plugins/greybox/greybox.js view on Meta::CPAN
yScrolltop = document.documentElement.scrollTop;
xScrollleft = document.documentElement.scrollLeft;
} else if (document.body) {// all other Explorers
yScrolltop = document.body.scrollTop;
xScrollleft = document.body.scrollLeft;
}
arrayPageScroll = new Array(xScrollleft,yScrolltop);
return arrayPageScroll;
}
GB_overlay_size = function() {
try {
if(window.innerHeight && window.scrollMaxY
|| window.innerWidth && window.scrollMaxX) {
h = window.innerHeight + window.scrollMaxY;
w = window.innerWidth + window.scrollMaxX;
var deff = document.documentElement;
var wff = (deff&&deff.clientWidth)
|| document.body.clientWidth || window.innerWidth || self.innerWidth;
var hff = (deff&&deff.clientHeight) || document.body.clientHeight
|| window.innerHeight || self.innerHeight;
lib/JQuery/jquery_js/plugins/greybox/greybox.js view on Meta::CPAN
h = document.body.offsetHeight;
}
if( w < document.body.offsetWidth) {
w = document.body.offsetWidth;
}
}
} catch(err) {
w = jQuery(document.body).width();
h = jQuery(document.body).height();
}
jQuery("#GB_overlay").css({"height":h+"px", "width":w +"px"});
}
GB_position = function() {
var boxWidth = settings.width;
var boxHeight = settings.height;
jQuery('#GB_window').css({
marginLeft: '-' + parseInt(boxWidth / 2) + 'px',
width: boxWidth + 'px',
height: settings.height+"px"
});
if( !(jQuery.browser.msie && typeof(XMLHttpRequest) == 'function')) {
// take away IE6
jQuery('#GB_window').css({marginTop: '-' + parseInt(boxHeight / 2)+'px'});
}
jQuery("#GB_frame").css("height",settings.height - 32 +"px");
}
jQuery.GB_hide = function() {
jQuery("#GB_window,#GB_overlay").remove();
if(settings.callback && typeof(settings.callback) == 'function') {
settings.callback.apply();
}
}
jQuery.GB_show = function(url, options) {
settings = jQuery.extend({
close_img: "close.gif",
height: 400,
width: 400,
animation: false,
overlay_clickable: true,
overflow: "auto",
callback: null,
caption: ""
}, options || {});
jQuery(document.body)
.append(
"<div id='GB_overlay'></div>" +
"<div id='GB_window'><div id='GB_caption'></div>" +
"<img src='" + settings.close_img + "' alt='Close window'/></div>");
jQuery("#GB_window img").click(jQuery.GB_hide);
if(settings.overlay_clickable) {
jQuery("#GB_overlay").click(jQuery.GB_hide);
}
jQuery("#GB_window")
.append("<iframe id='GB_frame' src='"+url+"'></iframe>");
jQuery("#GB_frame").overflow(settings.overflow);
jQuery("#GB_caption").html(settings.caption);
GB_overlay_size();
jQuery(window).resize(GB_overlay_size);
jQuery(window).scroll(GB_overlay_size);
jQuery("#GB_overlay").show();
GB_position();
if(settings.animation) {
jQuery("#GB_window").slideDown("slow");
} else {
jQuery("#GB_window").show();
}
}
lib/JQuery/jquery_js/plugins/interface/interface.js view on Meta::CPAN
* Interface Elements for jQuery
*
* http://interface.eyecon.ro
*
* Copyright (c) 2006 Stefan Petre
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
*
*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};wh...
lib/JQuery/jquery_js/plugins/window/window.js view on Meta::CPAN
//----------------------------------------------------------------------------------------------------
/**
* CHecks the ZIndex of this window and updates the objects accordingly
* @return integer
*/
checkZIndex: function(objWindow) {
// Update window
jQuery(objWindow).css('zIndex', objWindow.jw.intZIndex);
// Update overlay
if (objWindow.jw.blnIsModal) {
objWindow.jw.objqOverlay.css('zIndex', (objWindow.jw.intZIndex - 1));
}
},
//----------------------------------------------------------------------------------------------------
/**
* Will be executed whenever a focus event is triggered on the document.
* @param EVENT
lib/JQuery/jquery_js/plugins/window/window.js view on Meta::CPAN
}
}
// Update dimensions
jqWindow.setDimensions(objWindow, objWindow.jw.hshOptions.hshDimensions);
},
//----------------------------------------------------------------------------------------------------
/**
* Sets if the window is modal (and thus has an overlay and a restricted focus set)
* @param object
* @param boolean
*/
setIsModal: function(objWindow, blnValue) {
// We can't set the modal state of this window if:
// - There is an active window
// - That window isn't thesame as this one
// - That window is allready modal (the modal window is always on top)
// If there is an active modal window, and this
if (jqWindow.objqActive &&
lib/JQuery/jquery_js/plugins/window/window.js view on Meta::CPAN
// If we have to update this window to be the active one
if (blnSetActive) {
// Change active state
jqWindow.objqActive = jQuery(objWindow);
jqWindow.objqActive.addClass('jwActive');
// Increase the zIndex
objWindow.jw.intZIndex = jqWindow.newZIndex();
// Update the overlay of needed
jqWindow.setIsModal(objWindow, objWindow.jw.hshOptions.blnIsModal);
// Update resizable if there is one
jqWindow.setIsResizable(objWindow, objWindow.jw.hshOptions.blnIsResizable, false);
// Update the window
jqWindow.checkZIndex(objWindow);
}
// Show the window
lib/JQuery/jquery_js/plugins/window/window.js view on Meta::CPAN
//----------------------------------------------------------------------------------------------------
// Initialize the default properties of this object
//----------------------------------------------------------------------------------------------------
objElem.jw = new function() {
this.blnInitialized = false; // To prevent multiple calls to various functions when building
this.blnIsMoved = false; // helper
this.blnIsResizable = false; // helper
this.blnIsDraggable = false; // helper
this.hshViewState = null; // Holds size information needed by maximize / minimize functions
this.objqOverlay = null; // Variable for the overlay object
this.objqBtnMinimize = null; // Variable for the minimize button
this.objqBtnMaximize = null; // Variable for the maximize button
this.objqBtnClose = null; // Variable for the close button
this.objqIFrame = null; // Variable for the content iFrame
this.objqContent = null; // Variable for the content DIV
this.intZIndex = 500; // Dummy value, gets overwritten
this.intWindowState = 0; // Window state
this.intPadding = 0; // For resizable
// Define default options and override them with the passed configuration, if available
lib/JQuery/jquery_js/plugins/window/window.js view on Meta::CPAN
strName: 'myWindow', // The name of the window
strTheme: 'Default', // The theme to use
hshDimensions: { // An hash with initial offsets
left: 0,
top: 0,
width: 500,
height: 400
},
hshMinSize: null, // A hash with a minimum size (width/height)
hshMaxSize: null, // A hash with a maximum size (width/height)
blnIsModal: false, // Show an overlay and prefect focus out of the window?
blnHasMinimize: true, // If the window has a minimize button
intMimimizedWidth: 200, // The width of the titlebar when minimized
blnHasMaximize: true, // If the window has a maximize button
blnHasClose: true, // If the window has a close button
blnHasStatus: true, // If the window has a status bar
blnIsDraggable: true, // Indicates if the window is draggable
blnIsResizable: true, // Indicates if the window is resizable
blnTransfer: false, // If the window uses the transferto effect
intPosition: 0, // Position untill moved: default (0), center screen (1)
blnIsRestricted: true, // Is the element restricted to the parent?
lib/JQuery/jquery_js/plugins/window/window.js view on Meta::CPAN
/**
* Removes the window completely
* @param DOM element
*/
destroy: function(objWindow) {
objqWindow = jQuery(objWindow);
// Perform the callback
jqWindow.doCallback(objWindow.jw.hshOptions.onClose, objWindow);
// Remove the overlay
jqWindow.setIsModal(objWindow, false);
// Remove connection to the current object if that is thesame
if (jqWindow.objqActive && (objWindow.jw.hshOptions.strName == jqWindow.objqActive[0].jw.hshOptions.strName))
jqWindow.objqActive = null;
// Remove the element from the array
jqWindow.removeByName(objWindow.jw.hshOptions.strName);
// Remove the window itself