gzip, exit tutorial auto on mobile
This commit is contained in:
parent
74a6e70c37
commit
990803583c
@ -4,9 +4,11 @@
|
|||||||
*PRODUCTION*
|
*PRODUCTION*
|
||||||
|
|
||||||
* can't reset password without knowing password =\
|
* can't reset password without knowing password =\
|
||||||
|
* ws gzip encoding
|
||||||
|
|
||||||
* mobile
|
* mobile
|
||||||
- force to landscape view and try make everything fit
|
- force to landscape view and try make everything fit
|
||||||
|
|
||||||
OR
|
OR
|
||||||
- 2 pages vbox / equip
|
- 2 pages vbox / equip
|
||||||
- vbox page as current with equip button at bottom
|
- vbox page as current with equip button at bottom
|
||||||
|
|||||||
@ -15,6 +15,8 @@
|
|||||||
<link href="https://fonts.googleapis.com/css?family=Jura" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Jura" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="assets/styles/normalize.css">
|
<link rel="stylesheet" href="assets/styles/normalize.css">
|
||||||
<link rel="stylesheet" href="assets/styles/skeleton.css">
|
<link rel="stylesheet" href="assets/styles/skeleton.css">
|
||||||
|
<link rel="icon" sizes="512x512" href="assets/icons/mnml.png">
|
||||||
|
<link rel="apple-touch-icon" href="assets/icons/mnml.png">
|
||||||
</head>
|
</head>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"start_url": "/index.html",
|
"start_url": "/index.html",
|
||||||
"display": "fullscreen",
|
"display": "standalone",
|
||||||
"orientation": "landscape",
|
"orientation": "landscape",
|
||||||
"theme_color": "#000000",
|
"theme_color": "#000000",
|
||||||
"background_color": "#000000"
|
"background_color": "#000000"
|
||||||
|
|||||||
@ -199,13 +199,16 @@ function tutorialStage(tutorial, ws, clearTutorial, instance) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tutorial === 8) {
|
if (tutorial === 8) {
|
||||||
|
if (window.innerWidth < 1000) {
|
||||||
|
return exit();
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h2>Tutorial</h2>
|
<h2>Tutorial</h2>
|
||||||
<p>You've completed the tutorial! Try to create more skill and spec combinations. </p>
|
<p>You've completed the tutorial! Try to create more skill and spec combinations. </p>
|
||||||
<p>You can unequip skills and specs back into the inventory by double clicking. <br />
|
<p>You can unequip skills and specs back into the inventory by double clicking. <br />
|
||||||
Reclaim can be used to refund the cost of items in your inventory. </p>
|
Reclaim can be used to refund the cost of items in your inventory. </p>
|
||||||
<p>Click the <b>EXIT TUTORIAL</b> button to replace this section with more information.</p>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -213,10 +216,11 @@ function tutorialStage(tutorial, ws, clearTutorial, instance) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const classes = tutorial === 8 ? 'focus' : '';
|
const classes = tutorial === 8 ? 'focus' : '';
|
||||||
|
const text = tutorial === 8 ? 'Continue' : 'Close Tutorial'
|
||||||
const exitTutorial = <button
|
const exitTutorial = <button
|
||||||
class={classes}
|
class={classes}
|
||||||
onClick={e => e.stopPropagation()}
|
onClick={e => e.stopPropagation()}
|
||||||
onMouseDown={exit}> Exit Tutorial </button>;
|
onMouseDown={exit}> {text} </button>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class='tutorial'>
|
<div class='tutorial'>
|
||||||
|
|||||||
@ -15,6 +15,12 @@ map $http_upgrade $connection_upgrade {
|
|||||||
server {
|
server {
|
||||||
server_name mnml.gg;
|
server_name mnml.gg;
|
||||||
|
|
||||||
|
gzip on;
|
||||||
|
gzip_vary on;
|
||||||
|
gzip_proxied any;
|
||||||
|
gzip_comp_level 6;
|
||||||
|
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /var/lib/mnml/public/current;
|
root /var/lib/mnml/public/current;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|||||||
@ -15,8 +15,14 @@ map $http_upgrade $connection_upgrade {
|
|||||||
server {
|
server {
|
||||||
server_name sixtysix.pro;
|
server_name sixtysix.pro;
|
||||||
|
|
||||||
auth_basic "who dis";
|
gzip on;
|
||||||
auth_basic_user_file /etc/mnml/htpasswd.users;
|
gzip_vary on;
|
||||||
|
gzip_proxied any;
|
||||||
|
gzip_comp_level 6;
|
||||||
|
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml;
|
||||||
|
|
||||||
|
# auth_basic "who dis";
|
||||||
|
# auth_basic_user_file /etc/mnml/htpasswd.users;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /var/lib/mnml/public/current;
|
root /var/lib/mnml/public/current;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user