Why the "Hamburger Menu" is bad UX
The Characteristics of Minimalism in WebDesign
How to do filtering on eCommerce websites right (design patterns)
1 min round-up: Native vs Mobile Web vs Desktop Web
(function($) { | |
if ( !$.cssHooks ) { | |
throw("jQuery 1.4.3+ is needed for this plugin to work"); | |
return; | |
} | |
function styleSupport( prop ) { | |
var vendorProp, supportedProp, | |
capProp = prop.charAt(0).toUpperCase() + prop.slice(1), | |
prefixes = [ "Moz", "Webkit", "O", "ms" ], |
/*! jQuery UI - v1.10.0 - 2013-02-10 | |
* http://jqueryui.com | |
* Includes: jquery.ui.widget.js | |
* Copyright (c) 2013 jQuery Foundation and other contributors Licensed MIT */ | |
;(function (widgetFactory) { | |
if (typeof define === "function" && define.amd) { | |
// AMD. Register as an anonymous module. | |
define("jquery.ui.widget", ["jquery"], function() { |
Why the "Hamburger Menu" is bad UX
The Characteristics of Minimalism in WebDesign
How to do filtering on eCommerce websites right (design patterns)
1 min round-up: Native vs Mobile Web vs Desktop Web
// code taken from visionmedias node-querystring | |
var qs = (function () { | |
var qs = {} | |
/** | |
* Object#toString() ref for stringify(). | |
*/ | |
var toString = Object.prototype.toString; | |
/** |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mouse Over and Out with Moving Infobox</title> | |
<script type="text/javascript" src="https://github.com/mbostock/d3/raw/fe671a70e236710412a514fa276e59f875f3c617/d3.js"></script> | |
<link type="text/css" rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<!-- I've only commented changes relevant to this mouse follow stuff --> | |
<!-- btw, this is what an html comment looks like --> |
<script> | |
function getQueryVariable(variable) { | |
var query = window.location.search.substring(1); | |
var vars = query.split("&"); | |
for (var i=0;i<vars.length;i++) { | |
var pair = vars[i].split("="); | |
if (pair[0] == variable) { | |
return pair[1]; | |
} | |
} |
'use strict'; | |
/** | |
* Created by Alexander Litvinov | |
* Email: alexander@codeordie.ru | |
* May be freely distributed under the MIT license | |
*/ | |
let singleton = Symbol(); | |
let singletonEnforcer = Symbol(); |
$('.some-els').bind('animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd', function(){ | |
// Do something! | |
$(this).removeClass('animation-class'); | |
}) | |
.addClass('animation-class'); | |
// One works, too | |
$('.some-els').one('animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd', function(){ | |
// Do something once! | |
console.log('this would show once'); |
This was a very straightforward workaround I used in a project to get things done while the assemble team is working on some serious converter gulp-convert.
/* Blink for Webkit and others | |
(Chrome, Safari, Firefox, IE, ...) | |
*/ | |
@-webkit-keyframes blinker { | |
from {opacity: 1.0;} | |
to {opacity: 0.0;} | |
} | |
.blink{ | |
text-decoration: blink; |