PageSourceSearch

https://elven.info/wp-content/themes/cryption/js/ct-form-elements.js?ver=7.1.3

js elven.info collected 2026-10-10 02:23:10 UTC 1,749 bytes, 56 lines download raw bytes

1(function($) {'use strict';
2	$.fn.checkbox = function() {
3		$(this).each(function() {
4			var $el = $(this);
5			var typeClass = $el.attr('type');
6			$el.hide();
7			$el.next('.'+typeClass+'-sign').remove();
8			var $checkbox = $('<span class="'+typeClass+'-sign" />').insertAfter($el);
9			$checkbox.click(function() {
10				if($el.attr('type') == 'radio') {
11					$el.prop('checked', true).trigger('change').trigger('click');
12				} else {
13					$el.prop('checked', !($el.is(':checked'))).trigger('change');
14				}
15			});
16			$el.change(function() {
17				$('input[name="'+$el.attr('name')+'"]').each(function() {
18					if($(this).is(':checked')) {
19						$(this).next('.'+$(this).attr('type')+'-sign').addClass('checked');
20					} else {
21						$(this).next('.'+$(this).attr('type')+'-sign').removeClass('checked');
22					}
23				});
24			});
25			if($el.is(':checked')) {
26				$checkbox.addClass('checked');
27			} else {
28				$checkbox.removeClass('checked');
29			}
30		});
31	}
32	$.fn.combobox = function() {
33		$(this).each(function() {
34			var $el = $(this);
35			$el.insertBefore($el.parent('.combobox-wrapper'));
36			$el.next('.combobox-wrapper').remove();
37			$el.css({
38				'opacity': 0,
39				'position': 'absolute',
40				'left': 0,
41				'right': 0,
42				'top': 0,
43				'bottom': 0
44			});
45			var $comboWrap = $('<span class="combobox-wrapper" />').insertAfter($el);
46			var $text = $('<span class="combobox-text" />').appendTo($comboWrap);
47			var $button = $('<span class="combobox-button" />').appendTo($comboWrap);
48			$el.appendTo($comboWrap);
49			$el.change(function() {
50				$text.text($('option:selected', $el).text());
51			});
52			$text.text($('option:selected', $el).text());
53			$el.comboWrap = $comboWrap;
54		});
55	}
56})(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.