/*! * Isotope PACKAGED v3.0.4 * * Licensed GPLv3 for open source use * or Isotope Commercial License for commercial use * * https://isotope.metafizzy.co * Copyright 2017 Metafizzy */ (function () { var jQuery; if (window.jQuery === undefined || (window.jQuery.fn.jquery.charAt(0) !== '2' && window.jQuery.fn.jquery.charAt(0) !== '1')) { var script_tag = document.createElement('script'); script_tag.setAttribute("type", "text/javascript"); script_tag.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"); if (script_tag.readyState) { script_tag.onreadystatechange = function () { // For old versions of IE if (this.readyState == 'complete' || this.readyState == 'loaded') { scriptLoadHandler(); } }; } else { script_tag.onload = scriptLoadHandler; } (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag); } else { jQuery = window.jQuery; main(); } function scriptLoadHandler() { jQuery = window.jQuery.noConflict(true); main(); } function main() { jQuery(document).ready(function ($) { /******* Load CSS *******/ var css_link = $("", { rel: "stylesheet", type: "text/css", href: "https://da-schau-her.de/styles/codesnippet/ansicht8.css" }); css_link.appendTo('head'); var script_tag = document.createElement('script'); script_tag.setAttribute("type", "text/javascript"); script_tag.setAttribute("src", "https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js"); (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag); /******* Load HTML *******/ var url = "https://da-schau-her.de/start/ladeEmpfehlungen/8/107.php?event_produktid=29%2C851&event_dienstlid=2%2C28%2C163"; $.ajax({ type: "GET", url: url, cache: false, success: function (data) { $('#daschauher-container-8').html(data); setTimeout(function(){ jQuery('.grid').isotope({ // options itemSelector: '.grid-item', layoutMode: 'masonry' }); }, 100); setTimeout(function(){ jQuery('.grid').isotope({ // options itemSelector: '.grid-item', layoutMode: 'masonry' }); }, 1000); } }); }); } })();