iframes war
This commit is contained in:
parent
57d6cd5107
commit
84c9be005c
22
game.php
22
game.php
@ -21,6 +21,7 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
|||||||
<style>
|
<style>
|
||||||
form {
|
form {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
form input {
|
form input {
|
||||||
@ -38,12 +39,9 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
display:grid;
|
display: grid;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
grid-template-rows: 45px /* Шапка */
|
grid-template-rows: 45px /* Шапка */ 2fr /* Окно игры */ 1fr /* Окно чата*/ 30px; /* Подвал */
|
||||||
2fr /* Окно игры */
|
|
||||||
1fr /* Окно чата*/
|
|
||||||
30px;/* Подвал */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
@ -51,8 +49,14 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
|||||||
box-shadow: 0 3px 2px -2px slategray;
|
box-shadow: 0 3px 2px -2px slategray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
#game, #chat {
|
#game, #chat {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
box-shadow: 0 3px 2px -2px slategray;
|
||||||
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a img {
|
a img {
|
||||||
@ -60,6 +64,7 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
|||||||
transition: box-shadow 0.5s ease;
|
transition: box-shadow 0.5s ease;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a img:hover {
|
a img:hover {
|
||||||
box-shadow: 0 0 7px slategray;
|
box-shadow: 0 0 7px slategray;
|
||||||
}
|
}
|
||||||
@ -74,7 +79,8 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
|||||||
<a href="/main.php?edit=1" title="Инвентарь" target="main"><img src="http://placehold.it/32x32/33ff33?text=I"/></a>
|
<a href="/main.php?edit=1" title="Инвентарь" target="main"><img src="http://placehold.it/32x32/33ff33?text=I"/></a>
|
||||||
<a href="/relikt.php?edit=1" title="Реликты" target="main"><img src="http://placehold.it/32x32?text=R"/></a>
|
<a href="/relikt.php?edit=1" title="Реликты" target="main"><img src="http://placehold.it/32x32?text=R"/></a>
|
||||||
<a href="/klan.php" title="Клан" target="main"><img src="http://placehold.it/32x32/33ff33?text=K"/></a>
|
<a href="/klan.php" title="Клан" target="main"><img src="http://placehold.it/32x32/33ff33?text=K"/></a>
|
||||||
<a href="/orden.php" title="Особые умения" target="main"><img src="http://placehold.it/32x32/33ff33?text=O"/></a>
|
<a href="/orden.php" title="Особые умения" target="main"><img
|
||||||
|
src="http://placehold.it/32x32/33ff33?text=O"/></a>
|
||||||
<a href="/moderators.php" title="Модераторы" target="main"><img src="http://placehold.it/32x32/33ff33?text=M"/></a>
|
<a href="/moderators.php" title="Модераторы" target="main"><img src="http://placehold.it/32x32/33ff33?text=M"/></a>
|
||||||
<a href="/forum.php" title="Форум" target="main"><img src="http://placehold.it/32x32?text=F"/></a>
|
<a href="/forum.php" title="Форум" target="main"><img src="http://placehold.it/32x32?text=F"/></a>
|
||||||
</header>
|
</header>
|
||||||
@ -88,8 +94,8 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
|||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$( "#game" ).load( "main.php" );
|
$("#game").load("main.php");
|
||||||
$( "#chat" ).load( "chat.php" );
|
$("#chat").load("chat.php");
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user