PageSourceSearch

https://comprasolidaria.pt/js/main.js?x=212931795

js comprasolidaria.pt collected 2026-09-25 19:05:41 UTC 3,475 bytes, 137 lines download raw bytes

1function makeload(div) {
2$("#"+div).html('<img src="/images/ajax-loader-1.gif" width="16" height="11" align="absmiddle" /> A carregar...');	
3	
4}
5
6function grabhpdest(pag) {
7var dact = $("#dact").val();
8var dcat = $("#dcat").val();
9var dscat = $("#dscat").val();
10var dprice = $("#dprice").val();
11
12makeload("pdestaque");
13$.get("/system/visual/home/pdestaques.php", { 
14pag:pag,
15dact:dact,
16dcat:dcat,
17dscat:dscat,
18dprice:dprice
19},
20   function(data){
21$("#pdestaque").html(data);   
22   });
23	
24}
25
26function sharre(longUrl) {
27    $('#shareme').sharrre({
28      share: {
29        googlePlus: true,
30        twitter: false,
31        digg: false,
32        delicious: false,
33        stumbleupon: false,
34        linkedin: true,
35        pinterest: false,
36        facebook: false
37      },
38      buttons: {
39        googlePlus: {size: 'tall', annotation: 'bubble'},
40        twitter: {count: 'vertical', hashtags: 'comprasolidaria'},
41        digg: {type: 'DiggMedium'},
42        delicious: {size: 'tall'},
43        stumbleupon: {layout: '5'},
44        linkedin: {counter: 'top'},
45        pinterest: {media: 'http://sharrre.com/img/example1.png', description: $('#shareme').data('text'), layout: 'vertical'},
46        facebook: {layout: 'box_count', action: "recommended", send: "false", show_faces: "false"}
47      },
48      enableHover: false,
49      enableCounter: false,
50      enableTracking: true
51    });
52}
53
54function sharebt(id,n) {
55//$(".buttons").append('<div class="button fbshare"><div class="fbcbox"><div style="padding-top:5px;">' + n + '</div></div><div style=""><a class="sharer" href="/produto/'+id+'.html"><img width="57" height="18" border="0" src="/images/fb-share.png"></a></div></div>');
56    $(".buttons").append('<div class="button fb-like" data-href="/produto/'+id+'.html" data-send="false" data-layout="box_count" data-width="100" data-show-faces="false" data-action="recommend"></div>');
57
58//$(".buttons").append('<div class="button fblike"><div class="fb-like" data-href="/produto/'+id+'.html" data-send="false" data-layout="button_count" data-width="60" data-show-faces="false"></div></div>');
59
60
61
62$('.sharer').click(function(e) {
63    e.preventDefault();
64
65    var title = $(this).data('title');
66    var url = $(this).attr('href');    
67    var fbSharerUrl = 'http://www.facebook.com/sharer.php?';
68    var params = { u: url, t: title };
69    var fbSharerConfig = 'toolbar=0,status=0,width=600,height=400';
70
71    window.open(fbSharerUrl + $.param(params), 'sharer', fbSharerConfig);
72});
73	
74}
75
76$(document).ready(function(){
77subnewsletter();
78
79   $('#slider1').bxSlider({
80    auto: true,
81	speed: 1000,
82	pause:5000
83  });
84
85
86
87setInterval(function(){
88
89$('.desimg').each(function(index) {
90
91var iw = $(this).width();
92if(iw > 145) {
93$(this).width(145).height(60);
94}
95
96});
97	
98	},500);	
99
100});
101
102function subnewsletter() {
103	
104$("#newsform").submit(function(event) {
105event.preventDefault(); 
106var email = $("#email").val();
107
108$.post( "/system/subscrever.php", {email: email },
109      function( data ) {
110if(data == 1) {
111var msg = "<strong>Obrigado pela sua subscrição!</strong>";			
112$("#isnews").hide();
113$("#isnewsmsg").html(msg).fadeIn();  
114}
115
116if(data == 2) {
117var msg = "<strong>Email já registado!</strong>";			
118$("#isnews").hide();
119$("#isnewsmsg").html(msg).fadeIn();  
120}
121
122if(data == 3) {
123var msg = "<strong>Email Inválido!</strong>";			
124$("#isnews").hide();
125$("#isnewsmsg").html(msg).fadeIn();  
126}
127
128setTimeout(function(){
129$("#isnewsmsg").hide();
130$("#isnews").fadeIn();	
131	},3000);
132
133      }
134    );
135  });
136	
137}

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.