Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
76da4183
Commit
76da4183
authored
Aug 25, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a dropdown menu for OTR
parent
887d27ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
9 deletions
+65
-9
converse.css
converse.css
+41
-6
mockup.html
mockup.html
+24
-3
No files found.
converse.css
View file @
76da4183
...
...
@@ -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
;
}
mockup.html
View file @
76da4183
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment