チェンジセット 236 : SPARQLBuilderWWW/web
- 更新日時:
- 2015/02/12 16:10:13 (10 年 前)
- パス:
- SPARQLBuilderWWW/web
- ファイル:
-
- 3 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/web/newsparqlbuilder.css
r235 r236 56 56 } 57 57 58 .SBModalContents .SBSelects select{ 58 .SBModalContents .SBSelects .SBEndPointSelect{ 59 width: 100%; 60 height: 2em; 61 } 62 63 .SBModalContents .SBSelects .SBStartClassSelect{ 59 64 width: 50%; 60 65 height: 2em; 61 66 } 62 67 63 .SBModalContents .SBSelects .SBEnd PointSelect{64 width: 100%;68 .SBModalContents .SBSelects .SBEndClassSelect{ 69 width: 50%; 65 70 height: 2em; 66 71 } … … 89 94 } 90 95 96 .SBModalContents .SBPermaLinkButton:hover{ 97 background: hsl(0, 50%, 85%); 98 } 99 91 100 .SBModalContents .SBMessage{ 92 101 float: left; … … 112 121 padding: 3px 5px 3px 5px; 113 122 cursor: pointer; 123 } 124 125 .SBModalContents .SBViewAll:hover{ 126 background: hsl(0, 50%, 85%); 114 127 } 115 128 -
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)