summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-08-10 23:18:51 -0700
committerraylu <raylu@mixpanel.com>2011-08-10 23:19:05 -0700
commit5b6aef401e33a870eca7cd2b4c69b7705b210fa1 (patch)
tree1db130f1d31c1a5b4cdabc2d07c1c34e221275f2
parentd1bfe384e796cf2db9a057271b78666b310d0184 (diff)
downloadaudioaxis-5b6aef401e33a870eca7cd2b4c69b7705b210fa1.tar.xz
remove crappy internet hacks and debug stuff
-rw-r--r--db.go2
-rw-r--r--main.go2
-rw-r--r--templates/header.html3
-rw-r--r--templates/p.html3
4 files changed, 2 insertions, 8 deletions
diff --git a/db.go b/db.go
index 9434273..37b7016 100644
--- a/db.go
+++ b/db.go
@@ -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)
}
diff --git a/main.go b/main.go
index 7185672..522f0e7 100644
--- a/main.go
+++ b/main.go
@@ -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&amp;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&amp;enablejsapi=1">