From cc9dba36349370e95e912706fdd8bd1af2599f5f Mon Sep 17 00:00:00 2001 From: lmn451 Date: Mon, 10 Aug 2020 23:26:38 +0300 Subject: [PATCH] class syntax added --- src/index.html | 131 +++++++++++++++++++++--------------------- src/polling-server.ts | 2 +- 2 files changed, 67 insertions(+), 66 deletions(-) diff --git a/src/index.html b/src/index.html index cf5d3e5..4b97cce 100644 --- a/src/index.html +++ b/src/index.html @@ -10,7 +10,7 @@ #bar { width: 0%; height: 30px; - background-color: #4CAF50; + background-color: #4caf50; } -
-
-

Send message to Back-End! Get Answer after : -

-
- - -
-
+ +
+
+

Send message to Back-End! Get Answer after :

+
+ + +
+

-
- -
-
+
+
+
+
-
\ No newline at end of file + new SubscribePane( + document.getElementById("subscribe"), + "subscribe?random=" + Math.random() + ).subscribe(); + diff --git a/src/polling-server.ts b/src/polling-server.ts index 59e0547..8ec24b4 100644 --- a/src/polling-server.ts +++ b/src/polling-server.ts @@ -9,7 +9,7 @@ const expressRoutes = new AppRouter(app); expressRoutes.init(); const port = process.env.PORT; app.use(express.static("src")) // serve the whole directory - +process.env.PORT = "3000" app.listen(process.env.PORT, () => { console.log(`Express server app listening on port ${process.env.PORT}!`); });