Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (env) {
- "use strict";
- env.ddg_spice_playing_cards = function(api_result){
- if(api_result.error || !api_result.cards) {
- return Spice.failed('playing_cards');
- }
- Spice.add({
- id: "playing_cards",
- name: "Deck of Cards",
- data: api_result,
- meta: {
- sourceName: "DeckOfCards",
- sourceUrl: 'http://deckofcardsapi.com'
- },
- templates: {
- group: 'media',
- variants: {
- tile: 'poster'
- },
- options:{
- content: Spice.playing_cards.content,
- moreAt: true
- }
- }
- });
- }
- }
- (this));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement