Skip to content

Instantly share code, notes, and snippets.


Henrik Härkönen heharkon

  • Salo, Finland
View GitHub Profile

Keybase proof

I hereby claim:

  • I am heharkon on github.
  • I am heharkon ( on keybase.
  • I have a public key whose fingerprint is F3E0 C8CD E9DB 22B7 7C4A EFDB E14E BC31 284E 1E94

To claim this, I am signing this object:

heharkon / W3Navbar.scala
Last active Dec 20, 2018
Liftweb snippet for rendering sitemap as navbar with W3.CSS
View W3Navbar.scala
import net.liftweb.http._
import net.liftweb.sitemap.MenuItem
import scala.xml.NodeSeq
class W3Navbar {
def ifSelectedColor(kid: MenuItem, color: String): String = {
kid.current match {
case true => color
You can’t perform that action at this time.