Last active
January 30, 2024 22:23
-
-
Save szepeviktor/76af8b4ccd453443556abe9dd9edb4d2 to your computer and use it in GitHub Desktop.
Összpontosítás az Interfoodra https://www.interfood.hu/etlap-es-rendeles/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Nagy betűk | |
document.querySelectorAll(".food-etlap-szoveg").forEach(function (text) {text.style.fontSize="16px"; text.style.lineHeight=1.2;}); | |
// Teljes szélességű táblázat | |
document.querySelectorAll(".food-table.top").forEach(function (element) {element.style.width="100%";}); | |
document.querySelectorAll(".row").forEach(function (element) {element.style.maxWidth="none";}); | |
// A kis adagos menük elrejtése | |
document.querySelectorAll("[id^='sorszuro_id-'][id$='K']").forEach(function (menuRow) {menuRow.style.display="none";}); | |
// Más napok elrejtése | |
var napSzam = 2; | |
document.querySelectorAll(".food-table .inner .cell").forEach(function (menuCell) {menuCell.style.opacity=0.05;}); | |
document.querySelectorAll(".food-table .inner .cell:nth-child("+napSzam.toString()+")").forEach(function (menuCell) {menuCell.style.opacity=1;}); | |
// Vegán V megjelölése | |
document.querySelectorAll(".food-etlap-szoveg b").forEach(function (vegan) {vegan.style.backgroundColor="yellow"; vegan.style.paddingLeft="5px"; vegan.style.paddingRight="5px";}); | |
// | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Megrendelt (nem nulla) mennyiségek kizöldítése 🟢
Új CSS szabállyal.