HTML and CSS Reference
In-Depth Information
.attr('id',id).appendTo("body");
}
var maxWidth = options.maxWidth || 5000,
maxHeight = options.maxHeight || 5000,
resampleWidth = options.resampleWidth,
resampleHeight = options.resampleHeight;
if(options.maximize) {
$("html, body").css({ padding:0, margin: 0 });
var w = Math.min(window.innerWidth,maxWidth);
var h = Math.min(window.innerHeight - 5,maxHeight)
if(touchDevice) {
Q.el.css({height: h * 2});
window.scrollTo(0,1);
w = Math.min(window.innerWidth,maxWidth);
h = Math.min(window.innerHeight - 5,maxHeight);
}
if(((resampleWidth && w > resampleWidth) ||
(resampleHeight && h > resampleHeight)) &&
touchDevice) {
Q.el.css({ width:w, height:h })
.attr({ width:w/2, height:h/2 });
} else {
Q.el.css({ width:w, height:h })
.attr({ width:w, height:h });
}
}
Q.wrapper = Q.el
.wrap("<div id='" + id + "_container'/>")
.parent()
.css({ width: Q.el.width(),
margin: '0 auto' });
Q.el.css('position','relative');
Q.ctx = Q.el[0].getContext &&
Q.el[0].getContext("2d");
Q.width = paraseInt(Q.el.attr('width'),10);
Q.height = parseInt(Q.el.attr('height'),10);
Search WWH ::




Custom Search