Skip to content

Instantly share code, notes, and snippets.

View yatil's full-sized avatar
💭
Workin’

Eric Eggert yatil

💭
Workin’
View GitHub Profile
/**
* Note that this script is intended to be included at the *end* of the document, before </body>
*/
(function (window, document) {
if ('open' in document.createElement('details')) return;
// made global by myself to be reused elsewhere
var addEvent = (function () {
if (document.addEventListener) {
return function (el, type, fn) {
/* focusin/out event polyfill (firefox) */
!function(){
var w = window,
d = w.document;
if( w.onfocusin === undefined ){
d.addEventListener('focus' ,addPolyfill ,true);
d.addEventListener('blur' ,addPolyfill ,true);
d.addEventListener('focusin' ,removePolyfill ,true);
d.addEventListener('focusout' ,removePolyfill ,true);
/* focusin/out event polyfill (firefox) */
!function(){
var w = window,
d = w.document;
if( w.onfocusin === undefined ){
d.addEventListener('focus' ,addPolyfill ,true);
d.addEventListener('blur' ,addPolyfill ,true);
d.addEventListener('focusin' ,removePolyfill ,true);
d.addEventListener('focusout' ,removePolyfill ,true);
@yatil
yatil / .htaccess
Created May 29, 2013 12:09 — forked from meaku/.htaccess
# HTTP(S) Stuff
# Redirect all users except IE 5-8 & Android < 4 to HTTPS
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP_USER_AGENT} !MSIE\ [5-8]
RewriteCond %{HTTP_USER_AGENT} !Android.*(Mobile)?\ [0-3]
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L]
<div class="container list-item story stretched" xid="list-item-9" id="element-337" style="-webkit-transform: translate3d(0px, 4500px, 0px) scaleX(1) scaleY(1) scaleZ(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skewX(0deg) skewY(0deg); min-height: 110px; width: 1280px;">
<div class="inner container-inner list-item-inner" id="element-338">
<div class="container unsized frame list-item-item" xid="container-11" id="element-339">
<div class="inner container-inner" id="element-340">
<div class="image buffered-image story-profile-picture sized" xid="buffered-image-13" id="element-341" style="width: 35px; height: 35px; background-image: url(https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc6/261057_631604675_297058556_q.jpg);"></div>
<div class="container inlines unsized story-title" xid="inlines-4" id="element-342">
<div class="inner container-inner inlines-inner" id="element-343">
<div class="text unsized story-t
@yatil
yatil / dabblet.css
Created January 14, 2012 13:52 — forked from anselmh/dabblet.css
circled-font
/**
* circled-font
*/
/* currently it's an ellipse not a circle */
.iconstyle {
background: #000;
color: #B4E3FF;
border-radius: 50%;
padding: .6em;
@yatil
yatil / compass_example.sass
Created August 29, 2011 21:30
I use this which yields an error
@import "compass/css3";
.test {
+single-transition(border-color 0.5s linear);
}
// Syntax error: Invalid CSS after "...ngle-transition": expected "{", was "(border-color 0..."
// on line 4 of /path/to/sass/style.scss
@yatil
yatil / anzeige.html
Created November 26, 2010 18:52 — forked from botic/anzeige.html
<!-- Zweiter Versuch --->
<article>
<hgroup>
<h2>Weitersagen!</h2>
<h1>Die führende Social Media Agentur Europas sucht:</h1>
</hgroup>
<ul>
<li>Online Designer (<abbr title="männlich">m</abbr>/<abbr title="weiblich">w</abbr>)</li>
<li>Online Konzeptionierer (<abbr title="männlich">m</abbr>/<abbr title="weiblich">w</abbr>)</li>
</ul>