/// $(document).ready(function () { $(document).on("click", "a[href="http://approjects.co.za/?big=#mehr"][aria-controls]", function () { $("#" + $(this).attr("aria-controls")).find("tr:hidden:lt(1)").show().find("a").focus().end().end().find("tr:hidden:lt(49)").show(); $(this).nextAll(".s-results-total").find(".s-upperbound").text($("#" + $(this).attr("aria-controls")).find("tbody tr:visible").length); if ($("#" + $(this).attr("aria-controls")).find("tbody tr:hidden").length == 0) { $(this).hide(); } }); //$(document).on("click", "a[href="http://approjects.co.za/?big=#mehr"][aria-controls]", function () { // $("#" + $(this).attr("aria-controls")).find("tr:hidden:lt(1)").show().find("a").focus().end().end().find("tr:hidden:lt(9)").show(); // $(this).nextAll(".s-results-total").find(".s-upperbound").text($("#" + $(this).attr("aria-controls")).find("tbody tr:visible").length); // if ($("#" + $(this).attr("aria-controls")).find("tbody tr:hidden").length == 0) { $(this).hide(); } //}); const params = new URLSearchParams(window.location.search); if (params.has("search") && params.get("search") != "") { var search = params.get("search"); if (search.length > 64) { search = search.substring(0, 64); } search = search.replace(/[^a-zA-ZäöüÄÖÜß0-9 _\."-]/gim, "").replace(/\s{2,}/gim, " ").trim(); document.getElementById("s-news-search").value = search; } $("[data-click='open-in-popup']").on("click", function (e) { var popupWidth = "590"; var popupHeight = "600"; var left = (screen.width / 2) - (popupWidth / 2); var top = (screen.height / 2) - (popupHeight / 2); if (window.open($(this).attr("href"), "_blank", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=" + popupWidth + ", height=" + popupHeight + ", top=" + top + ", left=" + left)) { return false; } }); });