admin.js
12 years ago
jquery.colorbox-min.js
14 years ago
jquery.dataTables.min.js
14 years ago
jquery.tmpl.min.js
14 years ago
jquery.tools.min.js
14 years ago
tourTip.js
12 years ago
tourTip.js
41 lines
| 1 | function wfClearEmailField(){ |
| 2 | if(jQuery('#wfListEmail').val() == "Enter your email"){ |
| 3 | jQuery('#wfListEmail').val(''); |
| 4 | } |
| 5 | } |
| 6 | |
| 7 | jQuery(function(){ |
| 8 | if(WordfenceAdminVars.tourClosed != '1'){ |
| 9 | var formHTML = '<div style="padding: 0 5px 0 15px;"><form target="_new" style="display: inline;" method="post" class="af-form-wrapper" action="http://www.aweber.com/scripts/addlead.pl" ><div style="display: none;"><input type="hidden" name="meta_web_form_id" value="1428034071" /><input type="hidden" name="meta_split_id" value="" /><input type="hidden" name="listname" value="wordfence" /><input type="hidden" name="redirect" value="http://www.aweber.com/thankyou-coi.htm?m=text" id="redirect_ae9f0882518768f447c80ea8f3b7afde" /><input type="hidden" name="meta_adtracking" value="widgetForm" /><input type="hidden" name="meta_message" value="1" /><input type="hidden" name="meta_required" value="email" /><input type="hidden" name="meta_tooltip" value="" /></div><input class="text" id="wfListEmail" type="text" name="email" value="Enter your email" tabindex="500" onclick="wfClearEmailField(); return false;" /><input name="submit" type="submit" value="Get Alerts" tabindex="501" /><div style="display: none;"><img src="http://forms.aweber.com/form/displays.htm?id=jCxMHAzMLAzsjA==" alt="" /></div></form></div>'; |
| 10 | |
| 11 | jQuery('#toplevel_page_Wordfence').pointer({ |
| 12 | close: function(){}, |
| 13 | content: "<h3>Congratulations!</h3><p>You've just installed Wordfence! Start by joining our mailing list to get WordPress security alerts and Wordfence news:</p>" + |
| 14 | formHTML + |
| 15 | "<p>Then click \"Start Tour\" to get a quick introduction to how Wordfence protects your site, keeps you off Google's SEO black-list and can even help clean a hacked site.</p>", |
| 16 | pointerWidth: 300, |
| 17 | position: { edge: 'top', align: 'left' }, |
| 18 | buttons: function(event, t){ |
| 19 | buttonElem = jQuery('<a id="pointer-close" style="margin-left:5px" class="button-secondary">Close</a>'); |
| 20 | buttonElem.bind('click.pointer', function(){ t.element.pointer('close'); |
| 21 | var ajaxData = { |
| 22 | action: 'wordfence_tourClosed', |
| 23 | nonce: WordfenceAdminVars.firstNonce |
| 24 | }; |
| 25 | jQuery.ajax({ |
| 26 | type: 'POST', |
| 27 | url: WordfenceAdminVars.ajaxURL, |
| 28 | dataType: "json", |
| 29 | data: ajaxData, |
| 30 | success: function(json){}, |
| 31 | error: function(){} |
| 32 | }); |
| 33 | }); |
| 34 | return buttonElem; |
| 35 | } |
| 36 | }).pointer('open'); |
| 37 | jQuery('#pointer-close').after('<a id="pointer-primary" class="button-primary">Start Tour</a>'); |
| 38 | jQuery('#pointer-primary').click(function(){ window.location.href = 'admin.php?page=Wordfence'; }); |
| 39 | } |
| 40 | }); |
| 41 |