Git Product home page Git Product logo

domcloud's Introduction

DomCloud

Build a program to recursively traverse the DOM and create a word cloud of most common attributes and elements to create a tag cloud.

index.html contains sample html, you will be parsing this as your sample dom tree, and this is your main JavaScript launcher. Make sure to commit early, commit often.

Part 1

  • Plan your execution on white board before forking and cloning.
  • Write a program that will recursively traverse the DOM and create a word list of the 20 most common attributes and elements
  • Print the results in #dom_cloud_container
  • Each word should be a different size based on it’s popularity

HINT: You will need to use recursion to solve this challenge!

Part 2

  • Create a bookmarklet that will parse the currently opened page, and generate a tag cloud on a new layer in the current window. You will need to research on your own HOW to create a bookmarklet.

REFERENCE:

http://code.tutsplus.com/tutorials/create-bookmarklets-the-right-way--net-18154

Part 3

Stretch goal: See if you can add tests to your application that takes in a defined HTML document that you can define the desired results for and verify that your application passes tests for:

  • Total Counts
  • Top 20 Expected Results
  • Total rendered elements showing word list are the count and height/width you expect after being rendered on page

REFERENCE:

http://www.codechewing.com/library/javascript-dom-browser-tests-mocha-chai/

File structure

  • index.html
  • js/dom_cloud.js
  • css/styles.css

domcloud's People

Contributors

theremix avatar jasontsukamoto avatar jaywon avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.