PageSourceSearch

https://www.relogiodagua.pt/wp-content/plugins/multibanco-e-ou-pay…/includes/newtab.js?ver=10%3A07%3A31

js relogiodagua.pt collected 2026-09-24 22:09:04 UTC 1,494 bytes, 50 lines download raw bytes

1jQuery(document).ready(function($) {
2  let paymentWindow;
3
4  function openPaymentWindow(urlP) {
5    paymentWindow = window.open(urlP, '_self');
6    /*let interval = setInterval(function(){
7      if(paymentWindow.closed){
8        clearInterval(interval);
9        jQuery.ajax({
10          type: "POST",
11          url: my_plugin_data.ajax_url,
12          dataType: 'json',
13          data: {action : 'get_redirect_link'},
14          success: function(json) {
15            console.log(json);
16              if (json.redirect_link) {
17                  // Redirect user to the URL in the response
18                  window.location.replace(json.redirect_link);
19              }
20          },
21          error: function(xhr, status, error) {
22            console.log(xhr);
23            console.log(xhr.responseText);
24          }
25      });
26      }
27    }, 1000)*/
28  }
29  
30
31  // Check if payment redirect URL is present in query string
32  var redirectUrl = getParameterByName('pisp_payment_redirect');
33
34  // If redirect URL is present, open payment window and pass redirect URL as parameter
35  if (redirectUrl) {
36    openPaymentWindow(redirectUrl);
37  }
38
39  function getParameterByName(name, url) {
40    if (!url) url = window.location.href;
41    name = name.replace(/[\[\]]/g, '\\$&');
42    var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
43        results = regex.exec(url);
44    if (!results) return null;
45    if (!results[2]) return '';
46    return decodeURIComponent(results[2].replace(/\+/g, ' '));
47  }
48});
49
50

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.