Add a magnifier lens to the image.
BUG=skia:
R=mtklein@google.com
Author: jcgregorio@google.com
Review URL: https://codereview.chromium.org/252993003
git-svn-id: http://skia.googlecode.com/svn/trunk@14424 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/webtry/webtry.go b/experimental/webtry/webtry.go
index 573d9c6..79abaf1 100644
--- a/experimental/webtry/webtry.go
+++ b/experimental/webtry/webtry.go
@@ -352,10 +352,6 @@
http.ServeFile(w, r, "css/webtry.css")
}
-func jsHandler(w http.ResponseWriter, r *http.Request) {
- http.ServeFile(w, r, "js/run.js")
-}
-
// imageHandler serves up the PNG of a specific try.
func imageHandler(w http.ResponseWriter, r *http.Request) {
log.Printf("Image Handler: %q\n", r.URL.Path)
@@ -683,7 +679,7 @@
http.HandleFunc("/iframe/", iframeHandler)
http.HandleFunc("/json/", tryInfoHandler)
http.HandleFunc("/css/", cssHandler)
- http.HandleFunc("/js/", jsHandler)
+ http.Handle("/js/", http.FileServer(http.Dir("./")))
// TODO Break out /c/ as it's own handler.
http.HandleFunc("/", mainHandler)
log.Fatal(http.ListenAndServe(*port, nil))