| 1 |
<?php |
| 2 |
/** |
| 3 |
* JavaScript file |
| 4 |
* |
| 5 |
* Main javascript file for plugin |
| 6 |
* |
| 7 |
* @category Components |
| 8 |
* @package WordPress |
| 9 |
* @subpackage Parse.ly |
| 10 |
*/ |
| 11 |
|
| 12 |
?> |
| 13 |
|
| 14 |
<!-- wp-parsely --> |
| 15 |
<style type="text/css"> |
| 16 |
#wp-parsely_version {color: #777; font-size: 12px; margin-left: 1em;} |
| 17 |
.help-text { |
| 18 |
width: 75%; |
| 19 |
} |
| 20 |
</style> |
| 21 |
<script type="text/javascript"> |
| 22 |
(function($) { |
| 23 |
$(document).ready(function onDOMReady() { |
| 24 |
var apikey = $('#apikey').val(); |
| 25 |
var recrawlRequiredMessage = $('<p>') |
| 26 |
.addClass('description'); |
| 27 |
var supportLink = $('<a>',{ |
| 28 |
href: 'mailto:support@parsely.com?subject=Please reprocess ' + encodeURIComponent(apikey), |
| 29 |
text: 'support@parsely.com' |
| 30 |
}); |
| 31 |
|
| 32 |
recrawlRequiredMessage.append('<strong style="color:red;">Important:</strong>'); |
| 33 |
|
| 34 |
recrawlRequiredMessage |
| 35 |
.append(' changing this value on a site currently tracked with ' + |
| 36 |
'Parse.ly will require reprocessing of your Parse.ly data. Once ' + |
| 37 |
'you have changed this value, please contact ' ); |
| 38 |
|
| 39 |
recrawlRequiredMessage.append(supportLink); |
| 40 |
|
| 41 |
recrawlRequiredMessage |
| 42 |
.appendTo("div.parsely-form-controls[data-requires-recrawl='true'] .help-text"); |
| 43 |
}); |
| 44 |
})(jQuery); |
| 45 |
</script> |
| 46 |
<!-- end wp-parsely --> |
| 47 |
|