PageSourceSearch

https://www.magazyn-stomatologiczny.pl/gestione/newsletter/fjs.js

js magazyn-stomatologiczny.pl collected 2026-10-07 16:37:41 UTC 1,111 bytes, 58 lines download raw bytes

1var newsletter = new function(){
2	
3	var me = this;
4	
5	this.check = function(email){
6		var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
7		if(email=='' || !filter.test(email))
8			return false;	
9		else
10			return true;
11	};
12	
13	this.status = function(kind){
14		var msg = '',type;
15		switch(kind){
16			case -2:
17				type = 0; 
18				msg = "Podany adres jest niepoprawny";
19				break;
20			case -1: 
21				type = 0; 
22				msg = "Podany adres jest już w naszej bazie";
23				break;
24			case 0: 
25				type = 0; 
26				msg = "Nie udało się zapisać adresu";
27				break;
28			case 1: 
29				type = 1;				
30				msg = "Adres został zapisany";
31				break;
32		}
33		$('.newsletter_msg').html(msg);
34	};
35	
36	this.send = function(){
37		var email = $('#newsletter_email').val();
38		if(me.check(email)){
39			$.post('/newsletter_add',{'email':email},function(response){
40				me.status(parseInt(response));
41			});
42		}else{
43			me.status(-2);
44		}							
45	};
46	
47	this.bindEvents = function(){		
48		$("#newsletter_sign").bind('click',function(){
49			me.send();	
50		});		
51	};
52	
53}
54
55$(document).ready(function(){
56
57	newsletter.bindEvents();
58});

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.