Fix bug link

This commit is contained in:
Sarah Jamie Lewis 2019-11-11 19:25:05 -08:00
parent 44ed9914a6
commit dd8b98e07f
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ source: Richmond, Carl A. "Fireflies flashing in unison." Science 71.1847 (1930)
Although there was a hnt on this approach in 1915
source: https://sci-hub.se/https://www.nature.com/articles/096411a0
source:https://www.nature.com/articles/096411a0
There were many incorrect theories involving random happenstance (gusts of wind) or leader-based protocols. These persisted until well into the 1930s:
http://people.math.gatech.edu/~weiss/uploads/5/8/6/1/58618765/buck_synchronous_rhythmic_flashing_of_fireflies.pdf

2
kdb.go
View File

@ -86,7 +86,7 @@ func loadPage(title string) (*Page, error) {
body = strings.ReplaceAll(body, word, fmt.Sprintf("<a title=\"%v\" href=\"javascript:showsource('%v')\">[X]</a>%v", cite, link, img))
}
if strings.HasPrefix(word, "http") {
body = strings.ReplaceAll(body, word, fmt.Sprintf("<a onmouseover=\"javascript:showsource('%v')\" href='%v'></a>", word, word, word))
body = strings.ReplaceAll(body, word, fmt.Sprintf("<a href='%v'>%v</a>", word, word))
}
if strings.HasPrefix(word, "data:image/png;base64,") {
body = strings.ReplaceAll(body, word, fmt.Sprintf("<img width=75%% height=75%% src='%v'/>", word))