チェンジセット 235 : SPARQLBuilderWWW/web/newsparqlbuilder.js
- 更新日時:
- 2015/02/12 15:09:08 (10 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/web/newsparqlbuilder.js
r234 r235 97 97 $('.SBModalView').css('top', $(window).scrollTop()).css('height', window.innerHeight).fadeIn(); 98 98 99 var mvw = $('.SBModalContents').width(); 100 var mvh = $('.SBModalContents').height(); 101 102 $('.SBModalContents .SBSelects').css('width', (mvw - 201) + 'px').css('height', 30 + 'px'); 103 $('.SBModalContents .SBMessage').css('width', 200 + 'px').css('height', 30 + 'px'); 104 $('.SBModalContents .SBGraph').css('width', (mvw - 201) + 'px').css('height', (mvh - 31) + 'px'); 105 $('.SBModalContents .SBSelectedPath').css('width', 180 + 'px').css('height', (mvh - 51 - 26) + 'px'); 106 $('.SBModalContents .SBModalButtons').css('width', 200 + 'px').css('height', '26px'); 99 resizeModalView(); 107 100 108 101 $(".SBEndPointSelect").select2(); … … 146 139 event.preventDefault(); 147 140 }); 141 } 142 143 function resizeModalView(){ 144 145 if($('.SBModalView').css('display') == 'block'){ 146 var mvw = $('.SBModalContents').width(); 147 var mvh = $('.SBModalContents').height(); 148 $('.SBModalContents .SBForms').css('width', (mvw - 201) + 'px').css('height', 56 + 'px'); 149 $('.SBModalContents .SBMessage').css('width', 200 + 'px').css('height', 56 + 'px'); 150 $('.SBModalContents .SBGraph').css('width', (mvw - 201) + 'px').css('height', (mvh - 57) + 'px'); 151 $('.SBModalContents .SBPath').css('width', 180 + 'px').css('height', (mvh - 77 - 26) + 'px'); 152 $('.SBModalContents .SBModalButtons').css('width', 200 + 'px').css('height', '26px'); 153 154 var selw = $('.SBModalContents .SBSelects').width(); 155 if(selw % 2 == 1){ 156 $('.SBModalContents .SBSelects').css('width', (selw - 1)); 157 } 158 } 148 159 } 149 160 … … 530 541 }else{ 531 542 // 譛ォ遶ッ繝弱�繝峨↑繧峨ヤ繝シ繝ォ繝√ャ繝励�諠�ア繧呈峩譁ー 532 var resultText = "";543 var resultText = '<input type="button" class="SBGenButton" value="Generate" onclick="generateSPARQL()">'; 533 544 // 繝代せ縺ョ蜷榊燕驟榊�蛻�セ後m縺九i郢ー繧願ソ斐@縺ェ縺後i 534 545 for (var i = pathname.length;i > 0; i--){ … … 547 558 } 548 559 } 549 resultText = resultText + '<input type="button" class="SBGenButton" value="Generate" onclick="generateSPARQL()">'; 560 550 561 // 繝��繝ォ繝√ャ繝励�蜀�ョケ繧呈嶌縺肴鋤縺� 551 562 $('.SBSelectedPath').html(resultText); 552 if(svg.attr("width") == width){553 $('.SBTooltip').show();554 }555 563 556 564 // 繧オ繝シ繝悶Ξ繝�ヨ縺ォ騾√j霑斐☆繝代せ繧ェ繝悶ず繧ァ繧ッ繝医r菫晏ュ� 557 565 pathobj = d.path; 558 566 } 567 568 $('.SBPath').css('overflow-y', 'visible'); 569 570 if($('.SBPath').height() < $('.SBSelectedPath').innerHeight()){ 571 $('.SBPath').css('overflow-y', 'scroll'); 559 572 } 560 573 } … … 852 865 var obj = jsontext; 853 866 854 $('.SBResult').css('color', 'black').css('font-weight', 'normal') ;867 $('.SBResult').css('color', 'black').css('font-weight', 'normal').css('margin-top', '0px'); 855 868 856 869 $('.SBPlural').text('s'); 857 870 858 871 if(obj.length == 0){ 859 $('.SBResult').css('color', 'red').css('font-weight', 'bold') ;872 $('.SBResult').css('color', 'red').css('font-weight', 'bold').css('margin-top', '15px'); 860 873 $('.SBPlural').text(''); 861 874 }else if(obj.length == 1){ … … 865 878 if(obj.length <= 10){ 866 879 viewnum = obj.length; 880 $('.SBResult').css('margin-top', '15px'); 867 881 $('.SBViewall').hide(); 868 882 }else if(pathlimit == 10){ … … 871 885 }else{ 872 886 viewnum = obj.length; 887 $('.SBResult').css('margin-top', '15px'); 873 888 $('.SBViewall').hide(); 874 889 }