diff options
-rw-r--r-- | db.go | 2 | ||||
-rw-r--r-- | main.go | 2 | ||||
-rw-r--r-- | templates/header.html | 3 | ||||
-rw-r--r-- | templates/p.html | 3 |
4 files changed, 2 insertions, 8 deletions
@@ -15,7 +15,7 @@ func initDb() { dbPool = make(chan *mysql.Client, 4) for i := 0; i < dbPoolSize; i++ { - db, err := mysql.DialTCP("173.228.31.111", "audio", "audio", "audio") + db, err := mysql.DialTCP("localhost", "audio", "audio", "audio") if err != nil { log.Panicln(err) } @@ -23,7 +23,7 @@ type Playlist struct { } var templates *template.Set -const debug = true +const debug = false func main() { templates = template.SetMust(template.ParseTemplateFiles("templates/*.html")) diff --git a/templates/header.html b/templates/header.html index ca97f81..2c6f2b7 100644 --- a/templates/header.html +++ b/templates/header.html @@ -3,10 +3,7 @@ <head> <meta charset="UTF-8"> <title>Audio Axis</title> - <!-- <link href='http://fonts.googleapis.com/css?family=Cantarell' rel='stylesheet'> - --> - <link href="/static/cantarell.css" rel="stylesheet"> <link href="/static/base.css" rel="stylesheet"> {{.}} </head> diff --git a/templates/p.html b/templates/p.html index 41815f7..76e1dfd 100644 --- a/templates/p.html +++ b/templates/p.html @@ -20,10 +20,7 @@ <script> var pid = '{{.Id}}'; </script> -<script src="/static/jquery.min.js"></script> -<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> ---> <script src="/static/script.js"></script> <object data="http://www.youtube.com/v/{{$first}}?version=3&enablejsapi=1" id="player" width="1" height="1" type="application/x-shockwave-flash"> <param name="movie" value="http://www.youtube.com/v/{{$first}}?version=3&enablejsapi=1"> |