if($('#NICHEHUSET_jobannoncer_slut').length > 0){ $('#NICHEHUSET_jobannoncer_start').html('

Karriere

Se alle »
Henter stillinger...
INDRYK JOBANNONCE
');$('#NICHEHUSET_jobannoncer_slut').html('

Karriere

Se alle »
INDRYK JOBANNONCE
'); window.onload = function(){ /* $(window).on('load', function () { */ console.log("TEST"); var sidebarHeight = $("section.sidebar:first").height(); if ($("section.sidebar:first").length == 0){ var sidebarHeight = $("div.sidebar:first").height(); } var jobannoncerHeight_start = $("#NICHEHUSET_jobannoncer_start").outerHeight(true); function saethoejde() { var mainHeight = $("section.main-content:first").height(); if ($("section.main-content:first").length == 0){ var mainHeight = $("div.main-content:first").height(); } var diffHeight = mainHeight-sidebarHeight+jobannoncerHeight_start; var maxHeight = diffHeight-jobannoncerHeight_start; //$("#NICHEHUSET_jobannoncer_start").css("height", diffHeight+"px"); var job_bund = $('#NICHEHUSET_jobannoncer_slut_annoncer .NICHEHUSET_jobannoncer_rows'); var length = job_bund.length; $("#henterjobs").remove(); var antalflyttet = 0; job_bund.each(function(index, element) { nextelement = $(this); var oldHeight = $("#NICHEHUSET_jobannoncer_start_annoncer").height(); var newHeight = oldHeight+nextelement.height(); if(newHeight <= maxHeight){ nextelement.appendTo("#NICHEHUSET_jobannoncer_start_annoncer"); antalflyttet++; //$("#NICHEHUSET_jobannoncer_start_annoncer").css("height", newHeight+"px"); if (index === (length - 1)) { $("#NICHEHUSET_jobannoncer_slut").hide(); } else { $("#NICHEHUSET_jobannoncer_slut").show(); } } }); if(antalflyttet == 0 && $("#NICHEHUSET_jobannoncer_start_annoncer").html() == ''){ $("#NICHEHUSET_jobannoncer_start").hide(); } else { $("#NICHEHUSET_jobannoncer_start").show(); } } function saethoejde_mobil(rev) { $("#NICHEHUSET_jobannoncer_start").css("height", "auto"); var job_top = $('#NICHEHUSET_jobannoncer_start_annoncer .NICHEHUSET_jobannoncer_rows'); jQuery.fn.reverse = [].reverse; $("#henterjobs").remove(); job_top.reverse().each(function(index, element) { nextelement = $(this); nextelement.prependTo("#NICHEHUSET_jobannoncer_slut_annoncer"); }); if(!rev){ var job_bund = $('#NICHEHUSET_jobannoncer_slut_annoncer .NICHEHUSET_jobannoncer_rows:lt(10)'); job_bund.each(function(index, element) { nextelement = $(this); nextelement.appendTo("#NICHEHUSET_jobannoncer_start_annoncer"); }); } } if($(window).width() < 992){ saethoejde_mobil(); } else { saethoejde(); if ($("section.main-content:first").length == 0){ $('div.main-content:first img.lazy').load(function() { saethoejde(); }); } else { $('section.main-content:first img.lazy').load(function() { saethoejde(); }); } } var prevsize = null; $(window).resize(function() { clearTimeout(window.resizedFinished); window.resizedFinished = setTimeout(function(){ var size = $(window).width(); var oldsize = window.prevsize; if (size < 992 && (oldsize > 991 || oldsize == null)){ saethoejde_mobil(); } else if (size > 991 && oldsize < 992) { saethoejde_mobil(1); saethoejde(); } window.prevsize = size; }, 250); }); }; } else { $('#NICHEHUSET_jobannoncer_start').html('

Karriere

Se alle »
INDRYK JOBANNONCE
'); $(window).on('load', function() { if ($(window).width() > 992){ var mainHeight = $("section.main-content:first").height(); if ($("section.main-content:first").length == 0){ var mainHeight = $("div.main-content:first").height(); } var job_bund = $('#NICHEHUSET_jobannoncer_slut_annoncer .NICHEHUSET_jobannoncer_rows'); jQuery.fn.reverse = [].reverse; var antalflyttet = 0; job_bund.reverse().each(function(index, element) { nextelement = $(this); var oldHeight = $("section.sidebar:first").height(); if ($("section.sidebar:first").length == 0){ var oldHeight = $("div.sidebar:first").height(); } var newHeight = oldHeight-nextelement.height(); if(newHeight > mainHeight){ nextelement.remove(); } else { antalflyttet++; } }); if(antalflyttet <= 0){ $("#NICHEHUSET_jobannoncer_start").hide(); } else { $("#NICHEHUSET_jobannoncer_start").show(); } } }); } $.ajax({async:false,url:"https://annoncer.nichehuset.dk/job/cache.gemstatistik.php?type=visn&annonceid=3838,3875&medie=mandagmorgen&udgivelse=mm.dk"});