-
-
Save Chocksy/d232414201a34f3151a526cef58d62a1 to your computer and use it in GitHub Desktop.
Revisions
-
Chocksy revised this gist
Jul 15, 2021 . 1 changed file with 24 additions and 25 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,34 +4,33 @@ jQuery(document).ready(function($) {runChat();}); /* Turbolinks >= 5.0 jQuery(document).on('turbolinks:load', runChat); */ // Chat online jivo function runChat(){ $('#jivo-iframe-container, jdiv, [src*="//code-eu1.jivosite"], [href*="//code-eu1.jivosite"]').remove(); delete(window.jivo_api); delete(window.jivo_config); window.jivo_magic_var = undefined; window.$jivosite = null; (function(d,s){ var z = $jivosite = function(c){ z._.push(c) }, el_script = z.s = d.createElement(s), e = d.getElementsByTagName(s)[0], jivo_id = "#{ENV['JIVOSITE_ID']}"; z.set = function(o){ z.set._.push(o) }; z._ = []; z.set._ = []; $.async = !0; el_script.setAttribute("charset","utf-8"); el_script.src='//code-eu1.jivosite.com/widget/'+jivo_id; z.t=+new Date; el_script.type = "text/javascript"; e.parentNode.insertBefore(el_script,e) })(document,"script"); } -
Brunomm revised this gist
Feb 19, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function runChat(){ $.async = !0; el_script.setAttribute("charset","utf-8"); el_script.src='//code.jivosite.com/widget/'+jivo_id; z.t=+new Date; el_script.type="text/javascript"; e.parentNode.insertBefore(el_script,e) -
Brunomm revised this gist
Feb 19, 2020 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,10 @@ jQuery(document).on('page:load', runChat); jQuery(document).ready(function($) {runChat();}); /* Turbolinks >= 5.0 jQuery(document).on('turbolinks:load', runChat); */ // Chat online jivo function runChat(){ $('#jivo-iframe-container, .jivo_shadow, [src*="//code.jivosite"]').remove(); -
Brunomm created this gist
Mar 14, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ jQuery(document).on('page:load', runChat); jQuery(document).ready(function($) {runChat();}); // Chat online jivo function runChat(){ $('#jivo-iframe-container, .jivo_shadow, [src*="//code.jivosite"]').remove(); delete(window.jivo_api); delete(window.jivo_config); window.jivo_magic_var = undefined; window.$jivosite = null; (function(d,s){ var z = $jivosite=function(c){ z._.push(c) }, el_script = z.s = d.createElement(s), e=d.getElementsByTagName(s)[0], jivo_id = 'ID-MY-ACCOUNT'; z.set=function(o){ z.set._.push(o) }; z._=[]; z.set._=[]; $.async = !0; el_script.setAttribute("charset","utf-8"); el_script.src='//code.jivosite.com/script/widget/'+jivo_id; z.t=+new Date; el_script.type="text/javascript"; e.parentNode.insertBefore(el_script,e) })(document,"script"); }