This visualization represents the DOM of twitter. The great library d3js.org helps me to visualize the data in form of a tree layout. You can hover the nodes to check the type of tag. I added the python script I wrote, to produce the json
This file contains 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
* { | |
margin: 0; | |
padding: 0; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
*:after, *:before { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; |
This file contains 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
// from 1337 to 1.337 | |
function formatNumber(number){ | |
return (parseFloat(number) / 1000).toFixed(3).toString(); | |
} | |
// from 12.123 to 12,123 | |
function replacePoint(number) { | |
return number.toString().replace('.', ','); | |
} |
This file contains 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 FusionHelper = { | |
query: function(params) { | |
var base = 'https://www.googleapis.com/fusiontables/v1/query?', | |
url = base + $.param({ | |
sql: params.sql, | |
key: '***' | |
}); | |
$.ajax({ | |
url: url, | |
type: 'POST', |
This file contains 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
javascript: ( | |
function() { | |
var elms = document.getElementsByTagName('*'); | |
var b = document.body; | |
var box = document.createElement('div'); | |
box.id = "element-chooser-container"; | |
var buttonContainer = document.createElement('div'); | |
buttonContainer.id = "sound-change-button-bar"; |
NewerOlder