PageSourceSearch

https://www.tiemposur.com.ar/js/footer3.js

js tiemposur.com.ar collected 2026-10-02 10:05:26 UTC 4,675 bytes, 151 lines download raw bytes

1 window.___gcfg = {
2    lang: 'es-419',
3    parsetags: 'onload'
4  };
5  (function() {
6    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
7    po.src = 'https://apis.google.com/js/plusone.js';
8    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
9  })();
10
11
12  function fb_login(module){
13	  FB.login(function(response) {
14		  
15		  if (response.authResponse) {
16			  $("#fbaccessToken").val(response.authResponse.accessToken);
17			  if ($("#popup_login").val()==1){
18				   call_bak_module('ModUsers','fb_login');
19			  }
20			  else if (module=='connect'){
21				  call_bak_module('modUserProfilePersonalComunity','fb_connect');
22			  }
23			  
24			  /* if (module=='login'){
25	    	  	call_bak_module('ModUsers','fb_login');
26	      }
27	      else if (module=='connect'){
28	    	  	call_bak_module('modUserProfilePersonalComunity','fb_connect');
29	      }
30	      */
31			  //console.log(response.authResponse.accessToken);  
32		     /*console.log('Welcome!  Fetching your information.... ');
33		     FB.api('/me', function(response) {
34		       console.log('Good to see you, ' + response.name + '.');
35		     });
36		     */
37		    } else {
38		     //console.log('User cancelled login or did not fully authorize.');
39		    }
40		    
41		},{scope: 'email,user_birthday,user_location' });
42  }
43  
44  function fb_connect(module){
45	  fb_login(module)
46	  return;
47	  FB.getLoginStatus(function(response) {
48		  console.log(response.status);
49		  if (response.status === 'connected') {
50		    // the user is logged in and has authenticated your
51		    // app, and response.authResponse supplies
52		    // the user's ID, a valid access token, a signed
53		    // request, and the time the access token 
54		    // and signed request each expire
55		    var uid = response.authResponse.userID;
56		    var accessToken = response.authResponse.accessToken;
57		    $("#fbaccessToken").val(accessToken);
58		    
59		    		 $("#fbaccessToken").val(response.authResponse.accessToken);
60			      if (module=='login'){
61			    	  	call_bak_module('ModUsers','fb_login');
62			      }
63			      else if (module=='connect'){
64			    	  console.log("connect");
65			    	  	call_bak_module('modUserProfilePersonalComunity','fb_connect');
66			      }
67			    
68		    
69		    
70		  } else if (response.status === 'not_authorized') {
71		    // the user is logged in to Facebook, 
72		    // but has not authenticated your app
73			  fb_login(module)
74		  } else {
75		    // the user isn't logged in to Facebook.
76			  fb_login(module)
77		  }
78		 });
79  }
80  
81  
82
83
84window.fbAsyncInit = function() {
85  FB.init({
86    appId: jQuery("#FB_APP_ID").val(),
87    cookie: true,
88    xfbml: true,
89    oauth: true
90  });
91  /*FB.Event.subscribe('auth.login', function(response) {
92
93  }, { scope: 'email,read_stream,publish_stream,offline_access,user_birthday,user_location' });
94  FB.Event.subscribe('auth.logout', function(response) {
95    window.location.reload();
96  });
97    FB.Event.subscribe('auth.prompt', function(response) {
98    $("#contenedor").append("p");
99     });
100   FB.Event.subscribe('auth.authResponseChange', function(response) {
101		   if ($("#popup_login").val()==1){
102			   $("#fbaccessToken").val(response.authResponse.accessToken);
103		       call_bak_module('ModUsers','fb_login');
104		    }
105
106	});
107	*/
108
109};
110
111(function() {
112   var e = document.createElement('script'); e.async = true;
113   e.src = document.location.protocol +
114     '//connect.facebook.net/es_LA/all.js';
115   document.getElementById('fb-root').appendChild(e);
116}());
117
118var googleUser = {};
119var googleStartApp = function() {
120  gapi.load('auth2', function(){
121    // Retrieve the singleton for the GoogleAuth library and set up the client.
122    auth2 = gapi.auth2.init({
123      client_id: '337921548276-tpkog6b753as9u1shq2ggi3t7k33475e.apps.googleusercontent.com',
124      cookiepolicy: 'single_host_origin',
125      // Request scopes in addition to 'profile' and 'email'
126      //scope: 'additional_scope'
127    });
128    attachSignin(document.getElementById('g-signin2'));
129  });
130};
131
132function attachSignin(element) {
133  console.log(element.id);
134  auth2.attachClickHandler(element, {},
135      function(googleUser) {
136	  $("#fbaccessToken").val( googleUser.getAuthResponse().id_token);
137	 if ($("#popup_login").val()){
138		 call_bak_module('ModUsers','ga_login');
139	 }
140	 else if($("#popup_profile").val()){
141		 call_bak_module('modUserProfilePersonalComunity','ga_connect');
142	 }
143	  
144  		/*		console.log(googleUser.getBasicProfile().getName());
145        document.getElementById('name').innerText = "Signed in: " +
146            googleUser.getBasicProfile().getName();
147      */
148      }, function(error) {
149        console.log(JSON.stringify(error, undefined, 2));
150      });
151}

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.