GithubHelp home page GithubHelp logo

gabriel416 / dog-image-library Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 213 KB

:dog: Practicing with JavaScript object constructors and prototypes to make a dog image library

HTML 29.77% JavaScript 70.23%

dog-image-library's Introduction

Dog-Image-Library

##Practicing with Javascript constructor functions and prototypes to make a dog image library

A micro collection of methods that suit your dog needs

Usage

download randomdog.js and include it in your html file

Docs

-----------------

Dog.every() # returns `a list of all dog breeds`
-----------------

Dog.random(number) # returns `a random dog image (number argument is optional
and returns that amount of random dog images)`

Ex: Dog.random(3)
-----------------

Dog.breed(breed, random)

# returns `an array of dog images of the
dog breed passed in (breed argument is required. random argument is optional
and returns a single random image of the selected breed)`

Ex: Dog.breed('hound', true)
-----------------

Dog.subBreed(breed, subBreed, random)

# returns `an array of sub breeds of main passed in. (breed and subBreed
argument are required. Random argument is optional and returns a single
random image of the selected subBreed)`

Ex: Dog.subBreed('hound', 'afghan', true)
-----------------

Dog.subBreedList(breed)

# returns `an array of subBreeds for the passed in breed. (breed argument
is required)`

Ex: Dog.subBreedList('hound')

dog-image-library's People

Contributors

gabriel416 avatar

Watchers

 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.