チェンジセット 235 : SPARQLBuilderWWW/web
- 更新日時:
- 2015/02/12 15:09:08 (10 年 前)
- パス:
- SPARQLBuilderWWW/web
- ファイル:
-
- 3 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/web/newsparqlbuilder.css
r233 r235 46 46 } 47 47 48 .SBModalContents .SBForms{ 49 float: left; 50 background-color: #eeeeff; 51 } 52 48 53 .SBModalContents .SBSelects{ 49 float: left;50 background-color: #eeeeff;54 width: 85%; 55 float: left; 51 56 } 52 57 53 58 .SBModalContents .SBSelects select{ 54 width: 28%;59 width: 50%; 55 60 height: 2em; 56 61 } 57 62 58 .SBModalContents .SBSelects input{ 63 .SBModalContents .SBSelects .SBEndPointSelect{ 64 width: 100%; 65 height: 2em; 66 } 67 68 69 .SBModalContents .SBPermaLink{ 70 width: 15%; 71 height: 100%; 72 float: left; 73 text-align: center; 74 } 75 76 .SBModalContents .SBPermaLinkButton{ 59 77 display: inline-block; 60 width: 13.5%;61 margin: 0 1% 0;62 height: 2em;78 margin-top: 10px; 79 width: 90%; 80 height: 36px; 63 81 -webkit-border-radius: 3; 64 82 -moz-border-radius: 3; … … 79 97 .SBModalContents .SBResult{ 80 98 display: none; 81 float: left; 82 margin-top: 0.3em; 83 margin-left: 0.3em; 99 height: 28px; 100 font-size: 24px; 84 101 } 85 102 86 103 .SBModalContents .SBViewAll{ 87 104 display: none; 88 float: left; 89 margin-top: 1px; 90 margin-left: 0.5em; 91 height: 2em; 105 height: 28px; 92 106 -webkit-border-radius: 3; 93 107 -moz-border-radius: 3; … … 123 137 } 124 138 125 .SBModalContents .SB SelectedPath{139 .SBModalContents .SBPath{ 126 140 float: left; 127 141 padding: 10px; 128 142 text-align: center; 129 143 word-wrap: break-word; 144 } 145 146 .SBGenButton{ 147 margin: 1.5em; 148 -webkit-border-radius: 7; 149 -moz-border-radius: 7; 150 border-radius: 7px; 151 border: none; 152 color: #ffffff; 153 font-size: 1.2em; 154 background: hsl(200, 50%, 75%); 155 padding: 5px 15px 5px 15px; 156 cursor: pointer; 157 } 158 159 .SBGenButton:hover{ 160 background: hsl(200, 50%, 85%); 130 161 } 131 162 132 163 .SBRootNode{ 133 164 margin: 0.5em; 134 margin-top: 1.5em;135 165 -webkit-border-radius: 10; 136 166 -moz-border-radius: 10; … … 163 193 background: hsl(150, 50%, 75%); 164 194 padding: 5px 15px 5px 15px; 165 }166 167 .SBGenButton{168 margin: 1.5em;169 -webkit-border-radius: 7;170 -moz-border-radius: 7;171 border-radius: 7px;172 border: none;173 color: #ffffff;174 font-size: 1.2em;175 background: hsl(200, 50%, 75%);176 padding: 5px 15px 5px 15px;177 cursor: pointer;178 }179 180 .SBGenButton:hover{181 background: hsl(200, 50%, 85%);182 195 } 183 196 -
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 } -
SPARQLBuilderWWW/web/newtop.html
r234 r235 23 23 <div class="SBModalView"> 24 24 <div class="SBModalContents"> 25 <div class="SBSelects"> 26 <select class="SBEndPointSelect"></select><select class="SBStartClassSelect"></select><select class="SBEndClassSelect"></select><input type="button" class="SBSaveESE" value="PermaLink" onclick="openPermalink()" disabled="disabled"> 25 <div class="SBForms"> 26 <div class="SBSelects"> 27 <select class="SBEndPointSelect"></select><select class="SBStartClassSelect"></select><select class="SBEndClassSelect"></select> 28 </div> 29 <div class="SBPermaLink"> 30 <input type="button" class="SBPermaLinkButton" value="Permalink" onclick="openPermalink()" disabled="disabled"> 31 </div> 27 32 </div> 28 33 <div class="SBMessage"> … … 39 44 </div> 40 45 </div> 41 <div class="SBSelectedPath"> 46 <div class="SBPath"> 47 <div class="SBSelectedPath"> 48 </div> 42 49 </div> 43 50 <div class="SBModalButtons">