Fix js lint errors

pull/199/head
jimmay5469 7 years ago
parent b13d21f5bd
commit 8ef859a7ef
  1. 14
      apps/explorer_web/assets/js/lib/card_flip.js
  2. 6
      apps/explorer_web/assets/js/lib/clipboard_buttons.js
  3. 2
      apps/explorer_web/assets/js/lib/market_history_chart.js
  4. 2
      apps/explorer_web/assets/js/lib/tooltip.js

@ -1,13 +1,11 @@
import $ from 'jquery'
$('.rotatecard').click(function(){
$(this).parents(".front").toggleClass("flipped")
$(this).parentsUntil(".theme__ribbon").next(".back").toggleClass("backflip")
$('.rotatecard').click(function () {
$(this).parents('.front').toggleClass('flipped')
$(this).parentsUntil('.theme__ribbon').next('.back').toggleClass('backflip')
})
$('.rotatecardback').click(function(){
$(this).parentsUntil(".panel").prev(".front").toggleClass("flipped")
$(this).parents(".back").toggleClass("backflip")
$('.rotatecardback').click(function () {
$(this).parentsUntil('.panel').prev('.front').toggleClass('flipped')
$(this).parents('.back').toggleClass('backflip')
})

@ -3,14 +3,14 @@ import $ from 'jquery'
const clipboard = new ClipboardJS('[data-clipboard-text]')
clipboard.on('success', ({trigger})=> {
clipboard.on('success', ({trigger}) => {
const copyButton = $(trigger)
copyButton.tooltip({
title: 'Copied!',
trigger: 'click',
placement: 'top'
}).tooltip('show')
setTimeout(()=> {
setTimeout(() => {
copyButton.tooltip('dispose')
}, 1000)
});
})

@ -71,7 +71,7 @@ function createMarketHistoryChart (ctx) {
}, {
id: 'marketCap',
position: 'right',
gridLines: {
gridLines: {
display: false
},
ticks: {

@ -2,4 +2,4 @@ import $ from 'jquery'
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
})

Loading…
Cancel
Save