Skip to content

Card preview and link to The Gatherer for Magic: The Gathering cards.

Notifications You must be signed in to change notification settings

ktklayc/mtg-card-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtg-card-view

Card preview and link to The Gatherer for Magic: The Gathering cards.

Usage

Create links to MTG cards just by their name or multiverse ID including a mouse over previewing an image of the card.

Requirements

jQuery

How To

Just add links to your HTML of the following formats:

<a class="mtg-card-view-link" mtg-multiverse-id="129643" href="">Multiverse ID 129643</a>

<a class="mtg-card-view-link" href="" mtg-card-name="Guardian Seraph">Guardian Seraph</a>

The link location and the preview are created either from the multiverse id or from the card name. After the DOM loaded just call the function createMtgCardViewLinks() from the ready handler.

Example

See index.html for an example.

About

Card preview and link to The Gatherer for Magic: The Gathering cards.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published