Skip to content
This repository was archived by the owner on Mar 2, 2024. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️⚠️⚠️ This repo has been archived. The unofficial XKCD API is unavailable. Backing web app is no longer available on Heroku. ⚠️⚠️⚠️

xkcd-get

Build Status

Load random comic strips from http://xkcd.com/

installation:

Using npm:

⇒ npm install xkcd-get

Using bower:

⇒ bower install xkcd-get

setup:

script:

Load the javascript file, xkcd.js, into your page.

<script src="xkcd.js"></script>

image holder:

Add such a div element:

<div class="xkcd-img"></div>

image refresh:

Any element with the class xkcd-refresh will be targeted when adding a listener to listen for click. The xkcd comics will be replaced once such an element is clicked.

<a href="#" class="xkcd-refresh"></a>

credits:

Thanks to:

license:

The MIT License (MIT)

Copyright (c) 2015-2016 GochoMugo (www.gmugo.in)

About

load random comic strips from http://xkcd.com/ in your webpage

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages