Skip to content

Commit

Permalink
add instrumenst demo to the static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
ctwhome committed Mar 19, 2024
1 parent 315b163 commit 20f6112
Show file tree
Hide file tree
Showing 14 changed files with 765 additions and 13 deletions.
19 changes: 6 additions & 13 deletions src/routes/viewer/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -125,39 +125,32 @@
<div class="mt-10 text-xl">Instruments</div>
<div class="flex flex-col gap-4 mt-5">
<!-- You can open the modal using ID.showModal() method -->
<button class="btn" onclick="my_modal_1.showModal()">Instrument 1 details</button>
<button class="btn" onclick="my_modal_1.showModal()">Instrument Details Demo</button>
<dialog id="my_modal_1" class="modal">
<div class="modal-box w-11/12 max-w-full h-[90%] max-h-full">
<form method="dialog">
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
</form>
<h3 class="font-bold text-lg">Instrument</h3>
<p class="py-4">Press ESC key or click on ✕ button to close</p>
<iframe
title="Instrument 1 details"
class="w-full h-[90%]"
src="http://wind-experiment.ceg.tudelft.nl/dataBrowser/dataBrowser4.html?site=CMTRACE-2023&date=2023-06-27&UpperLeft=WC_KNMI_overview&UpperRight=skiron_wind_direction&LowerRight=WC_TUD_wind_speed&LowerLeft=ceilometer"
frameborder="0"
<iframe title="Instrument 1 details" class="w-full h-[90%]" src="/instrument/index.html" frameborder="0"
></iframe>
</div>
</dialog>

<button class="btn" onclick="my_modal_2.showModal()">Instrument 2 details</button>
<!-- <button class="btn" onclick="my_modal_2.showModal()">Instrument 2 details</button>
<dialog id="my_modal_2" class="modal">
<div class="modal-box w-11/12 max-w-full h-[90%] max-h-full">
<form method="dialog">
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
</form>
<h3 class="font-bold text-lg">Instrument</h3>
<p class="py-4">Press ESC key or click on ✕ button to close</p>
<iframe
title="Instrument 2 details"
class="w-full h-[90%]"
src="http://wind-experiment.ceg.tudelft.nl/dataBrowser/dataBrowser4.html?site=CMTRACE-2023&date=2023-06-27&UpperLeft=WC_KNMI_overview&UpperRight=skiron_wind_direction&LowerRight=WC_TUD_wind_speed&LowerLeft=ceilometer"
frameborder="0"
<iframe title="Instrument 2 details" class="w-full h-[90%]" src="/instrument/index.html" frameborder="0"
></iframe>
src="http://wind-experiment.ceg.tudelft.nl/dataBrowser/dataBrowser4.html?site=CMTRACE-2023&date=2023-06-27&UpperLeft=WC_KNMI_overview&UpperRight=skiron_wind_direction&LowerRight=WC_TUD_wind_speed&LowerLeft=ceilometer"
</div>
</dialog>
</dialog> -->
</div>
</div>
</div>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
164 changes: 164 additions & 0 deletions static/instrument/Data Browser - CMTRACE_files/dataBrowser.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
html {
height: 100%;
width: 100%;
}
body {
font-size: 100%;
font-family: "Helvetica", "Arial", "Verdana", "sans-serif";
height: 100%;
width: 100%;
margin:0;
padding:0;
text-align:center;
color:black;
background-color:white;
}

img {
border: 0;
}

div {
margin:0;
padding:0;

}

div#dialog-modal {
display:none;
font-size:85%;
}

div#controls {
height:4%;
background-color:#aaaaaa;
clear: both;
font-size: 75%;
position:relative;
overflow:auto;
}




div.dataLargeBox {
width:100%;
overflow: hidden;

}
div.dataSmallBox {
height: 100%;
width: 49%;
display:inline-block;
position:relative;

}
img.dataPic {
max-width:100%;
max-height:100%;
margin:1px;
padding:0;
}
.zoombox{
clear: both;
}

div#UpperLeftBox, div#LowerLeftBox {
float:left;
}

div#UpperRightBox, div#LowerRightBox {
float:right;
}


.Error {
text-align:center;
margin:100px;
}

select {
width:10%;
}

input {
width:6%;
}
input#datepicker_date {
width:10%;
}

input#datepicker_next, input#datepicker_prev {
width:2.5em;
}
select#selectSite, select#noOfPanels{
width:6%;
}
select#dialog-modal-select{
width:150px;
}
a#logoRight {
display:block;
top:5px;
left:5px;
width:175px;
float:right;
height:52px;
margin-left:-175px;
margin-bottom:-52px;
}
a#logoRight img{
width:175px;
height:52px;
}

a#logoLeft {
display:block;
top:5px;
left:5px;
width:83px;
height:105px;
margin-right:-83px;
margin-bottom:-105px;
}
a#logoLeft img{
width:83px;
height:105px;
}

div#controls span{
margin-left:0.25%;
vertical-align: middle;
}

/* The ghost, nudged to maintain perfect centering */
#controls:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
margin-right: -0.25em; /* Adjusts for spacing */
}

span#comment{
display:inline-block;
width:9%;
font-size: 75%;
}

a:link{
color:black;
text-decoration: none
}
a:visited{
color:black;
text-decoration: none
}
a:hover{
color:black;
text-decoration: none
}
a:active{
color:black;
text-decoration: none
}
Loading

0 comments on commit 20f6112

Please sign in to comment.