PageSourceSearch

https://www.melhorescasinosonline.com/wp-content/plugins/external-casinos-handler/js/functions.js

js melhorescasinosonline.com collected 2026-10-04 21:25:39 UTC 2,227 bytes, 84 lines download raw bytes

1; (function ($, window, document, undefined) {
2	var $win = $(window),
3		$doc = $(document),
4		$html = $('html');
5
6	$doc.ready(function () {
7		if (window.location.href.indexOf('/terms') == -1) {
8			// suggested
9			$.ajax({
10				url: '/wp-admin/admin-ajax.php',
11				type: 'POST',
12				data: {
13					action: 'get_suggested',
14					lang: jsObject.lang,
15					postID: jsObject.postId
16				},
17				success: function (data) {
18
19				}
20			}).done(function (data) {
21				if (data !== false && (typeof data != "undefined")) {
22					var casinoName = $('.atf-logo').length ? $('.atf-logo').text() : $('.big-banner .logo').text();
23
24					String.prototype.replaceAll = function (search, replacement) {
25						var target = this;
26
27						return target.split(search).join(replacement);
28					};
29
30					$('.intro').before(data.replaceAll('[casino]', casinoName).replaceAll('[country]', elems.country));
31
32					var $fixedSection = $('.geoloc-section');
33					var $article = $('article');
34					var $header = $('.site-header');
35
36					$win.on('scroll', function () {
37						var fixOffset = $win.outerWidth() > 1023 ? $header.offset().top + $header.outerHeight() : 1;
38
39						if ($win.scrollTop() > fixOffset) {
40							$fixedSection.addClass('geoloc-section-fixed is-stuck');
41
42							$article.css({
43								paddingTop: $fixedSection.outerHeight()
44							});
45						} else {
46							$fixedSection.removeClass('geoloc-section-fixed is-stuck');
47
48							$article.attr('style', '');
49						}
50					});
51
52					$('.content [href^="/-/"]')
53						.attr('href', '#header')
54						.attr('target', '')
55						.off('click');
56
57					$('[href="#header"]').on('click', function () {
58						var isScrolled = false;
59
60						$('html, body').animate({
61							scrollTop: 0
62						}, {
63							duration: 500,
64							queue: false,
65							complete: function () {
66								if (!isScrolled) {
67									isScrolled = true;
68
69									timeout = setTimeout(function () {
70										$fixedSection.addClass('highlight');
71									}, 350);
72
73									setTimeout(function () {
74										$fixedSection.removeClass('highlight');
75									}, 1350);
76								}
77							}
78						});
79					});
80				}
81			});
82		}
83	});
84})(jQuery, window, document);

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.