Skip to content

Instantly share code, notes, and snippets.

@bstruthers
bstruthers / AngularStrap hover popover contents
Last active July 23, 2016 01:00
Extend AngularStrap popover so the contents can interact with the mouse
/**
* Popover Directive. Wraps the AngularStrap popover and
* 1) Allows the popover to stay open when hovering / focusing the contents.
* If the popover was only triggered by 'hover' or 'focus', it closes as soon
* as the mouse leaves or focus is lost on the triggering element.
*
* 2) Lazy initializes the popover until it's needed. This reduces the
* amount of scope.
*
* 3) When the popover closes, cleans up the AngularStrap popover memory leak
@bstruthers
bstruthers / html5boilerplate.jade
Created September 5, 2011 18:53
Fixed Google CDN and updated w/ newer Boilerplate code
!!! 5
//[if lt IE 7 ]> <html class="no-js ie6 oldie" lang="en"> <![endif]
//[if IE 7 ]> <html class="no-js ie7 oldie" lang="en"> <![endif]
//[if IE 8 ]> <html class="no-js ie8 oldie" lang="en"> <![endif]
//[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]
head
meta(charset="utf-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge,chrome=1")
title some Title