Prefer single quotes
// FREEBIE
This commit is contained in:
parent
0e2d2d60c2
commit
1d6e391dd6
4 changed files with 78 additions and 78 deletions
120
background.html
120
background.html
|
@ -61,14 +61,14 @@
|
|||
|
||||
<div class='discussion-container'></div>
|
||||
|
||||
<div class="bottom-bar" id='footer'>
|
||||
<div class='bottom-bar' id='footer'>
|
||||
<form class='send'>
|
||||
<div class='attachment-previews'></div>
|
||||
<div class='choose-file'>
|
||||
<div class='paperclip thumbnail'></div>
|
||||
<input type='file' class='file-input'>
|
||||
</div>
|
||||
<textarea class='send-message' placeholder="{{ send-message }}" rows="1"></textarea>
|
||||
<textarea class='send-message' placeholder='{{ send-message }}' rows='1'></textarea>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -81,15 +81,15 @@
|
|||
</div>
|
||||
</script>
|
||||
<script type='text/x-tmpl-mustache' id='attachment-preview'>
|
||||
<img src="{{ source }}" class="preview" />
|
||||
<div class="close">x</div>
|
||||
<img src='{{ source }}' class='preview' />
|
||||
<div class='close'>x</div>
|
||||
</script>
|
||||
<script type='text/x-tmpl-mustache' id='message'>
|
||||
{{> avatar }}
|
||||
<div class="bubble">
|
||||
<div class='bubble'>
|
||||
<div class='sender'>{{ sender }}</div>
|
||||
<div class='attachments'></div>
|
||||
<p class="content">{{ message }}</p>
|
||||
<p class='content'>{{ message }}</p>
|
||||
<div class='meta'>
|
||||
<span class='timestamp' data-timestamp={{ timestamp }}></span>
|
||||
<span class='status hide'></span>
|
||||
|
@ -108,9 +108,9 @@
|
|||
</div>
|
||||
</script>
|
||||
<script type='text/x-tmpl-mustache' id='identicon-svg'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
|
||||
<circle cx="50" cy="50" r="40" fill="{{ color }}" />
|
||||
<text text-anchor="middle" fill="white" font-size="24px" x="50" y="50" baseline-shift="-8px">
|
||||
<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'>
|
||||
<circle cx='50' cy='50' r='40' fill='{{ color }}' />
|
||||
<text text-anchor='middle' fill='white' font-size='24px' x='50' y='50' baseline-shift='-8px'>
|
||||
{{ content }}
|
||||
</text>
|
||||
</svg>
|
||||
|
@ -149,10 +149,10 @@
|
|||
<p class='last-message'> {{ last_message }} </p>
|
||||
</div>
|
||||
</script>
|
||||
<script type="text/x-tmpl-mustache" id="phone-number">
|
||||
<div class="phone-input-form">
|
||||
<div class="number-container">
|
||||
<input type="tel" class="number" placeholder="Phone Number" />
|
||||
<script type='text/x-tmpl-mustache' id='phone-number'>
|
||||
<div class='phone-input-form'>
|
||||
<div class='number-container'>
|
||||
<input type='tel' class='number' placeholder="Phone Number" />
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
@ -227,7 +227,7 @@
|
|||
</div>
|
||||
</script>
|
||||
<!-- index -->
|
||||
<script type="text/x-tmpl-mustache" id="inbox">
|
||||
<script type='text/x-tmpl-mustache' id='inbox'>
|
||||
<div class='title-bar' id='header'>
|
||||
<div class='socket-status'></div>
|
||||
</div>
|
||||
|
@ -244,7 +244,7 @@
|
|||
</div>
|
||||
<input type='file' name='avatar' class='file-input'>
|
||||
</div>
|
||||
<input type='text' name='name' class='name' placeholder='Group Name' value="{{ name }}">
|
||||
<input type='text' name='name' class='name' placeholder='Group Name' value='{{ name }}'>
|
||||
</div>
|
||||
</script>
|
||||
<script type='text/x-tmpl-mustache' id='new-conversation'>
|
||||
|
@ -262,7 +262,7 @@
|
|||
<script type='text/x-tmpl-mustache' id='recipients-input'>
|
||||
<div class='recipients-container'>
|
||||
<span class='recipients'></span>
|
||||
<input type='text' class='search' placeholder="{{ placeholder }}" />
|
||||
<input type='text' class='search' placeholder='{{ placeholder }}' />
|
||||
</div>
|
||||
<div class='results'>
|
||||
<div class='new-contact contact hide'></div>
|
||||
|
@ -305,8 +305,8 @@
|
|||
<a class='x close'>×</a>
|
||||
<h1> Submit Debug Log </h1>
|
||||
<form>
|
||||
<textarea rows="5"></textarea>
|
||||
<input class="submit" type='submit' value='Create Public Gist' />
|
||||
<textarea rows='5'></textarea>
|
||||
<input class='submit' type='submit' value='Create Public Gist' />
|
||||
<button class='close'>Cancel</button>
|
||||
</form>
|
||||
<div class='result'>
|
||||
|
@ -314,52 +314,52 @@
|
|||
<div><button class='close'>Got it!</button></div>
|
||||
</div>
|
||||
</script>
|
||||
<script type="text/javascript" src="js/debugLog.js"></script>
|
||||
<script type="text/javascript" src="js/components.js"></script>
|
||||
<script type="text/javascript" src="js/database.js"></script>
|
||||
<script type="text/javascript" src="js/storage.js"></script>
|
||||
<script type="text/javascript" src="js/axolotl_store.js"></script>
|
||||
<script type="text/javascript" src="js/libtextsecure.js"></script>
|
||||
<script type='text/javascript' src='js/debugLog.js'></script>
|
||||
<script type='text/javascript' src='js/components.js'></script>
|
||||
<script type='text/javascript' src='js/database.js'></script>
|
||||
<script type='text/javascript' src='js/storage.js'></script>
|
||||
<script type='text/javascript' src='js/axolotl_store.js'></script>
|
||||
<script type='text/javascript' src='js/libtextsecure.js'></script>
|
||||
|
||||
<script type="text/javascript" src="js/notifications.js"></script>
|
||||
<script type="text/javascript" src="js/libphonenumber-util.js"></script>
|
||||
<script type="text/javascript" src="js/models/messages.js"></script>
|
||||
<script type="text/javascript" src="js/models/conversations.js"></script>
|
||||
<script type='text/javascript' src='js/notifications.js'></script>
|
||||
<script type='text/javascript' src='js/libphonenumber-util.js'></script>
|
||||
<script type='text/javascript' src='js/models/messages.js'></script>
|
||||
<script type='text/javascript' src='js/models/conversations.js'></script>
|
||||
|
||||
<script type="text/javascript" src="js/chromium.js"></script>
|
||||
<script type="text/javascript" src="js/conversation_controller.js"></script>
|
||||
<script type="text/javascript" src="js/panel_controller.js"></script>
|
||||
<script type='text/javascript' src='js/chromium.js'></script>
|
||||
<script type='text/javascript' src='js/conversation_controller.js'></script>
|
||||
<script type='text/javascript' src='js/panel_controller.js'></script>
|
||||
|
||||
<script type="text/javascript" src="js/views/whisper_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/debug_log_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/toast_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/attachment_preview_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/file_input_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/list_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/conversation_list_item_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/conversation_list_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/contact_list_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/recipients_input_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/new_group_update_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/attachment_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/key_conflict_dialogue_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/error_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/timestamp_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/message_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/key_verification_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/message_detail_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/message_list_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/group_member_list_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/conversation_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/new_conversation_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/conversation_search_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/window_controls_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/hint_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/inbox_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/confirmation_dialog_view.js"></script>
|
||||
<script type="text/javascript" src="js/views/identicon_svg_view.js"></script>
|
||||
<script type='text/javascript' src='js/views/whisper_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/debug_log_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/toast_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/attachment_preview_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/file_input_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/list_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/conversation_list_item_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/conversation_list_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/contact_list_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/recipients_input_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/new_group_update_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/attachment_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/key_conflict_dialogue_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/error_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/timestamp_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/message_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/key_verification_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/message_detail_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/message_list_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/group_member_list_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/conversation_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/new_conversation_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/conversation_search_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/window_controls_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/hint_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/inbox_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/confirmation_dialog_view.js'></script>
|
||||
<script type='text/javascript' src='js/views/identicon_svg_view.js'></script>
|
||||
|
||||
<script type="text/javascript" src="js/background.js"></script>
|
||||
<script type='text/javascript' src='js/background.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
|
|
|
@ -8,21 +8,21 @@
|
|||
// TODO: Factor out private and group subclasses of Conversation
|
||||
|
||||
var COLORS = [
|
||||
"#EF5350", // red
|
||||
"#EC407A", // pink
|
||||
"#AB47BC", // purple
|
||||
"#7E57C2", // deep purple
|
||||
"#5C6BC0", // indigo
|
||||
"#2196F3", // blue
|
||||
"#03A9F4", // light blue
|
||||
"#00BCD4", // cyan
|
||||
"#009688", // teal
|
||||
"#4CAF50", // green
|
||||
"#7CB342", // light green
|
||||
"#FF9800", // orange
|
||||
"#FF5722", // deep orange
|
||||
"#FFB300", // amber
|
||||
"#607D8B", // blue grey
|
||||
'#EF5350', // red
|
||||
'#EC407A', // pink
|
||||
'#AB47BC', // purple
|
||||
'#7E57C2', // deep purple
|
||||
'#5C6BC0', // indigo
|
||||
'#2196F3', // blue
|
||||
'#03A9F4', // light blue
|
||||
'#00BCD4', // cyan
|
||||
'#009688', // teal
|
||||
'#4CAF50', // green
|
||||
'#7CB342', // light green
|
||||
'#FF9800', // orange
|
||||
'#FF5722', // deep orange
|
||||
'#FFB300', // amber
|
||||
'#607D8B', // blue grey
|
||||
];
|
||||
|
||||
Whisper.Conversation = Backbone.Model.extend({
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
var ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(img, 0, 0);
|
||||
URL.revokeObjectURL(svgurl);
|
||||
resolve(canvas.toDataURL("image/png"));
|
||||
resolve(canvas.toDataURL('image/png'));
|
||||
};
|
||||
|
||||
img.src = svgurl;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
var URL_REGEX = /(^|[\s\n]|<br\/?>)((?:https?|ftp):\/\/[\-A-Z0-9\u00A0-\uD7FF\uE000-\uFDCF\uFDF0-\uFFFD+\u0026\u2019@#\/%?=()~_|!:,.;]*[\-A-Z0-9+\u0026@#\/%=~()_|])/gi;
|
||||
|
||||
Whisper.MessageView = Whisper.View.extend({
|
||||
tagName: "li",
|
||||
tagName: 'li',
|
||||
templateName: 'message',
|
||||
initialize: function() {
|
||||
this.listenTo(this.model, 'change:errors', this.onErrorsChanged);
|
||||
|
@ -30,7 +30,7 @@
|
|||
e.stopPropagation();
|
||||
},
|
||||
className: function() {
|
||||
return ["entry", this.model.get('type')].join(' ');
|
||||
return ['entry', this.model.get('type')].join(' ');
|
||||
},
|
||||
renderPending: function() {
|
||||
this.$el.addClass('pending');
|
||||
|
|
Loading…
Reference in a new issue