PageSourceSearch

https://aaaeco.nl/wp-content/plugins/expand-maker/js/YrmClassic.js?ver=3.398

js aaaeco.nl collected 2026-10-10 00:45:35 UTC 3,810 bytes, 95 lines download raw bytes

1function YrmClassic() {
2
3	this.id;
4}
5
6YrmClassic.prototype = new YrmMore();
7YrmClassic.constructor = YrmClassic;
8
9YrmClassic.prototype.init = function () {
10
11	var id = this.id;
12	if(typeof readMoreArgs[id] == 'undefined') {
13		console.log('Invalid Data');
14		return;
15	}
16
17	var data = readMoreArgs[id];
18
19	this.initialMutator(data);
20
21	this.setData('readMoreData', data);
22	this.setData('id', id);
23	this.setStyles();
24	this.livePreview();
25
26	var duration = parseInt(data['animation-duration']);
27	var hideAfterClick = data['hide-button-after-click'];
28
29	jQuery('.yrm-toggle-expand-'+id).each(function () {
30		var position = -1;
31		var initialScroll = -1;
32		var currentButton = jQuery(this);
33		var toggleContentId = jQuery(this).attr('data-rel');
34		jQuery("#" + toggleContentId).removeClass('yrm-hide').addClass('yrm-content-hidden');
35		setTimeout(function () {
36			jQuery("#" + toggleContentId).removeClass('yrm-hide').addClass('yrm-content-hidden');
37		}, 0)
38
39		currentButton.unbind('click').bind('click', function () {
40            var easings = data['yrm-animate-easings'];
41
42            var currentButtonWrapper = currentButton.parent('.yrm-btn-wrapper');
43            var contentGradient = jQuery('.yrm-content-gradient-'+id, currentButtonWrapper);
44
45            var toggleContentId = jQuery(this).attr('data-rel');
46            var arrowImage = jQuery(this).find('.yrm-arrow-img').first();
47			position = jQuery('#'+toggleContentId).offset().top;
48            var currentStatus = JSON.parse(jQuery("#"+toggleContentId).attr('data-show-status'));
49            var triggerArgs = {'id': id, 'currentElement': currentButton};
50			var enableClickSound = data['yrm-toggle-sound'];
51
52			if (enableClickSound) {
53				const audio = new Audio(data['sound-url']);
54				audio.play()
55			}
56
57
58            /*if currentStatus == true must be close read more*/
59            if(currentStatus) {
60            	var moreName = jQuery(this).data('more');
61            	var moreTitle = jQuery(this).data('more-title');
62                jQuery("#" + toggleContentId).slideToggle(duration, easings, function () {
63	                contentGradient.fadeIn('slow');
64                });
65	            var currentScroll = document.documentElement.scrollTop || document.body.scrollTop;
66	            var scrollDifference = currentScroll - initialScroll;
67	            if (position != -1 && data['vertical'] != 'top' && scrollDifference && data['scroll-to-initial-position']) {
68		            jQuery("html ,body").animate({scrollTop: currentScroll-scrollDifference}, duration, easings);
69	            }
70	            arrowImage.removeClass('yrm-rotate-180');
71                jQuery(this).attr('title', moreTitle);
72                jQuery(this).parent().removeClass('yrm-less-button-wrapper').addClass('yrm-more-button-wrapper');
73                jQuery(this).find('.yrm-button-text-'+id).text(moreName);
74                jQuery(window).trigger('YrmClose', triggerArgs);
75			}
76			else {
77	            initialScroll = document.documentElement.scrollTop || document.body.scrollTop;
78            	var lessName = jQuery(this).data('less');
79            	var lessTitle = jQuery(this).data('less-title');
80                jQuery("#"+toggleContentId).slideToggle(duration, easings, function () {
81	                contentGradient.fadeOut('slow');
82					if(hideAfterClick) {
83						currentButton.remove();
84					}
85                });
86                arrowImage.addClass('yrm-rotate-180');
87                jQuery(this).attr('title', lessTitle);
88	            jQuery(this).parent().addClass('yrm-less-button-wrapper').removeClass('yrm-more-button-wrapper');
89                jQuery(this).find('.yrm-button-text-'+id).text(lessName);
90                jQuery(window).trigger('YrmOpen', triggerArgs);
91			}
92            jQuery("#"+toggleContentId).attr('data-show-status', !currentStatus);
93        })
94	});
95};

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.