1// Buttons decoration (add 'hover' class) 2// Attention! Not use cont.find('selector')! Use jQuery('selector') instead! 3 4jQuery( document ).on( 5 'action.init_hidden_elements', function(e, cont) { 6 "use strict"; 7 8 if (TRUTH_STORAGE['button_hover'] && TRUTH_STORAGE['button_hover'] != 'default') { 9 jQuery( 10 'button:not(.search_submit):not(.full_post_close):not([class*="sc_button_hover_"]),\ 11 .theme_button:not([class*="sc_button_hover_"]),\ 12 .sc_button:not([class*="sc_button_simple"]):not([class*="sc_button_bordered"]):not([class*="sc_button_hover_"]),\ 13 .sc_form_field button:not([class*="sc_button_hover_"]),\ 14 .post_item .more-link:not([class*="sc_button_hover_"]),\ 15 .trx_addons_hover_content .trx_addons_hover_links a:not([class*="sc_button_hover_"]),\ 16 .truth_tabs .truth_tabs_titles li a:not([class*="sc_button_hover_"]),\ 17 .hover_shop_buttons .icons a:not([class*="sc_button_hover_style_"]),\ 18 .mptt-navigation-tabs li a:not([class*="sc_button_hover_style_"]),\ 19 .edd_download_purchase_form .button:not([class*="sc_button_hover_style_"]),\ 20 .edd-submit.button:not([class*="sc_button_hover_style_"]),\ 21 .widget_edd_cart_widget .edd_checkout a:not([class*="sc_button_hover_style_"]),\ 22 .woocommerce #respond input#submit:not([class*="sc_button_hover_"]),\ 23 .woocommerce .button:not([class*="shop_"]):not([class*="view"]):not([class*="sc_button_hover_"]),\ 24 .woocommerce-page .button:not([class*="shop_"]):not([class*="view"]):not([class*="sc_button_hover_"]),\ 25 #buddypress a.button:not([class*="sc_button_hover_"])\ 26 ' 27 ).addClass( 'sc_button_hover_just_init sc_button_hover_' + TRUTH_STORAGE['button_hover'] ); 28 if (TRUTH_STORAGE['button_hover'] != 'arrow') { 29 jQuery( 30 'input[type="submit"]:not([class*="sc_button_hover_"]),\ 31 input[type="button"]:not([class*="sc_button_hover_"]),\ 32 .vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon:not([class*="sc_button_hover_"]),\ 33 .vc_tta-color-grey.vc_tta-style-classic .vc_tta-tab > a:not([class*="sc_button_hover_"]),\ 34 .single-product div.product .woocommerce-tabs .wc-tabs li a,\ 35 .woocommerce nav.woocommerce-pagination ul li a:not([class*="sc_button_hover_"]),\ 36 .tribe-events-button:not([class*="sc_button_hover_"]),\ 37 #tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:not([class*="sc_button_hover_"]),\ 38 .tribe-bar-mini #tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:not([class*="sc_button_hover_"]),\ 39 .tribe-events-cal-links a:not([class*="sc_button_hover_"]),\ 40 .tribe-events-sub-nav li a:not([class*="sc_button_hover_"]),\ 41 .isotope_filters_button:not([class*="sc_button_hover_"]),\ 42 .trx_addons_scroll_to_top:not([class*="sc_button_hover_"]),\ 43 .sc_promo_modern .sc_promo_link2:not([class*="sc_button_hover_"]),\ 44 .post_item_single .post_content .post_meta .post_share .socials_type_block .social_item .social_icon:not([class*="sc_button_hover_"]),\ 45 .slider_container .slider_prev:not([class*="sc_button_hover_"]),\ 46 .slider_container .slider_next:not([class*="sc_button_hover_"]),\ 47 .sc_slider_controller_titles .slider_controls_wrap > a:not([class*="sc_button_hover_"]),\ 48 .tagcloud > a:not([class*="sc_button_hover_"])\ 49 ' 50 ).addClass( 'sc_button_hover_just_init sc_button_hover_' + TRUTH_STORAGE['button_hover'] ); 51 } 52 // Add alter styles of buttons 53 jQuery( 54 '.sc_slider_controller_titles .slider_controls_wrap > a:not([class*="sc_button_hover_style_"])\ 55 ' 56 ).addClass( 'sc_button_hover_just_init sc_button_hover_style_default' ); 57 jQuery( 58 '.trx_addons_hover_content .trx_addons_hover_links a:not([class*="sc_button_hover_style_"]),\ 59 .single-product ul.products li.product .post_data .button:not([class*="sc_button_hover_style_"])\ 60 ' 61 ).addClass( 'sc_button_hover_just_init sc_button_hover_style_inverse' ); 62 jQuery( 63 '.post_item_single .post_content .post_meta .post_share .socials_type_block .social_item .social_icon:not([class*="sc_button_hover_style_"]),\ 64 .woocommerce #respond input#submit.alt:not([class*="sc_button_hover_style_"]),\ 65 .woocommerce a.button.alt:not([class*="sc_button_hover_style_"]),\ 66 .woocommerce button.button.alt:not([class*="sc_button_hover_style_"]),\ 67 .woocommerce input.button.alt:not([class*="sc_button_hover_style_"])\ 68 ' 69 ).addClass( 'sc_button_hover_just_init sc_button_hover_style_hover' ); 70 jQuery( 71 '.woocommerce .woocommerce-message .button:not([class*="sc_button_hover_style_"]),\ 72 .woocommerce .woocommerce-info .button:not([class*="sc_button_hover_style_"])\ 73 ' 74 ).addClass( 'sc_button_hover_just_init sc_button_hover_style_alter' ); 75 jQuery( 76 '.sidebar .trx_addons_tabs .trx_addons_tabs_titles li a:not([class*="sc_button_hover_style_"]),\ 77 .truth_tabs .truth_tabs_titles li a:not([class*="sc_button_hover_style_"]),\ 78 .widget_tag_cloud a:not([class*="sc_button_hover_style_"]),\ 79 .widget_product_tag_cloud a:not([class*="sc_button_hover_style_"])\ 80 ' 81 ).addClass( 'sc_button_hover_just_init sc_button_hover_style_alterbd' ); 82 jQuery( 83 '.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon:not([class*="sc_button_hover_style_"]),\ 84 .vc_tta-color-grey.vc_tta-style-classic .vc_tta-tab > a:not([class*="sc_button_hover_style_"]),\ 85 .single-product div.product .woocommerce-tabs .wc-tabs li a:not([class*="sc_button_hover_style_"]),\ 86 .sc_button.color_style_dark:not([class*="sc_button_simple"]):not([class*="sc_button_hover_style_"]),\ 87 .slider_prev:not([class*="sc_button_hover_style_"]),\ 88 .slider_next:not([class*="sc_button_hover_style_"]),\ 89 .trx_addons_video_player.with_cover .video_hover:not([class*="sc_button_hover_style_"]),\ 90 .trx_addons_tabs .trx_addons_tabs_titles li a:not([class*="sc_button_hover_style_"])\ 91 ' 92 ).addClass( 'sc_button_hover_just_init sc_button_hover_style_dark' ); 93 jQuery( 94 '.sc_price_item_link:not([class*="sc_button_hover_style_"])\ 95 ' 96 ).addClass( 'sc_button_hover_just_init sc_button_hover_style_extra' ); 97 jQuery( 98 '.sc_button.color_style_link2:not([class*="sc_button_simple"]):not([class*="sc_button_hover_style_"])\ 99 ' 100 ).addClass( 'sc_button_hover_just_init sc_button_hover_style_link2' ); 101 jQuery( 102 '.sc_button.color_style_link3:not([class*="sc_button_simple"]):not([class*="sc_button_hover_style_"])\ 103 ' 104 ).addClass( 'sc_button_hover_just_init sc_button_hover_style_link3' ); 105 // Remove just init hover class 106 setTimeout( 107 function() { 108 jQuery( '.sc_button_hover_just_init' ).removeClass( 'sc_button_hover_just_init' ); 109 }, 500 110 ); 111 // Remove hover class 112 jQuery( 113 '.mejs-controls button,\ 114 .mfp-close,\ 115 .sc_button_bg_image,\ 116 .hover_shop_buttons a,\ 117 button.pswp__button,\ 118 .woocommerce-orders-table__cell-order-actions .button,\ 119 .sc_layouts_row_type_narrow .sc_button\ 120 ' 121 ).removeClass( 'sc_button_hover_' + TRUTH_STORAGE['button_hover'] ); 122 123 } 124 125 } 126);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.