1// IE10ã®éäºæã¢ã¼ãã§çºçããXMLSerializer.serializeToStringãè¦ã¤ãããªãã¨ããã¨ã©ã¼ã¸ã®å¯¾å¿ 2 3function getIEVersion(){ 4 var version = 0; 5 var ua = navigator.userAgent; 6 if( ua.match(/MSIE/) || ua.match(/Trident/) ) { 7 version = parseInt(ua.match(/(MSIE\s|rv:)([\d\.]+)/)[2]); 8 } 9 return version; 10} 11 12 13// XMLSerializerã«serializeToStringã追å ãã 14function createBizXmlFunction() { 15 16 var ieVersion = getIEVersion(); 17 if(ieVersion != 10 && ieVersion != 9){ 18 return; 19 } 20 21 if (typeof XMLSerializer !== 'undefined') { 22 XMLSerializer.prototype.serializeToString = function(node) { 23 return node.xml; 24 }; 25 } 26 27} 28 29function createBizLOGFunction() { 30 31 var ieVersion = getIEVersion(); 32 if(ieVersion != 10 && ieVersion != 9){ 33 return; 34 } 35 36 if (typeof LOG !== 'undefined') { 37 LOG.debug = function(msg) {}; 38 } 39 40} 41 42function getBizBrowserType() { 43 var userAgent = window.navigator.userAgent.toLowerCase(); 44 if (userAgent.indexOf('opera') !== -1) { 45 return 'opera'; 46 } else if (userAgent.indexOf('msie') !== -1) { 47 return 'ie'; 48 } else if (userAgent.indexOf('chrome') !== -1) { 49 return 'chrome'; 50 } else if (userAgent.indexOf('firefox') !== -1) { 51 return 'firefox'; 52 } else if (userAgent.indexOf('safari') !== -1) { 53 return 'safari'; 54 } else if (userAgent.indexOf('gecko') !== -1) { 55 return 'gecko'; 56 } else { 57 return false; 58 } 59} 60 61$(document).ready(function() { 62 createBizXmlFunction(); 63 createBizLOGFunction(); 64});
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.