2020-06-15 23:43:41 +03:00
|
|
|
<html>
|
2020-06-02 09:50:32 +03:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
2020-06-15 04:20:04 +03:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
2020-06-14 11:10:26 +03:00
|
|
|
|
2020-06-16 04:20:34 +03:00
|
|
|
<title>Owncast Demo Server</title>
|
2020-06-02 09:50:32 +03:00
|
|
|
|
2020-06-14 09:38:09 +03:00
|
|
|
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet" />
|
2020-06-02 10:27:54 +03:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
2020-06-14 08:36:12 +03:00
|
|
|
|
2020-06-18 07:14:58 +03:00
|
|
|
<link href="//unpkg.com/video.js@7.8.3/dist/video-js.css" rel="stylesheet">
|
2020-06-14 09:38:09 +03:00
|
|
|
<link href="https://unpkg.com/@videojs/themes@1/dist/fantasy/index.css" rel="stylesheet" />
|
2020-06-18 07:14:58 +03:00
|
|
|
<script src="//unpkg.com/video.js@7.8.3/dist/video.js"></script>
|
2020-06-18 06:20:28 +03:00
|
|
|
<script src="//unpkg.com/showdown/dist/showdown.min.js"></script>
|
2020-06-03 01:37:36 +03:00
|
|
|
<script src="vendor/autolink.js"></script>
|
2020-06-21 09:41:13 +03:00
|
|
|
|
2020-06-14 09:38:09 +03:00
|
|
|
<link href="./styles/layout.css" rel="stylesheet" />
|
2020-06-02 09:50:32 +03:00
|
|
|
</head>
|
2020-06-15 23:43:41 +03:00
|
|
|
<script>
|
|
|
|
/*
|
|
|
|
GW TODO:
|
|
|
|
- off line/ video done mode.
|
|
|
|
- remove listeners on unload?
|
2020-06-16 01:45:55 +03:00
|
|
|
- config customizations
|
|
|
|
|
2020-06-17 20:39:13 +03:00
|
|
|
- expand user name change text box on focus.chat
|
|
|
|
- accessilbity
|
2020-06-16 01:45:55 +03:00
|
|
|
|
2020-06-02 09:50:32 +03:00
|
|
|
|
2020-06-15 23:43:41 +03:00
|
|
|
*/
|
|
|
|
</script>
|
2020-06-15 09:12:58 +03:00
|
|
|
<body class="bg-gray-300 text-gray-800">
|
2020-06-18 20:24:54 +03:00
|
|
|
<div id="app-container" v-cloak class="flex no-chat">
|
2020-06-14 06:15:31 +03:00
|
|
|
|
2020-06-16 12:09:29 +03:00
|
|
|
<div id="top-content">
|
2020-06-16 09:32:26 +03:00
|
|
|
<header class="flex border-b border-gray-900 border-solid shadow-md">
|
2020-06-18 20:24:54 +03:00
|
|
|
<h1 v-cloak class="flex text-gray-400">
|
|
|
|
<span id="logo-container" class="rounded-full bg-white mx-2 px-1 py-1">
|
2020-06-21 11:31:08 +03:00
|
|
|
<img class="logo" v-bind:src="logo">
|
2020-06-18 20:24:54 +03:00
|
|
|
</span>
|
|
|
|
<span>{{title}}</span>
|
2020-06-16 09:32:26 +03:00
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div id="user-options-container" class="flex">
|
|
|
|
<div id="user-info">
|
|
|
|
<div id="user-info-display" title="Click to update user name" class="flex">
|
|
|
|
<img src="https://robohash.org/username123" id="username-avatar" class="rounded-full bg-black bg-opacity-50 border border-solid border-gray-700" />
|
|
|
|
<span id="username-display" class="text-indigo-600"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="user-info-change">
|
|
|
|
<input type="text"
|
|
|
|
id="username-change-input"
|
|
|
|
class="appearance-none block w-full bg-gray-200 text-gray-700 border border-black-500 rounded py-1 px-1 leading-tight focus:bg-white"
|
|
|
|
value="Random Username 123"
|
|
|
|
maxlength="100"
|
|
|
|
placeholder="Update username"
|
|
|
|
>
|
|
|
|
<button id="button-update-username" class="bg-blue-500 hover:bg-blue-700 text-white py-1 px-1 rounded user-btn">Update</button>
|
|
|
|
<button id="button-cancel-change" class="bg-gray-900 hover:bg-gray-800 py-1 px-2 rounded user-btn text-white text-opacity-50" title="cancel">X</button>
|
|
|
|
</div>
|
2020-06-14 06:15:31 +03:00
|
|
|
</div>
|
2020-06-16 09:32:26 +03:00
|
|
|
<button type="button" id="chat-toggle" class="flex bg-gray-800 hover:bg-gray-700">💬</button>
|
2020-06-14 06:15:31 +03:00
|
|
|
</div>
|
2020-06-16 09:32:26 +03:00
|
|
|
|
|
|
|
</header>
|
|
|
|
|
2020-06-18 20:24:54 +03:00
|
|
|
<main>
|
|
|
|
<div id="video-container" class="flex owncast-video-container bg-black">
|
|
|
|
<video
|
|
|
|
class="video-js"
|
|
|
|
id="video"
|
|
|
|
preload="auto"
|
|
|
|
controls
|
|
|
|
autoplay
|
|
|
|
playsinline
|
|
|
|
muted
|
2020-06-21 09:41:13 +03:00
|
|
|
poster="https://goth.land/thumbnail.jpg"
|
2020-06-18 20:24:54 +03:00
|
|
|
>
|
|
|
|
</video>
|
|
|
|
</div>
|
2020-06-04 13:15:27 +03:00
|
|
|
|
2020-06-02 23:56:59 +03:00
|
|
|
|
2020-06-18 20:24:54 +03:00
|
|
|
<div id="stream-info" v-cloak class="flex font-mono bg-gray-900 text-indigo-200 shadow-md border-b border-gray-100 border-solid">
|
|
|
|
<span>{{ streamStatus }}</span>
|
|
|
|
<span>{{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}.</span>
|
|
|
|
<span>Max {{ sessionMaxViewerCount }} {{ 'viewer' | plural(sessionMaxViewerCount) }}.</span>
|
|
|
|
<span>{{ overallMaxViewerCount }} overall.</span>
|
|
|
|
</div>
|
|
|
|
</main>
|
2020-06-04 13:15:27 +03:00
|
|
|
|
2020-06-18 20:24:54 +03:00
|
|
|
<section id="user-content" class="user-content">
|
2020-06-21 11:31:08 +03:00
|
|
|
<div class="user-image rounded-full bg-white">
|
|
|
|
<img class="logo" v-bind:src="logo">
|
|
|
|
</div>
|
|
|
|
<div class="">
|
|
|
|
<div class="user-content-header border-b border-gray-500 border-solid">
|
|
|
|
<h2 class="font-semibold">About <span class="streamer-name text-indigo-600">{{streamerName}}</span></h2>
|
|
|
|
<social-list v-bind:platforms="socialHandles"></social-list>
|
|
|
|
<div class="stream-summary" v-html="summary"></div>
|
|
|
|
<stream-tags v-bind:tags="tags"></stream-tags>
|
|
|
|
</div>
|
|
|
|
<!-- USER CONTENT... -->
|
|
|
|
<div class="extra-user-content" v-html="extraUserContent"></div>
|
|
|
|
</div>
|
2020-06-18 20:24:54 +03:00
|
|
|
</section>
|
2020-06-21 11:31:08 +03:00
|
|
|
<owncast-footer></owncast-footer>
|
|
|
|
|
2020-06-18 20:24:54 +03:00
|
|
|
</div>
|
2020-06-15 02:32:39 +03:00
|
|
|
|
|
|
|
|
2020-06-18 20:24:54 +03:00
|
|
|
<section id="chat-container-wrap" class="flex">
|
2020-06-16 12:09:29 +03:00
|
|
|
<div id="user-content-touch" class="user-content">
|
2020-06-21 10:07:57 +03:00
|
|
|
<social-list v-bind:platforms="socialHandles"></social-list>
|
|
|
|
|
2020-06-16 09:32:26 +03:00
|
|
|
<!-- USER CONTENT... -->
|
2020-06-21 11:31:08 +03:00
|
|
|
<div v-html="extraUserContent"></div>
|
2020-06-18 20:24:54 +03:00
|
|
|
|
2020-06-21 10:07:57 +03:00
|
|
|
<owncast-footer></owncast-footer>
|
2020-06-21 09:41:13 +03:00
|
|
|
|
2020-06-04 11:31:47 +03:00
|
|
|
</div>
|
2020-06-02 09:50:32 +03:00
|
|
|
|
2020-06-18 20:24:54 +03:00
|
|
|
<div id="chat-container" class="bg-gray-800">
|
2020-06-16 09:32:26 +03:00
|
|
|
<div id="messages-container">
|
2020-06-17 04:36:11 +03:00
|
|
|
<div v-for="message in messages">
|
2020-06-16 09:32:26 +03:00
|
|
|
<div class="message flex">
|
|
|
|
<img
|
|
|
|
v-bind:src="message.image"
|
|
|
|
class="message-avatar rounded-full bg-black bg-opacity-50"
|
|
|
|
v-bind:style="{ backgroundColor: message.userColor() }"
|
|
|
|
/>
|
|
|
|
<div class="message-content">
|
|
|
|
<p class="message-author text-white font-bold">{{ message.author }}</p>
|
|
|
|
<p class="message-text text-gray-400 font-thin " v-html="message.formatText()"></p>
|
|
|
|
</div>
|
2020-06-04 11:31:47 +03:00
|
|
|
</div>
|
2020-06-02 10:27:54 +03:00
|
|
|
</div>
|
2020-06-16 09:32:26 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="message-input-container" class="shadow-md bg-gray-900 border-t border-gray-700 border-solid">
|
|
|
|
<form id="message-form" class="flex">
|
|
|
|
|
2020-06-17 04:36:11 +03:00
|
|
|
<input type="hidden" name="inputAuthor" id="self-message-author" />
|
2020-06-18 10:06:10 +03:00
|
|
|
|
2020-06-16 09:32:26 +03:00
|
|
|
<textarea
|
|
|
|
id="message-body-form"
|
|
|
|
placeholder="Message"
|
|
|
|
class="appearance-none block w-full bg-gray-200 text-gray-700 border border-black-500 rounded py-2 px-2 my-2 focus:bg-white"
|
|
|
|
></textarea>
|
|
|
|
|
|
|
|
<div id="message-form-actions" class="flex">
|
|
|
|
<span id="message-form-warning" class="text-red-600 text-xs"></span>
|
|
|
|
<button
|
|
|
|
id="button-submit-message"
|
|
|
|
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-1 px-2 rounded"
|
2020-06-17 20:39:13 +03:00
|
|
|
> Chat
|
2020-06-16 09:32:26 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
2020-06-04 11:31:47 +03:00
|
|
|
|
2020-06-16 09:32:26 +03:00
|
|
|
</form>
|
2020-06-02 09:50:32 +03:00
|
|
|
</div>
|
2020-06-16 09:32:26 +03:00
|
|
|
|
2020-06-04 11:31:47 +03:00
|
|
|
</div>
|
2020-06-16 09:32:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-18 20:24:54 +03:00
|
|
|
</section>
|
|
|
|
</div>
|
2020-05-24 03:57:49 +03:00
|
|
|
|
2020-06-18 02:35:47 +03:00
|
|
|
<script src="js/status.js"></script>
|
2020-06-15 23:41:37 +03:00
|
|
|
<script src="js/usercolors.js"></script>
|
2020-06-15 01:18:43 +03:00
|
|
|
<script src="js/config.js"></script>
|
2020-06-14 09:38:09 +03:00
|
|
|
<script src="js/utils.js"></script>
|
2020-06-04 11:31:47 +03:00
|
|
|
<script src="js/message.js"></script>
|
2020-06-21 10:07:57 +03:00
|
|
|
<script src="js/social.js"></script>
|
2020-06-21 09:41:13 +03:00
|
|
|
<script src="js/footer.js"></script>
|
2020-06-04 11:31:47 +03:00
|
|
|
<script src="js/app.js"></script>
|
2020-06-16 05:55:32 +03:00
|
|
|
<script src="js/player/airplay.js"></script>
|
2020-06-18 02:35:47 +03:00
|
|
|
<script src="js/player/player.js"></script>
|
2020-06-04 11:31:47 +03:00
|
|
|
</body>
|
|
|
|
</html>
|