Browse Source

remove crappy internet hacks and debug stuff

raylu 14 years ago
parent
commit
5b6aef401e
4 changed files with 2 additions and 8 deletions
  1. 1 1
      db.go
  2. 1 1
      main.go
  3. 0 3
      templates/header.html
  4. 0 3
      templates/p.html

+ 1 - 1
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)
 		}

+ 1 - 1
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"))

+ 0 - 3
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>

+ 0 - 3
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">