Skip to content

Instantly share code, notes, and snippets.

View zbabtkis's full-sized avatar

Zachary Babtkis zbabtkis

View GitHub Profile
@zbabtkis
zbabtkis / gist:5613384
Created May 20, 2013 16:24
Better jQuery ToolTip -- Simple and works in Firefox!
$.fn.betterTip = function() {
var that = this;
function getTip() {
var tip = $('<div />', {'class': 'tooltip'});
tip.html($(this).attr('title'));
tip.css({
'position': 'absolute',
var AngleControlView = Backbone.View.extend({
tagName: 'canvas',
className: 'angle-control',
initialize: function() {
_.bindAll(this);
this.el.height = 200;
this.el.width = 200;
// Defaults for drawing background circle.