Skip to content

Instantly share code, notes, and snippets.

@thelitek
thelitek / input.scss
Created June 16, 2021 10:57
Generated by SassMeister.com.
$thm-c-accent: red;
:root {
--thm-a-hover: #{$thm-c-accent};
--thm-a-text: var(--thm-a-hover);
}
@thelitek
thelitek / input.scss
Created April 9, 2021 15:17
Generated by SassMeister.com.
.text {
padding-top:1px;
@media (min-width: 500px) {
padding-top:2px;
.hasExtraInfo & {
padding-top: 10px;
}
}
@thelitek
thelitek / yt_tracking.js
Created June 23, 2016 15:20
Fixed variable name, lines 93-96
Proszę umieścić skrypt przed zamknięciem sekcji </body>, na każdej stronie gdzie znajdują się osadzone filmiki YT:
<script type="text/javascript">
// OPTIONAL: Enable JSAPI if it's not already on the URL
// note: this will cause the Youtube player to "flash" on the page when reloading to enable the JS API
for (var e = document.getElementsByTagName("iframe"), x = e.length; x--;)
if (/youtube.com\/embed/.test(e[x].src))
if(e[x].src.indexOf('enablejsapi=') === -1)
e[x].src += (e[x].src.indexOf('?') ===-1 ? '?':'&') + 'enablejsapi=1';
@thelitek
thelitek / yt_tracking.js
Created June 23, 2016 15:20
Fixed variable name, lines 93-96
Proszę umieścić skrypt przed zamknięciem sekcji </body>, na każdej stronie gdzie znajdują się osadzone filmiki YT:
<script type="text/javascript">
// OPTIONAL: Enable JSAPI if it's not already on the URL
// note: this will cause the Youtube player to "flash" on the page when reloading to enable the JS API
for (var e = document.getElementsByTagName("iframe"), x = e.length; x--;)
if (/youtube.com\/embed/.test(e[x].src))
if(e[x].src.indexOf('enablejsapi=') === -1)
e[x].src += (e[x].src.indexOf('?') ===-1 ? '?':'&') + 'enablejsapi=1';