Skip to content

Instantly share code, notes, and snippets.

@pbogden
pbogden / README.md
Last active March 10, 2017 01:12
legend

reusable legend

@pbogden
pbogden / README.md
Last active December 17, 2015 00:33
Final - Part 1
@pbogden
pbogden / README.md
Last active December 17, 2015 01:26
Final - Part 2
@pbogden
pbogden / .gitignore
Last active December 16, 2015 22:48
osm vectors
data
tmp
@pbogden
pbogden / README.md
Last active January 29, 2017 14:58
IE problem

IE problem

Note: If you're not using IE, you're probably not seeing anything wrong. But if you're using IE, then the height of the SVG is 150px, no matter how many times you refresh the browser -- that's not cool.

With nice browsers, every time you refresh the page the SVG height adjusts to contain a line of circles that always fills the light gray box. Most modern browsers will set the SVG and container height according to the aspect ratio of the viewbox attribute, and the SVG will fill the width of the page.

But not IE (tested with IE 9, 10 & 11): IE sets the SVG height to 150px, regardless of the aspect ratio of the SVG. So the you'll probably see a random amount of empty gray space to the right of the circles every time you refresh. Click here for a solution to the IE problem.

@pbogden
pbogden / README.md
Last active September 14, 2018 09:48
html button

HTML button

Uses CSS

  • linear-gradient
  • box-shadow

Check out an SVG button

@pbogden
pbogden / README.md
Last active April 26, 2016 12:45
tweens

Using tweens with transitions: Custom tweens with a custom attribute.

@pbogden
pbogden / .gitignore
Last active November 9, 2017 13:26
Toggling buttons
junk
@pbogden
pbogden / README.md
Last active February 1, 2022 04:53
Clustered Force Layout v4
@pbogden
pbogden / README.md
Last active March 10, 2017 01:01
Class 3

Assignment for Class #3