From d98c5a9e39c312424fa2586d1fe846f2999d49f5 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 28 Jul 2021 21:51:50 +0000
Subject: [PATCH] Set explicit 5s connect timeout in proxy script

---
 map.js |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/map.js b/map.js
index ace3baa..85542e9 100644
--- a/map.js
+++ b/map.js
@@ -82,22 +82,27 @@
 	this._element = element;
 	this._element.classList.add('panel');
 	
-	this._hide = addParaWithText(this._element, '▶');
+	this._hide = addElementWithText(this._element, 'a', '▶');
 	this._hide.title = lang.action_collapse;
 	this._hide.className = 'hide';
 	this._hide.addEventListener('click', this.toggleExpanded.bind(this));
 	
-	this._close = addParaWithText(this._element, '×');
+	this._container = document.createElement('div');
+	this._container.className = 'panel-container';
+	
+	this._close = addElementWithText(this._container, 'a', '×');
 	this._close.title = lang.action_close;
 	this._close.className = 'close';
 	this._close.addEventListener('click', this.close.bind(this));
 	
 	this._content = document.createElement('div');
-	this._element.appendChild(this._content);
+	this._container.appendChild(this._content);
+	this._element.appendChild(this._container);
 }
 Panel.prototype = {
 	_element: null,
 	_hide: null,
+	_container: null,
 	_close: null,
 	_content: null,
 	
@@ -675,7 +680,7 @@
 		})}, 10);
 	};
 	showOnMapElement.addEventListener('click', showOnMapFunction);
-	showOnMapElement.className = 'icon-pin addon-icon';
+	showOnMapElement.className = 'icon icon-pin';
 	showOnMapElement.title = lang.show_on_map;
 	
 	if(additional) {

--
Gitblit v1.9.1