iframes war
This commit is contained in:
parent
44cb3e6ad5
commit
e8395185a0
32
game.php
32
game.php
@ -19,7 +19,7 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
||||
<title>Окно игры</title>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
header,
|
||||
/* header,
|
||||
footer {
|
||||
display: block;
|
||||
margin: 5px;
|
||||
@ -29,7 +29,7 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
||||
background: #ffeebb;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
*/
|
||||
form {
|
||||
padding: 3px;
|
||||
width: 100%;
|
||||
@ -62,10 +62,30 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wrap {
|
||||
display:grid;
|
||||
background:#d7d7d7;
|
||||
height: 100vh;
|
||||
grid-template-rows: 45px /* Шапка */
|
||||
2fr /* Окно игры */
|
||||
1fr /* Окно чата*/
|
||||
30px;/* Подвал */
|
||||
}
|
||||
|
||||
header, footer {
|
||||
margin: 1px;
|
||||
padding: 5px;
|
||||
}
|
||||
</style>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrap">
|
||||
<header>
|
||||
<a href="/user_anketa.php" title="Анкета" target="main"><img src="http://placehold.it/32x32/33ff33?text=A"/></a>
|
||||
<a href="/friend.php" title="Друзья" target="main"><img src="http://placehold.it/32x32/33ff33?text=F"/></a>
|
||||
@ -76,9 +96,7 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
||||
<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>
|
||||
<div class="mainwrap">
|
||||
<iframe name="main" src="main.php"></iframe>
|
||||
</div>
|
||||
<div id="game"></div>
|
||||
<div id="chat"></div>
|
||||
<footer>
|
||||
<form action="chat.php" method="post" target="chat">
|
||||
@ -86,7 +104,9 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
|
||||
<input type="submit" value="Отправить">
|
||||
</form>
|
||||
</footer>
|
||||
</div>
|
||||
<script>
|
||||
$( "#game" ).load( "main.php" );
|
||||
$( "#chat" ).load( "chat.php" );
|
||||
</script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user