diff --git a/w.exe b/w.exe new file mode 100644 index 0000000..139a9ba Binary files /dev/null and b/w.exe differ diff --git a/w.go b/w.go new file mode 100644 index 0000000..591a98c --- /dev/null +++ b/w.go @@ -0,0 +1,21 @@ +package main + +import ( + "fmt" + "log" + "net/http" +) + +// 主函数 +func main() { + //创建一个文件服务器,会去www目录下找index.html + fileServer := http.FileServer(http.Dir("./www")) + // 将 "/" 路径映射到文件服务器 + http.Handle("/", fileServer) + + fmt.Printf("Starting server at port 8080\n") + // 启动HTTP服务器并监听端口 80,如果出现错误,则打印错误信息并退出 + if err := http.ListenAndServe("localhost:8080", nil); err != nil { + log.Fatal(err) + } +} diff --git a/www/chat.html b/www/chat.html new file mode 100644 index 0000000..110fe1f --- /dev/null +++ b/www/chat.html @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + +
+
+ avatar +

BTCEXCOIN

+

Provide you with online pre-sales answers

+
+
+
+
+
+ +
+
+ +
+
+
About BTCEXCOIN
+
+ +


+
+
+
+
+ diff --git a/src/main/resources/static/chat/css/chat.css b/www/chat/css/chat.css similarity index 100% rename from src/main/resources/static/chat/css/chat.css rename to www/chat/css/chat.css diff --git a/src/main/resources/static/chat/css/jquery-sina-emotion.min.css b/www/chat/css/jquery-sina-emotion.min.css similarity index 100% rename from src/main/resources/static/chat/css/jquery-sina-emotion.min.css rename to www/chat/css/jquery-sina-emotion.min.css diff --git a/src/main/resources/static/chat/img/0.jpg b/www/chat/img/0.jpg similarity index 100% rename from src/main/resources/static/chat/img/0.jpg rename to www/chat/img/0.jpg diff --git a/src/main/resources/static/chat/img/btcex.png b/www/chat/img/btcex.png similarity index 100% rename from src/main/resources/static/chat/img/btcex.png rename to www/chat/img/btcex.png diff --git a/src/main/resources/static/chat/js/jquery-sina-emotion.js b/www/chat/js/jquery-sina-emotion.js similarity index 100% rename from src/main/resources/static/chat/js/jquery-sina-emotion.js rename to www/chat/js/jquery-sina-emotion.js diff --git a/src/main/resources/static/chat/js/jquery.min.js b/www/chat/js/jquery.min.js similarity index 100% rename from src/main/resources/static/chat/js/jquery.min.js rename to www/chat/js/jquery.min.js diff --git a/src/main/resources/static/chat/js/swfobject.js b/www/chat/js/swfobject.js similarity index 100% rename from src/main/resources/static/chat/js/swfobject.js rename to www/chat/js/swfobject.js diff --git a/src/main/resources/static/chat/js/web_socket.js b/www/chat/js/web_socket.js similarity index 100% rename from src/main/resources/static/chat/js/web_socket.js rename to www/chat/js/web_socket.js diff --git a/src/main/resources/static/chat/swf/WebSocketMain.swf b/www/chat/swf/WebSocketMain.swf similarity index 100% rename from src/main/resources/static/chat/swf/WebSocketMain.swf rename to www/chat/swf/WebSocketMain.swf diff --git a/www/index.html b/www/index.html new file mode 100644 index 0000000..5ffecfd --- /dev/null +++ b/www/index.html @@ -0,0 +1,5 @@ + + +

it's ok !!

+ + \ No newline at end of file diff --git a/www/kefu.html b/www/kefu.html new file mode 100644 index 0000000..6ab9922 --- /dev/null +++ b/www/kefu.html @@ -0,0 +1,234 @@ + + + + + 聊天室 + + + + + + + + +
+
+ 头像 +

BTCEXCOIN

+

BTCEXCOIN

+
+
+
+
+ + +
+ +
+
+
关于我们
+
+ + + +
+
+
+ + +
+ + + + + \ No newline at end of file