diff --git a/Gemfile b/Gemfile
index e813050..dc5e217 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,4 +1,5 @@
source 'https://rubygems.org'
+gem "octopress-ink", :git => 'https://github.com/rtoohil/ink', :branch => 'update_to_sassc', "~> 1.0"
# Specify your gem's dependencies in octopress-littlefoot.gemspec
gemspec
diff --git a/assets/javascripts/littlefoot.js b/assets/javascripts/littlefoot.js
index b91e971..3fcdf4f 100644
--- a/assets/javascripts/littlefoot.js
+++ b/assets/javascripts/littlefoot.js
@@ -24,7 +24,7 @@
})
document.addEventListener("click", self.click.bind(self))
- document.querySelector('div.footnotes').remove()
+ document.querySelectorAll('div.footnotes').forEach(function(note) { note.remove(); } )
}
},
@@ -59,7 +59,7 @@
// Only reposition this every 50 miliseconds to avoid constant repainting
window.clearTimeout(self.timeout)
- self.timeout = window.setTimeout( function() {
+ self.timeout = window.setTimeout( function() {
self.sizeFootnote()
self.positionFootnote()
}, 50)
@@ -97,9 +97,9 @@
this.footnote.el = null
- setTimeout(function(){
+ setTimeout(function(){
footnote.classList.remove('is-open')
- popover.classList.add('is-hidden')
+ popover.classList.add('is-hidden')
}, 250)
}
},
@@ -184,7 +184,7 @@
+''
+''
},
-
+
popover: function (el) {
return '