Skip to content

Commit

Permalink
modify history list 💄
Browse files Browse the repository at this point in the history
  • Loading branch information
madneal committed Oct 23, 2017
1 parent ba3d0e6 commit 2c72b4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
height: 600px;
}

.history-list {
font-size: 18px
}

body {
width: 800px;
height: 600px;
Expand Down
4 changes: 3 additions & 1 deletion scripts/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ let mainDiv = document.querySelector('.main')
const loadIcon = document.querySelector('.load')
const exportBtn = document.querySelector('.export')
const sourceDiv = document.querySelector('#source')
const rightAreaDiv = document.querySelector('.right-area')
const MEDIUM_IMG_CDN = 'https://cdn-images-1.medium.com/max/'

document.querySelector('.export').addEventListener('click', function () {
Expand Down Expand Up @@ -74,7 +75,8 @@ function displayHistory() {
const str = '* [' + title + '](' + url + ')\n'
list = list + str
}
document.querySelector('.right-area').innerHTML = snarkdown(list)
rightAreaDiv.innerHTML = snarkdown(list)
rightAreaDiv.querySelector('ul').className = 'history-list'
sourceDiv.style.display = 'none'
}

Expand Down

0 comments on commit 2c72b4c

Please sign in to comment.