From 611d00a152cf668fa267c3aa081efb84e90fad3f Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Tue, 31 Dec 2019 10:22:03 +0800 Subject: [PATCH] Adjust padding and border color of marker. --- core/js/get_markers.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/js/get_markers.js b/core/js/get_markers.js index 268833c..b5efd84 100644 --- a/core/js/get_markers.js +++ b/core/js/get_markers.js @@ -95,8 +95,10 @@ for(let i = 0; i < validRects.length; i++) { let marker = document.createElement('div'); marker.setAttribute('class', 'marker'); - marker.setAttribute('style', 'left: ' + validRects[i][1] + 'px; top: '+ validRects[i][0] + 'px; z-index: 100000; position: fixed; ' + - ' background-color: yellow; border: 1px solid red'); + marker.setAttribute('style', 'left: ' + + validRects[i][1] + 'px; top: ' + + validRects[i][0] + 'px; z-index: 100000; position: fixed; ' + + ' background-color: yellow; border: 1px solid gold; padding-left: 5px; padding-right: 5px; padding-top: 2px; padding-bottom: 2px;'); marker.setAttribute('pointed-link', validRects[i][4]); markerContainer.appendChild(marker);