Skip to content

Instantly share code, notes, and snippets.

@zolitch
zolitch / Videoplayer require js module
Last active August 29, 2015 14:11
Videoplayer require js module to leverage Youtube api
/*
Videoplayer
Author: Stephen Zsolnai (http://www.zolla.co.uk)
Decription: Youtube api video module.
This module will wait for the global callback from Youtube API if it is requested.
That is the trigger to set up the necessary video players.
Events will be fired to send tracking data and the video data is pulled from embedded iframes like so:
<iframe id="competitionVideo"
@zolitch
zolitch / Background image with overlay
Last active August 29, 2015 14:12
Background image with overlay in one declaration
.darken {
background-image:
linear-gradient(
rgba(0, 0, 0, 0.5),
rgba(0, 0, 0, 0.5)
),
url(image.jpg);
}
/*
Also see: http://dabblet.com/gist/a8be0d5d5731023f9c1a for color blend option.
@zolitch
zolitch / layout.css
Created February 6, 2012 21:54
test gist from sublime
/*
* Skeleton V1.1
* Copyright 2011, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 8/17/2011
*/
/* Table of Content
@zolitch
zolitch / window.log
Created February 11, 2012 12:49
window.log function
window.log = window.log || function(message){
if (window.console && window.console.log){
window.console.log(message);
}
};
@zolitch
zolitch / debug.js
Created February 20, 2012 09:55 — forked from davetayls/debug.js
Basic debug module
/**
* Basic debug AMD module
* usage: debug.log('inside coolFunc',this,arguments);
*/
/*jslint browser: true, vars: true, white: true, forin: true */
/*global define, require */
(function(){
'use strict';
var debug = {
@zolitch
zolitch / dabblet.css
Created February 20, 2012 09:56 — forked from davetayls/dabblet.css
Move in a circle without wrapper elements
/**
* Move in a circle without wrapper elements
* Idea by Aryeh Gregor, simplified by Lea Verou
*/
@keyframes rot {
from {
transform: rotate(0deg)
translate(-150px)
rotate(0deg);
@zolitch
zolitch / $ settings object
Created May 3, 2012 14:50
$ settings object
settings = $.extend({}, DEFAULTS, o || {});
@zolitch
zolitch / log (Paul Irish version)
Created January 28, 2013 21:52
// usage: log('inside coolFunc', this, arguments); // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
if(this.console) {
arguments.callee = arguments.callee.caller;
console.log( Array.prototype.slice.call(arguments) );
}
};
@zolitch
zolitch / loading
Last active December 14, 2015 06:29
loading css
.loading {
background: url(/images/rfulive/loading.gif) no-repeat center center;
width: 100%;
height: 100%;
z-index: 20;
position: absolute;
text-indent: -999em;
overflow: hidden;
top: 0;
left: 0;
@zolitch
zolitch / Facebook link share
Created April 3, 2013 09:18
Facebook link share