1// text to Flash 2 3$(document).ready(function(){ 4 5 $('*[class^="flash"]').each(function () { 6 var swf = $(this).attr('class').split('flash-')[1] 7 8 if(swf){ 9 var alt = $(this).height(); 10 var larg = $(this).width(); 11 12 var texto = $(this).html(); 13 $(this).css("visibility","visible"); 14 $(this).css("display","block"); 15 //alert($(this).html()); 16 var _link = $(this).find("a").html(); 17 var _color = "" 18 try 19 { 20 _color = $(this).css("color"); 21 var parts = _color 22 .match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/); 23 // parts now should be ["rgb(0, 70, 255", "0", "70", "255"] 24 delete (parts[0]); 25 for (var i = 1; i <= 3; ++i) { 26 parts[i] = parseInt(parts[i]).toString(16); 27 if (parts[i].length == 1) parts[i] = '0' + parts[i]; 28 } 29 30 _color = parts.join(''); 31 } 32 catch(err) 33 {} 34 if(!_link){ 35 $(this).html(""); 36 $(this).flash({ 37 src: '/images/swf/'+swf+'.swf', 38 width: larg, 39 height: alt, 40 flashvars: { titulo: texto, hexa:_color } 41 }, 42 { 43 version: 8 44 }); 45 } 46 else{ 47 var _link = $(this).find("a").attr("href"); 48 $(this).html(""); 49 $(this).flash({ 50 src: '/images/swf/'+swf+'.swf', 51 width: larg, 52 height: alt, 53 flashvars: { titulo: texto, link: _link, hexa:_color } 54 55 }, 56 { 57 version: 8 58 }); 59 } 60 61 } 62 }); 63});
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.