Skip to content

Instantly share code, notes, and snippets.

@szepeviktor
Last active January 30, 2024 22:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szepeviktor/76af8b4ccd453443556abe9dd9edb4d2 to your computer and use it in GitHub Desktop.
Save szepeviktor/76af8b4ccd453443556abe9dd9edb4d2 to your computer and use it in GitHub Desktop.
Összpontosítás az Interfoodra https://www.interfood.hu/etlap-es-rendeles/
// 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";});
//
@szepeviktor
Copy link
Author

szepeviktor commented Mar 25, 2023

Megrendelt (nem nulla) mennyiségek kizöldítése 🟢

Új CSS szabállyal.

.food-table.content .scroll-cols .cell > .bottom .number-field input:not([value="0"])
{
background-color: lightgreen
}

@szepeviktor
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment