pt3 page_nyheder language_da<script>
$(function () {
var $module = $('#contentArea_1_-module_118_ .full-width'),
$imageDiv = $('#contentArea_1_-module_118_ .full-image'),
$boxModule = $('#contentArea_1_-module_118_ .module'),
boxHeight = $module.hasClass('has-box') ? $boxModule.parent().height() : 0,
imageHeight = 1,
moduleGivenHeight = 0,
height,
breakPoint = true ? 672 : 0;
$(window).resize(function(){
boxHeight = $module.hasClass('has-box') ? $boxModule.parent().height() : 0;
});
if(imageHeight > moduleGivenHeight){
height = imageHeight;
} else {
height = moduleGivenHeight;
}
if(height > boxHeight){
height = height;
} else {
height = boxHeight;
}
function setHeight(){
$module.height(height);
$imageDiv.height(height);
}
//For mobile
function setPadding(){
if(window.innerWidth < breakPoint && boxHeight !== 0 && $boxModule[0].style.border !== ''){
var orientation = window.matchMedia("(orientation: landscape)").matches ? 3.0973451327 : 4.7945205479,
initialPadding = $boxModule.css('width').replace("px", "") / 100 * orientation,
boxBorder = 0,
newPadding = (initialPadding - boxBorder) < 0 ? 0 : initialPadding - boxBorder;
$boxModule.css({
'paddingLeft' : newPadding,
'paddingRight': newPadding
});
}
}
function changeBoxPos(){
boxHeight = $module.hasClass('has-box') ? $boxModule.outerHeight() : 0;
if(window.innerWidth < breakPoint && boxHeight !== 0){
$boxModule.css({
'position' : 'absolute',
'top' : height + 'px',
});
$module.css('margin-bottom', boxHeight + 'px');
} else {
$boxModule.css({
'position' : 'relative',
'top' : 'auto',
});
$module.css('margin-bottom', 0);
}
}
if(height !== 0 || moduleGivenHeight !== 0){
setHeight();
}
changeBoxPos.call(this);
setPadding.call(this);
$(window).resize(function(){
changeBoxPos.call(this);
setPadding.call(this);
});
});
</script><div class="module full-width-container full-width-image" id="contentArea_1_-module_118_">
<div class="full-image" style="background-image: url('/upl/website/nyheder/3streg_srcset-large.gif' ); background-position: left top; background-repeat: repeat-x;"> </div>
<div class="full-width " style="">
<div class="full-width-inner clear">
<div class="module-container"><div class="module no-background no-padding box-large alignleft text-left box" >
</div>
</div>
</div>
</div>
</div>