1/** 2 * Created with JetBrains PhpStorm. 3 * User: sa10 4 * Date: 28.07.13 5 * Time: 15:40 6 * To change this template use File | Settings | File Templates. 7 */ 8 9 10(function($) { 11 12 $.fn.vnWebcam = function() { 13 14 var template = ''; 15 if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC")&&(navigator.platform != "Mac68k")) { 16 template = "<object id=\"AxisCamControl\" classid=\"CLSID:917623D1-D8E5-11D2-BE8B-00104B06BDE3\" width=\"::width::px\" height=\"::height::px\" codebase=\"http://193.109.145.158/activex/AxisCamControl.cab#Version=1,0,2,15\">"; 17 template+= "<param name=\"DisplaySoundPanel\" value=\"0\" />"; 18 template+= "<param name=\"URL\" value=\"http://::ip::/axis-cgi/mjpg/video.cgi?\" />"; 19 template+= "</object>"; 20 } 21 else{ 22 var d = new Date(); 23 template = "<img src=\"http://::ip::/cgi-bin/mjpg/video.cgi?"; 24 template += d.getTime() 25 template += "\" alt=\"Press Reload if no image is displayed\" width=\"::width::px\" height=\"::height::\" />"; 26 } 27 28 this.each( function() { 29 30 var $this = $(this); 31 var ip = $this.data('ip'); 32 var width = $this.width(), height = $this.height(); 33 34 var content = template.replace('::ip::', ip) 35 .replace('::width::', width) 36 .replace('::height::', height); 37 38 39 $this.html(content); 40 }); 41 42 } 43 44}(jQuery));
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.