2013-08-09 20:26:30 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset='utf-8' />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
|
|
|
|
<meta name="description" content="Converse.js: Open Source Browser-Based Instant Messaging" />
|
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
|
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="converse.css">
|
2013-08-11 14:38:40 +02:00
|
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
2013-08-09 20:26:30 +02:00
|
|
|
<title>Converse.js Mockup</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2013-08-15 18:30:12 +02:00
|
|
|
<!-- HEADER -->
|
|
|
|
<div id="header_wrap" class="outer">
|
2013-08-09 20:26:30 +02:00
|
|
|
<header class="inner">
|
|
|
|
<h1 id="project_title"><a href="http://conversejs.org">Converse.js</a></h1>
|
|
|
|
<h2 id="project_tagline">Static Mockup</h2>
|
|
|
|
</header>
|
2013-08-15 18:30:12 +02:00
|
|
|
</div>
|
2013-08-09 20:26:30 +02:00
|
|
|
|
2013-08-11 14:38:40 +02:00
|
|
|
<div id="chatpanel" style="width: 100%;">
|
2013-08-09 20:26:30 +02:00
|
|
|
<div id="collective-xmpp-chat-data">
|
|
|
|
<div id="controlbox" class="chatbox" style="opacity: 1; display: inline;">
|
|
|
|
<div class="chat-head oc-chat-head">
|
2013-08-12 21:07:35 +02:00
|
|
|
<ul id="controlbox-tabs">
|
|
|
|
<li><a class="current" href="#login">Sign in</a></li>
|
|
|
|
</ul>
|
|
|
|
<a class="close-chatbox-button icon-close"></a></div>
|
2013-08-09 20:26:30 +02:00
|
|
|
<div id="controlbox-panes">
|
|
|
|
<div id="login-dialog">
|
|
|
|
<form id="converse-login">
|
|
|
|
<label>XMPP/Jabber Username:</label><input type="text" id="jid">
|
|
|
|
<label>Password:</label><input type="password" id="password">
|
|
|
|
<input class="login-submit" type="submit" value="Log In">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-08-11 14:38:40 +02:00
|
|
|
|
2013-08-09 20:26:30 +02:00
|
|
|
<div id="controlbox" class="chatbox" style="opacity: 1; display: inline;">
|
|
|
|
<div class="chat-head oc-chat-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>
|
2013-08-12 21:07:35 +02:00
|
|
|
<a class="close-chatbox-button icon-close"></a>
|
2013-08-09 20:26:30 +02:00
|
|
|
</div>
|
|
|
|
<div id="controlbox-panes">
|
|
|
|
<div id="users" class="oc-chat-content" style="display: block;">
|
|
|
|
<form class="set-xmpp-status" action="" method="post">
|
|
|
|
<span id="xmpp-status-holder">
|
|
|
|
<dl id="target" class="dropdown">
|
|
|
|
<dt id="fancy-xmpp-status-select" class="fancy-dropdown">
|
|
|
|
<div class="xmpp-status">
|
2013-08-15 20:13:50 +02:00
|
|
|
<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>
|
2013-08-12 20:52:30 +02:00
|
|
|
<a class="change-xmpp-status-message icon-pencil" href="#" title="Click here to write a custom status message"></a>
|
2013-08-09 20:26:30 +02:00
|
|
|
</div>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
2013-08-12 21:32:00 +02:00
|
|
|
<ul style="display: none;" class="xmpp-status-menu">
|
|
|
|
<li>
|
|
|
|
<a href="#" class="online" data-value="online">
|
2013-08-15 19:36:19 +02:00
|
|
|
<span class="icon-online"></span>
|
2013-08-12 21:32:00 +02:00
|
|
|
Online</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="dnd" data-value="dnd">
|
2013-08-15 19:36:19 +02:00
|
|
|
<span class="icon-dnd"></span>
|
2013-08-12 21:32:00 +02:00
|
|
|
Busy</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="away" data-value="away">
|
2013-08-15 19:36:19 +02:00
|
|
|
<span class="icon-away"></span>
|
2013-08-12 21:32:00 +02:00
|
|
|
Away</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="offline" data-value="offline">
|
|
|
|
<span class="icon-offline"></span>
|
|
|
|
Offline</a>
|
|
|
|
</li>
|
2013-08-09 20:26:30 +02:00
|
|
|
</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">
|
2013-08-09 23:16:46 +02:00
|
|
|
<span class="icon-plus"></span>
|
2013-08-09 20:26:30 +02:00
|
|
|
Add a contact
|
|
|
|
</a>
|
|
|
|
</dt>
|
|
|
|
<dd class="search-xmpp" style="display:none">
|
|
|
|
<ul>
|
|
|
|
<li>
|
2013-08-12 21:32:00 +02:00
|
|
|
<form class="add-xmpp-contact">
|
|
|
|
<input type="text" name="identifier" class="username" placeholder="Contact username">
|
|
|
|
<button type="submit">Add</button>
|
|
|
|
</form>
|
2013-08-09 20:26:30 +02:00
|
|
|
</li>
|
|
|
|
<li></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<dl id="converse-roster" style="display: block;">
|
|
|
|
<dt id="xmpp-contacts" style="display: block;">My contacts</dt>
|
|
|
|
<dd class="online current-xmpp-contact">
|
2013-08-12 19:22:43 +02:00
|
|
|
<a class="open-chat" title="Click to chat with this contact" href="#">
|
2013-08-15 19:36:19 +02:00
|
|
|
<span class="icon-online" title="This contact is online"></span>
|
2013-08-12 22:10:01 +02:00
|
|
|
John Smit</a>
|
2013-08-09 20:26:30 +02:00
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dd class="dnd current-xmpp-contact">
|
2013-08-12 19:22:43 +02:00
|
|
|
<a class="open-chat" title="Click to chat with this contact" href="#">
|
2013-08-15 19:36:19 +02:00
|
|
|
<span class="icon-away" title="this contact is away"></span>
|
2013-08-12 19:22:43 +02:00
|
|
|
Francois Pienaar</a>
|
2013-08-09 20:26:30 +02:00
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
<dd class="busy current-xmpp-contact">
|
2013-08-12 19:22:43 +02:00
|
|
|
<a class="open-chat" title="Click to chat with this contact" href="#">
|
2013-08-15 19:36:19 +02:00
|
|
|
<span class="icon-dnd" title="This contact is busy"></span>
|
2013-08-12 19:22:43 +02:00
|
|
|
Gary Teichmann</a>
|
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
2013-08-09 20:26:30 +02:00
|
|
|
</dd>
|
|
|
|
<dd class="offline current-xmpp-contact">
|
2013-08-12 19:22:43 +02:00
|
|
|
<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>
|
2013-08-09 20:26:30 +02:00
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
2013-08-12 19:22:43 +02:00
|
|
|
|
|
|
|
<dt id="xmpp-contact-requests" style="display: block;">Contact requests</dt>
|
|
|
|
<dd class="offline requesting-xmpp-contact">
|
2013-08-12 22:10:01 +02:00
|
|
|
<div>Bob Skinstad</div>
|
2013-08-12 19:22:43 +02:00
|
|
|
<button type="button" class="accept-xmpp-request">Accept</button>
|
|
|
|
<button type="button" class="decline-xmpp-request">Decline</button>
|
|
|
|
</dd>
|
|
|
|
<dd class="offline requesting-xmpp-contact">
|
2013-08-12 22:10:01 +02:00
|
|
|
<div>André Vos</div>
|
2013-08-12 19:22:43 +02:00
|
|
|
<button type="button" class="accept-xmpp-request">Accept</button>
|
|
|
|
<button type="button" class="decline-xmpp-request">Decline</button>
|
|
|
|
</dd>
|
|
|
|
|
2013-08-09 20:26:30 +02:00
|
|
|
<dt id="pending-xmpp-contacts" style="display: block;">Pending contacts</dt>
|
2013-08-12 22:10:01 +02:00
|
|
|
<dd class="offline pending-xmpp-contact"><span>Rassie Erasmus</span>
|
2013-08-09 20:26:30 +02:00
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
2013-08-10 09:04:13 +02:00
|
|
|
<dd class="offline pending-xmpp-contact"><span>Victor Matfield</span>
|
2013-08-09 20:26:30 +02:00
|
|
|
<a class="remove-xmpp-contact icon-remove" title="Click to remove this contact" href="#"></a>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<div id="chatrooms" style="display: none;">
|
2013-08-11 14:38:40 +02:00
|
|
|
<form class="add-chatroom" action="" method="post">
|
|
|
|
<input type="text" name="chatroom" class="new-chatroom-name" placeholder="Room name">
|
|
|
|
<input type="text" name="nick" class="new-chatroom-nick" placeholder="Nickname">
|
|
|
|
<input type="text" name="server" class="new-chatroom-server" placeholder="Server">
|
|
|
|
<input type="submit" name="join" value="Join">
|
|
|
|
<input type="button" name="show" id="show-rooms" value="Show rooms" style="display: inline-block;">
|
|
|
|
</form>
|
|
|
|
<dl id="available-chatrooms">
|
|
|
|
<dt>Rooms on conference.opkode.im</dt>
|
|
|
|
<dd class="available-chatroom">
|
|
|
|
<a class="open-room"
|
2013-08-12 20:52:30 +02:00
|
|
|
data-room-jid="converse.js@conference.opkode.im"
|
|
|
|
title="Click to open this room" href="#">converse.js (2)</a>
|
2013-08-15 20:35:44 +02:00
|
|
|
<a class="room-info icon-room-info"
|
2013-08-12 20:52:30 +02:00
|
|
|
data-room-jid="converse.js@conference.opkode.im"
|
|
|
|
title="Show more information on this room" href="#"> </a>
|
2013-08-11 14:38:40 +02:00
|
|
|
<div class="room-info">
|
|
|
|
<p class="room-info"><strong>Description:</strong></p>
|
|
|
|
<p class="room-info"><strong>Occupants:</strong> 2</p>
|
|
|
|
<p class="room-info"><strong>Features:</strong> </p>
|
|
|
|
<ul>
|
|
|
|
<li class="room-info">Moderated</li><li class="room-info">Open room</li>
|
|
|
|
<li class="room-info">Permanent room</li><li class="room-info">Public</li>
|
|
|
|
<li class="room-info">Semi-anonymous</li>
|
2013-08-12 21:32:00 +02:00
|
|
|
<li class="room-info">Requires authentication <span class="icon-lock"></span></li>
|
2013-08-11 14:38:40 +02:00
|
|
|
<p></p>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
2013-08-09 20:26:30 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-08-11 14:38:40 +02:00
|
|
|
|
2013-08-09 20:26:30 +02:00
|
|
|
<div class="chatbox" id="37c0c87392010303765fe36b05c0967d62c6b70f" style="opacity: 1; display: inline;">
|
|
|
|
<div class="chat-head chat-head-chatbox">
|
2013-08-12 21:07:35 +02:00
|
|
|
<a class="close-chatbox-button icon-close"></a>
|
2013-08-24 16:28:59 +02:00
|
|
|
<a href="http://opkode.com" target="_blank" class="user">
|
2013-08-25 13:50:04 +02:00
|
|
|
<canvas height="33px" width="33px" class="avatar" style="background-color: black"></canvas>
|
2013-08-24 16:28:59 +02:00
|
|
|
<div class="chat-title"> JC Brand </div>
|
2013-08-09 20:26:30 +02:00
|
|
|
</a>
|
|
|
|
<p class="user-custom-message"></p>
|
|
|
|
<p></p>
|
|
|
|
</div>
|
2013-08-12 20:10:12 +02:00
|
|
|
<div class="chat-content">
|
2013-08-25 12:48:24 +02:00
|
|
|
<div class="chat-info"><strong>/help</strong>:Show this menu</div>
|
|
|
|
<div class="chat-info"><strong>/me</strong>:Write in the third person</div>
|
2013-08-12 20:10:12 +02:00
|
|
|
<div class="chat-message">
|
2013-08-25 12:48:24 +02:00
|
|
|
<span class="chat-message-me">09:35 me: </span>
|
2013-08-15 22:50:13 +02:00
|
|
|
<span class="chat-message-content">Hello world</span>
|
|
|
|
</div>
|
2013-08-24 16:28:59 +02:00
|
|
|
<div class="chat-message ">
|
2013-08-25 12:48:24 +02:00
|
|
|
<span class="chat-message-them">19:25 Benedict-John: </span>
|
2013-08-24 16:28:59 +02:00
|
|
|
<span class="chat-message-content">Dagsê</span>
|
2013-08-15 22:50:13 +02:00
|
|
|
</div>
|
|
|
|
<div class="chat-message">
|
|
|
|
<span class="chat-message-me">19:39 me: </span>
|
2013-08-24 17:09:40 +02:00
|
|
|
<span class="chat-message-content">This is a relatively long message to check that wrapping works as expected.</span>
|
2013-08-15 22:50:13 +02:00
|
|
|
</div>
|
|
|
|
<div class="chat-message">
|
2013-08-25 12:48:24 +02:00
|
|
|
<span class="chat-message-me">19:42 me: </span>
|
|
|
|
<span class="chat-message-content">Supercalifragilisticexpialidociousstillnotlongenough</span>
|
2013-08-15 22:50:13 +02:00
|
|
|
</div>
|
2013-08-25 12:48:24 +02:00
|
|
|
<div class="chat-event">JC Brand is busy</div>
|
2013-08-25 13:50:04 +02:00
|
|
|
<div class="chat-message ">
|
|
|
|
<span class="chat-message-me">19:43 me: </span>
|
|
|
|
<span class="chat-message-content">Another message to check that scrolling works.</span>
|
|
|
|
</div>
|
2013-08-12 20:10:12 +02:00
|
|
|
</div>
|
|
|
|
<form class="sendXMPPMessage" action="" method="post">
|
2013-08-15 21:22:14 +02:00
|
|
|
<ul class="chat-toolbar">
|
2013-08-25 21:42:24 +02:00
|
|
|
<!--
|
2013-08-15 22:50:13 +02:00
|
|
|
<li class="icon-happy" title="Insert a smilery"></li>
|
|
|
|
<li class="icon-camera-2" title="Enable video chat"></li>
|
|
|
|
<li class="icon-newspaper" title="Fetch and show this user's vCard"></li>
|
2013-08-25 21:42:24 +02:00
|
|
|
-->
|
|
|
|
<li class="toggle-otr click-nav not-private" title="Turn on 'off-the-record' chat encryption">
|
|
|
|
<span class="chat-toolbar-text">Not private</span>
|
|
|
|
<span class="icon-unlocked"></span>
|
|
|
|
<ul>
|
|
|
|
<li><a href="#">Start private conversation</a></li>
|
|
|
|
<li><a href="#">End private conversation</a></li>
|
|
|
|
<li><a href="#">Authenticate buddy</a></li>
|
|
|
|
<li><a href="http://www.cypherpunks.ca/otr/help/3.2.0/levels.php">What's this?</a></li>
|
|
|
|
</ul>
|
2013-08-25 14:30:59 +02:00
|
|
|
</li>
|
2013-08-15 21:22:14 +02:00
|
|
|
</ul>
|
2013-08-15 22:50:13 +02:00
|
|
|
<textarea type="text" class="chat-textarea" placeholder="Personal message"></textarea>
|
2013-08-12 20:10:12 +02:00
|
|
|
</form>
|
2013-08-09 20:26:30 +02:00
|
|
|
</div>
|
2013-08-11 14:38:40 +02:00
|
|
|
|
|
|
|
<div class="chatroom" id="4a77380f1cd9d392627b0e1469688f9ca44e9392" style="opacity: 1; display: inline;">
|
|
|
|
<div class="chat-head chat-head-chatroom">
|
2013-08-12 21:07:35 +02:00
|
|
|
<a class="close-chatbox-button icon-close"></a>
|
|
|
|
<a class="configure-chatroom-button icon-wrench" style=""></a>
|
2013-08-24 16:28:59 +02:00
|
|
|
<div class="chat-title"> Chatroom </div>
|
2013-08-11 14:38:40 +02:00
|
|
|
<p class="chatroom-topic"></p>
|
|
|
|
<p></p>
|
|
|
|
</div>
|
|
|
|
<div class="chat-body">
|
|
|
|
<div class="chat-area">
|
|
|
|
<div class="chat-content">
|
|
|
|
<time class="chat-date" datetime="2013-06-04T00:00:00.000Z">Tue Jun 04 2013</time>
|
|
|
|
<div class="chat-message ">
|
2013-08-24 16:28:59 +02:00
|
|
|
<span class="chat-message-room">18:50 luke: </span>
|
|
|
|
<span class="chat-message-content">leia: hi :)</span>
|
2013-08-11 14:38:40 +02:00
|
|
|
</div>
|
|
|
|
<div class="chat-message ">
|
2013-08-25 12:48:24 +02:00
|
|
|
<span class="chat-message-room">19:40 leia: </span>
|
2013-08-11 14:38:40 +02:00
|
|
|
<span class="chat-message-content">
|
|
|
|
I'll be gone for a while, will be back in about an hour</span>
|
|
|
|
</div>
|
2013-08-25 12:48:24 +02:00
|
|
|
<div class="chat-message ">
|
|
|
|
<span class="chat-message-room">19:40 Obi-wan Kenobi, Jedi Master: </span>
|
2013-08-11 14:38:40 +02:00
|
|
|
<span class="chat-message-content">
|
|
|
|
I'll be gone for a while, will be back in about an hour</span>
|
|
|
|
</div>
|
2013-08-25 12:48:24 +02:00
|
|
|
<div class="chat-message">
|
|
|
|
<span class="chat-message-me">19:42 me: </span>
|
|
|
|
<span class="chat-message-content">Supercalifragilisticexpialidociousstillnotlongenough</span>
|
|
|
|
</div>
|
2013-08-25 13:50:04 +02:00
|
|
|
<div class="chat-message ">
|
|
|
|
<span class="chat-message-room">19:43 Obi-wan Kenobi, Jedi Master: </span>
|
|
|
|
<span class="chat-message-content">Another message to check that scrolling works.</span>
|
|
|
|
</div>
|
2013-08-11 14:38:40 +02:00
|
|
|
</div>
|
|
|
|
<form class="sendXMPPMessage" action="" method="post">
|
|
|
|
<textarea type="text" class="chat-textarea" placeholder="Message"></textarea>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="participants">
|
|
|
|
<ul class="participant-list">
|
2013-08-25 12:48:24 +02:00
|
|
|
<li class="participant" title="This user can send messages in this room">Obi-wan Kenobi, Jedi Master</li>
|
|
|
|
<li class="participant" title="This user can send messages in this room">jabber the hut</li>
|
2013-08-24 16:28:59 +02:00
|
|
|
<li class="participant" title="This user can send messages in this room">leia</li>
|
|
|
|
<li class="moderator" title="This user is a moderator">luke</li>
|
2013-08-11 14:38:40 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-08-12 20:10:12 +02:00
|
|
|
<div class="chatroom" id="6d8627960a0cb066d9216742f3edccc3dbbf85a9" style="opacity: 1; display: inline;">
|
|
|
|
<div class="chat-head chat-head-chatroom">
|
2013-08-12 21:07:35 +02:00
|
|
|
<a class="close-chatbox-button icon-close"></a>
|
2013-08-12 20:10:12 +02:00
|
|
|
<a class="configure-chatroom-button" style="display:none"> </a>
|
2013-08-24 16:28:59 +02:00
|
|
|
<div class="chat-title"> Restricted Chatroom</div>
|
2013-08-12 20:10:12 +02:00
|
|
|
<p class="chatroom-topic"></p>
|
|
|
|
<p></p>
|
|
|
|
</div>
|
|
|
|
<div class="chat-body">
|
|
|
|
<div class="chatroom-form-container">
|
|
|
|
<form class="chatroom-form">
|
|
|
|
<legend>This chatroom requires a password</legend>
|
|
|
|
<label>Password: <input type="password" name="password"></label>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div id="toggle-controlbox">
|
|
|
|
<a href="#" class="chat toggle-online-users">
|
|
|
|
<strong class="conn-feedback">Toggle chat</strong> <strong style="display: none" id="online-count">(0)</strong>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2013-08-09 20:26:30 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
<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);
|
|
|
|
});
|
|
|
|
|
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');
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.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'));
|
|
|
|
|
|
|
|
$sibling_panel.fadeOut('fast', function () {
|
|
|
|
$sibling.removeClass('current');
|
|
|
|
$tab.addClass('current');
|
|
|
|
$tab_panel.fadeIn('fast', function () {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
2013-08-25 21:42:24 +02:00
|
|
|
|
|
|
|
$(function() {
|
|
|
|
// Clickable Dropdown
|
|
|
|
$('.click-nav').click(function(e) {
|
|
|
|
$('.click-nav ul').slideToggle(200);
|
|
|
|
e.stopPropagation();
|
|
|
|
});
|
|
|
|
$(document).click(function() {
|
|
|
|
if ($('.click-nav ul').is(':visible')) {
|
|
|
|
$('.click-nav ul', this).slideUp();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
2013-08-11 14:38:40 +02:00
|
|
|
});
|
2013-08-09 20:26:30 +02:00
|
|
|
</script>
|
2013-08-15 18:30:12 +02:00
|
|
|
<script src="http://devbox:9001/socket.js" type="text/javascript" charset="utf-8"></script>
|
2013-08-09 20:26:30 +02:00
|
|
|
</html>
|