PageSourceSearch

https://narodensport.eu/libs/lib-assets/js/useful.js

js narodensport.eu collected 2026-10-02 21:16:20 UTC 782 bytes, 35 lines download raw bytes

1
2$.extend({
3  keys: function(obj){
4    var a = [];
5    for(var k in obj) a.push(k);
6    return a;
7  }
8});
9
10function ddd(x){
11  if(window.console && window.console.log) {
12    console.log(x);
13  }
14}
15
16function _(txt) {
17  return (window.langs && window.langs[txt] !== undefined) ? window.langs[txt] : txt
18}
19
20function getMobileOS() {
21  var userAgent = navigator.userAgent || navigator.vendor || window.opera;
22
23  // Windows Phone must come first because its UA also contains "Android"
24  if (/windows phone/i.test(userAgent)) {
25    return 'Windows Phone';
26  }
27  if (/android/i.test(userAgent)) {
28    return 'Android';
29  }
30  // iOS detection from: http://stackoverflow.com/a/9039885/177710
31  if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
32    return 'iOS';
33  }
34  return null;
35}

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.