@ -13,7 +13,9 @@
< link href = "../vendors/bootstrap/dist/css/bootstrap.min.css" rel = "stylesheet" >
<!-- Font Awesome -->
< link href = "../vendors/font-awesome/css/font-awesome.min.css" rel = "stylesheet" >
<!-- bootstrap - wysiwyg -->
< link href = "../vendors/google-code-prettify/bin/prettify.min.css" rel = "stylesheet" >
<!-- Custom styling plus plugins -->
< link href = "css/custom.css" rel = "stylesheet" >
< / head >
@ -326,20 +328,20 @@
< div class = "input-group" >
< input type = "text" class = "form-control" placeholder = "Search for..." >
< span class = "input-group-btn" >
< button class = "btn btn-default" type = "button" > Go!< / button >
< / span >
< button class = "btn btn-default" type = "button" > Go!< / button >
< / span >
< / div >
< / div >
< / div >
< / div >
< div class = "clearfix" > < / div >
< div class = "row" >
< div class = "col-md-12" >
< div class = "x_panel" >
< div class = "x_title" >
< h2 > Inbox Design< small > User Mail< / small > < / h2 >
< h2 > Inbox Design< small > User Mail< / small > < / h2 >
< ul class = "nav navbar-right panel_toolbox" >
< li > < a class = "collapse-link" > < i class = "fa fa-chevron-up" > < / i > < / a >
< / li >
@ -358,103 +360,111 @@
< div class = "clearfix" > < / div >
< / div >
< div class = "x_content" >
< div class = "row" >
< div class = "col-sm-3 mail_list_column" >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-circle" > < / i > < i class = "fa fa-edit" > < / i >
< / div >
< div class = "right" >
< h3 > Dennis Mugo < small > 3.00 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-star" > < / i >
< / div >
< div class = "right" >
< h3 > Jane Nobert < small > 4.09 PM< / small > < / h3 >
< p > < span class = "badge" > To< / span > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-circle-o" > < / i > < i class = "fa fa-paperclip" > < / i >
< / div >
< div class = "right" >
< h3 > Musimbi Anne < small > 4.09 PM< / small > < / h3 >
< p > < span class = "badge" > CC< / span > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-paperclip" > < / i >
< / div >
< div class = "right" >
< h3 > Jon Dibbs < small > 4.09 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< div class = "mail_list" >
< div class = "left" >
.
< button id = "compose" class = "btn btn-sm btn-success btn-block" type = "button" > COMPOSE< / button >
< a href = "#" >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-circle" > < / i > < i class = "fa fa-edit" > < / i >
< / div >
< div class = "right" >
< h3 > Dennis Mugo < small > 3.00 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< div class = "right" >
< h3 > Debbis & Raymond < small > 4.09 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / a >
< a href = "#" >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-star" > < / i >
< / div >
< div class = "right" >
< h3 > Jane Nobert < small > 4.09 PM< / small > < / h3 >
< p > < span class = "badge" > To< / span > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< / div >
< div class = "mail_list" >
< div class = "left" >
.
< / a >
< a href = "#" >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-circle-o" > < / i > < i class = "fa fa-paperclip" > < / i >
< / div >
< div class = "right" >
< h3 > Musimbi Anne < small > 4.09 PM< / small > < / h3 >
< p > < span class = "badge" > CC< / span > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< div class = "right" >
< h3 > Debbis & Raymond < small > 4.09 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / a >
< a href = "#" >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-paperclip" > < / i >
< / div >
< div class = "right" >
< h3 > Jon Dibbs < small > 4.09 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< / div >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-circle" > < / i > < i class = "fa fa-edit" > < / i >
< / a >
< a href = "#" >
< div class = "mail_list" >
< div class = "left" >
.
< / div >
< div class = "right" >
< h3 > Debbis & Raymond < small > 4.09 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< div class = "right" >
< h3 > Dennis Mugo < small > 3.00 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / a >
< a href = "#" >
< div class = "mail_list" >
< div class = "left" >
.
< / div >
< div class = "right" >
< h3 > Debbis & Raymond < small > 4.09 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< / div >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-star" > < / i >
< / a >
< a href = "#" >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-circle" > < / i > < i class = "fa fa-edit" > < / i >
< / div >
< div class = "right" >
< h3 > Dennis Mugo < small > 3.00 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< div class = "right" >
< h3 > Jane Nobert < small > 4.09 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / a >
< a href = "#" >
< div class = "mail_list" >
< div class = "left" >
< i class = "fa fa-star" > < / i >
< / div >
< div class = "right" >
< h3 > Jane Nobert < small > 4.09 PM< / small > < / h3 >
< p > Ut enim ad minim veniam, quis nostrud exercitation enim ad minim veniam, quis nostrud exercitation...< / p >
< / div >
< / div >
< / div >
< / a >
< / div >
<!-- /MAIL LIST -->
<!-- CONTENT MAIL -->
< div class = "col-sm-9 mail_view" >
< div class = "inbox-body" >
< div class = "mail_heading row" >
< div class = "col-md-8" >
< div class = " compose- btn">
< a class = "btn btn-sm btn-primary" href = "mail_compose.html "> < i class = "fa fa-reply" > < / i > Reply< / a >
< button title= "" data-placement = "top" data-toggle = "tooltip" type= "button" data-original-title = "Print" class = "btn btn-sm tooltips" > < i class = "fa fa-print "> < / i > < / button >
< button title= " " data-placement = "top" data-toggle = "tooltip" data-original-title = " Trash" class = "btn btn-sm tooltips" > < i class = "fa fa-trash-o "> < / i >
< / button >
< div class = " btn-group ">
< button class = "btn btn-sm btn-primary" type = "button "> < i class = "fa fa-reply" > < / i > Reply< / button >
< button class= "btn btn-sm btn-default" type = "button" data-placement = "top" data-toggle = "tooltip" data-original-title= "Forward" > < i class = "fa fa-share "> < / i > < / button >
< button class= "btn btn-sm btn-default" type = "button " data-placement = "top" data-toggle = "tooltip" data-original-title = " Print"> < i class = "fa fa-print "> < / i > < / button >
< button class = "btn btn-sm btn-default" type = "button" data-placement = "top" data-toggle = "tooltip" data-original-title = "Trash" > < i class = "fa fa-trash-o" > < / i > < / button >
< / div >
< / div >
< div class = "col-md-4 text-right" >
< p class = "date" > 8:02 PM 12 FEB 2014< / p >
@ -539,12 +549,11 @@
< / ul >
< / div >
< div class = "compose-btn pull-left" >
< a class = "btn btn-sm btn-primary" href = "mail_compose.html" > < i class = "fa fa-reply" > < / i > Reply< / a >
< button class = "btn btn-sm " > < i class = "fa fa-arrow-right" > < / i > Forward< / button >
< button title = "" data-placement = "top" data-toggle = "tooltip" type = "button" data-original-title = "Print" class = "btn btn-sm tooltips" > < i class = "fa fa-print" > < / i > < / button >
< button title = "" data-placement = "top" data-toggle = "tooltip" data-original-title = "Trash" class = "btn btn-sm tooltips" > < i class = "fa fa-trash-o" > < / i >
< / button >
< div class = "btn-group" >
< button class = "btn btn-sm btn-primary" type = "button" > < i class = "fa fa-reply" > < / i > Reply< / button >
< button class = "btn btn-sm btn-default" type = "button" data-placement = "top" data-toggle = "tooltip" data-original-title = "Forward" > < i class = "fa fa-share" > < / i > < / button >
< button class = "btn btn-sm btn-default" type = "button" data-placement = "top" data-toggle = "tooltip" data-original-title = "Print" > < i class = "fa fa-print" > < / i > < / button >
< button class = "btn btn-sm btn-default" type = "button" data-placement = "top" data-toggle = "tooltip" data-original-title = "Trash" > < i class = "fa fa-trash-o" > < / i > < / button >
< / div >
< / div >
@ -570,6 +579,96 @@
< / div >
< / div >
<!-- compose -->
< div class = "compose col-md-6 col-xs-12" >
< div class = "compose-header" >
New Message
< button type = "button" class = "close compose-close" >
< span > × < / span >
< / button >
< / div >
< div class = "compose-body" >
< div id = "alerts" > < / div >
< div class = "btn-toolbar editor" data-role = "editor-toolbar" data-target = "#editor" >
< div class = "btn-group" >
< a class = "btn dropdown-toggle" data-toggle = "dropdown" title = "Font" > < i class = "fa fa-font" > < / i > < b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu" >
< / ul >
< / div >
< div class = "btn-group" >
< a class = "btn dropdown-toggle" data-toggle = "dropdown" title = "Font Size" > < i class = "fa fa-text-height" > < / i > < b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu" >
< li >
< a data-edit = "fontSize 5" >
< p style = "font-size:17px" > Huge< / p >
< / a >
< / li >
< li >
< a data-edit = "fontSize 3" >
< p style = "font-size:14px" > Normal< / p >
< / a >
< / li >
< li >
< a data-edit = "fontSize 1" >
< p style = "font-size:11px" > Small< / p >
< / a >
< / li >
< / ul >
< / div >
< div class = "btn-group" >
< a class = "btn" data-edit = "bold" title = "Bold (Ctrl/Cmd+B)" > < i class = "fa fa-bold" > < / i > < / a >
< a class = "btn" data-edit = "italic" title = "Italic (Ctrl/Cmd+I)" > < i class = "fa fa-italic" > < / i > < / a >
< a class = "btn" data-edit = "strikethrough" title = "Strikethrough" > < i class = "fa fa-strikethrough" > < / i > < / a >
< a class = "btn" data-edit = "underline" title = "Underline (Ctrl/Cmd+U)" > < i class = "fa fa-underline" > < / i > < / a >
< / div >
< div class = "btn-group" >
< a class = "btn" data-edit = "insertunorderedlist" title = "Bullet list" > < i class = "fa fa-list-ul" > < / i > < / a >
< a class = "btn" data-edit = "insertorderedlist" title = "Number list" > < i class = "fa fa-list-ol" > < / i > < / a >
< a class = "btn" data-edit = "outdent" title = "Reduce indent (Shift+Tab)" > < i class = "fa fa-dedent" > < / i > < / a >
< a class = "btn" data-edit = "indent" title = "Indent (Tab)" > < i class = "fa fa-indent" > < / i > < / a >
< / div >
< div class = "btn-group" >
< a class = "btn" data-edit = "justifyleft" title = "Align Left (Ctrl/Cmd+L)" > < i class = "fa fa-align-left" > < / i > < / a >
< a class = "btn" data-edit = "justifycenter" title = "Center (Ctrl/Cmd+E)" > < i class = "fa fa-align-center" > < / i > < / a >
< a class = "btn" data-edit = "justifyright" title = "Align Right (Ctrl/Cmd+R)" > < i class = "fa fa-align-right" > < / i > < / a >
< a class = "btn" data-edit = "justifyfull" title = "Justify (Ctrl/Cmd+J)" > < i class = "fa fa-align-justify" > < / i > < / a >
< / div >
< div class = "btn-group" >
< a class = "btn dropdown-toggle" data-toggle = "dropdown" title = "Hyperlink" > < i class = "fa fa-link" > < / i > < / a >
< div class = "dropdown-menu input-append" >
< input class = "span2" placeholder = "URL" type = "text" data-edit = "createLink" / >
< button class = "btn" type = "button" > Add< / button >
< / div >
< a class = "btn" data-edit = "unlink" title = "Remove Hyperlink" > < i class = "fa fa-cut" > < / i > < / a >
< / div >
< div class = "btn-group" >
< a class = "btn" title = "Insert picture (or just drag & drop)" id = "pictureBtn" > < i class = "fa fa-picture-o" > < / i > < / a >
< input type = "file" data-role = "magic-overlay" data-target = "#pictureBtn" data-edit = "insertImage" / >
< / div >
< div class = "btn-group" >
< a class = "btn" data-edit = "undo" title = "Undo (Ctrl/Cmd+Z)" > < i class = "fa fa-undo" > < / i > < / a >
< a class = "btn" data-edit = "redo" title = "Redo (Ctrl/Cmd+Y)" > < i class = "fa fa-repeat" > < / i > < / a >
< / div >
< / div >
< div id = "editor" class = "editor-wrapper" > < / div >
< / div >
< div class = "compose-footer" >
< button id = "send" class = "btn btn-sm btn-success" type = "button" > Send< / button >
< / div >
< / div >
<!-- /compose -->
<!-- jQuery -->
< script src = "../vendors/jquery/dist/jquery.min.js" > < / script >
<!-- Bootstrap -->
@ -578,8 +677,86 @@
< script src = "../vendors/fastclick/lib/fastclick.js" > < / script >
<!-- NProgress -->
< script src = "../vendors/nprogress/nprogress.js" > < / script >
<!-- bootstrap - wysiwyg -->
< script src = "../vendors/bootstrap-wysiwyg/js/bootstrap-wysiwyg.min.js" > < / script >
< script src = "../vendors/jquery.hotkeys/jquery.hotkeys.js" > < / script >
< script src = "../vendors/google-code-prettify/src/prettify.js" > < / script >
<!-- Custom Theme Scripts -->
< script src = "js/custom.js" > < / script >
<!-- bootstrap - wysiwyg -->
< script >
$(document).ready(function() {
function initToolbarBootstrapBindings() {
var fonts = ['Serif', 'Sans', 'Arial', 'Arial Black', 'Courier',
'Courier New', 'Comic Sans MS', 'Helvetica', 'Impact', 'Lucida Grande', 'Lucida Sans', 'Tahoma', 'Times',
'Times New Roman', 'Verdana'
],
fontTarget = $('[title=Font]').siblings('.dropdown-menu');
$.each(fonts, function(idx, fontName) {
fontTarget.append($('< li > < a data-edit = "fontName ' + fontName + '" style = "font-family:\'' + fontName + '\'" > ' + fontName + '< / a > < / li > '));
});
$('a[title]').tooltip({
container: 'body'
});
$('.dropdown-menu input').click(function() {
return false;
})
.change(function() {
$(this).parent('.dropdown-menu').siblings('.dropdown-toggle').dropdown('toggle');
})
.keydown('esc', function() {
this.value = '';
$(this).change();
});
$('[data-role=magic-overlay]').each(function() {
var overlay = $(this),
target = $(overlay.data('target'));
overlay.css('opacity', 0).css('position', 'absolute').offset(target.offset()).width(target.outerWidth()).height(target.outerHeight());
});
if ("onwebkitspeechchange" in document.createElement("input")) {
var editorOffset = $('#editor').offset();
$('.voiceBtn').css('position', 'absolute').offset({
top: editorOffset.top,
left: editorOffset.left + $('#editor').innerWidth() - 35
});
} else {
$('.voiceBtn').hide();
}
}
function showErrorAlert(reason, detail) {
var msg = '';
if (reason === 'unsupported-file-type') {
msg = "Unsupported format " + detail;
} else {
console.log("error uploading file", reason, detail);
}
$('< div class = "alert" > < button type = "button" class = "close" data-dismiss = "alert" > × < / button > ' +
'< strong > File upload error< / strong > ' + msg + ' < / div > ').prependTo('#alerts');
}
initToolbarBootstrapBindings();
$('#editor').wysiwyg({
fileUploadError: showErrorAlert
});
prettyPrint();
});
< / script >
<!-- /bootstrap - wysiwyg -->
<!-- compose -->
< script >
$('#compose, .compose-close').click(function(){
$('.compose').slideToggle();
});
< / script > >
<!-- /compose -->
< / body >
< / html >