Skip to content

Commit 0228278

Browse files
committed
Added 'Import from CSW' button at the spectrum analizer chart
1 parent 3269938 commit 0228278

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,10 @@ <h4>Workspace</h4>
475475
<div id="spectrumExport" data-toggle="tooltip" title="Export spectrum to CSV">
476476
<button id="btn-spectrum-export" type="button">Export to CSV</button>
477477
</div>
478+
<div id="spectrumImport" data-toggle="tooltip" title="Import spectrum from Csv">
479+
<button type="button" onclick="document.getElementById('btn-spectrum-import').click()">Import from CSV</button>
480+
<input type="file" id="btn-spectrum-import" accept=".csv" style="display:none" multiple/>
481+
</div>
478482
<div id="analyserResize" class="btn-nobg view-analyser-fullscreen" data-toggle="tooltip" title="Zoom Analyser Window">
479483
<span class="glyphicon glyphicon-resize-full"></span>
480484
<span class="glyphicon glyphicon-resize-small"></span>

src/css/main.css

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,9 @@ html.has-analyser-fullscreen.has-analyser
637637

638638
.analyser #spectrumExport {
639639
height: 0;
640-
width: 200px;
641640
overflow: hidden;
642641
opacity: 0;
643-
left: 270px;
642+
left: 260px;
644643
float: left;
645644
z-index: 9;
646645
position: absolute;
@@ -653,6 +652,29 @@ html.has-analyser-fullscreen.has-analyser
653652
color: black;
654653
}
655654

655+
.analyser:hover .non-shift #spectrumImport {
656+
opacity: 1;
657+
height: auto;
658+
transition: opacity 500ms ease-in;
659+
}
660+
661+
.analyser #spectrumImport {
662+
height: 0;
663+
width: 55px;
664+
overflow: hidden;
665+
opacity: 0;
666+
left: 310px;
667+
float: left;
668+
z-index: 9;
669+
position: absolute;
670+
font-size: 9px;
671+
}
672+
673+
.analyser #spectrumImport select {
674+
border-radius: 3px;
675+
padding: 0px 5px;
676+
color: black;
677+
}
656678
.analyser input#analyserZoomX {
657679
width: 100px;
658680
height: 10px;

0 commit comments

Comments
 (0)