Skip to content

Commit

Permalink
cursor copy
Browse files Browse the repository at this point in the history
  • Loading branch information
klausbreyer committed Sep 29, 2023
1 parent eb0f31a commit 5c03308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ type DataBook struct {
func getBook(data DataBook) template.HTML {
return grr.Render(`
<a id="{{.BookIndex}}" href="#{{.BookIndex}}">#{{.BookIndex}}</a>
<h2 onclick="copyToClipboard('{{.Book.Title}}, {{.Book.Author}}, {{.Book.FirstHighlightYear}}')" > {{.Book.Title}}, {{.Book.Author}}, {{.Book.FirstHighlightYear}}</h2>
<span onclick="copyToClipboard('{{.Book.SourceURL}}')" >{{.Book.SourceURL}}</span>
<h2 style="cursor:copy;" onclick="copyToClipboard('{{.Book.Title}}, {{.Book.Author}}, {{.Book.FirstHighlightYear}}')" > {{.Book.Title}}, {{.Book.Author}}, {{.Book.FirstHighlightYear}}</h2>
<span onclick="copyToClipboard('{{.Book.SourceURL}}')" style="cursor:copy;" >{{.Book.SourceURL}}</span>
<a href="{{.Book.SourceURL}}" target="_blank">&raquo;</a>
<ul>
Expand Down

0 comments on commit 5c03308

Please sign in to comment.