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