2017-04-04 07:53:27 +02:00
<!DOCTYPE html>
2017-07-14 06:04:04 +02:00
<html prefix="og: http://ogp.me/ns#">
2017-04-04 07:53:27 +02:00
<head>
<!--Import Google Icon Font-->
2017-04-08 09:43:37 +02:00
<link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
2017-04-04 07:53:27 +02:00
<!--Import materialize.css-->
2017-04-08 09:43:37 +02:00
<link type="text/css" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/css/materialize.min.css" integrity="sha256-6DQKO56c9MZL0LAc7QNtxqJyqSa3rS9Gq5FVcIhtA+w=" crossorigin="anonymous" media="screen,projection"/>
2017-04-04 07:53:27 +02:00
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/embedstyle.css') }}">
2017-05-26 00:50:15 +02:00
<link id="css-theme" type="text/css" rel="stylesheet" href="">
2017-04-04 07:53:27 +02:00
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
2017-05-19 00:41:41 +02:00
{% include 'seo_meta.html.j2' %}
2017-07-14 06:04:04 +02:00
{% with title="Visit " + guild['name'] + " embed", description="Visit " + guild['name'] + " on Titan Embeds and chat with your friends from the comfort of your own website. This page is 100% embeddable, iFrameable and looks good on any webpages. Titan is hassle free and designed as easy to setup!", image=generate_guild_icon( guild['id'], guild['icon']) %}
{% include "opengraph_tags.html.j2" %}
{% endwith %}
2017-04-04 07:53:27 +02:00
2017-05-08 21:13:53 +02:00
<title>{{ guild['name'] }} - Embed - Titan Embeds for Discord</title>
2017-04-09 20:43:45 +02:00
{% include 'google_analytics.html.j2' %}
2017-05-22 03:07:32 +02:00
2017-09-20 01:38:46 +02:00
<style id="user-defined-css">
{% if css is not none %}
{% if cssvariables is not none and css.css_var_bool %}{{ cssvariables|e }}{% endif %}
{% if css.css is not none %}{{ css.css }}{% endif %}
{% endif %}
</style>
2017-04-04 07:53:27 +02:00
</head>
<body>
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper">
<a href="#" data-activates="guild-nav" class="button-collapse" id="guild-btn"><i class="material-icons">menu</i></a>
<div class="container">
2017-05-13 23:48:47 +02:00
<a href="{{ url_for("index") }}" target="_blank" class="brand-logo"><img src="{{ url_for('static', filename='img/titanembeds_shield.png') }}" /><strong class="align-top">Titan</strong><span class="align-top">Embeds</span> <span class="betatag align-top">BETA</span></a>
2017-04-04 07:53:27 +02:00
</div>
<a href="#" data-activates="members-nav" class="button-collapse right" id="members-btn"><i class="material-icons">person</i></a>
</div>
</nav>
</div>
<main>
2017-04-05 07:10:20 +02:00
<div id="chatcontent" class="chatcontent"></div>
2017-04-04 07:53:27 +02:00
</main>
2017-04-08 02:11:43 +02:00
2017-04-04 07:53:27 +02:00
<ul id="guild-nav" class="side-nav">
<li>
<div class="userView">
2017-08-27 10:04:50 +02:00
<img id="guild_icon" class="circle" src="{{ generate_guild_icon( guild['id'], guild['icon'] ) }}" {% if not guild['icon'] %}style="display: none;"{% endif %}>
<span id="guild_name" class="name">{{ guild['name']|e }}</span>
2017-04-04 07:53:27 +02:00
</div>
</li>
2017-04-09 00:12:28 +02:00
2017-04-04 07:53:27 +02:00
<li><a class="subheader">Actions</a></li>
2017-05-08 21:13:53 +02:00
<li><a href="{{ url_for("user.administrate_guild", guild_id=guild['id']) }}" class="waves-effect" target="_blank" id="administrate_link" style="display: none;">Manage Guild Embed</a></li>
2017-05-24 05:41:12 +02:00
<li><a id="instant-inv" href="#" class="waves-effect" target="_blank">Open Server on Discordapp</a></li>
2017-04-08 02:11:43 +02:00
2017-04-04 07:53:27 +02:00
<li><div class="divider"></div></li>
2017-04-08 02:11:43 +02:00
2017-04-09 00:12:28 +02:00
<li><a class="subheader">Channel Topic</a></li>
<div id="channeltopic"></div>
<li><div class="divider"></div></li>
2017-04-04 07:53:27 +02:00
<li><a class="subheader">Channels</a></li>
<span id="channels-list"></span>
</ul>
2017-04-08 02:11:43 +02:00
2017-04-04 07:53:27 +02:00
<ul id="members-nav" class="side-nav">
2017-04-22 08:35:30 +02:00
<li><a class="subheader">Online Server Members - <span id="discord-members-count"></span></a></li>
2017-04-04 07:53:27 +02:00
<span id="discord-members"></span>
<li><div class="divider"></div></li>
2017-04-08 02:11:43 +02:00
2017-04-22 08:35:30 +02:00
<li><a class="subheader">Authenticated Embed Users - <span id="embed-discord-members-count"></span></a></li>
2017-04-04 07:53:27 +02:00
<span id="embed-discord-members"></span>
2017-04-22 08:35:30 +02:00
<li><a class="subheader">Guest Embed Users - <span id="guest-members-count"></span></a></li>
2017-04-04 07:53:27 +02:00
<span id="embed-unauth-users"></span>
</ul>
2017-04-08 02:11:43 +02:00
2017-04-04 07:53:27 +02:00
<div id="loginmodal" class="modal">
<div class="modal-content">
<h4>{{ login_greeting }}</h4>
2017-05-24 07:32:19 +02:00
<div id="loginmodal-maincontent" class="row valign-wrap">
2017-05-24 20:56:26 +02:00
<div id="modal_guildinfobox" class="col m3 s12 center-align">
2017-05-24 07:03:48 +02:00
{% if guild['icon'] %}
2017-05-24 07:32:19 +02:00
<img id="modal_guildiconcircle" class="circle" src="{{ generate_guild_icon( guild['id'], guild['icon'] ) }}">
2017-05-24 07:03:48 +02:00
{% endif %}
2017-06-04 07:48:38 +02:00
<p id="modal_guildname"><strong>{{ guild['name']|e }}</strong></p>
{% if guild["discordio"] %}
<a id="modal_invite_btn_discordio" class="waves-effect waves-light btn" target="_blank" href="http://discord.io/{{ guild["discordio"]|e }}">discord.io/{{ guild["discordio"]|e }}</a>
{% else %}
2017-05-24 07:03:48 +02:00
<a id="modal_invite_btn" class="waves-effect waves-light btn" target="_blank">discord.gg</a>
2017-06-04 07:48:38 +02:00
{% endif %}
2017-04-04 07:53:27 +02:00
</div>
2017-05-24 07:03:48 +02:00
<div class="col m9 s12">
<p class="flow-text">Please choose one of the following methods to authenticate!</p>
<div class="progress" id="loginProgress" style="display: none;">
<div class="indeterminate"></div>
</div>
<div class="row">
2017-05-24 20:56:26 +02:00
<div class="col s12 l4">
2017-05-24 07:03:48 +02:00
<a id="discordlogin_btn" href="{{ url_for("embed.login_discord", _external=True) }}" class="waves-effect waves-light btn-large" target="_blank">Discord Login</a>
<p>*You will be invited into this server.</p>
</div>
{% if unauth_enabled %}
2017-05-24 20:56:26 +02:00
<div class="col s12 l8">
2017-05-24 07:03:48 +02:00
<p>Of course, you also have the option to login by picking a temporary username for your current browsing session.</p>
<input id="custom_username_field" type="text" {% if session.unauthenticated and session.username %}value="{{ session['username'] }}"{% endif %}>
<label class="active" for="custom_username_field">Username (Hit ENTER/RETURN key to confirm)</label>
</div>
{% endif %}
</div>
2017-04-04 07:53:27 +02:00
</div>
</div>
</div>
</div>
2017-05-24 05:20:23 +02:00
2017-05-26 00:50:15 +02:00
<div id="userembedmodal" class="modal">
<div class="modal-content">
2017-08-10 23:27:08 +02:00
{% if unauth_enabled %}
<h4>Change Username</h4>
<div class="row">
<div>
<p>(Guests Accounts Only)</p>
<input id="change_username_field" type="text" {% if session.unauthenticated and session.username %}value="{{ session['username'] }}"{% else %}disabled{% endif %}>
<label class="active" for="change_username_field">Change your username (Hit ENTER/RETURN key to confirm)</label>
</div>
</div>
{% endif %}
2017-05-26 00:50:15 +02:00
<h4>Theme</h4>
<div class="row">
<div class="input-field col s12">
<select id="theme-selector">
<option value="" selected>Default</option>
<option value="DiscordDark">DiscordDark</option>
2017-05-26 03:13:53 +02:00
<option value="BetterTitan">BetterTitan</option>
2017-05-26 00:50:15 +02:00
</select>
2017-08-08 05:14:17 +02:00
<p>
<input type="checkbox" class="filled-in" id="overwrite_theme_custom_css_checkbox" checked="checked" />
<label for="overwrite_theme_custom_css_checkbox">Overwrite Current Embed Theme w/ User CSS</label>
</p>
2017-05-26 00:50:15 +02:00
</div>
</div>
</div>
</div>
2017-08-13 12:14:03 +02:00
<div id="emoji-picker">
<div id="emoji-picker-content">
<div class="row">
<h6>Server Emoji</h6>
<div id="emoji-picker-emojis"></div>
</div>
</div>
</div>
2017-04-08 02:11:43 +02:00
2017-04-09 19:49:28 +02:00
<footer id="footer" class="footer">
2017-04-26 21:12:35 +02:00
<div id="fetching-indicator" class="preloader-wrapper small active" style="display: none;">
<div class="spinner-layer spinner-blue-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
2017-08-13 12:14:03 +02:00
<div id="emoji-tray-toggle">
<a class="btn-floating btn-large waves-effect waves-light"><i class="material-icons">tag_faces</i></a>
</div>
2017-04-09 19:49:28 +02:00
<div id="footercontainer" class="footercontainer">
2017-04-04 07:53:27 +02:00
<div class="currentuserchip left" id="nameplate">
2017-04-05 09:14:29 +02:00
<div class="left"><img id="currentuserimage" src="" class="circle left currentuserimage" style="display: none;"></div>
2017-05-24 06:42:01 +02:00
<div id="currentusername" class="currentusername left"><span id="curuser_name">Titan</span><span id="curuser_discrim">#0001</span></div>
2017-04-04 07:53:27 +02:00
</div>
2017-06-09 06:22:33 +02:00
<div id="messageboxouter" class="input-field inline">
<textarea placeholder="Enter message" id="messagebox" type="text" class="materialize-textarea" rows="1"></textarea>
2017-09-01 21:19:13 +02:00
<span id="visitor_mode_message" style="display:none;"><span id="visitor_mode_message_note">Please login to post a message.</span> <a id="visitor_login_btn" class="waves-effect waves-light btn">Login</a></span>
2017-06-09 06:22:33 +02:00
</div>
2017-04-04 07:53:27 +02:00
</div>
</footer>
<!--Import jQuery before materialize.js-->
2017-04-08 09:43:37 +02:00
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/js/materialize.min.js" integrity="sha256-ToPQhpo/E89yaCd7+V8LUCjobNRkjilRXfho6x3twLU=" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.min.js" integrity="sha256-iaqfO5ue0VbSGcEiQn+OeXxnxAMK2+QgHXIDA5bWtGI=" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js" integrity="sha256-1hjUhpc44NwiNg8OwMu2QzJXhD8kcj+sJA3aCQZoUjg=" crossorigin="anonymous"></script>
2017-04-11 07:00:26 +02:00
<script src="//cdnjs.cloudflare.com/ajax/libs/jQuery-linkify/2.1.4/linkify.min.js" integrity="sha256-/qh8j6L0/OTx+7iY8BAeLirxCDBsu3P15Ci5bo7BJaU=" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jQuery-linkify/2.1.4/linkify-jquery.min.js" integrity="sha256-BlSfVPlZijMLojgte2AtSget879chk1+8Z8bEH/L4Cs=" crossorigin="anonymous"></script>
2017-06-15 21:58:15 +02:00
<script src="https://cdnjs.cloudflare.com/ajax/libs/cheet.js/0.3.3/cheet.min.js" integrity="sha256-FxQrnIC3BX45JRzOyFUlKiM6dY3A/ZakV6w4WpYyfyA=" crossorigin="anonymous"></script>
2017-08-19 07:09:13 +02:00
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.3/socket.io.js" integrity="sha256-sdmLD9jD1PIzq3KOQPNSGZYxjv76rds79Mnyk5JNp1M=" crossorigin="anonymous"></script>
2017-09-06 09:11:32 +02:00
<script src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5.0/2/twemoji.min.js" integrity="sha256-t5bxASdQ5tDbKQZy330h/YufCiZg82xG8PqIYzFpwhU=" crossorigin="anonymous"></script>
2017-04-04 07:53:27 +02:00
{% raw %}
<script id="mustache_channellistings" type="text/template">
2017-04-13 02:42:32 +02:00
<li><a class="waves-effect truncate" id="channel-{{channelid}}"><span class="channel-hash">#</span> {{channelname}}</a></li>
2017-04-04 07:53:27 +02:00
</script>
2017-04-08 02:11:43 +02:00
2017-04-04 07:53:27 +02:00
<script id="mustache_authedusers" type="text/template">
<li><a class="waves-effect truncate" id="discorduser-{{id}}"><img class="circle membercircle" src="{{avatar}}"> <span class="membername">{{username}}</span></a></li>
</script>
2017-04-08 02:11:43 +02:00
2017-04-04 07:53:27 +02:00
<script id="mustache_unauthedusers" type="text/template">
<li><a class="waves-effect truncate"><span class="membername">{{username}}#{{discriminator}}</span></a></li>
</script>
2017-09-16 00:25:36 +02:00
2017-04-04 07:53:27 +02:00
<script id="mustache_usermessage" type="text/template">
2017-09-16 00:25:36 +02:00
<p><span class="chatusername"><span class="authorname">{{username}}</span><span class="authorhash">#</span><span class="authordiscriminator">{{discriminator}}</span></span> <span id="discordmessage_{{id}}" title="{{full_timestamp}}" class="chattimestamp">{{time}}</span> <span class="chatmessage">{{{content}}}</span></p>
2017-04-04 07:53:27 +02:00
</script>
2017-04-14 08:10:13 +02:00
<script id="mustache_memberrole" type="text/template">
<li><a class="subheader role-title">{{name}}</a></li>
</script>
2017-09-09 23:46:00 +02:00
<script id="mustache_channelcategory" type="text/template">
<li><a class="subheader channel-category">{{name}}</a></li>
</script>
2017-06-09 10:22:22 +02:00
<script id="mustache_message_emoji" type="text/template">
2017-09-09 00:17:57 +02:00
<img class="message_emoji tooltipped" src='https://cdn.discordapp.com/emojis/{{id}}.png' data-position="top" data-delay="200" data-tooltip=":{{name}}:" alt=":{{name}}:" />
2017-06-09 10:22:22 +02:00
</script>
2017-04-04 07:53:27 +02:00
{% endraw %}
<script>
2017-04-13 02:42:32 +02:00
const guild_id = "{{ guild_id }}";
const bot_client_id = "{{ client_id }}";
2017-06-09 06:22:33 +02:00
const visitors_enabled = {% if visitors_enabled %}true{% else %}false{% endif %};
2017-04-04 07:53:27 +02:00
</script>
<script type="text/javascript" src="{{ url_for('static', filename='js/embed.js') }}"></script>
</body>
2017-04-08 02:11:43 +02:00
</html>