Studien- und Berufsorientierung Exkursionen Politische Bildung Ganztagsangebote Schülervertetung Schulpartnerschaften Prävention Sport Soziales Engagement $(document).ready(function() { console.log("Test"); var count = $("table:nth-of-type(1) td").length; //Anzahl der Links(Quadrate) var z = $("table:nth-of-type(1) tr:nth-child(1) td").length; //var z = 5;//Spalten //var size = "2rem";//Größe der Quadrate $('table:nth-of-type(1)').css("display", "none"); if (count > 0) { console.log("hey.before"); $('div.u-align-justify.u-blog-control.u-post-content.u-text.u-text-2').prepend(''); console.log("hey.after"); $('#gridcontainer').append(''); $('#grid').css("grid-template-columns", "repeat(" + z + ", 1fr )"); $('div[itemprop="articleBody"] table:nth-of-type(1) a').css("display", "none"); var y = 0; for (var row = 1; row *:first-child { grid-row: 1 / 1; grid-column: 1 / 1; } .gridtile { display: flex; justify-content: center; align-items: center; transition: all 0.5s; color: white; word-break: break-all; text-align: center; margin: 5px; text-decoration: none !important; font-size: 15px; font-weight: bold; padding: 5px; } .gridtile:hover { filter: contrast(2); } @media (max-width: 1250px) { .gridtile { font-size: 12; } } @media (max-width: 800px) { .gridtile { font-size: 10; } } @media (max-width: 500px) { .gridtile { font-size: 8; } }