Commit a426b869 authored by Jehan Tremback's avatar Jehan Tremback

add href='#' and clean css

parent fb61daab
......@@ -384,14 +384,14 @@ class Hypothesis extends Annotator
quote = d.message.annotation.quote.replace(/\u00a0/g, ' ') # replace  
if quote.length >= chars
d3.select(this)
.html(quote.substring(0, quote.lastIndexOf(' ', 180)) + "...<a class='clickForMore'>more</a>")
.html(quote.substring(0, quote.lastIndexOf(' ', 180)) + "...<a href='#' class='clickForMore'>more</a>")
.on 'click', ->
d3.event.stopPropagation()
d3.event.preventDefault()
if d3.select(d3.event.target).classed('clickForMore')
d3.select(this).html(quote + "<a class='clickForLess'>less</a>")
d3.select(this).html(quote + "<a href='#' class='clickForLess'>less</a>")
if d3.select(d3.event.target).classed('clickForLess')
d3.select(this).html(quote.substring(0, quote.lastIndexOf(' ', 180)) + "...<a class='clickForMore'>more</a>")
d3.select(this).html(quote.substring(0, quote.lastIndexOf(' ', 180)) + "...<a href='#' class='clickForMore'>more</a>")
else
d3.select(this).html(quote)
......
......@@ -293,9 +293,6 @@ label {
font-size: .9em;
font-family: $sansFontFamily;
float: right;
display: block;
text-decoration: underline;
cursor: pointer;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment