PageSourceSearch

https://cdn.ca.yapla.com/js/membogo/news/frontend.js?v=v6.285.0&v=…=bb655a442a6d4ce51f271bae2b14fc4455e1bd8d

js yapla.com collected 2026-09-24 08:53:27 UTC 2,865 bytes, 99 lines download raw bytes

1if (typeof memboGo === 'undefined') {
2	var memboGo = {};
3}
4memboGo.news = {
5	init: function () {
6		var that = this;
7		$(document)
8			.off('change', 'form[data-news-filter] #category,form[data-news-filter] #keywords')
9			.on('change', 'form[data-news-filter] #category,form[data-news-filter] #keywords', function (e) {
10				e.preventDefault();
11				that.filter($(this).closest('form[data-news-filter]'), 1);
12			});
13	},
14	initAccordion: function () {
15		var that = this;
16		memboGo.news.init();
17		$(document)
18			.off('click', '.news-accordion-open')
19			.off('click', '.news-accordion-close')
20			.off('click', '.panel-news-accordion .collapsed')
21			.on('click', '.news-accordion-open', function () {
22				$(this).hide().next('div').show();
23			})
24			.on('click', '.news-accordion-close', function () {
25				$(this).closest('.news-accordion-content').hide().prev('div').show();
26			})
27	},
28	initBlog: function () {
29		var that = this;
30		memboGo.news.init();
31		$(document)
32			.off('click', '.js-news-blog-items .paginationControl a')
33			.on('click', '.js-news-blog-items .paginationControl a', function (e) {
34				e.preventDefault();
35				that.filter($(this).closest('[data-zone-id]').find('form[data-news-filter]'), $(this).text().trim());
36			});
37	},
38	filter: function (form, page) {
39		var filter = new FormData(form[0]);
40		filter.append('zoneId', form.closest('[data-zone-id]').data('zone-id'));
41		filter.append('page', page);
42		$.ajax({
43			type: "POST",
44			async: "false",
45			url: form.attr('action'),
46			data: filter,
47			dataType: "html",
48			processData: false,
49			contentType: false,
50			beforeSend: function () {
51				HPJUtils.displayLoadingBox();
52			},
53			success: function (data) {
54				form.siblings('div').last().replaceWith(data);
55				window.location.href = '#' + form.closest('[data-zone-id]').attr('id');
56			},
57			complete: function () {
58				HPJUtils.hideLoadingBox();
59			}
60		});
61	}
62};
63
64memboGo.news.histoBack = function (element) {
65	$(document).ready(function () {
66		if ($(element).attr('href') === 'javascript:history.back()') {
67			var referrer = document.referrer.split('//');
68			if (typeof referrer[1] === 'undefined' || referrer[1].length < 1 || referrer[1].split('/')[0] != document.location.hostname) {
69				$(element).remove();
70			}
71		}
72	});
73}
74
75memboGo.news.zoneNewsFilter = function (url) {
76	$(document)
77		.on('change', '.zone-news #category_id,.zone-news #keywords', function () {
78			var self = $(this).closest('[data-zone-id]');
79			$('#filter_loader').show();
80			$.ajax({
81				type: "POST",
82				global: false,
83				url: url,
84				data: {
85					zoneId: self.data('zone-id'),
86					category: self.find('#category_id').val(),
87					keywords: self.find('#keywords').val()
88				},
89				dataType: "html",
90				success: function (data) {
91					self.find('#news_content').replaceWith(data);
92				},
93				complete: function () {
94					$('#filter_loader').hide();
95				}
96			});
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.