PageSourceSearch

https://www.marinalsop.com/wp-content/plugins/expand-maker/js/YrmInline.js?ver=3.47

js marinalsop.com collected 2026-09-24 17:34:55 UTC 3,688 bytes, 99 lines download raw bytes

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

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.