Skip to content

Instantly share code, notes, and snippets.

View onza's full-sized avatar
🤓
being

Martin Farkas onza

🤓
being
View GitHub Profile
@onza
onza / gist:e6a6f89cc7d79c7f987eb3c0476dfc6b
Last active April 17, 2020 11:26
Fluid Nav, bestimmte Seite der Hauptnavi soll dabei kein Untermenü haben.
// Seite mit der ID "4" soll kein Untermenü haben:
<f:spaceless>
<div class="scroller offset js-offset">
<div class="navbar__mainnav">
<nav aria-label="main navigation">
<ul>
<f:for each="{homePage}" as="homePageItem">
<li {f:if(condition:'{homePageItem.current}', then: 'class="act"')}>
<a href="{homePageItem.link}" title="{homePageItem.title}" {f:if(condition:'{homePageItem.current}', then: 'aria-current="page"')}>{homePageItem.title}</a>
@onza
onza / cookieconsent-config.js
Last active May 23, 2020 09:18
"Osano Cookie Consent" for opt-in registration of cookies (Google Analytics, YouTube, Pardot)
// *********************************
// Because of some drawbacks wrote everything from scratch w/out Osano: github.com/onza/CookieConsent
// *********************************
// head -------
// osano cookie banner css
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
// body -------
### Keybase proof
I hereby claim:
* I am onza on github.
* I am onza (https://keybase.io/onza) on keybase.
* I have a public key ASDHI-z1LaHCAV8kp6Vphpcz8WFvu1k0yf9kYNCVPlsJ-Ao
To claim this, I am signing this object: