チェンジセット 236 : SPARQLBuilderWWW/web/newsparqlbuilder.js
- 更新日時:
- 2015/02/12 16:10:13 (10 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/web/newsparqlbuilder.js
r235 r236 66 66 endClass = $(".SBEndClassSelect").val(); 67 67 loadPathList(); 68 }); 69 70 d3.select('.SBModalView').on("mousewheel", function(){ 71 event.preventDefault(); 68 72 }); 69 73 … … 135 139 } 136 140 } 137 138 d3.select('.SBModalView').on("mousewheel", function(){139 event.preventDefault();140 });141 141 } 142 142 … … 152 152 $('.SBModalContents .SBModalButtons').css('width', 200 + 'px').css('height', '26px'); 153 153 154 var selw = $('.SBModalContents .SBSelects').width(); 154 var selw = Math.floor($('.SBModalContents .SBSelects').width()); 155 155 156 if(selw % 2 == 1){ 156 $('.SBModalContents .SBSelects').css('width', (selw - 1));157 selw--; 157 158 } 159 $('.SBModalContents .SBSelects').css('width', selw); 158 160 } 159 161 } … … 195 197 var list = eval(data); 196 198 $(".SBEndPointSelect").empty(); 197 $(".SBEndPointSelect").append('<option value="SBDefault">SELECT E NDPOINT</option>');199 $(".SBEndPointSelect").append('<option value="SBDefault">SELECT EndPoint</option>'); 198 200 for (var i = 0; i < list.length; ++i) { 199 201 $(".SBEndPointSelect").append('<option value="' + list[i] + '">' + list[i] + '</option>'); … … 228 230 $(".SBStartClassSelect").empty(); 229 231 $(".SBEndClassSelect").empty(); 230 $(".SBStartClassSelect").append('<option value="SBDefault">SELECT S TARTCLASS</option>');231 $(".SBEndClassSelect").append('<option value="SBDefault">SELECT E NDCLASS</option>');232 $(".SBStartClassSelect").append('<option value="SBDefault">SELECT StartClass</option>'); 233 $(".SBEndClassSelect").append('<option value="SBDefault">SELECT EndClass</option>'); 232 234 for (var i = 0; i < list.length; ++i) { 233 235 $(".SBStartClassSelect").append('<option value="' + list[i]['uri'] + '">' + list[i]['label'] + ' (' + list[i]['number'] + ')' + '</option>'); … … 260 262 $('.SBResult').hide(); 261 263 $('.SBViewAll').hide(); 262 $('.SBSelectedPath').html('<h1>Please <span style="color: hsl(150, 50%, 75%);">select a leaf node</span> and <span style=\"color: hsl(200, 50%, 75%);\">push button</span> to generate a SPARQL</h1> ');264 $('.SBSelectedPath').html('<h1>Please <span style="color: hsl(150, 50%, 75%);">select a leaf node</span> and <span style=\"color: hsl(200, 50%, 75%);\">push button</span> to generate a SPARQL</h1><img src=\"images/pathline.png\" style="display:none;">'); 263 265 264 266 var url = "http://www.sparqlbuilder.org/api/plist?ep=" + encodeURIComponent(endpoint)