Skip to content

Instantly share code, notes, and snippets.

View eheiser's full-sized avatar
🏠
Working from home

Erwin Heiser eheiser

🏠
Working from home
View GitHub Profile
//show-hide widgets on homepage - this was unusable on hover
$('#utility li > a').click(function() {
target = $(this).next();
if ($(target).css('display') !='none' ) {
$(target).slideUp(500).removeClass('open');
e.preventDefault();
}
else
{
$("ul.sub").not(target).each(function(){
@eheiser
eheiser / nsm_transplant
Created March 21, 2012 12:15
NSM transplant
{exp:nsm_transplant:body} {!-- allows to replace {image-1} with actual image code --}
{exp:channel:entries channel="topics" disable="member_data|pagination" entry_id="{embed:the_id}"}
<div id="info">
<h3 class="png">Info / facts over {title}</h3>
<div>
<div class="def">{topic_intro}</div>
{topic_text}
{!-- looping through the matrix, caching the output --}
@eheiser
eheiser / SassMeister-input-HTML.html
Created June 11, 2014 13:53
Generated by SassMeister.com.
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
@eheiser
eheiser / SassMeister-input-HTML.html
Created August 31, 2014 15:21
Generated by SassMeister.com.
<div class="page">
<header>
<a class="logo" href="#"><img src="http://app.reminderbear.com/assets/images/panda-bear-large.png"></a>
<h1 class="company-name">Pandas 'R Us</h1>
<nav>
<ul>
<li class="nav-item"><a href="#">Nav 1</a></li>
<li class="nav-item"><a href="#">Nav 2</a></li>
<li class="nav-item"><a href="#">Nav 3</a></li>
<li class="nav-item"><a href="#">Nav 4</a></li>
@eheiser
eheiser / SassMeister-input-HTML.html
Created August 31, 2014 15:22
Generated by SassMeister.com.
<div class="container">
<div class="one">1</div>
<div class="two">2</div>
<div class="three">3</div>
<div class="four">4</div>
</div>
@eheiser
eheiser / vanilla-1.html
Created October 12, 2020 22:47
Vanilla js day 1
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<title>HTML template</title>
</head>
<body>
<form class="form p-4">
<div class="form-group">
@eheiser
eheiser / vanilla-2.html
Last active October 14, 2020 18:37
Vanilla js day 3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Vanilla js project 2</title>
</head>
<body>
<!-- When a user clicks on the #show-passwords checkbox, it should show the text for the #current-password and #new-password fields if it’s checked, and mask it if it’s unchecked. -->
<form>
<div>
@eheiser
eheiser / vanilla-2-alt.html
Created October 15, 2020 10:54
Vanilla js day 3 alternate solution
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Vanilla js project 2 alt</title>
</head>
<body>
<!-- When a user clicks on the #show-passwords checkbox, it should show the text for the #current-password and #new-password fields if it’s checked, and mask it if it’s unchecked. -->
<form>
<div>