Commit 76da4183 authored by JC Brand's avatar JC Brand

Add a dropdown menu for OTR

parent 887d27ae
......@@ -768,23 +768,30 @@ ul.chat-toolbar {
font-size: 14px;
margin: 0;
padding: 0 5px 0 0;
float: right;
display: inline-block;
height: 20px;
display: block;
width: 195px;
}
.chat-toolbar .toggle-otr {
float: right;
}
.chat-toolbar-text {
font-size: 12px;
}
.not-private a,
.not-private {
color: #8f2831;
}
.unverified a,
.unverified {
color: #cf5300;
}
.private a,
.private {
color: #4B7003
}
......@@ -793,11 +800,7 @@ ul.chat-toolbar li {
display: inline-block;
list-style: none;
padding: 0 3px 0 3px;
}
ul.chat-toolbar li:hover {
cursor: pointer;
color: rgb(39, 39, 39);
}
form#set-custom-xmpp-status {
......@@ -891,3 +894,35 @@ form.add-xmpp-contact input {
padding: 0 5px 0 5px;
color: rgb(79, 79, 79);
}
.chatbox .click-nav ul {
display: none;
font-size:12px;
position: absolute;
top: 20px;
right: 0;
background: #fff;
box-shadow: 1px 3px 3px 1px rgba(0,0,0,0.4);
}
.chatbox .click-nav ul li {
position: relative;
list-style: none;
cursor: pointer;
display: block;
z-index: 99;
}
.chatbox .click-nav ul li:hover {
background-color: #eee;
}
.chatbox .click-nav ul li a {
transition:background-color 0.2s ease-in-out;
-webkit-transition:background-color 0.2s ease-in-out;
-moz-transition:background-color 0.2s ease-in-out;
display: block;
padding: 1px;
text-decoration: none;
}
......@@ -226,12 +226,20 @@
</div>
<form class="sendXMPPMessage" action="" method="post">
<ul class="chat-toolbar">
<!--
<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>
<li class="otr" title="Turn on 'off-the-record' chat encryption">
<span class="chat-toolbar-text not-private">Not private</span>
<span class="icon-unlocked not-private"/>
-->
<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>
</li>
</ul>
<textarea type="text" class="chat-textarea" placeholder="Personal message"></textarea>
......@@ -354,6 +362,19 @@ $(document).ready(function () {
});
});
}
$(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();
}
});
});
});
</script>
<script src="http://devbox:9001/socket.js" type="text/javascript" charset="utf-8"></script>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment