/
www
/
wwwroot
/
alo88.autos
/
wp-content
/
plugins
/
easy-table-of-contents
/
assets
/
js
/
Upload File
HOME
function disableScrolling(){var e=window.scrollX,t=window.scrollY;window.onscroll=function(){window.scrollTo(e,t)}}function enableScrolling(){ezTocSettingsTabsFixed()}jQuery(document).ready(function(e){var t=e(".ez-toc-color-picker");t.length&&t.wpColorPicker();var s=document.getElementById("ez-toc-settings[width]"),a=document.getElementById("ez-toc-settings[width_custom]");a&&("custom"!=s.value&&(a.parentNode.parentNode.style.display="none"),s.addEventListener("change",function(){"custom"==document.getElementById("ez-toc-settings[width]").value?a.parentNode.parentNode.style.display="revert":a.parentNode.parentNode.style.display="none"})),e("#reset-options-to-default-button").click(function(){!0==confirm("Do you want reset settings to default options?")&&e.post(ajaxurl,{action:"eztoc_reset_options_to_default",eztoc_security_nonce:cn_toc_admin_data.eztoc_security_nonce},function(e){alert("Default Options Reset Now!"),window.location.reload()})}),e("#subscribe-newsletter-form").on("submit",function(t){t.preventDefault();var s=e("#subscribe-newsletter-form"),a=s.find('input[name="name"]').val(),i=s.find('input[name="email"]').val(),n=s.find('input[name="company"]').val();e.post(ajaxurl,{action:"eztoc_subscribe_newsletter",name:a,email:i,website:n,eztoc_security_nonce:cn_toc_admin_data.eztoc_security_nonce},function(e){if("security_nonce_not_verified"===e)return alert("Security nonce not verified"),!1})});let i=e("#eztoc-general").find("select[name='ez-toc-settings[position]']"),n=e("#eztoc-general").find("input[name='ez-toc-settings[custom_para_number]']"),c=e("#eztoc-general").find("input[name='ez-toc-settings[custom_img_number]']"),o=e("#eztoc-general").find("input[name='ez-toc-settings[blockqoute_checkbox]']");"aftercustompara"==e(i).val()?e(n).parents("tr").show():e(n).parents("tr").hide(),"afterpara"==e(i).val()||"aftercustompara"==e(i).val()?e(o).parents("tr").show():e(o).parents("tr").hide(),"aftercustomimg"==e(i).val()?e(c).parents("tr").show():e(c).parents("tr").hide(),e(document).on("change","select[name='ez-toc-settings[position]']",function(){"aftercustompara"==e(this).val()?e(n).parents("tr").show(500):e(n).parents("tr").hide(500),"afterpara"==e(this).val()||"aftercustompara"==e(this).val()?e(o).parents("tr").show(500):e(o).parents("tr").hide(500),"aftercustomimg"==e(this).val()?e(c).parents("tr").show(500):e(c).parents("tr").hide(500)});let r=e("#eztoc-general").find("select[name='ez-toc-settings[toc_loading]']"),l=e("#eztoc-general").find("input[name='ez-toc-settings[smooth_scroll]']"),v=e("#eztoc-general").find("input[name='ez-toc-settings[avoid_anch_jump]']"),p=e("#eztoc-advanced").find("select[name='ez-toc-settings[load_js_in]']");"js"==e(r).val()?(e(l).parents("tr").show(),e(v).parents("tr").show(),e(p).parents("tr").show()):(e(l).parents("tr").hide(),e(v).parents("tr").hide(),e(p).parents("tr").hide()),e(document).on("change","select[name='ez-toc-settings[toc_loading]']",function(){"js"==e(this).val()?(e(l).parents("tr").show(500),e(v).parents("tr").show(500),e(p).parents("tr").show(500)):(e(l).parents("tr").hide(500),e(v).parents("tr").hide(500),e(p).parents("tr").hide(500))});let m=e("#eztoc-sticky").find("input[name='ez-toc-settings[sticky_highlight_heading]']"),d=e("#eztoc-sticky").find("input[name='ez-toc-settings[sticky_highlight_bg_colour]']"),u=e("#eztoc-sticky").find("input[name='ez-toc-settings[sticky_highlight_title_colour]']");!0==e(m).prop("checked")?(e(d).parents("tr").show(),e(u).parents("tr").show()):(e(d).parents("tr").hide(),e(u).parents("tr").hide()),e(document).on("change","input[name='ez-toc-settings[sticky_highlight_heading]']",function(){!0==e(this).prop("checked")?(e(d).parents("tr").show(500),e(u).parents("tr").show(500)):(e(d).parents("tr").hide(500),e(u).parents("tr").hide(500))});let g=jQuery("#ez-toc").find("select[name='ez-toc-settings[position-specific]']"),h=jQuery("#ez-toc").find("input[name='ez-toc-settings[s_custom_para_number]']"),$=jQuery("#ez-toc").find("input[name='ez-toc-settings[s_custom_img_number]']"),f=jQuery("#ez-toc").find("input[name='ez-toc-settings[s_blockqoute_checkbox]']");"aftercustompara"==jQuery(g).val()?jQuery(h).parents("tr").show():jQuery(h).parents("tr").hide(),"afterpara"==jQuery(g).val()||"aftercustompara"==jQuery(g).val()?jQuery(f).parents("tr").show():jQuery(f).parents("tr").hide(),"aftercustomimg"==jQuery(g).val()?jQuery($).parents("tr").show():jQuery($).parents("tr").hide(),jQuery("#ez-toc").on("change","select[name='ez-toc-settings[position-specific]']",function(){"aftercustompara"==jQuery(this).val()?jQuery(h).parents("tr").show(500):jQuery(h).parents("tr").hide(500),"afterpara"==jQuery(this).val()||"aftercustompara"==jQuery(this).val()?jQuery(f).parents("tr").show(500):jQuery(f).parents("tr").hide(500),"aftercustomimg"==jQuery(this).val()?jQuery($).parents("tr").show(500):jQuery($).parents("tr").hide(500)})});const unsecuredCopyToClipboard=e=>{let t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch(s){console.error("Unable to copy to clipboard",s)}document.body.removeChild(t)};function ez_toc_clipboard(e,t,s,a){a.preventDefault(),disableScrolling();var i=s.parentNode.parentNode.querySelectorAll("#"+e)[0];i.select(),i.setSelectionRange(0,99999),navigator.clipboard.writeText(i.value),s.querySelectorAll("span."+t)[0].innerHTML="Copied: "+i.value}function ez_toc_outFunc(e,t,s){s.preventDefault(),t.querySelectorAll("span."+e)[0].innerHTML="Copy to clipboard",enableScrolling()}function ezTocSettingsTabsFixed(){var e=document.querySelector("#general #eztoc-tabs"),t=document.querySelector("#general form");null!==e?window.onscroll=function(){var s=window.scrollY,a=document.getElementsByClassName("ez-toc-pro-settings-link-paid"),i=document.getElementsByClassName("general-pro-settings-container"),n=document.querySelector("#general #eztoc-tabs #eztoc-link-general"),c=document.querySelector("#general #eztoc-tabs #eztoc-link-appearance"),o=document.querySelector("#general #eztoc-tabs #eztoc-link-advanced"),r=document.querySelector("#general #eztoc-tabs #eztoc-link-shortcode"),l=document.querySelector("#general #eztoc-tabs #eztoc-link-sticky"),v=document.querySelector("#general #eztoc-tabs #eztoc-link-compatibility"),p=document.querySelector("#general #eztoc-tabs #eztoc-link-iesettings"),m=document.querySelector("#general #eztoc-tabs #eztoc-link-prosettings"),d=document.querySelector("#general div#eztoc-general").offsetTop-100,u=document.querySelector("#general div#eztoc-appearance").offsetTop-100,g=document.querySelector("#general div#eztoc-advanced").offsetTop-100,h=document.querySelector("#general div#eztoc-shortcode").offsetTop-100,$=document.querySelector("#general div#eztoc-compatibility").offsetTop-100,f=document.querySelector("#general div#eztoc-iesettings").offsetTop-100,z=document.querySelector("#eztoc-sticky").offsetTop-100;if(null!==a&&a.length>0)var L=document.querySelector("#general div#eztoc-prosettings").offsetTop-100-150;else $-=150,f-=150;n.classList.add("active"),c.classList.remove("active"),o.classList.remove("active"),r.classList.remove("active"),v.classList.remove("active"),p.classList.remove("active"),l.classList.remove("active"),i.length>0&&null!==m&&m.classList.remove("active"),s>=100?(e.classList.remove("stay"),e.classList.add("moving"),t.classList.add("moving"),null!==a&&a.length>0&&0==i.length&&(e.innerHTML+='<span class="general-pro-settings-container"> | <a href="#eztoc-prosettings" id="eztoc-link-prosettings">Pro Settings</a></span>')):(e.classList.remove("moving"),e.classList.add("stay"),t.classList.remove("moving"),null!==a&&a.length>0&&i.length>0&&document.querySelector(".general-pro-settings-container").remove()),s>=d&&(n.classList.add("active"),c.classList.remove("active"),o.classList.remove("active"),r.classList.remove("active"),v.classList.remove("active"),p.classList.remove("active"),l.classList.remove("active"),null!==a&&a.length>0&&i.length>0&&null!==m&&m.classList.remove("active")),s>=u&&(n.classList.remove("active"),c.classList.add("active"),o.classList.remove("active"),r.classList.remove("active"),v.classList.remove("active"),p.classList.remove("active"),l.classList.remove("active"),null!==a&&a.length>0&&i.length>0&&null!==m&&m.classList.remove("active")),s>=g&&(n.classList.remove("active"),c.classList.remove("active"),o.classList.add("active"),r.classList.remove("active"),v.classList.remove("active"),p.classList.remove("active"),l.classList.remove("active"),null!==a&&a.length>0&&i.length>0&&null!==m&&m.classList.remove("active")),s>=h&&(n.classList.remove("active"),c.classList.remove("active"),o.classList.remove("active"),r.classList.add("active"),v.classList.remove("active"),p.classList.remove("active"),l.classList.remove("active"),null!==a&&a.length>0&&i.length>0&&null!==m&&m.classList.remove("active")),s>=z&&(n.classList.remove("active"),c.classList.remove("active"),o.classList.remove("active"),r.classList.remove("active"),v.classList.remove("active"),p.classList.remove("active"),l.classList.add("active"),null!==a&&a.length>0&&i.length>0&&null!==m&&m.classList.remove("active")),s>=$&&(n.classList.remove("active"),c.classList.remove("active"),o.classList.remove("active"),r.classList.remove("active"),v.classList.add("active"),p.classList.remove("active"),l.classList.remove("active"),null!==a&&a.length>0&&i.length>0&&null!==m&&m.classList.remove("active")),s>=f&&(n.classList.remove("active"),c.classList.remove("active"),o.classList.remove("active"),r.classList.remove("active"),v.classList.remove("active"),p.classList.add("active"),l.classList.remove("active"),null!==a&&a.length>0&&i.length>0&&null!==m&&m.classList.remove("active")),i.length>0&&s>=L&&(n.classList.remove("active"),c.classList.remove("active"),o.classList.remove("active"),r.classList.remove("active"),v.classList.remove("active"),p.classList.remove("active"),l.classList.remove("active"),null!==a&&a.length>0&&i.length>0&&null!==m&&m.classList.add("active"))}:window.onscroll=function(){}}function no_heading_text(e){!0==jQuery("input[name='ez-toc-settings[no_heading_text]']").prop("checked")?jQuery("input[name='ez-toc-settings[no_heading_text_value]']").parents("tr").show(200):jQuery("input[name='ez-toc-settings[no_heading_text_value]']").parents("tr").hide(200)}ezTocSettingsTabsFixed(),jQuery(document).on("change","input[name='ez-toc-settings[no_heading_text]']",function(){no_heading_text()}),no_heading_text();