mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-20 11:18:03 +00:00
Remove clipboardJS and cryptoJS
This commit is contained in:
parent
39e4d3d56c
commit
a35083494d
@ -39,8 +39,6 @@ $(function() {
|
|||||||
let $currentInput = $usernameInput.focus();
|
let $currentInput = $usernameInput.focus();
|
||||||
let encryptionKey;
|
let encryptionKey;
|
||||||
|
|
||||||
let clipboard = new Clipboard('.copyable');
|
|
||||||
|
|
||||||
let roomId = window.location.pathname.length ? window.location.pathname : null;
|
let roomId = window.location.pathname.length ? window.location.pathname : null;
|
||||||
|
|
||||||
if (!roomId) return;
|
if (!roomId) return;
|
||||||
@ -418,31 +416,6 @@ $(function() {
|
|||||||
isActive = false;
|
isActive = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
$(e.trigger).tooltip({
|
|
||||||
title: 'Copied!',
|
|
||||||
trigger: 'manual',
|
|
||||||
placement: 'auto'
|
|
||||||
});
|
|
||||||
$(e.trigger).tooltip('show');
|
|
||||||
setTimeout(function() {
|
|
||||||
$(e.trigger).tooltip('hide');
|
|
||||||
}, 2000);
|
|
||||||
e.clearSelection();
|
|
||||||
});
|
|
||||||
|
|
||||||
clipboard.on('error', function(e) {
|
|
||||||
$(e.trigger).tooltip({
|
|
||||||
title: 'Press ⌘C to copy',
|
|
||||||
trigger: 'manual',
|
|
||||||
placement: 'auto'
|
|
||||||
});
|
|
||||||
$(e.trigger).tooltip('show');
|
|
||||||
setTimeout(function() {
|
|
||||||
$(e.trigger).tooltip('hide');
|
|
||||||
}, 2000);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Nav links
|
// Nav links
|
||||||
$('a#settings-nav').click(function() {
|
$('a#settings-nav').click(function() {
|
||||||
$('#settings-modal').modal('show');
|
$('#settings-modal').modal('show');
|
||||||
|
@ -197,9 +197,7 @@
|
|||||||
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
|
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
|
||||||
<script src="https://cdn.socket.io/socket.io-1.4.3.js"></script>
|
<script src="https://cdn.socket.io/socket.io-1.4.3.js"></script>
|
||||||
<script src="/favicon.js"></script>
|
<script src="/favicon.js"></script>
|
||||||
<script src="https://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/aes.js"></script>
|
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.5/clipboard.min.js"></script>
|
|
||||||
<script src="/vendor/uuid.js"></script>
|
<script src="/vendor/uuid.js"></script>
|
||||||
<script src="/vendor/autolinker.min.js"></script>
|
<script src="/vendor/autolinker.min.js"></script>
|
||||||
<script src="/vendor/underscore.min.js"></script>
|
<script src="/vendor/underscore.min.js"></script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user