1function analyticPage(thumbnail, title, vId, vCatId, aId, aCatId) { 2 var loc = window.location; 3 var url = loc.pathname + loc.search + loc.hash; 4 5 var parser = new UAParser(); 6 var result = parser.getResult(); 7 8 var os = result.os.name; 9 var deviceType = result.device.type; 10 var deviceVendor = result.device.vendor; 11 var deviceModel = result.device.model; 12 13 var params = "/home/analyticpages?url=" + url + "&thumbnail=" + thumbnail + "&title=" + title; 14 if (vId != null) params = params + "&vId=" + vId; 15 if (vCatId != null) params = params + "&vcatId=" + vCatId; 16 if (aId != null) params = params + "&aId=" + aId; 17 if (aCatId != null) params = params + "&acatId=" + aCatId; 18 params = params + "&os=" + os + "&dvmodel=" + deviceModel + "&dvtype=" + deviceType + "&dvvendor=" + deviceVendor 19 20 //$.post(params, function () { }); 21}
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.