PageSourceSearch

https://media.ba/sites/default/files/advagg_js/js__dTRSuW27RiJte-z…RtmT_okBWmKLQTBcZ5H1mIUn1WNgi1-EuatSU6Wo.js

js media.ba collected 2026-10-02 05:41:47 UTC 3,366 bytes, 3 lines download raw bytes

1/* Source and licensing information for the line(s) below can be found at https://www.media.ba/bs/sites/all/modules/google_analytics/googleanalytics.js. */
2(function($){Drupal.googleanalytics={};$(document).ready(function(){$(document.body).bind("mousedown keyup touchstart",function(event){$(event.target).closest("a,area").each(function(){if(Drupal.googleanalytics.isInternal(this.href)){if($(this).is('.colorbox')&&(Drupal.settings.googleanalytics.trackColorbox));else if(Drupal.settings.googleanalytics.trackDownload&&Drupal.googleanalytics.isDownload(this.href)){gtag('event',Drupal.googleanalytics.getDownloadExtension(this.href).toUpperCase(),{event_category:'Downloads',event_label:Drupal.googleanalytics.getPageUrl(this.href),transport_type:'beacon'})}else if(Drupal.googleanalytics.isInternalSpecial(this.href)){var target=this;$.each(Drupal.settings.googleanalytics.account,function(){gtag('config',this,{page_path:Drupal.googleanalytics.getPageUrl(target.href),transport_type:'beacon'})})}}else if(Drupal.settings.googleanalytics.trackMailto&&$(this).is("a[href^='mailto:'],area[href^='mailto:']")){gtag('event','Click',{event_category:'Mails',event_label:this.href.substring(7),transport_type:'beacon'})}else if(Drupal.settings.googleanalytics.trackOutbound&&this.href.match(/^\w+:\/\//i))if(Drupal.settings.googleanalytics.trackDomainMode!==2||(Drupal.settings.googleanalytics.trackDomainMode===2&&!Drupal.googleanalytics.isCrossDomain(this.hostname,Drupal.settings.googleanalytics.trackCrossDomains)))gtag('event','Click',{event_category:'Outbound links',event_label:this.href,transport_type:'beacon'})})});if(Drupal.settings.googleanalytics.trackUrlFragments)window.onhashchange=function(){$.each(Drupal.settings.googleanalytics.account,function(){gtag('config',this,{page_path:location.pathname+location.search+location.hash})})};if(Drupal.settings.googleanalytics.trackColorbox)$(document).bind("cbox_complete",function(){var href=$.colorbox.element().attr("href");if(href)$.each(Drupal.settings.googleanalytics.account,function(){gtag('config',this,{page_path:Drupal.googleanalytics.getPageUrl(href)})})})});Drupal.googleanalytics.isCrossDomain=function(hostname,crossDomains){if(!crossDomains){return false}else return $.inArray(hostname,crossDomains)>-1?true:false};Drupal.googleanalytics.isDownload=function(url){var isDownload=new RegExp("\\.("+Drupal.settings.googleanalytics.trackDownloadExtensions+")([\?#].*)?$","i");return isDownload.test(url)};Drupal.googleanalytics.isInternal=function(url){var isInternal=new RegExp("^(https?):\/\/"+window.location.host,"i");return isInternal.test(url)};Drupal.googleanalytics.isInternalSpecial=function(url){var isInternalSpecial=new RegExp("(\/go\/.*)$","i");return isInternalSpecial.test(url)};Drupal.googleanalytics.getPageUrl=function(url){var extractInternalUrl=new RegExp("^(https?):\/\/"+window.location.host,"i");return url.replace(extractInternalUrl,'')};Drupal.googleanalytics.getDownloadExtension=function(url){var extractDownloadextension=new RegExp("\\.("+Drupal.settings.googleanalytics.trackDownloadExtensions+")([\?#].*)?$","i"),extension=extractDownloadextension.exec(url);return(extension===null)?'':extension[1]}})(jQuery);;
3/* Source and licensing information for the above line(s) can be found at https://www.media.ba/bs/sites/all/modules/google_analytics/googleanalytics.js. */

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.