All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperscala.jquery.jQueryNearest.scala Maven / Gradle / Ivy

There is a newer version: 0.10.3
Show newest version
package org.hyperscala.jquery

import org.hyperscala.module.Module
import org.powerscala.Version
import org.hyperscala.web.{Webpage, Website}
import org.hyperscala.html.tag
import com.outr.net.http.session.Session

/**
 * @author Matt Hicks 
 */
object jQueryNearest extends Module {
  val name = "jquery.nearest"

  val version = Version(3, 1, 9)

  override def dependencies = List(jQuery.LatestWithDefault)

  override def init[S <: Session](website: Website[S]) = {
    website.register("/js/jquery.nearest.js", "jquery.nearest.js")
  }

  override def load[S <: Session](webpage: Webpage[S]) = {
    webpage.head.contents += new tag.Script(mimeType = "text/javascript", src = "/js/jquery.nearest.js")
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy