sermon/index.php
2018-10-18 12:48:01 +02:00

38 lines
1.2 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>sermon</title>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<link rel="stylesheet" href="main.css">
</head>
<body <?= empty($_REQUEST['observer']) ? '' : 'class="observer"' ?>>
<?php if (!isset($_COOKIE['outchat_name']) && empty($_REQUEST['observer'])) { ?>
<div class="modal">
<form action="" method="post" class="modal__form">
<input type="text" name="name" placeholder="name" minLength="3" maxLength="20" class="modal__form-input">
<input type="submit" value="»" class="modal__form-submit">
</form>
<div class="modal__info_url">
to only see chat, go <a href="https://live.sdbs.cz/sermon" target="_top">https://live.sdbs.cz/sermon</a>
</div>
</div>
<?php } ?>
<div class="chat">
</div>
<form method="post" action="api.php?action=createMessage" class="form">
<textarea name="text" class="form__input-message" placeholder="message"></textarea>
<input type="hidden" name="name" value="kent">
<input type="submit" value="»" class="form__input-submit">
</form>
<script src="helpers.js"></script>
<script src="main.js"></script>
</body>
</html>