PluginProbe
Insert Html Snippet / trunk
Insert Html Snippet vtrunk
1.4.6 trunk 1.0 1.0.1 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4 1.4.1 1.4.2 1.4.3 All 27 releases
insert-html-snippet / js / notice.js

notice.js in Insert Html Snippet trunk, at js/notice.js

31 lines 801 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery(document).ready(function() {
2 jQuery('#xyz_ihs_system_notice_area').animate({
3 opacity : 'show',
4 height : 'show'
5 }, 500);
6
7 jQuery(document).on(
8 'click',
9 '#xyz_ihs_system_notice_area_dismiss',
10 function () {
11 jQuery('#xyz_ihs_system_notice_area').animate({
12 opacity : 'hide',
13 height : 'hide'
14 }, 500);
15 }
16 );
17 let ihs_deactivateURL = '';
18
19 jQuery(document).on('click', '.xyz-ihs-deactivate-link', function(e) {
20 e.preventDefault();
21 ihs_deactivateURL = jQuery(this).attr('href');
22 jQuery('#xyz-ihs-modal').fadeIn();
23 });
24 jQuery('#xyz-ihs-proceed-deactivate').on('click', function() {
25 window.location.href = ihs_deactivateURL;
26 });
27 jQuery('#xyz-ihs-cancel-deactivate').on('click', function() {
28 jQuery('#xyz-ihs-modal').fadeOut();
29 });
30 });
31