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>
|
||||
form {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
form input {
|
||||
@ -38,12 +39,9 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
||||
}
|
||||
|
||||
.wrap {
|
||||
display:grid;
|
||||
display: grid;
|
||||
height: 100vh;
|
||||
grid-template-rows: 45px /* Шапка */
|
||||
2fr /* Окно игры */
|
||||
1fr /* Окно чата*/
|
||||
30px;/* Подвал */
|
||||
grid-template-rows: 45px /* Шапка */ 2fr /* Окно игры */ 1fr /* Окно чата*/ 30px; /* Подвал */
|
||||
}
|
||||
|
||||
header {
|
||||
@ -51,8 +49,14 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
||||
box-shadow: 0 3px 2px -2px slategray;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
#game, #chat {
|
||||
overflow: auto;
|
||||
box-shadow: 0 3px 2px -2px slategray;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
a img {
|
||||
@ -60,6 +64,7 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
||||
transition: box-shadow 0.5s ease;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
a img:hover {
|
||||
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="/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="/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="/forum.php" title="Форум" target="main"><img src="http://placehold.it/32x32?text=F"/></a>
|
||||
</header>
|
||||
@ -88,8 +94,8 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
||||
</footer>
|
||||
</div>
|
||||
<script>
|
||||
$( "#game" ).load( "main.php" );
|
||||
$( "#chat" ).load( "chat.php" );
|
||||
$("#game").load("main.php");
|
||||
$("#chat").load("chat.php");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user