File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed
Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 101101 position : fixed;
102102 bottom : 8px ;
103103 width : 100% ;
104- padding : 10px ; /* Optional: Füge Padding hinzu, um die Knöpfe zu trennen */
104+ padding : 10px ;
105+ }
106+
107+ # reload_icon {
108+ width : 16px ;
109+ height : 16px ;
110+ margin-left : 4px ;
111+ margin-bottom : 2px ;
112+ vertical-align : middle;
113+ fill : white;
114+ }
115+
116+ label {
117+ display : flex;
118+ align-items : center;
119+ }
120+
121+ label svg {
122+ cursor : pointer;
105123 }
106124</ style >
107125
152170 </ div >
153171 </ div >
154172 < div class ="col ">
155- < div class ="mb-3 ">
156- < label for ="wavelog_id "> Wavelog-Station-ID</ label >
173+ < div class ="mb-3 " style ="position: relative; ">
174+ < label for ="wavelog_id " style ="display: inline-block; ">
175+ Wavelog-Station-ID
176+ < svg id ="reload_icon " xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 512 512 ">
177+ < path d ="M463.5 224l8.5 0c13.3 0 24-10.7 24-24l0-128c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8l119.5 0z " />
178+ </ svg >
179+ </ label >
157180 < select id ="wavelog_id " class ="form-control form-control-sm " disabled >
158181 < option value =""> No stations loaded</ option >
159182 </ select >
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ $(document).ready(function() {
7575 input_url . addEventListener ( 'change' , ( ) => {
7676 getStations ( ) ;
7777 } ) ;
78+ $ ( '#reload_icon' ) . on ( 'click' , ( ) => {
79+ getStations ( ) ;
80+ } ) ;
7881 if ( cfg . wavelog_key != "" && cfg . wavelog_url != "" ) {
7982 getStations ( ) ;
8083 }
You can’t perform that action at this time.
0 commit comments