チェンジセット 235

差分発生行の前後
無視リスト:
更新日時:
2015/02/12 15:09:08 (10 年 前)
更新者:
lenz
ログメッセージ:

エンドポイントのセレクトボックスが狭く選択内容が見えない問題をレイアウト変更で改良
他細かなGUI修正
(newtopのみ。newguiは崩壊中)

パス:
SPARQLBuilderWWW/web
ファイル:
3 変更

凡例:

変更なし
追加
削除
  • SPARQLBuilderWWW/web/newsparqlbuilder.css

    r233 r235  
    4646} 
    4747 
     48.SBModalContents .SBForms{ 
     49        float: left; 
     50        background-color: #eeeeff; 
     51} 
     52 
    4853.SBModalContents .SBSelects{ 
    49         float: left; 
    50         background-color: #eeeeff; 
     54        width: 85%; 
     55        float: left; 
    5156} 
    5257 
    5358.SBModalContents .SBSelects select{ 
    54         width: 28%; 
     59        width: 50%; 
    5560        height: 2em; 
    5661} 
    5762 
    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{ 
    5977        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; 
    6381        -webkit-border-radius: 3; 
    6482        -moz-border-radius: 3; 
     
    7997.SBModalContents .SBResult{ 
    8098        display: none; 
    81         float: left; 
    82         margin-top: 0.3em; 
    83         margin-left: 0.3em; 
     99        height: 28px; 
     100        font-size: 24px; 
    84101} 
    85102 
    86103.SBModalContents .SBViewAll{ 
    87104        display: none; 
    88         float: left; 
    89         margin-top: 1px; 
    90         margin-left: 0.5em; 
    91         height: 2em; 
     105        height: 28px; 
    92106        -webkit-border-radius: 3; 
    93107        -moz-border-radius: 3; 
     
    123137} 
    124138 
    125 .SBModalContents .SBSelectedPath{ 
     139.SBModalContents .SBPath{ 
    126140        float: left; 
    127141        padding: 10px; 
    128142        text-align: center; 
    129143        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%); 
    130161} 
    131162 
    132163.SBRootNode{ 
    133164        margin: 0.5em; 
    134         margin-top: 1.5em; 
    135165        -webkit-border-radius: 10; 
    136166        -moz-border-radius: 10; 
     
    163193        background: hsl(150, 50%, 75%); 
    164194        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%); 
    182195} 
    183196 
  • SPARQLBuilderWWW/web/newsparqlbuilder.js

    r234 r235  
    9797        $('.SBModalView').css('top', $(window).scrollTop()).css('height', window.innerHeight).fadeIn(); 
    9898 
    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(); 
    107100 
    108101        $(".SBEndPointSelect").select2(); 
     
    146139                event.preventDefault(); 
    147140        }); 
     141} 
     142 
     143function 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        } 
    148159} 
    149160 
     
    530541                }else{ 
    531542                    // 譛ォ遶ッ繝弱�繝峨↑繧峨ヤ繝シ繝ォ繝√ャ繝励�諠�ア繧呈峩譁ー 
    532                     var resultText = ""; 
     543                    var resultText = '<input type="button" class="SBGenButton" value="Generate" onclick="generateSPARQL()">'; 
    533544                    // 繝代せ縺ョ蜷榊燕驟榊�蛻�セ後m縺九i郢ー繧願ソ斐@縺ェ縺後i 
    534545                    for (var i = pathname.length;i > 0; i--){ 
     
    547558                        } 
    548559                    } 
    549                     resultText = resultText + '<input type="button" class="SBGenButton" value="Generate" onclick="generateSPARQL()">'; 
     560 
    550561                    // 繝��繝ォ繝√ャ繝励�蜀�ョケ繧呈嶌縺肴鋤縺� 
    551562                    $('.SBSelectedPath').html(resultText); 
    552                     if(svg.attr("width") == width){ 
    553                         $('.SBTooltip').show(); 
    554                     } 
    555563 
    556564                    // 繧オ繝シ繝悶Ξ繝�ヨ縺ォ騾√j霑斐☆繝代せ繧ェ繝悶ず繧ァ繧ッ繝医r菫晏ュ� 
    557565                    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'); 
    559572                } 
    560573            } 
     
    852865        var obj = jsontext; 
    853866 
    854         $('.SBResult').css('color', 'black').css('font-weight', 'normal'); 
     867        $('.SBResult').css('color', 'black').css('font-weight', 'normal').css('margin-top', '0px'); 
    855868 
    856869        $('.SBPlural').text('s'); 
    857870 
    858871        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'); 
    860873                $('.SBPlural').text(''); 
    861874        }else if(obj.length == 1){ 
     
    865878        if(obj.length <= 10){ 
    866879                viewnum = obj.length; 
     880                $('.SBResult').css('margin-top', '15px'); 
    867881                $('.SBViewall').hide(); 
    868882        }else if(pathlimit == 10){ 
     
    871885        }else{ 
    872886                viewnum = obj.length; 
     887                $('.SBResult').css('margin-top', '15px'); 
    873888                $('.SBViewall').hide(); 
    874889        } 
  • SPARQLBuilderWWW/web/newtop.html

    r234 r235  
    2323                <div class="SBModalView"> 
    2424                        <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> 
    2732                                </div> 
    2833                                <div class="SBMessage"> 
     
    3944                                        </div> 
    4045                                </div> 
    41                                 <div class="SBSelectedPath"> 
     46                                <div class="SBPath"> 
     47                                        <div class="SBSelectedPath"> 
     48                                        </div> 
    4249                                </div> 
    4350                                <div class="SBModalButtons">