PageSourceSearch

https://rozinaali.com/wp-content/themes/plastica/skins/default/the…/theme-hovers.js?reload=1397664829

js rozinaali.com collected 2026-10-04 21:03:18 UTC 10,655 bytes, 216 lines download raw bytes

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		// Add button's hover class (selected in Theme Options) to the tags 'button' and 'a'
9		// 'sc_button_hover_fade' | 'sc_button_hover_slide_left' | 'sc_button_hover_slide_right' | 'sc_button_hover_slide_top' | 'sc_button_hover_slide_bottom'
10		if (PLASTICA_STORAGE['button_hover'] && PLASTICA_STORAGE['button_hover'] != 'default') {
11			jQuery(
12				// Tag 'button'
13				'button:not(.search_submit):not(.full_post_close):not([class*="sc_button_hover_"]),'
14				+ '.sc_form_field button:not([class*="sc_button_hover_"]),'
15				// Theme and sc_button
16				+ '.theme_button:not([class*="sc_button_hover_"]),'
17				+ '.sc_button:not([class*="sc_button_simple"]):not([class*="sc_button_bordered"]):not([class*="sc_button_hover_"]),'
18				// Theme tabs
19				+ '.plastica_tabs .plastica_tabs_titles li a:not([class*="sc_button_hover_"]),'
20				// More link
21				+ '.post_item .more-link:not([class*="sc_button_hover_"]),'
22				// Links in the trx_addons hover with back info
23				+ '.trx_addons_hover_content .trx_addons_hover_links a:not([class*="sc_button_hover_"]),'
24				// BuddyPress
25				+ '#buddypress a.button:not([class*="sc_button_hover_"])'
26				// MP Time table
27				+ '.mptt-navigation-tabs li a:not([class*="sc_button_hover_style_"]),'
28				// EDD (Easy digital downloads)
29				+ '.edd_download_purchase_form .button:not([class*="sc_button_hover_style_"]),'
30				+ '.edd-submit.button:not([class*="sc_button_hover_style_"]),'
31				+ '.widget_edd_cart_widget .edd_checkout a:not([class*="sc_button_hover_style_"]),'
32				// WooCommerce
33				+ '.hover_shop_buttons .icons a:not([class*="sc_button_hover_style_"]),'
34				+ '.woocommerce #respond input#submit:not([class*="sc_button_hover_"]),'
35				+ '.woocommerce .button:not([class*="shop_"]):not([class*="view"]):not([class*="sc_button_hover_"]),'
36				+ '.woocommerce-page .button:not([class*="shop_"]):not([class*="view"]):not([class*="sc_button_hover_"])'
37			).addClass( 'sc_button_hover_just_init sc_button_hover_' + PLASTICA_STORAGE['button_hover'] );
38
39			// Add button's hover class if not based on :before or :after elements (like 'sc_button_hover_arrow')
40			if (PLASTICA_STORAGE['button_hover'] != 'arrow') {
41				jQuery(
42					// Form buttons
43					'input[type="submit"]:not([class*="sc_button_hover_"]),'
44					+ 'input[type="button"]:not([class*="sc_button_hover_"]),'
45					// Tag cloud
46					+ '.tagcloud > a:not([class*="sc_button_hover_"]),'
47					// VC tabs and accordion
48					+ '.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon:not([class*="sc_button_hover_"]),'
49					+ '.vc_tta-color-grey.vc_tta-style-classic .vc_tta-tab > a:not([class*="sc_button_hover_"]),'
50					// WooCommerce
51					+ '.woocommerce nav.woocommerce-pagination ul li a:not([class*="sc_button_hover_"]),'
52					// Tribe Events Calendar
53					+ '.tribe-events-button:not([class*="sc_button_hover_"]),'
54					+ '#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:not([class*="sc_button_hover_"]),'
55					+ '.tribe-bar-mini #tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:not([class*="sc_button_hover_"]),'
56					+ '.tribe-events-cal-links a:not([class*="sc_button_hover_"]),'
57					+ '.tribe-events-sub-nav li a:not([class*="sc_button_hover_"]),'
58					// ThemeREX Addons buttons
59					+ '.isotope_filters_button:not([class*="sc_button_hover_"]),'
60					+ '.trx_addons_scroll_to_top:not([class*="sc_button_hover_"]),'
61					+ '.sc_promo_modern .sc_promo_link2:not([class*="sc_button_hover_"]),'
62					+ '.slider_container .slider_prev:not([class*="sc_button_hover_"]),'
63					+ '.slider_container .slider_next:not([class*="sc_button_hover_"]),'
64					+ '.sc_slider_controller_titles .slider_controls_wrap > a:not([class*="sc_button_hover_"])'
65				).addClass( 'sc_button_hover_just_init sc_button_hover_' + PLASTICA_STORAGE['button_hover'] );
66			}
67
68			// Alter style: sc_button_hover_style_default
69			jQuery(
70				// Controls in the slider controller (style 'Titles') - arrows at the left and right side
71				'.sc_slider_controller_titles .slider_controls_wrap > a:not([class*="sc_button_hover_style_"])'
72			).addClass( 'sc_button_hover_just_init sc_button_hover_style_default' );
73
74			// Alter style: sc_button_hover_style_inverse
75			jQuery(
76				// Links in the trx_addons hover with back info
77				'.trx_addons_hover_content .trx_addons_hover_links a:not([class*="sc_button_hover_style_"]),'
78				// WooCommerce single product: related products and up-sells
79				+ '.single-product ul.products li.product .post_data .button:not([class*="sc_button_hover_style_"])'
80			).addClass( 'sc_button_hover_just_init sc_button_hover_style_inverse' );
81
82			// Alter style: sc_button_hover_style_hover
83			jQuery(
84				// Social share icons
85				'.post_item_single .post_content .post_meta .post_share .socials_type_block .social_item .social_icon:not([class*="sc_button_hover_style_"]),'
86				// WooCommerce buttons with class 'alt'
87				+ '.woocommerce #respond input#submit.alt:not([class*="sc_button_hover_style_"]),'
88				+ '.woocommerce a.button.alt:not([class*="sc_button_hover_style_"]),'
89				+ '.woocommerce button.button.alt:not([class*="sc_button_hover_style_"]),'
90				+ '.woocommerce input.button.alt:not([class*="sc_button_hover_style_"])'
91			).addClass( 'sc_button_hover_just_init sc_button_hover_style_hover' );
92
93			// Alter style: sc_button_hover_style_alter
94			jQuery(
95				// WooCommerce buttons in the notice and info areas
96				'.woocommerce .woocommerce-message .button:not([class*="sc_button_hover_style_"]),'
97				+ '.woocommerce .woocommerce-info .button:not([class*="sc_button_hover_style_"])'
98			).addClass( 'sc_button_hover_just_init sc_button_hover_style_alter' );
99
100			// Alter style: sc_button_hover_style_alterbd
101			jQuery(
102				// ThemeREX Addons tabs in the sidebar
103				'.sidebar .trx_addons_tabs .trx_addons_tabs_titles li a:not([class*="sc_button_hover_style_"]),'
104				// Theme tabs
105				+ '.plastica_tabs .plastica_tabs_titles li a:not([class*="sc_button_hover_style_"]),'
106				// Tag cloud
107				+ '.widget_tag_cloud a:not([class*="sc_button_hover_style_"]),'
108				// Woocommerce tag cloud
109				+ '.widget_product_tag_cloud a:not([class*="sc_button_hover_style_"])'
110			).addClass( 'sc_button_hover_just_init sc_button_hover_style_alterbd' );
111
112			// Alter style: sc_button_hover_style_dark
113			jQuery(
114				// VC tabs and accordion
115				'.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon:not([class*="sc_button_hover_style_"]),'
116				+ '.vc_tta-color-grey.vc_tta-style-classic .vc_tta-tab > a:not([class*="sc_button_hover_style_"]),'
117				// WooCommerce tabs in the single product
118				+ '.single-product div.product > .woocommerce-tabs .wc-tabs li a:not([class*="sc_button_hover_style_"]),'
119				// sc_button with color style 'dark'
120				+ '.sc_button.color_style_dark:not([class*="sc_button_simple"]):not([class*="sc_button_hover_style_"]),'
121				// Slider controls (arrows)
122				+ '.slider_prev:not([class*="sc_button_hover_style_"]),'
123				+ '.slider_next:not([class*="sc_button_hover_style_"]),'
124				// Video player - button 'Play'
125				+ '.trx_addons_video_player.with_cover .video_hover:not([class*="sc_button_hover_style_"]),'
126				// ThemeREX Addons tabs
127				+ '.trx_addons_tabs .trx_addons_tabs_titles li a:not([class*="sc_button_hover_style_"])'
128			).addClass( 'sc_button_hover_just_init sc_button_hover_style_dark' );
129
130			// Alter style: sc_button_hover_style_extra
131			jQuery(
132				// Price table links
133				'.sc_price_item_link:not([class*="sc_button_hover_style_"])'
134			).addClass( 'sc_button_hover_just_init sc_button_hover_style_extra' );
135
136			// Alter style: sc_button_hover_style_link2
137			jQuery(
138				// sc_button with color style 'link2'
139				'.sc_button.color_style_link2:not([class*="sc_button_simple"]):not([class*="sc_button_hover_style_"])'
140			).addClass( 'sc_button_hover_just_init sc_button_hover_style_link2' );
141
142			// Alter style: sc_button_hover_style_link3
143			jQuery(
144				// sc_button with color style 'link3'
145				'.sc_button.color_style_link3:not([class*="sc_button_simple"]):not([class*="sc_button_hover_style_"])'
146			).addClass( 'sc_button_hover_just_init sc_button_hover_style_link3' );
147
148			// Remove hover class from some elements for which hover-effect should not be used
149			jQuery(
150				// Media player 'Media elements'
151				'.mejs-controls button,'
152				// Icon inside submenu navigation
153				+ '.wp-block-navigation__submenu-icon,'
154				// Magnific popup close button
155				+ '.mfp-close,'
156				// sc_button with background image
157				+ '.sc_button_bg_image,'
158				// Buttons in rows with type 'Narrow' inside custom layouts
159				+ '.sc_layouts_row_type_narrow .sc_button,'
160				// Tribe Events 5.0+ new design
161				+ '.tribe-common-c-btn-icon,'
162				+ '.tribe-events-c-top-bar__datepicker-button,'
163				+ '.tribe-events-calendar-list-nav button,'
164				+ '.tribe-events-cal-links .tribe-events-button,'
165				// Links in the hover 'Shop'
166				+ '.hover_shop_buttons a,'
167				// Woocommerce
168				+ 'button.pswp__button,'
169				+ '.woocommerce-orders-table__cell-order-actions .button'
170			).removeClass( 'sc_button_hover_' + PLASTICA_STORAGE['button_hover'] );
171
172			// Remove temporary class 'sc_button_hover_just_init'
173			setTimeout(
174				function() {
175					jQuery( '.sc_button_hover_just_init' ).removeClass( 'sc_button_hover_just_init' );
176				}, 500
177			);
178
179		}
180
181        //Underline Hover
182        //++++++++++++++++
183        jQuery(
184            '.sc_icons_simple .sc_icons_item_description a:not(.underline_hover),'
185            + '.sc_icons_plate .sc_icons_item a.sc_icons_item_more_link:not(.underline_hover),'
186            + '.sc_layouts_title_breadcrumbs .breadcrumbs a:not(.underline_hover)'
187        ).addClass( 'underline_hover' );
188
189        //Underline Hover Reverse
190        //++++++++++++++++
191        jQuery(
192            '.sc_icons_plain .sc_icons_item .sc_icons_item_more_link:not(.underline_hover_reverse),'
193            + '.sc_icons_bordered .sc_icons_item_description a:not(.underline_hover_reverse)'
194        ).addClass( 'underline_hover_reverse' );
195
196
197        //Underline Animation
198        //+++++++++++++++++++
199		
200        /*
201        jQuery(
202            ''
203        ).addClass( 'underline_anim' );
204		*/
205
206        jQuery(window).scroll(function() {
207            jQuery( '.underline_anim:not(.underline_do_hover)' ).each( function() {
208                var item = jQuery(this);
209                if ( item.offset().top < jQuery( window ).scrollTop() + jQuery( window ).height() - 80 ) {
210                    item.addClass( 'underline_do_hover' );
211                }
212            } );
213        });
214
215	}
216);

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.