Commit 87043fa0 authored by Lucas Saliés Brum's avatar Lucas Saliés Brum 🖐🏻

Autocommit por GitLab.sh: alterações: add 'index.php' add 'js/script.js'

parent 3553d4cb
......@@ -119,7 +119,7 @@
<script src="//code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="js/clipboard.min.js"></script>
<script src="js/clipboard.js"></script>
<!-- <script src="js/clipboard.js"></script> -->
<script src="js/script.js"></script>
</body>
</html>
\ No newline at end of file
$(function() {
new ClipboardJS('.copiar');
//new ClipboardJS('.copiar');
// Tooltip
$('button').tooltip({
trigger: 'click',
placement: 'bottom'
});
function setTooltip(btn, message) {
$(btn).tooltip('hide')
.attr('data-original-title', message)
.tooltip('show');
}
function hideTooltip(btn) {
setTimeout(function() {
$(btn).tooltip('hide');
}, 1000);
}
// Clipboard
//var clipboard = new Clipboard('button');
var clipboard = new ClipboardJS('.copiar');
clipboard.on('success', function(e) {
setTooltip(e.trigger, 'Copied!');
hideTooltip(e.trigger);
});
clipboard.on('error', function(e) {
setTooltip(e.trigger, 'Failed!');
hideTooltip(e.trigger);
});
function recupera() {
$.ajax({
......
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