| 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 |
|
| 28 |
recrawlRequiredMessage.append('<strong style="color:red;">Important:</strong>'); |
| 29 |
|
| 30 |
recrawlRequiredMessage |
| 31 |
.append(' changing this value on a site currently tracked with ' + |
| 32 |
'Parse.ly will require reprocessing of your Parse.ly data. Once ' + |
| 33 |
'you have changed this value, please contact ' ); |
| 34 |
|
| 35 |
recrawlRequiredMessage.append('<a href="mailto:support@parsely.com?subject=Please reprocess ' + |
| 36 |
apikey + '">support@parsely.com</a>.'); |
| 37 |
|
| 38 |
recrawlRequiredMessage |
| 39 |
.appendTo("div.parsely-form-controls[data-requires-recrawl='true'] .help-text"); |
| 40 |
}); |
| 41 |
})(jQuery); |
| 42 |
</script> |
| 43 |
<!-- end wp-parsely --> |
| 44 |
|