Created
March 24, 2014 16:16
-
-
Save andersonvom/9743531 to your computer and use it in GitHub Desktop.
Javascript to remove all extict distro lines from the linux SVG timeline.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var remove_extict = function() { | |
var line = null; | |
var dot = null; | |
var num_extinct = 0; | |
do { | |
try { | |
line = $('[marker-end]'); | |
dot = $('#'+line.id.replace('__line', '__dot')); | |
line.remove(); | |
// dot.remove() | |
console.log('Removed ' + line.id); | |
num_extinct++; | |
} catch (exc) { | |
console.log(num_extinct + ' linux distros have passed away. :('); | |
} | |
} while (line != null) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment