aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/index.html12
-rw-r--r--client/src/Client.elm8
2 files changed, 10 insertions, 10 deletions
diff --git a/client/index.html b/client/index.html
index 274f533..a03d777 100644
--- a/client/index.html
+++ b/client/index.html
@@ -3,12 +3,12 @@
<head>
<meta charset="UTF-8">
<title>Client</title>
- <link rel="stylesheet" type="text/css" href="$CAFP_BASE/assets/style.css">
+ <link rel="stylesheet" type="text/css" href="$UPLCG_BASE/assets/style.css">
<meta name="viewport" content="width=device-width">
</head>
<body>
<div id="main"></div>
- <script type="text/JavaScript" src="$CAFP_BASE/assets/client.js"></script>
+ <script type="text/JavaScript" src="$UPLCG_BASE/assets/client.js"></script>
<script>
var app = Elm.Client.init({node: document.querySelector("main")});
@@ -18,12 +18,12 @@
protocol = "wss:"
}
var path = document.location.pathname;
- if(path.startsWith("$CAFP_BASE")) {
- path = path.substr("$CAFP_BASE".length);
+ if(path.startsWith("$UPLCG_BASE")) {
+ path = path.substr("$UPLCG_BASE".length);
}
var roomId = path.split("/")[2];
var url = protocol + "//" + document.location.host +
- "$CAFP_BASE/rooms/" + roomId + "/events";
+ "$UPLCG_BASE/rooms/" + roomId + "/events";
var socket = new WebSocket(url);
var socketSend = function(message) {
@@ -46,6 +46,6 @@
connect();
</script>
- <footer>CaFP version $CAFP_VERSION</footer>
+ <footer>Untitled PL Card Game version $UPLCG_VERSION</footer>
</body>
</html>
diff --git a/client/src/Client.elm b/client/src/Client.elm
index 840e9b6..6e987e7 100644
--- a/client/src/Client.elm
+++ b/client/src/Client.elm
@@ -74,14 +74,14 @@ viewPlayers players = Html.table [] <|
view : Model -> Browser.Document Msg
view model = case model of
Error str ->
- { title = "CaFP: Error"
+ { title = "Untitled PL Card Game: Error"
, body =
[ Html.h1 [] [Html.text "Error"]
, Html.p [] [Html.text str]
]
}
Connecting roomId ->
- { title = "CaFP: Connecting"
+ { title = "Untitled PL Card Game: Connecting"
, body =
[ Html.h1 []
[ Html.text <|
@@ -91,8 +91,8 @@ view model = case model of
}
Game game ->
{ title = case game.room of
- Nothing -> "CaFP"
- Just room -> "CaFP | " ++ room
+ Nothing -> "Untitled PL Card Game"
+ Just room -> room ++ " | Untitled PL Card Game"
, body =
[ Html.div [Html.Attributes.class "main"] <|
[ Html.div [Html.Attributes.class "table"]