Forum Moderators: not2easy
<!-- .cd-schedule -->
<a href="http://js/modernizr.js">http://js/modernizr.js</a>
<a href="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js">https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js</a>
if (!window.jQuery) document.write('');
<a href="http://js/main.js">http://js/main.js</a>
<!-- Resource jQuery -->
var contextAdjust = 1;
if (typeof event.find('.third-div').html() !== "undefined") {
contextAdjust = 3;
}
if (typeof event.find('.half-div').html() !== "undefined") {
contextAdjust = 2;
}
//set modalHeader width
self.modalHeader.css({
width: eventWidth * contextAdjust +'px',
});
//set modalHeader width
self.modalHeader.css({
width: eventWidth * contextAdjust +'px',
});
//set modalBody left margin
self.modalBody.css({
marginLeft: eventWidth * contextAdjust + 'px',
});
self.modalBody.css({
width: eventWidth * contextAdjust + 'px',
}); var modalWidth = ( windowWidth*.8 > self.modalMaxWidth ) ? self.modalMaxWidth : windowWidth*.8,
modalHeight = ( windowHeight*.8 > self.modalMaxHeight ) ? self.modalMaxHeight : windowHeight*.8;
var HeaderBgScaleY = modalHeight/eventHeight,
BodyBgScaleX = (modalWidth - eventWidth); var contextAdjust = 1;
if (typeof event.find('.third-div').html() !== "undefined") {
contextAdjust = 3;
}
if (typeof event.find('.half-div').html() !== "undefined") {
contextAdjust = 2;
} var contextAdjust = .5;
if (typeof event.find('.third-div').html() !== "undefined") {
contextAdjust = 3;
}
if (typeof event.find('.half-div').html() !== "undefined") {
contextAdjust = 2;
} self.modalBody.css({
width: eventWidth * contextAdjust + 'px',
}); self.modalBody.css({
width: eventWidth * 1.71 + 'px',
});