PageSourceSearch

https://polaslot138akses.com/assets/js/common/Alert.js

js polaslot138akses.com collected 2026-10-09 22:14:03 UTC 1,860 bytes, 80 lines download raw bytes

1class Alert {
2	constructor(code, message) {
3		this.code = null;
4		this.dismiss = true;
5		this.dismissible = "";
6		this.message = "";
7		this.type = "";
8		this.html = "";
9		this.countdown = 0;
10	}
11
12	setType() {
13		if( this.code != 0 ) {
14			this.type = "alert-danger";
15		} else {
16			this.type = "alert-success";
17		}
18//		switch(this.code) {
19//			case -1: this.type = "alert-danger"; break;
20//			case 0: this.type = "alert-success"; break;
21//			case 1: this.type = "alert-warning"; break;
22//		}
23	}
24	
25	set() {
26		this.setType();
27		this.dismissible = (this.dismiss == true) ? "alert-dismissible" : "";
28		
29//		this.html = '<div class="alert '+ this.type +' '+ this.dismissible +' fade-in show" role="alert">';
30		this.html += this.message;
31		if( this.dismiss == true ) {
32			this.html += '<button type="button" class="close" data-dismiss="alert" aria-label="Close">';
33			this.html += '<span aria-hidden="true">&times;</span>';
34			this.html += '</button>';
35		}
36//		this.html += '</div>';
37		
38		$("#Alert").addClass(this.type + " " + this.dismissible + " fade-in show").html(this.html).show();
39//		console.log($("#Alert").html());
40		this.setFocus();
41		//this.redirect();
42	}
43		
44	output() {
45		return this.html;
46	}
47	
48	clear() {
49		this.html = "";
50	}
51	
52	remove() {
53//		closeAlert();
54		var self = this;
55		setTimeout(function(){
56			$("#Alert").removeAttr("class").html("");
57			$("#Alert").attr("class", "alert").hide();
58			self.html = "";
59		}, 3000);
60	}
61	
62	redirect(i, url) {
63	    var counter = setInterval(function () {
64	    	i--;
65	        if( i >= 0 && i < 5) {
66	        	$('#counter').html(i);
67	        }
68	        if( i == 0 ) {
69	        	clearInterval(counter);
70//	        	window.location.href = url;
71	        	redirectPage(url);
72	        }
73	    }, 1000);
74	}
75	
76	setFocus() {
77		var element = $("#Alert");
78		$('html, body').animate({scrollTop: element.offset().top - 70}, 0);
79	}
80}

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.