Giter Site home page Giter Site logo

iphlouxmaster / itunes-product-viewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from markjeschke/itunes-product-viewer

0.0 2.0 0.0 224 KB

iTunesProductViewer is a jQuery plug-in that allows you to display price, artwork, descriptions, etc, about an app, music, movie, or iBook, on the Apple Store, using the iTunes Search API.

License: MIT License

HTML 0.40% JavaScript 99.06% CSS 0.54%

itunes-product-viewer's Introduction

iTunes Product Viewer

This itunesProductViewer.js jQuery plug-in, will allow you to quickly add app information, such as icons, descriptions, author, pricing, and screenshots to any webpage.

Installation

Add these JavaScript files to your JavaScript directory, and place them at the <head> of your HTML page. If you place them after, the JavaScript within the <body> will execute before the data becomes available.

  • jquery.js
  • itunesProductView.js

** Here's how to add a single app to your webpage **

Be sure to place the required div and JavaScript code within the <body> tags.

<div class="app-1"></div>
<script>
  $('.app-1').itunesProductViewer({
  	// Enter the product ID of the app that you'd like to show.
    lookupID: '1067609060',
    // Enter your affiliate token provided by Apple.
    affiliateToken: '10l3KX',
    // Campaign Text informs where your affiliate clicks originated from and/or which app was associated with your affiliate token.
    campaignText: 'martin-web-page', 
    // The following options allow you to show and hide specific content, such as the app's icon, description, and pricing, etc.
    // They are set to true by default, if you don't include them.
    appIconDimensions: 175,
    showAuthorName: true,
    showAppIcon: true,
    showCurrency: true,
    showDescription: true,
    showDeviceInfo: true,
    showGenre: true,
    showPriceText: true,
    showPrice: true,
    showProductName: true,
    showScreenshots: true,
    showSellerUrl: true,
    showVersionInfo: true,
    showVersionNumber: true
    }
  });
</script>

** Here's how to add two apps to your webpage **

The name of the class is arbitrary. But, it needs to be consistent inside of the JavaScript.

<div class="fast-break-highlights-app"></div>
<div class="drumkick-app"></div>
<script>
  $('.fast-break-highlights-app').itunesProductViewer({
    lookupID: '1067609060', // Martin's app ID
    affiliateToken: '10l3KX', // Affiliate tokens are provided by Apple.
    campaignText: 'martin-web-page', // This is a method for tracking where your affiliate clicks originate from.
    appIconDimensions: 175,
    showAppIcon: true,
    showAuthorName: false,
    showCurrency: true,
    showDescription: false,
    showDeviceInfo: false,
    showGenre: false,
    showPriceText: false,
    showPrice: false,
    showProductName: true,
    showScreenshots: false,
    showSellerUrl: false,
    showVersionInfo: false
  });

  $('.drumkick-app').itunesProductViewer({
    lookupID: '589674071', // Mark's app
    affiliateToken: '10l3KX',
    campaignText: 'web'
  });
</script>
</body>

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.