/*css id konkrétní harmoniky = harmonika1*/ /*link udělat jako klasický anchor /#harmonika1 - např do tlačítka nebo odkazu*/ /*dát css id do tlařítka nebo odkazu = harmonika_odkaz*/ /*dat do head kód*/ <script> jQuery(document).ready(function(){ jQuery(".harmonika_odkaz").each(function(){ jQuery(this).on("click", function(){ var id = jQuery(this).attr("href"); if(jQuery(id).hasClass("et_pb_toggle_close")){ jQuery(id).children(".et_pb_toggle_title").click(); } }) }) }) </script>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter