Giter VIP home page Giter VIP logo

xkcdclone's Introduction

xkcdclone

This is the GitHub repository for a xkcd inspired clone using HTML, CSS, and JS.

Guide to components of the code

What JS scripts are used?

Number Script Functionality
1 searchComic Performs search on comic index provided by user and returns the comic(s). Displays error message if search is invalid.
2 showNumComics Specifies the number of comics to be shown (1, 3, or 5).
3 nav Navigation buttons to perform actions (next, previous, random) on current comic index.
4 createComic Fetch the comic data and displays loading while doing it. And generates comic list based on current comic index and number of comics to be shown.
5 doComicNumber Performs an action on the current comic index. Actions include next, previous, random, set user input, and returning current index.

How are the comics displayed?

There is a single-comic div to contain both the comic-title and comic-image.
To show n number of comics, it will generate n number of single-comic div.

Where can I find the code?

All the scripts in index.html are written in JS and can be found in the scripts folder.
The stylesheet CSS used for index.html is within the styles folder.
Images used in this project are in the image folder.

How to run it using VSCode?

Install the Live Server extension to run index.html.

xkcdclone's People

Contributors

lauyuda avatar

Watchers

 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.