Skip to content

Instantly share code, notes, and snippets.

View erikpantzar's full-sized avatar
🎯
Focusing

Erik Pantzar erikpantzar

🎯
Focusing
View GitHub Profile
@erikpantzar
erikpantzar / google maps address to latlng
Created November 19, 2012 11:14
JS Google Maps - adress to latlng
// Start google maps
// Gooogle 3.4 Api,
//
// By: Erik Pantzar Celebrationstudios
//
// Functions as follows:
// Start map - (in document bottom of list)
// On press button - get adress and paste map where it should be
var map;
@erikpantzar
erikpantzar / gist:4501038
Last active December 10, 2015 22:18
HTML: <html> classes (ie7-9<)
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
@-webkit-keyframes bgcolor { 0% { background-color: #ffccf2; }
50% { background-color: #ccffcc; }
100% { background-color: #ccffff; } }
@-moz-keyframes bgcolor { 0% { background-color: #ffccf2; }
50% { background-color: #ccffcc; }
100% { background-color: #ccffff; } }
@-ms-keyframes bgcolor { 0% { background-color: #ffccf2; }
50% { background-color: #ccffcc; }
@erikpantzar
erikpantzar / _mixin_input_placeholder.scss
Created August 15, 2014 14:22
sass mixin for input::placeholder style
// Mixin to fix all prefixed versions to style placeholder :)
// source https://github.com/michaelsacca/Compass-Placeholder-Text-Mixin
@mixin input-placeholder {
&.placeholder { @content; }
&:-moz-placeholder { @content; }
&::-moz-placeholder { @content; }
&:-ms-input-placeholder { @content; }
&::-webkit-input-placeholder { @content; }
}
@erikpantzar
erikpantzar / jquery.contentToggler.js
Last active August 29, 2015 14:07
jquery.contentToggler.js
(function () {
/*
The trigger:
have the attribute: data-toggle-target= CLASSNAME
Then you can toggle All you waNtz
Close button:
Set the data-close-target and the class of things you want to hide
*/
@erikpantzar
erikpantzar / index.html
Created December 9, 2014 11:54
product-item-presentation
<div class="product-item">
<img src="" class="product-item-image" alt="" />
<h2 class="product-item-title"> PL01 Men’s Pullover </h2>
<div class="product-item-layer">
<div class="product-item-excerpt">
<p><strong>Produktkod:</strong> PW04</p>
<p>Modern passform<br>
Förstärkt nacksöm<br>
Snygga detaljer</p>
<?php
$_template = 'retailerlist';
$fields_content = new \CWP\FieldContainer($_template . "_settings", array(
'meta_box' => \CWP\MetaBox::Get('page_settings', array(
'title' => 'Sidinställningar',
'priority' => 'high',
'context' => 'side',
'none' => false,
@erikpantzar
erikpantzar / jquery.trackLinks.js
Created December 19, 2014 14:58
Google track Terese-s sajt
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FBuzzz</title>
</head>
<body>
<script type="text/javascript">