Commit 7df349b1 authored by Klaas Winter's avatar Klaas Winter

Fixed #2, Manual coloring is not working in minified version of the application

The reason for the problem was that minifying removes value-less tags.
Such tags are however used by ui-bootstrap to create dropdown menus.
Fixed by giving the tags a problem.
parent 3f576e19
......@@ -21,9 +21,9 @@
</div>
<form class="navbar-form navbar-right form-inline">
<div class="btn-group" ng-controller="ManualColoringCtrl" ng-show="manualColoringEnabled" dropdown>
<div class="btn-group" ng-controller="ManualColoringCtrl" ng-show="manualColoringEnabled" dropdown="true">
<button type="button" class="btn btn-default" ng-disabled="!itemsBrushed" ng-style="{'background-color': colors[0]}">Apply color to selection</button>
<button type="button" class="btn btn-default dropdown-toggle" ng-disabled="!itemsBrushed" dropdown-toggle>
<button type="button" class="btn btn-default dropdown-toggle" ng-disabled="!itemsBrushed" dropdown-toggle="true">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
......
<!DOCTYPE html><html lang=en ng-app=contigBinningApp><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width, initial-scale=1"><title></title><link href=libs/fontawesome/css/font-awesome.css rel=stylesheet><link href=libs/parcoords/d3.parcoords.css rel=stylesheet><link href=libs/dimredplot/dimredplot.css rel=stylesheet><link href=css/light.css rel=stylesheet id=maincss></head><body><nav class="navbar navbar-default navbar-fixed-top" role=navigation><div class=container-fluid><div class=navbar-header><a class=navbar-brand><span style="color: #337ab7">I</span>nteractive <span style="color: #337ab7">Co</span>ntig-bin <span style="color: #337ab7">Ve</span>rification and <span style="color: #337ab7">R</span>efinement</a></div><form class="navbar-form navbar-right form-inline"><div class=btn-group ng-controller=ManualColoringCtrl ng-show=manualColoringEnabled><button type=button class="btn btn-default" ng-disabled=!itemsBrushed ng-style="{'background-color': colors[0]}">Apply color to selection</button><button type=button class="btn btn-default dropdown-toggle" ng-disabled=!itemsBrushed><span class=caret></span> <span class=sr-only>Toggle Dropdown</span></button><ul class="dropdown-menu brush-color" role=menu id=brush-color-menu><li ng-repeat="color in colors"><a href=# ng-style="{'background-color': color}" ng-click=colorSelection(color)><span class=colorpatch></span></a></li></ul></div><div class=form-group ng-controller=NameHighlightCtrl ng-hide=noHighlightAvailable><label class="control-label col-lg-4" for=rowNameHighlight>Highlight</label><input type=text id=rowNameHighlight class="col-lg-5 input-sm" ng-model=rowName ng-change=highlightRow()></div><div class=form-group ng-controller=DataIndicatorCtrl><progress ng-click=changeScale() max=1 animate=false><bar ng-repeat="bar in counts track by $index" value="bar.rows / rowCount" type={{bar.type}}><b ng-hide="(bar.rows / rowCount) < 0.15">{{bar.rows}}</b></bar></progress></div><div class=form-group ng-controller=ThemeCtrl><label class=control-label>Theme:</label><div class=btn-group><label class="btn btn-default" ng-model=theme btn-radio="'light'">Light</label><label class="btn btn-default" ng-model=theme btn-radio="'dark'">Dark</label></div></div></form></div></nav><div id=main class=container-fluid><div id=top class=row><div id=parcoords class=col-lg-12><div class=parcoords ng-controller=ParcoordsCtrl></div></div></div><div id=bottom class=row ng-controller=PlotCtrl><div id=options ng-style=sliding><ng-include src="'js/templates/options.html'"></ng-include></div><div class=col-lg-1></div><div id=charts class=col-lg-11 ng-controller=ChartsCtrl><div class=row id=dimRedPlots><div id=dimRedPlot class="tab-pane container-fluid active" ng-class=dimredplotWidth ng-repeat="analysis in analyses" ng-controller=DimRedPlotCtrl></div></div></div></div></div><script src=app.min.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=en ng-app=contigBinningApp><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width, initial-scale=1"><title></title><link href=libs/fontawesome/css/font-awesome.css rel=stylesheet><link href=libs/parcoords/d3.parcoords.css rel=stylesheet><link href=libs/dimredplot/dimredplot.css rel=stylesheet><link href=css/light.css rel=stylesheet id=maincss></head><body><nav class="navbar navbar-default navbar-fixed-top" role=navigation><div class=container-fluid><div class=navbar-header><a class=navbar-brand><span style="color: #337ab7">I</span>nteractive <span style="color: #337ab7">Co</span>ntig-bin <span style="color: #337ab7">Ve</span>rification and <span style="color: #337ab7">R</span>efinement</a></div><form class="navbar-form navbar-right form-inline"><div class=btn-group ng-controller=ManualColoringCtrl ng-show=manualColoringEnabled dropdown=true><button type=button class="btn btn-default" ng-disabled=!itemsBrushed ng-style="{'background-color': colors[0]}">Apply color to selection</button><button type=button class="btn btn-default dropdown-toggle" ng-disabled=!itemsBrushed dropdown-toggle=true><span class=caret></span> <span class=sr-only>Toggle Dropdown</span></button><ul class="dropdown-menu brush-color" role=menu id=brush-color-menu><li ng-repeat="color in colors"><a href=# ng-style="{'background-color': color}" ng-click=colorSelection(color)><span class=colorpatch></span></a></li></ul></div><div class=form-group ng-controller=NameHighlightCtrl ng-hide=noHighlightAvailable><label class="control-label col-lg-4" for=rowNameHighlight>Highlight</label><input type=text id=rowNameHighlight class="col-lg-5 input-sm" ng-model=rowName ng-change=highlightRow()></div><div class=form-group ng-controller=DataIndicatorCtrl><progress ng-click=changeScale() max=1 animate=false><bar ng-repeat="bar in counts track by $index" value="bar.rows / rowCount" type={{bar.type}}><b ng-hide="(bar.rows / rowCount) < 0.15">{{bar.rows}}</b></bar></progress></div><div class=form-group ng-controller=ThemeCtrl><label class=control-label>Theme:</label><div class=btn-group><label class="btn btn-default" ng-model=theme btn-radio="'light'">Light</label><label class="btn btn-default" ng-model=theme btn-radio="'dark'">Dark</label></div></div></form></div></nav><div id=main class=container-fluid><div id=top class=row><div id=parcoords class=col-lg-12><div class=parcoords ng-controller=ParcoordsCtrl></div></div></div><div id=bottom class=row ng-controller=PlotCtrl><div id=options ng-style=sliding><ng-include src="'js/templates/options.html'"></ng-include></div><div class=col-lg-1></div><div id=charts class=col-lg-11 ng-controller=ChartsCtrl><div class=row id=dimRedPlots><div id=dimRedPlot class="tab-pane container-fluid active" ng-class=dimredplotWidth ng-repeat="analysis in analyses" ng-controller=DimRedPlotCtrl></div></div></div></div></div><script src=app.min.js></script></body></html>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment