- Create a Developer Account
Login/Register - Generate a Consumer Key
Consumer Key Management
- Open the Consumer Key Management
- Click "Add Consumer"
- Under "Consumer name", enter a name for your application/website
- Under "Callback URL", enter 'http://YOUR_DOMAIN'. This value is not used.
- Click 'Save'
- Click 'OAuth Consumers'
- Click 'Edit' next to your newly created 'Consumer' name
- Under 'key' you'll find your Consumer Key.
- Enter the domains where you'll be installing RepropediaJS.
- Save
In your site:
- Identify or add a css class to the DOM element that contains the repropedia terms you would like to have tagged.
- In the header of your site, Include jQuery 1.7.2+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="//www.repropedia.org/sites/repropedia/clients/css/repropedia.css" type="text/css" rel="stylesheet" /> | |
<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'></script> | |
<script type='text/javascript' src='//www.repropedia.org/sites/repropedia/clients/js/jquery.tools.min.js'></script> | |
<script type='text/javascript' src='//www.repropedia.org/sites/repropedia/clients/js/repropedia.js'></script> | |
<script type='text/javascript'> | |
$(function(){ | |
Repropedia.init({ | |
'CONSUMER_KEY' : 'YOUR_CONSUMER_KEY', | |
// regions: array of dom selectors (jQuery style) of the container(s) closest to the repropedia terms | |
'stop_terms' : ['ART'], // List of Repropedia TERMS that shouldn't be tagged in your website. | |
'regions' : ['target_selector'] | |
}); | |
}); | |
</script> |
Example
