bf33e834 by Jeff Balicki

js fix

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 23e22d96
...@@ -26246,22 +26246,15 @@ ...@@ -26246,22 +26246,15 @@
26246 document.addEventListener('wpcf7mailsent', function (event) { 26246 document.addEventListener('wpcf7mailsent', function (event) {
26247 jQuery('.appArea.responsive').hide(); 26247 jQuery('.appArea.responsive').hide();
26248 }, true); 26248 }, true);
26249 jQuery(document).ready(function ($) {
26250 $(document).on("click", ".pojo-a11y-toolbar-link", function (e) {
26251 console.log('click');
26252 $('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open');
26253 });
26254 $(document).on("click", "#gt_float_wrapper, .gt_float_switcher, .gt-selected, .gt-current-lang", function (e) {
26255 console.log('click lang');
26256 26249
26257 //$('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open'); 26250 // jQuery(document).ready(function($) {
26258 }); 26251 // $(document).on("click", ".pojo-a11y-toolbar-link", function(e){
26259 }); 26252 // console.log('click');
26260 26253
26261 window.onclick = e => { 26254 // $('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open');
26262 console.log(e.target); // to get the element 26255 // });
26263 console.log(e.target.tagName); // to get the element tag name alone 26256
26264 }; 26257 // });
26265 26258
26266 exports.Alert = alert$1; 26259 exports.Alert = alert$1;
26267 exports.Button = button; 26260 exports.Button = button;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -62,21 +62,12 @@ document.addEventListener( 'wpcf7mailsent', function( event ) { ...@@ -62,21 +62,12 @@ document.addEventListener( 'wpcf7mailsent', function( event ) {
62 }, true ); 62 }, true );
63 63
64 64
65 jQuery(document).ready(function($) { 65 // jQuery(document).ready(function($) {
66 $(document).on("click", ".pojo-a11y-toolbar-link", function(e){ 66 // $(document).on("click", ".pojo-a11y-toolbar-link", function(e){
67 console.log('click'); 67 // console.log('click');
68
69 $('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open');
70 });
71 $(document).on("click", "#gt_float_wrapper, .gt_float_switcher, .gt-selected, .gt-current-lang", function(e){
72 console.log('click lang');
73 68
74 //$('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open'); 69 // $('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open');
75 }); 70 // });
76 71
77 }); 72 // });
78 73
79 window.onclick = e => {
80 console.log(e.target); // to get the element
81 console.log(e.target.tagName); // to get the element tag name alone
82 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
2 Theme Name: MSF CA Child 2 Theme Name: MSF CA Child
3 Author: Tenzing Communications 3 Author: Tenzing Communications
4 Template: msf-ca 4 Template: msf-ca
5 Version: 1.0.459 5 Version: 1.0.460
6 */ 6 */
7 7
......