PageSourceSearch

https://rodabet3.proxyserve.workers.dev/js/common.js

js rodabet3.proxyserve.workers.dev collected 2026-10-03 08:10:07 UTC 2,767 bytes, 91 lines download raw bytes

1$(document).ready(function() {
2
3	//FOR MENU
4	var url = window.location;
5	$("#content ul.navbar-nav a").each(function(){
6		if($(this).prop("href")==url){
7			$(this).parent().addClass("active");
8			$(this).append($('<span class="sr-only">').text('(current)'))
9		}
10	});
11
12	//$("#marquee ul").liScroll();
13
14	/* MODAL */
15	$('#myModal').on('show.bs.modal', function (event) {
16	  var button = $(event.relatedTarget) // Button that triggered the modal
17	  var recipient = button.data('title') // Extract info from data-* attributes
18	  var targetUrl = button.data('url') // Extract info from data-* attributes
19	  // If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
20	  // Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
21	  var modal = $(this)
22	  modal.find('.modal-title').text(recipient)
23	  modal.find('.modal-body').append($('<iframe class="iframe">').prop("src", targetUrl));
24	}).on('hidden.bs.modal', function (event){
25	  var modal = $(this);
26	  $(".loading").show();
27	  modal.find('.modal-body .iframe').remove();
28	});
29
30	/* Promotions banner slidedown */
31	$(document).on("click", ".aimg", function(){
32		$(this).closest(".abox").find(".acon").slideToggle(300);
33	})
34
35	/* show mini game */
36	if(typeof globalObj != "undefined"){
37		if(typeof globalObj.isMinigame != "undefined"){
38			if(globalObj.isMinigame){
39				$('.mgss').removeClass('hide');
40			}
41		}
42	}
43
44	// Power By
45	let powerbyText = `<div style="text-align: center;background-color: #2b2b2b;color: #ededed;padding: 5px 0;">Power By&nbsp; [ Japan Netgaming Corp ]</div>`;
46
47	if ($('#showD').length) {
48		$('#showD, #mob-content, #showM .content').append(powerbyText);
49	} else {
50		$('body').append(powerbyText);
51	}
52
53	let marqueeInt = setInterval(() => {
54		if ($('marquee').length) {
55			clearInterval(marqueeInt);
56			scriptLoader('/js/jquery.marquee.min.js').then(() => {
57				$('marquee').marquee({
58					duration: 25000,
59					gap: 0,
60					delayBeforeStart: 0,
61					direction: 'left',
62					duplicated: false,
63					pauseOnHover: true // This replaces the manual hover code above
64				});
65			});
66		}
67	}, 500);
68});
69
70function resetForm(formId){
71	$(formId)[0].reset();
72	$(formId).find('.form-control').removeClass('valid');
73	$(formId).find('.form-control').removeClass('error');
74	$(formId).find('label.error').text("").hide();
75}
76
77function sessionLogout(){
78	alertMsg(messages.sessionLogout);
79	delete_cookie('logged');
80	setTimeout(function(){
81		ajaxCaller('get', logout_link, '', function(){});
82	}, 2000);
83	//setTimeout( function() {  window.location = logout_link}, 2000 );
84}
85
86function iframeLoad(title){
87	$(".loading").fadeOut();
88	if(typeof title != 'undefined'){
89		$('#myModal').find('.modal-title').text(title)
90	}
91}

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.