2013-08-09 20:26:30 +02:00
|
|
|
<!DOCTYPE html>
|
2014-01-27 01:15:04 +01:00
|
|
|
<html lang="en">
|
2013-08-09 20:26:30 +02:00
|
|
|
<head>
|
2014-02-28 21:11:06 +01:00
|
|
|
<title id="pageTitle">Converse.js: Mockup</title>
|
2014-01-16 14:57:14 +01:00
|
|
|
<meta charset="utf-8">
|
2014-01-19 12:37:26 +01:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
2014-05-11 20:09:16 +02:00
|
|
|
<meta name="description" content="Converse.js: Mockup" />
|
|
|
|
<link type="text/css" href="../css/theme.css" rel="stylesheet" media="screen" />
|
|
|
|
<link type="text/css" href="../css/converse.css" rel="stylesheet" media="screen" />
|
2014-04-24 18:03:30 +02:00
|
|
|
<script src="../components/jquery/dist/jquery.min.js"></script>
|
2013-08-09 20:26:30 +02:00
|
|
|
</head>
|
2014-05-11 20:09:16 +02:00
|
|
|
<body id="page-top" data-spy="scroll" data-target=".navbar-custom">
|
|
|
|
|
2014-01-19 12:37:26 +01:00
|
|
|
<!-- HEADER -->
|
|
|
|
<div id="header_wrap" class="outer">
|
|
|
|
<header class="inner">
|
|
|
|
<h1 id="project_title"><a href="http://conversejs.org">Converse.js</a></h1>
|
|
|
|
<h2 id="project_tagline">Static Mockup</h2>
|
|
|
|
</header>
|
|
|
|
</div>
|
2013-08-09 20:26:30 +02:00
|
|
|
|
2014-01-16 14:57:14 +01:00
|
|
|
<div id="conversejs">
|
2014-06-05 00:12:53 +02:00
|
|
|
<a id="toggle-controlbox" href="#" class="toggle-controlbox">
|
2014-01-22 18:43:47 +01:00
|
|
|
<span class="conn-feedback">Toggle Chat</span>
|
|
|
|
<span style="display: none" id="online-count">(0)</span>
|
|
|
|
</a>
|
2014-01-17 03:22:57 +01:00
|
|
|
|
2015-10-29 10:21:31 +01:00
|
|
|
<div id="controlbox" class="chatbox" style="opacity: 1; display: inline;">
|
|
|
|
<div class="flyout box-flyout">
|
|
|
|
<div class="dragresize dragresize-top"></div>
|
|
|
|
<div class="dragresize dragresize-topleft"></div>
|
|
|
|
<div class="dragresize dragresize-left"></div>
|
|
|
|
<div class="chat-head controlbox-head">
|
|
|
|
<ul id="controlbox-tabs">
|
|
|
|
<li><a class="s current" href="#users">Contacts</a></li>
|
|
|
|
<li><a class="s" href="#chatrooms">Rooms</a></li>
|
|
|
|
</ul>
|
|
|
|
<a class="chatbox-btn close-chatbox-button icon-close"></a>
|
|
|
|
</div>
|
|
|
|
<div id="users" class="controlbox-pane" style="display: block;">
|
2015-10-29 18:17:03 +01:00
|
|
|
<form class="pure-form set-xmpp-status" action="" method="post">
|
2015-10-29 10:21:31 +01:00
|
|
|
<span id="xmpp-status-holder">
|
|
|
|
<dl id="target" class="dropdown">
|
|
|
|
<dt id="fancy-xmpp-status-select" class="fancy-dropdown">
|
|
|
|
<div class="xmpp-status">
|
|
|
|
<a class="choose-xmpp-status online" data-value="I am online" href="#" title="Click to change your chat status">
|
|
|
|
<span class="icon-online"></span>
|
|
|
|
I am online
|
|
|
|
</a>
|
|
|
|
<a class="change-xmpp-status-message icon-pencil" href="#" title="Click here to write a custom status message"></a>
|
|
|
|
</div>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
<ul style="display: none;" class="xmpp-status-menu">
|
|
|
|
<li>
|
|
|
|
<a href="#" class="online" data-value="online">
|
|
|
|
<span class="icon-online"></span>
|
|
|
|
Online</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="dnd" data-value="dnd">
|
|
|
|
<span class="icon-dnd"></span>
|
|
|
|
Busy</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="away" data-value="away">
|
|
|
|
<span class="icon-away"></span>
|
|
|
|
Away</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="offline" data-value="offline">
|
|
|
|
<span class="icon-offline"></span>
|
|
|
|
Offline</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</span>
|
|
|
|
</form>
|
|
|
|
<dl class="add-converse-contact dropdown">
|
|
|
|
<dt id="xmpp-contact-search" class="fancy-dropdown">
|
|
|
|
<a class="toggle-xmpp-contact-form" href="#" title="Click to add new chat contacts">
|
|
|
|
<span class="icon-plus"></span>
|
|
|
|
Add a contact
|
|
|
|
</a>
|
|
|
|
</dt>
|
|
|
|
<dd class="search-xmpp" style="display:none">
|
|
|
|
<ul>
|
|
|
|
<li>
|
2015-10-30 18:40:11 +01:00
|
|
|
<form class="pure-form add-xmpp-contact">
|
2015-10-29 10:21:31 +01:00
|
|
|
<input type="text" name="identifier" class="username" placeholder="Contact username">
|
2015-10-30 18:40:11 +01:00
|
|
|
<button class="pure-button button-primary" type="submit">Add</button>
|
2015-10-29 10:21:31 +01:00
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
<li></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<div id="converse-roster">
|
2015-10-30 19:47:13 +01:00
|
|
|
<form class="pure-form roster-filter-group input-button-group">
|
2015-10-29 10:21:31 +01:00
|
|
|
<input class="roster-filter" placeholder="Type to filter">
|
|
|
|
<select class="filter-type">
|
|
|
|
<option value="contacts">Contacts</option>
|
|
|
|
<option value="groups">Groups</option>
|
|
|
|
</select>
|
2015-10-29 18:17:03 +01:00
|
|
|
</form>
|
2015-10-29 10:21:31 +01:00
|
|
|
|
|
|
|
<dl class="roster-contacts" style="display: block;">
|
|
|
|
<dt class="roster-group" style="display: block;">
|
|
|
|
<a href="#" data-group="Colleagues" class="group-toggle icon-opened" title="Click to hide these contacts">Colleagues</a>
|
|
|
|
</dt>
|
|
|
|
<dd class="online current-xmpp-contact">
|
|
|
|
<a class="open-chat" title="Name: Victor Matfield JID: victor.matfield@localhost Click to chat with this contact" href="#">
|
|
|
|
<span class="icon-online" title="This contact is online"></span>
|
|
|
|
Victor Matfield
|
|
|
|
</a>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dd class="away current-xmpp-contact">
|
|
|
|
<a class="open-chat" title="Click to chat with this contact" href="#">
|
|
|
|
<span class="icon-away" title="this contact is away"></span>
|
|
|
|
William Winterbottom
|
|
|
|
</a>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dd class="dnd current-xmpp-contact">
|
|
|
|
<a class="open-chat" title="Click to chat with this contact" href="#">
|
|
|
|
<span class="icon-dnd" title="This contact is busy"></span>
|
|
|
|
Gary Teichmann
|
|
|
|
</a>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dt class="roster-group" style="display: block;">
|
|
|
|
<a href="#" data-group="Family" class="group-toggle icon-opened" title="Click to hide these contacts">Family</a>
|
|
|
|
</dt>
|
|
|
|
<dd class="away current-xmpp-contact">
|
|
|
|
<a class="open-chat" title="Click to chat with this contact" href="#">
|
|
|
|
<span class="icon-away" title="this contact is away"></span>
|
|
|
|
Allan Donald
|
|
|
|
</a>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dd class="offline current-xmpp-contact">
|
|
|
|
<a class="open-chat" title="Click to chat with this contact" href="#">
|
|
|
|
<span class="icon-offline" title="This contact is offline"></span>
|
|
|
|
Corné Krige
|
|
|
|
</a>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dt class="roster-group" style="display: block;">
|
|
|
|
<a href="#" data-group="Friends" class="group-toggle icon-opened" title="Click to hide these contacts">Friends</a>
|
|
|
|
</dt>
|
|
|
|
<dd class="online current-xmpp-contact">
|
|
|
|
<a class="open-chat" title="Click to chat with this contact" href="#">
|
|
|
|
<span class="icon-online" title="This contact is online"></span>
|
|
|
|
John Smit
|
|
|
|
</a>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dd class="online current-xmpp-contact">
|
|
|
|
<a class="open-chat" title="Click to chat with this contact" href="#">
|
|
|
|
<span class="icon-online" title="This contact is online"></span>
|
|
|
|
Bakkies Botha
|
|
|
|
</a>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dt class="roster-group" style="display: block;">
|
|
|
|
<a href="#" class="group-toggle icon-opened" title="Click to hide these contacts">Ungrouped</a>
|
|
|
|
</dt>
|
|
|
|
<dd class="online current-xmpp-contact">
|
|
|
|
<a class="open-chat" title="Click to chat with this contact" href="#">
|
|
|
|
<span class="icon-online" title="This contact is online"></span>
|
|
|
|
James Small
|
|
|
|
</a>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dt class="roster-group" id="xmpp-contact-requests" style="display: block;">
|
|
|
|
<a href="#" class="group-toggle icon-opened" title="Click to hide these contacts">Contact Requests</a>
|
|
|
|
</dt>
|
|
|
|
<dd class="offline requesting-xmpp-contact">
|
|
|
|
<span class="req-contact-name" title="Name: Bob Skinstad JID: bob.skinstad@localhost">Bob Skinstad</span>
|
|
|
|
<span class="request-actions">
|
|
|
|
<a class="accept-xmpp-request icon-checkmark" title="Click here to accept this contact's request" href="#"></a>
|
|
|
|
<a class="decline-xmpp-request icon-close" title="Click here to decline this contact's request" href="#"></a>
|
|
|
|
</span>
|
|
|
|
</dd>
|
|
|
|
<dd class="offline requesting-xmpp-contact">
|
|
|
|
<span class="req-contact-name">André Vos</span>
|
|
|
|
<span class="request-actions">
|
|
|
|
<a class="accept-xmpp-request icon-checkmark" title="Click here to accept this contact's request" href="#"></a>
|
|
|
|
<a class="decline-xmpp-request icon-close" title="Click here to decline this contact's request" href="#"></a>
|
|
|
|
</span>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="roster-group" id="pending-xmpp-contacts" style="display: block;">
|
|
|
|
<a href="#" class="group-toggle icon-opened" title="Click to hide these contacts">Pending Contacts</a>
|
|
|
|
</dt>
|
|
|
|
<dd class="offline pending-xmpp-contact"><span class="pending-contact-name" title="Name: Rassie Erasmus JID: rassie.erasmus@localhost">Rassie Erasmus</span>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dd class="offline pending-xmpp-contact"><span class="pending-contact-name">Victor Matfield</span>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="chatrooms" class="controlbox-pane" style="">
|
|
|
|
<form class="pure-form pure-form-stacked converse-form add-chatroom" action="" method="post">
|
|
|
|
<fieldset>
|
|
|
|
<legend>Join an existing room or create a new one</legend>
|
|
|
|
<label>Room name</label>
|
|
|
|
<input type="text" name="chatroom" class="new-chatroom-name" placeholder="Room name">
|
|
|
|
<label>Nickname</label>
|
|
|
|
<input type="text" name="nick" class="new-chatroom-nick" placeholder="Nickname">
|
2015-10-29 10:55:34 +01:00
|
|
|
<input type="submit" class="pure-button button-primary" name="join" value="Open Room">
|
2015-10-29 10:21:31 +01:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<label>Server</label>
|
|
|
|
<!-- TODO: this must be a tooltip
|
|
|
|
<p class="form-help">Rooms are hosted on XMPP servers. You need to specify a server on which the room you want to join is hosted. </p>
|
|
|
|
-->
|
|
|
|
<input type="text" name="server" class="new-chatroom-server" placeholder="Server">
|
2015-10-29 10:55:34 +01:00
|
|
|
<input type="button" class="pure-button button-secondary" name="show" id="show-rooms" value="Show rooms">
|
2015-10-29 10:21:31 +01:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
<dl id="available-chatrooms">
|
|
|
|
<dt>Rooms on conference.myserver.com</dt>
|
|
|
|
<dd class="available-chatroom">
|
|
|
|
<a class="open-room" data-room-jid="eee@conference.opkode.com" title="Click to open this room" href="#">Current Events</a>
|
|
|
|
<a class="room-info icon-room-info" data-room-jid="eee@conference.opkode.com" title="Show more information on this room" href="#"> </a>
|
|
|
|
</dd>
|
|
|
|
<dd class="available-chatroom">
|
|
|
|
<a class="open-room" data-room-jid="hello@conference.opkode.com" title="Click to open this room" href="#">Software Development</a>
|
|
|
|
<a class="room-info icon-room-info" data-room-jid="hello@conference.opkode.com" title="Show more information on this room" href="#"> </a>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-01-17 03:22:57 +01:00
|
|
|
<div class="chatbox" id="37c0c87392010303765fe36b05c0967d62c6b70f">
|
2015-09-24 19:41:35 +02:00
|
|
|
<div class="flyout box-flyout">
|
2015-10-27 11:17:55 +01:00
|
|
|
<div class="dragresize dragresize-top"></div>
|
|
|
|
<div class="dragresize dragresize-topleft"></div>
|
|
|
|
<div class="dragresize dragresize-left"></div>
|
2014-01-17 03:22:57 +01:00
|
|
|
<div class="chat-head chat-head-chatbox">
|
2015-10-27 11:17:55 +01:00
|
|
|
<a class="chatbox-btn close-chatbox-button icon-close"></a>
|
|
|
|
<a class="chatbox-btn toggle-chatbox-button icon-minus"></a>
|
2014-05-11 20:09:16 +02:00
|
|
|
<canvas height="31px" width="31px" class="avatar" style="background-color: black"></canvas>
|
2014-01-27 01:15:04 +01:00
|
|
|
<div class="chat-title">
|
|
|
|
<a href="http://opkode.com" target="_blank" class="user">
|
|
|
|
JC Brand
|
|
|
|
</a>
|
|
|
|
</div>
|
2014-01-17 03:22:57 +01:00
|
|
|
<p class="user-custom-message" title="10000ft in the air">10000ft in the air</p>
|
|
|
|
</div>
|
2014-01-27 01:15:04 +01:00
|
|
|
<div class="chat-body">
|
|
|
|
<div class="chat-content">
|
|
|
|
<div class="chat-info"><strong>/help</strong>:This is an info message</div>
|
2015-10-28 09:49:28 +01:00
|
|
|
<div class="chat-info chat-error">This is an error message</div>
|
2014-01-27 01:15:04 +01:00
|
|
|
<div class="chat-message">
|
2015-10-28 10:03:37 +01:00
|
|
|
<span class="chat-msg-author chat-msg-me">09:35 me: </span>
|
2015-10-28 09:52:19 +01:00
|
|
|
<span class="chat-msg-content">
|
2014-01-27 01:15:04 +01:00
|
|
|
Hello world
|
|
|
|
<span class="icon-smiley"></span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="chat-message ">
|
2015-10-28 09:52:19 +01:00
|
|
|
<span class="chat-msg-author chat-msg-them">19:25 Benedict-John: </span>
|
|
|
|
<span class="chat-msg-content">Dagsê</span>
|
2014-01-27 01:15:04 +01:00
|
|
|
</div>
|
|
|
|
<div class="chat-message">
|
2015-10-28 10:03:37 +01:00
|
|
|
<span class="chat-msg-author chat-msg-me">19:39 me: </span>
|
2015-10-28 09:52:19 +01:00
|
|
|
<span class="chat-msg-content">This is a relatively long message to check that wrapping works as expected.</span>
|
2014-01-27 01:15:04 +01:00
|
|
|
</div>
|
|
|
|
<div class="chat-message">
|
2015-10-28 10:03:37 +01:00
|
|
|
<span class="chat-msg-author chat-msg-me">19:42 me: </span>
|
2015-10-28 09:52:19 +01:00
|
|
|
<span class="chat-msg-content">Supercalifragilisticexpialidociousstillnotlongenough</span>
|
2014-01-27 01:15:04 +01:00
|
|
|
</div>
|
2015-10-28 09:49:28 +01:00
|
|
|
<div class="chat-info chat-event">JC Brand is busy</div>
|
2014-01-27 01:15:04 +01:00
|
|
|
<div class="chat-message ">
|
2015-10-28 10:03:37 +01:00
|
|
|
<span class="chat-msg-author chat-msg-me">19:43 me: </span>
|
2015-10-28 09:52:19 +01:00
|
|
|
<span class="chat-msg-content">Another message to check that scrolling works.</span>
|
2014-01-27 01:15:04 +01:00
|
|
|
</div>
|
2014-01-17 03:22:57 +01:00
|
|
|
</div>
|
2014-12-13 03:23:53 +01:00
|
|
|
|
2014-01-27 01:15:04 +01:00
|
|
|
<form class="sendXMPPMessage" action="" method="post">
|
|
|
|
<ul class="chat-toolbar no-text-select">
|
|
|
|
<li class="toggle-smiley icon-happy" title="Insert a smilery">
|
|
|
|
<ul>
|
|
|
|
<li><a class="icon-smiley" href="#" data-emoticon=":)"></a></li>
|
|
|
|
<li><a class="icon-wink" href="#" data-emoticon=";)"></a></li>
|
|
|
|
<li><a class="icon-grin" href="#" data-emoticon=":D"></a></li>
|
|
|
|
<li><a class="icon-tongue" href="#" data-emoticon=":P"></a></li>
|
|
|
|
<li><a class="icon-cool" href="#" data-emoticon="8)"></a></li>
|
|
|
|
<li><a class="icon-evil" href="#" data-emoticon=">:)"></a></li>
|
|
|
|
<li><a class="icon-confused" href="#" data-emoticon=":S"></a></li>
|
|
|
|
<li><a class="icon-wondering" href="#" data-emoticon=":\"></a></li>
|
|
|
|
<li><a class="icon-angry" href="#" data-emoticon=">:("></a></li>
|
|
|
|
<li><a class="icon-sad" href="#" data-emoticon=":("></a></li>
|
|
|
|
<li><a class="icon-shocked" href="#" data-emoticon=":O"></a></li>
|
|
|
|
<li><a class="icon-thumbs-up" href="#" data-emoticon="(^.^)b"></a></li>
|
|
|
|
<li><a class="icon-heart" href="#" data-emoticon="<3"></a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2014-04-24 18:03:30 +02:00
|
|
|
<li class="toggle-clear"><a class="icon-remove" title="Clear all messages"></a></li>
|
2014-12-13 03:23:53 +01:00
|
|
|
<li class="toggle-otr unencrypted" title="Your messages are not encrypted. Click here to enable OTR encryption.">
|
|
|
|
<span class="chat-toolbar-text">unencrypted</span>
|
2014-01-27 01:15:04 +01:00
|
|
|
<span class="icon-unlocked"></span>
|
2014-12-13 03:23:53 +01:00
|
|
|
<ul>
|
|
|
|
<li><a class="start-otr" href="#">Start encrypted conversation</a></li>
|
2014-01-27 01:15:04 +01:00
|
|
|
<li><a href="http://www.cypherpunks.ca/otr/help/3.2.0/levels.php" target="_blank">What's this?</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<textarea type="text" class="chat-textarea" placeholder="Personal message"></textarea>
|
|
|
|
</form>
|
2013-08-12 20:10:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-17 03:22:57 +01:00
|
|
|
|
2015-10-27 11:17:55 +01:00
|
|
|
<div class="chatbox chatroom" id="4a77380f1cd9d392627b0e1469688f9ca44e9392">
|
2015-09-24 19:41:35 +02:00
|
|
|
<div class="flyout box-flyout">
|
2015-10-24 21:52:54 +02:00
|
|
|
<div class="dragresize dragresize-top"></div>
|
|
|
|
<div class="dragresize dragresize-topleft"></div>
|
|
|
|
<div class="dragresize dragresize-left"></div>
|
2014-01-17 16:02:19 +01:00
|
|
|
<div class="chat-head chat-head-chatroom">
|
2015-10-27 11:17:55 +01:00
|
|
|
<a class="chatbox-btn close-chatbox-button icon-close"></a>
|
|
|
|
<a class="chatbox-btn toggle-chatbox-button icon-minus"></a>
|
|
|
|
<a class="chatbox-btn configure-chatroom-button icon-wrench"></a>
|
2014-01-17 16:02:19 +01:00
|
|
|
<div class="chat-title"> Chatroom </div>
|
2014-01-27 01:15:04 +01:00
|
|
|
<p class="chatroom-topic">May the force be with you</p>
|
2014-01-17 16:02:19 +01:00
|
|
|
</div>
|
2015-10-28 09:49:28 +01:00
|
|
|
<div class="chat-body chatroom-body">
|
2014-01-17 16:02:19 +01:00
|
|
|
<div class="chat-area">
|
|
|
|
<div class="chat-content">
|
|
|
|
<div class="chat-message ">
|
2015-10-28 10:03:37 +01:00
|
|
|
<span class="chat-msg-author chat-msg-room">18:50 luke: </span>
|
2015-10-28 09:52:19 +01:00
|
|
|
<span class="chat-msg-content">leia: hi :)</span>
|
2014-01-17 16:02:19 +01:00
|
|
|
</div>
|
|
|
|
<div class="chat-message ">
|
2015-10-28 10:03:37 +01:00
|
|
|
<span class="chat-msg-author chat-msg-room">19:40 leia: </span>
|
2015-10-28 09:52:19 +01:00
|
|
|
<span class="chat-msg-content">
|
2014-01-17 16:02:19 +01:00
|
|
|
I'll be gone for a while, will be back in about an hour</span>
|
|
|
|
</div>
|
2015-10-28 09:49:28 +01:00
|
|
|
<time class="chat-info chat-date" datetime="2013-06-04T00:00:00.000Z">Tue Jun 04 2013</time>
|
2014-01-17 16:02:19 +01:00
|
|
|
<div class="chat-message ">
|
2015-10-28 10:03:37 +01:00
|
|
|
<span class="chat-msg-author chat-msg-room">19:40 Obi-wan Kenobi, Jedi Master: </span>
|
2015-10-28 09:52:19 +01:00
|
|
|
<span class="chat-msg-content">
|
2014-01-17 16:02:19 +01:00
|
|
|
I'll be gone for a while, will be back in about an hour</span>
|
|
|
|
</div>
|
|
|
|
<div class="chat-message">
|
2015-10-28 10:03:37 +01:00
|
|
|
<span class="chat-msg-author chat-msg-me">19:42 me: </span>
|
2015-10-28 09:52:19 +01:00
|
|
|
<span class="chat-msg-content">Supercalifragilisticexpialidociousstillnotlongenough</span>
|
2014-01-17 16:02:19 +01:00
|
|
|
</div>
|
|
|
|
<div class="chat-message ">
|
2015-10-28 10:03:37 +01:00
|
|
|
<span class="chat-msg-author chat-msg-room">19:43 Obi-wan Kenobi, Jedi Master: </span>
|
2015-10-28 09:52:19 +01:00
|
|
|
<span class="chat-msg-content">Another message to check that scrolling works.</span>
|
2014-01-17 16:02:19 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<form class="sendXMPPMessage" action="" method="post">
|
|
|
|
<ul class="chat-toolbar no-text-select">
|
2015-10-24 21:52:54 +02:00
|
|
|
<li class="toggle-smiley icon-happy" title="Insert a smiley">
|
2014-01-17 16:02:19 +01:00
|
|
|
<ul>
|
|
|
|
<li><a class="icon-smiley" href="#" data-emoticon=":)"></a></li>
|
|
|
|
<li><a class="icon-wink" href="#" data-emoticon=";)"></a></li>
|
|
|
|
<li><a class="icon-grin" href="#" data-emoticon=":D"></a></li>
|
|
|
|
<li><a class="icon-tongue" href="#" data-emoticon=":P"></a></li>
|
|
|
|
<li><a class="icon-cool" href="#" data-emoticon="8)"></a></li>
|
|
|
|
<li><a class="icon-evil" href="#" data-emoticon=">:)"></a></li>
|
|
|
|
<li><a class="icon-confused" href="#" data-emoticon=":S"></a></li>
|
|
|
|
<li><a class="icon-wondering" href="#" data-emoticon=":\"></a></li>
|
|
|
|
<li><a class="icon-angry" href="#" data-emoticon=">:("></a></li>
|
|
|
|
<li><a class="icon-sad" href="#" data-emoticon=":("></a></li>
|
|
|
|
<li><a class="icon-shocked" href="#" data-emoticon=":O"></a></li>
|
|
|
|
<li><a class="icon-thumbs-up" href="#" data-emoticon="(^.^)b"></a></li>
|
|
|
|
<li><a class="icon-heart" href="#" data-emoticon="<3"></a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-10-31 17:30:06 +01:00
|
|
|
<li class="toggle-occupants"><a class="icon-hide-users" title="Hide the list of occupants"></a></li>
|
2014-09-03 19:49:15 +02:00
|
|
|
<li class="toggle-clear"><a class="icon-remove" title="Clear all messages"></a></li>
|
2014-01-17 16:02:19 +01:00
|
|
|
</ul>
|
|
|
|
<textarea type="text" class="chat-textarea" placeholder="Message"></textarea>
|
|
|
|
</form>
|
|
|
|
</div>
|
2015-10-31 17:30:06 +01:00
|
|
|
<div class="occupants">
|
2015-10-29 10:21:31 +01:00
|
|
|
<form class="pure-form room-invite">
|
2015-10-24 21:52:54 +02:00
|
|
|
<span class="twitter-typeahead" style="position: relative; display: inline-block; direction: ltr;"><input class="invited-contact tt-hint" type="text" readonly="" autocomplete="off" spellcheck="false" tabindex="-1" style="position: absolute; top: 0px; left: 0px; border-color: transparent; box-shadow: none; opacity: 1;"><input class="invited-contact tt-input" placeholder="Invite..." type="text" autocomplete="off" spellcheck="false" dir="auto" style="position: relative; vertical-align: top; background-color: transparent;"><pre aria-hidden="true" style="position: absolute; visibility: hidden; white-space: pre;"></pre><span class="tt-dropdown-menu" style="position: absolute; top: 100%; z-index: 100; display: none; left: 0px; right: auto;"><div class="tt-dataset-contacts-dataset"></div></span></span>
|
2014-08-26 19:41:47 +02:00
|
|
|
</form>
|
2015-10-31 17:30:06 +01:00
|
|
|
<p class="occupants-heading">Occupants:</strong>
|
|
|
|
<ul class="occupant-list">
|
|
|
|
<li class="occupant" title="This user can send messages in this room">Obi-wan Kenobi, Jedi Master</li>
|
|
|
|
<li class="occupant" title="This user can send messages in this room">jabber the hut</li>
|
|
|
|
<li class="occupant" title="This user can send messages in this room">leia</li>
|
2014-01-17 16:02:19 +01:00
|
|
|
<li class="moderator" title="This user is a moderator">luke</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-10-27 11:17:55 +01:00
|
|
|
<div class="chatbox chatroom" id="6d8627960a0cb066d9216742f3edccc3dbbf85a9">
|
2015-09-24 19:41:35 +02:00
|
|
|
<div class="flyout box-flyout">
|
2015-10-27 11:17:55 +01:00
|
|
|
<div class="dragresize dragresize-top"></div>
|
|
|
|
<div class="dragresize dragresize-topleft"></div>
|
|
|
|
<div class="dragresize dragresize-left"></div>
|
2014-01-17 16:02:19 +01:00
|
|
|
<div class="chat-head chat-head-chatroom">
|
2015-10-27 11:17:55 +01:00
|
|
|
<a class="chatbox-btn close-chatbox-button icon-close"></a>
|
|
|
|
<a class="chatbox-btn toggle-chatbox-button icon-minus"></a>
|
|
|
|
<a class="chatbox-btn configure-chatroom-button icon-wrench"></a>
|
2014-01-17 16:02:19 +01:00
|
|
|
<div class="chat-title"> Restricted Chatroom</div>
|
|
|
|
<p class="chatroom-topic"></p>
|
|
|
|
<p></p>
|
|
|
|
</div>
|
2015-10-28 09:49:28 +01:00
|
|
|
<div class="chat-body chatroom-body">
|
2014-01-17 16:02:19 +01:00
|
|
|
<div class="chatroom-form-container">
|
2015-10-29 10:21:31 +01:00
|
|
|
<form class="pure-form converse-form chatroom-form">
|
|
|
|
<fieldset>
|
|
|
|
<legend>This chatroom requires a password</legend>
|
|
|
|
<label>Password:</label>
|
|
|
|
<input type="password" name="password">
|
|
|
|
</fieldset>
|
2015-10-29 10:55:34 +01:00
|
|
|
<fieldset>
|
|
|
|
<input class="pure-button button-primary" type="submit" value="Submit"/>
|
|
|
|
</fieldset>
|
2014-01-17 16:02:19 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-05-05 21:53:17 +02:00
|
|
|
|
2014-06-08 21:43:00 +02:00
|
|
|
<div id="minimized-chats">
|
|
|
|
<a id="toggle-minimized-chats" href="#">
|
2014-07-14 20:41:26 +02:00
|
|
|
Minimized <span id="minimized-count">(0)</span>
|
2014-06-08 21:43:00 +02:00
|
|
|
<span class="unread-message-count" href="#" style="display:block">322</span>
|
2014-06-08 21:34:15 +02:00
|
|
|
</a>
|
2015-09-24 19:41:35 +02:00
|
|
|
<div class="flyout minimized-chats-flyout">
|
2014-05-05 21:53:17 +02:00
|
|
|
<div class="chat-head chat-head-chatroom">
|
2015-10-27 11:17:55 +01:00
|
|
|
<a class="chatbox-btn close-chatbox-button icon-close"></a>
|
2014-06-08 21:34:15 +02:00
|
|
|
<a class="chat-head-message-count" href="#" style="display:block">3</a>
|
2014-06-01 20:56:58 +02:00
|
|
|
<div class="chat-title">
|
|
|
|
<a href="#" class="restore-chat" title="Click to maximize this chat">
|
|
|
|
Restricted Chatroom
|
|
|
|
</a>
|
|
|
|
</div>
|
2014-05-05 21:53:17 +02:00
|
|
|
</div>
|
|
|
|
<div class="chat-head chat-head-chatbox">
|
2015-10-27 11:17:55 +01:00
|
|
|
<a class="chatbox-btn close-chatbox-button icon-close"></a>
|
2014-06-08 21:34:15 +02:00
|
|
|
<a class="chat-head-message-count" href="#" style="display:block">42</a>
|
2014-05-05 21:53:17 +02:00
|
|
|
<div class="chat-title">
|
2014-06-01 20:56:58 +02:00
|
|
|
<a href="#" class="restore-chat" title="Click to maximize this chat">
|
2014-05-05 21:53:17 +02:00
|
|
|
JC Brand
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="chat-head chat-head-chatroom">
|
2015-10-27 11:17:55 +01:00
|
|
|
<a class="chatbox-btn close-chatbox-button icon-close"></a>
|
2014-06-01 20:56:58 +02:00
|
|
|
<div class="chat-title">
|
|
|
|
<a href="#" class="restore-chat" title="Click to maximize this chat">
|
|
|
|
My Chatroom
|
|
|
|
</a>
|
|
|
|
</div>
|
2014-05-05 21:53:17 +02:00
|
|
|
</div>
|
2015-10-27 11:17:55 +01:00
|
|
|
<div class="chat-head chat-head-chatbox"><a class="chatbox-btn close-chatbox-button icon-close"></a>
|
2014-06-01 20:56:58 +02:00
|
|
|
<div class="chat-title">
|
|
|
|
<a href="#" class="restore-chat" title="Click to maximize this chat">
|
|
|
|
Annegreet Gomez
|
|
|
|
</a>
|
|
|
|
</div>
|
2014-06-01 17:56:03 +02:00
|
|
|
</div>
|
2014-06-08 21:34:15 +02:00
|
|
|
<div class="chat-head chat-head-chatbox">
|
2015-10-27 11:17:55 +01:00
|
|
|
<a class="chatbox-btn close-chatbox-button icon-close"></a>
|
2014-06-08 21:34:15 +02:00
|
|
|
<a class="chat-head-message-count" href="#" style="display:block">842</a>
|
2014-06-01 20:56:58 +02:00
|
|
|
<div class="chat-title">
|
|
|
|
<a href="#" class="restore-chat" title="Click to maximize this chat">
|
|
|
|
Asmaa Haakman
|
|
|
|
</a>
|
|
|
|
</div>
|
2014-06-01 17:56:03 +02:00
|
|
|
</div>
|
2015-10-27 11:17:55 +01:00
|
|
|
<div class="chat-head chat-head-chatbox"><a class="chatbox-btn close-chatbox-button icon-close"></a>
|
2014-06-01 20:56:58 +02:00
|
|
|
<div class="chat-title">
|
|
|
|
<a href="#" class="restore-chat" title="Click to maximize this chat">
|
|
|
|
Candice van der Knijff
|
|
|
|
</a>
|
|
|
|
</div>
|
2014-06-01 17:56:03 +02:00
|
|
|
</div>
|
2015-10-27 11:17:55 +01:00
|
|
|
<div class="chat-head chat-head-chatbox"><a class="chatbox-btn close-chatbox-button icon-close"></a>
|
2014-06-01 20:56:58 +02:00
|
|
|
<div class="chat-title">
|
|
|
|
<a href="#" class="restore-chat" title="Click to maximize this chat">
|
|
|
|
Laura Grunewald
|
|
|
|
</a>
|
|
|
|
</div>
|
2014-06-01 17:56:03 +02:00
|
|
|
</div>
|
2015-10-27 11:17:55 +01:00
|
|
|
<div class="chat-head chat-head-chatbox"><a class="chatbox-btn close-chatbox-button icon-close"></a>
|
2014-06-01 20:56:58 +02:00
|
|
|
<div class="chat-title">
|
|
|
|
<a href="#" class="restore-chat">
|
|
|
|
Lena Grunewald
|
|
|
|
</a>
|
|
|
|
</div>
|
2014-06-01 17:56:03 +02:00
|
|
|
</div>
|
2014-05-05 21:53:17 +02:00
|
|
|
</div>
|
2014-06-01 20:56:58 +02:00
|
|
|
</div>
|
2013-08-09 20:26:30 +02:00
|
|
|
</div>
|
2013-10-16 22:27:31 +02:00
|
|
|
|
2013-08-09 20:26:30 +02:00
|
|
|
<script>
|
2013-08-11 14:38:40 +02:00
|
|
|
$(document).ready(function () {
|
|
|
|
$('a[href=#chatrooms]').click(function (ev) {
|
|
|
|
switchTab(ev);
|
|
|
|
});
|
|
|
|
$('a[href=#users]').click(function (ev) {
|
|
|
|
switchTab(ev);
|
|
|
|
});
|
2014-12-14 00:45:31 +01:00
|
|
|
$('a[href=#register]').click(function (ev) {
|
|
|
|
switchTab(ev);
|
|
|
|
});
|
2013-08-11 14:38:40 +02:00
|
|
|
|
2013-08-12 21:32:00 +02:00
|
|
|
$("a.choose-xmpp-status").click(function (ev) {
|
|
|
|
ev.preventDefault();
|
|
|
|
$(ev.target).parent().parent().siblings('dd').find('ul').toggle('fast');
|
|
|
|
});
|
|
|
|
|
2013-08-27 22:24:25 +02:00
|
|
|
$("a.change-xmpp-status-message").click(function (ev) {
|
|
|
|
ev.preventDefault();
|
|
|
|
var form = ''+
|
|
|
|
'<form id="set-custom-xmpp-status">' +
|
2014-12-14 00:45:31 +01:00
|
|
|
'<input type="text" class="custom-xmpp-status" placeholder="Custom status"/>' +
|
2013-08-27 22:24:25 +02:00
|
|
|
'<button type="submit">Save</button>' +
|
|
|
|
'</form>';
|
|
|
|
|
|
|
|
$(ev.target).closest('.xmpp-status').replaceWith(form);
|
|
|
|
$(ev.target).closest('.custom-xmpp-status').focus().focus();
|
|
|
|
});
|
|
|
|
|
2013-08-12 21:32:00 +02:00
|
|
|
$('.toggle-xmpp-contact-form').click(function (ev) {
|
|
|
|
ev.preventDefault();
|
|
|
|
$(ev.target).parent().parent().find('.search-xmpp').toggle('fast', function () {
|
|
|
|
if ($(this).is(':visible')) {
|
|
|
|
$(this).find('input.username').focus();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2013-08-11 14:38:40 +02:00
|
|
|
var switchTab = function (ev) {
|
|
|
|
ev.preventDefault();
|
|
|
|
var $tab = $(ev.target),
|
|
|
|
$sibling = $tab.parent().siblings('li').children('a'),
|
|
|
|
$tab_panel = $($tab.attr('href')),
|
|
|
|
$sibling_panel = $($sibling.attr('href'));
|
|
|
|
|
2014-05-11 20:09:16 +02:00
|
|
|
$sibling_panel.hide();
|
|
|
|
$sibling.removeClass('current');
|
|
|
|
$tab.addClass('current');
|
|
|
|
$tab_panel.show();
|
2013-08-11 14:38:40 +02:00
|
|
|
}
|
2013-08-25 21:42:24 +02:00
|
|
|
|
|
|
|
$(function() {
|
2014-01-17 03:22:57 +01:00
|
|
|
$('.close-chatbox-button').click(function(ev) {
|
|
|
|
var $grandparent = $(ev.target).parent().parent().parent();
|
|
|
|
$grandparent.hide(300, function () {
|
|
|
|
// Webkit fix
|
|
|
|
document.getElementById('conversejs').style.display = 'none';
|
|
|
|
document.getElementById('conversejs').offsetHeight; // no need to store this anywhere, the reference is enough
|
|
|
|
document.getElementById('conversejs').style.display = 'block';
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2015-10-31 17:30:06 +01:00
|
|
|
$('.toggle-occupants a').click(function (ev) {
|
2014-09-03 19:49:15 +02:00
|
|
|
var $el = $(ev.target);
|
|
|
|
if ($el.hasClass("icon-hide-users")) {
|
|
|
|
$el.removeClass('icon-hide-users').addClass('icon-show-users');
|
2015-10-31 17:30:06 +01:00
|
|
|
$('div.occupants').animate({width: 0}).hide();
|
2014-09-03 19:49:15 +02:00
|
|
|
$el.closest('.chat-area').animate({width: '100%'});
|
|
|
|
$el.closest('form.sendXMPPMessage').animate({width: '100%'});
|
|
|
|
} else {
|
|
|
|
$el.removeClass('icon-show-users').addClass('icon-hide-users');
|
|
|
|
$el.closest('.chat-area').animate({width: '200px'}, function () {
|
2015-10-31 17:30:06 +01:00
|
|
|
$('div.occupants').css({width: '100px'}).show();
|
2014-09-03 19:49:15 +02:00
|
|
|
});
|
|
|
|
$el.closest('form.sendXMPPMessage').animate({width: '200px'});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-01-22 22:50:39 +01:00
|
|
|
$('.toggle-chatbox-button').click(function(ev) {
|
2014-01-17 16:02:19 +01:00
|
|
|
var $grandparent = $(ev.target).parent().parent().parent();
|
2014-06-01 20:56:58 +02:00
|
|
|
$grandparent.fadeOut('fast');
|
2013-10-16 22:27:31 +02:00
|
|
|
});
|
|
|
|
|
2013-08-25 21:42:24 +02:00
|
|
|
// Clickable Dropdown
|
2013-08-25 22:10:32 +02:00
|
|
|
$('.toggle-otr').click(function(e) {
|
|
|
|
$('.toggle-otr ul').slideToggle(200);
|
2013-08-25 21:42:24 +02:00
|
|
|
e.stopPropagation();
|
|
|
|
});
|
2013-10-16 22:27:31 +02:00
|
|
|
|
|
|
|
$('.toggle-smiley').click(function(e) {
|
2013-10-20 18:13:34 +02:00
|
|
|
$(e.target).find('ul').slideToggle(200);
|
2013-10-16 22:27:31 +02:00
|
|
|
e.stopPropagation();
|
|
|
|
});
|
|
|
|
$(document).click(function() {
|
2013-10-20 18:13:34 +02:00
|
|
|
if ($('.toggle-otr ul').is(':visible')) {
|
|
|
|
$('.toggle-otr ul', this).slideUp(200);
|
|
|
|
}
|
2013-10-16 22:27:31 +02:00
|
|
|
if ($('.toggle-smiley ul').is(':visible')) {
|
|
|
|
$('.toggle-smiley ul', this).slideUp(200);
|
|
|
|
}
|
|
|
|
});
|
2013-08-25 21:42:24 +02:00
|
|
|
});
|
2013-08-11 14:38:40 +02:00
|
|
|
});
|
2013-08-09 20:26:30 +02:00
|
|
|
</script>
|
|
|
|
</html>
|