1 2document.write("<script src='" + EC_WWW_ROOT + "/xml/topiclistcojp_new.xml'></script>"); 3 4var check_date = new Date(); 5 6// ?S???????? s1 ?? s2 ??u???????? 7function replaceAll(expression, org, dest){ 8 return expression.split(org).join(dest); 9} 10 11function getShopCode(){ 12/* 13 var fullpath = location.href; 14 var shop; 15 if (fullpath.length - replaceAll(fullpath, "/", "").length > 1) { 16 shop = fullpath.split("/")[4]; 17 } 18 return shop; 19*/ 20return ""; 21} 22 23var xmldata; 24 25function callback(x){ // ?R?[???o?b?N??????` 26 xmldata = x["data"]; 27} 28 29jQuery(function() { 30 31 var parseXML1 = parseXML( xmldata ); 32 33 function parse_xml_1(xml,status){ 34 35 if(status!='success') return; 36 var ht = ''; 37 38 jQuery(xml).find('item').each(function(){ 39 var cnt = 0; 40 if (jQuery(this).find('linkurl').text() != '' ){ 41 ht += '<li>'; 42 ht += '<a href='+jQuery(this).find('linkurl').text(); 43 if (jQuery(this).find('wtarget').text() == '1'){ 44 ht += ' target="_blank"'; 45 } 46 ht += '>'; 47 cnt += 1; 48 } 49 var s_dt = jQuery(this).find('s_dt').text(); 50 var s_dt_y = s_dt.split("N"); 51 var s_dt_m = s_dt_y[1].split(""); 52 var s_dt_d = s_dt_m[1].split("ú"); 53 54 if (s_dt_m[0].length < 2){ 55 s_dt_m[0] = '0' + s_dt_m[0]; 56 }; 57 if (s_dt_d[0].length < 2){ 58 s_dt_d[0] = '0' + s_dt_d[0]; 59 }; 60 61 ht += '<time datetime="' + s_dt_y[0] + '-' + s_dt_m[0] + '-' + s_dt_d[0] + '">'; 62 ht += s_dt_y[0] + ' / ' + s_dt_m[0] + ' / ' + s_dt_d[0]; 63 ht += '</time>'; 64 ht += '<p>'+jQuery(this).find('comment').text()+'</p>'; 65 66 if (cnt > 0){ 67 ht += '</a>'; 68 } 69 70 ht += '</li>'; 71 }); 72 jQuery('.mod_newsList.l_small').prepend(ht); 73 } 74 75 parse_xml_1(parseXML1,'success'); 76 jQuery('.mod_newsList.l_small').append('<li class="more"><a href="../topic/topiclist.aspx">àÁÆ©é</a></li>'); 77 78}); 79 80 81 function parseXML( data ) { 82 var xml, tmp; 83 if ( !data || typeof data !== "string" ) { 84 return null; 85 } 86 try { 87 if ( window.DOMParser ) { // Standard 88 tmp = new DOMParser(); 89 xml = tmp.parseFromString( data , "text/xml" ); 90 } else { // IE 91 xml = new ActiveXObject( "Microsoft.XMLDOM" ); 92 xml.async = "false"; 93 xml.loadXML( data ); 94 } 95 } catch( e ) { 96 xml = undefined; 97 } 98 if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { 99 error2( "Invalid XML: " + data ); 100 } 101 return xml; 102 } 103 104 function error2( msg ) { 105 throw new Error( msg ); 106 }
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.