PageSourceSearch

https://krist-vlg.ru/wp-content/themes/woodmart/js/scripts/wc/loginDropdown.js?ver=6.2.4

js krist-vlg.ru collected 2026-10-08 14:50:59 UTC 1,480 bytes, 47 lines download raw bytes

1/* global woodmart_settings */
2(function($) {
3	woodmartThemeModule.loginDropdown = function() {
4		if (woodmartThemeModule.windowWidth <= 1024) {
5			return;
6		}
7
8		$('.wd-dropdown-register').each(function() {
9			var $this    = $(this),
10			    $content = $this.find('.login-dropdown-inner');
11
12			$content.find('input[id="username"]').on('click', function() {
13				$this.addClass('wd-active-login').removeClass('wd-active-link');
14			});
15
16			$content.find('input[id="username"]').on('input', function() {
17				if ($this.hasClass('wd-active-login')) {
18					$this.removeClass('wd-active-login').addClass('wd-active-link');
19				}
20			});
21
22			$content.find('input').not('[id="username"]').on('click', function() {
23				$this.removeClass('wd-active-login').removeClass('wd-active-link');
24			});
25
26			woodmartThemeModule.$document.click(function(a) {
27				if ('undefined' != typeof (a.target.className.length) && a.target.className.indexOf('wd-dropdown-register') === -1 && a.target.className.indexOf('input-text') === -1) {
28					$this.removeClass('wd-active-login').removeClass('wd-active-link');
29				}
30			});
31
32			$('.wd-dropdown-register').on('mouseout', function() {
33				if ($this.hasClass('wd-active-link')) {
34					$this.removeClass('wd-active-link');
35				}
36			}).on('mouseleave', function() {
37				if ($this.hasClass('wd-active-link')) {
38					$this.removeClass('wd-active-link');
39				}
40			});
41		});
42	};
43
44	$(document).ready(function() {
45		woodmartThemeModule.loginDropdown();
46	});
47})(jQuery);

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.