Skip to content

Instantly share code, notes, and snippets.

@hpfast
hpfast / server_simple.js
Created April 4, 2019 08:54 — forked from johnschimmel/server_simple.js
Simple NodeJS web server example
/************************************************
FILENAME
server_simple.js
DESCRIPTION
creates a simple web server that
displays translations of requested words
HOW TO START SERVER:
1) from terminal run 'node simple_server.js'
diff --git a/server.go b/server.go
index 646cb44..33cd4ea 100644
--- a/server.go
+++ b/server.go
@@ -1247,8 +1247,8 @@ func (srv *Server) ContainerCopy(name string, resource string, out io.Writer) er
}
func NewServer(flGraphPath string, autoRestart, enableCors bool, dns ListOpts) (*Server, error) {
- if runtime.GOARCH != "amd64" {
- log.Fatalf("The docker runtime currently only supports amd64 (not %s). This will change in the future. Aborting.", runtime.GOARCH)
#container{
margin-top:20px;
width:100%;
height:30px;
border: 1px solid #ccc;
box-shadow: -1px 1px 1px 1px #ccc;
overflow:hidden;
}
#container:hover{
cursor:pointer
#container{
margin-top:20px;
width:170px;
height:30px;
border: 1px solid #ccc;
box-shadow: -1px 1px 1px 1px #ccc;
overflow:hidden;
}
#container:hover{
cursor:pointer
#container{
margin-top:20px;
width:200px;
border:1px solid white;
}
.half{
width:50%;
border:1px solid white;
float:left;
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<ul id="buh"></ul>
</body>