File tree 2 files changed +14
-11
lines changed
2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -216,27 +216,24 @@ function extraNetworksSearchButton(tabs_id, event) {
216
216
217
217
var globalPopup = null ;
218
218
var globalPopupInner = null ;
219
+
219
220
function closePopup ( ) {
220
221
if ( ! globalPopup ) return ;
221
-
222
222
globalPopup . style . display = "none" ;
223
223
}
224
+
224
225
function popup ( contents ) {
225
226
if ( ! globalPopup ) {
226
227
globalPopup = document . createElement ( 'div' ) ;
227
- globalPopup . onclick = closePopup ;
228
228
globalPopup . classList . add ( 'global-popup' ) ;
229
-
229
+
230
230
var close = document . createElement ( 'div' ) ;
231
231
close . classList . add ( 'global-popup-close' ) ;
232
- close . onclick = closePopup ;
232
+ close . addEventListener ( "click" , closePopup ) ;
233
233
close . title = "Close" ;
234
234
globalPopup . appendChild ( close ) ;
235
235
236
236
globalPopupInner = document . createElement ( 'div' ) ;
237
- globalPopupInner . onclick = function ( event ) {
238
- event . stopPropagation ( ) ; return false ;
239
- } ;
240
237
globalPopupInner . classList . add ( 'global-popup-inner' ) ;
241
238
globalPopup . appendChild ( globalPopupInner ) ;
242
239
Original file line number Diff line number Diff line change @@ -581,7 +581,6 @@ table.popup-table .link{
581
581
width : 100% ;
582
582
height : 100% ;
583
583
overflow : auto;
584
- background-color : rgba (20 , 20 , 20 , 0.95 );
585
584
}
586
585
587
586
.global-popup * {
@@ -590,9 +589,6 @@ table.popup-table .link{
590
589
591
590
.global-popup-close : before {
592
591
content : "×" ;
593
- }
594
-
595
- .global-popup-close {
596
592
position : fixed;
597
593
right : 0.25em ;
598
594
top : 0 ;
@@ -601,10 +597,20 @@ table.popup-table .link{
601
597
font-size : 32pt ;
602
598
}
603
599
600
+ .global-popup-close {
601
+ position : fixed;
602
+ left : 0 ;
603
+ top : 0 ;
604
+ width : 100% ;
605
+ height : 100% ;
606
+ background-color : rgba (20 , 20 , 20 , 0.95 );
607
+ }
608
+
604
609
.global-popup-inner {
605
610
display : inline-block;
606
611
margin : auto;
607
612
padding : 2em ;
613
+ z-index : 1001 ;
608
614
}
609
615
610
616
/* fullpage image viewer */
You can’t perform that action at this time.
0 commit comments