| | 28 | |
| | 29 | // 繧ィ繝ウ繝峨�繧、繝ウ繝�RI逕ィ譁�ュ怜� |
| | 30 | var epuri = ""; |
| | 31 | |
| | 32 | // 繧ィ繝ウ繝峨�繧、繝ウ繝郁。後r蜑企勁 |
| | 33 | $('.endpointrow').remove(); |
| | 34 | |
| | 35 | // 繧ケ繧ソ繝シ繝医け繝ゥ繧ケ繧サ繝ォ蛻�ケー繧願ソ斐@ |
| | 36 | $('.startclasscell').each(function(){ |
| | 37 | // 繝弱�繝偵ャ繝医け繝ゥ繧ケ縺ョ蟄舌〒縺ェ縺代l縺ー |
| | 38 | if(!$(this).parent().hasClass('nohit')){ |
| | 39 | // 縺薙�繧ッ繝ゥ繧ケ縺ョ繧ィ繝ウ繝峨�繧、繝ウ繝医′蜑阪�陦後→驕輔▲縺溘i |
| | 40 | if(epuri != $(this).find('.endpointuri').attr('title')){ |
| | 41 | // 繧ィ繝ウ繝峨�繧、繝ウ繝�RI繧呈峩譁ー |
| | 42 | epuri = $(this).find('.endpointuri').attr('title'); |
| | 43 | // 繧ィ繝ウ繝峨�繧、繝ウ繝郁。後r霑ス蜉 |
| | 44 | $(this).parent().before($('<tr class="endpointrow"><th>' + epuri + '</th></tr>')); |
| | 45 | } |
| | 46 | } |
| | 47 | }); |
| | 48 | |
| | 49 | // 繧ィ繝ウ繝峨け繝ゥ繧ケ繧サ繝ォ縺ォ縺、縺�※蜷梧ァ倥�蜃ヲ逅� |
| | 50 | epuri = ""; |
| | 51 | $('.endclasscell').each(function(){ |
| | 52 | if(!$(this).parent().hasClass('nohit')){ |
| | 53 | if(epuri != $(this).find('.endpointuri').attr('title')){ |
| | 54 | epuri = $(this).find('.endpointuri').attr('title'); |
| | 55 | $(this).parent().before($('<tr class="endpointrow"><th>' + epuri + '</th></tr>')); |
| | 56 | } |
| | 57 | } |
| | 58 | }); |
| | 59 | |
| 68 | | // 蜿門セ励@縺溘け繝ゥ繧ケ繝ェ繧ケ繝医�謨ー縺縺醍ケー繧願ソ斐@縺ェ縺後i |
| 69 | | for (var i = 0; i < list.length; ++i) { |
| 70 | | // 蛻励r霑ス蜉 |
| 71 | | startclasstable.append('<tr><td class="startclasscell"><span class="endpointuri" title="http://www.ebi.ac.uk/rdf/services/reactome/sparql"></span><span class="startclassuri" title="' + list[i]['uri'] + '">' + list[i]['label'] + ' (' + list[i]['number'] + ')' + '</span></td></tr>'); |
| | 100 | // 邨先棡縺ョ繧ィ繝ウ繝峨�繧、繝ウ繝医�蛻�□縺醍ケー繧願ソ斐@ |
| | 101 | for(var epuri in list){ |
| | 102 | // 繧ィ繝ウ繝峨�繧、繝ウ繝亥�縺ョ繧ッ繝ゥ繧ケ繝ェ繧ケ繝医r蜿門セ� |
| | 103 | var classes = list[epuri]; |
| | 104 | // 蜿門セ励@縺溘け繝ゥ繧ケ繝ェ繧ケ繝医�謨ー縺縺醍ケー繧願ソ斐@縺ェ縺後i |
| | 105 | for (var i = 0; i < classes.length; ++i) { |
| | 106 | // 蛻励r霑ス蜉 |
| | 107 | startclasstable.append('<tr><td class="startclasscell"><span class="endpointuri" title="' + epuri + '"></span><span class="startclassuri" title="' + classes[i]['uri'] + '">' + classes[i]['label'] + ' (' + classes[i]['number'] + ')' + '</span></td></tr>'); |
| | 108 | } |