I have my code:
+function($) {
'use strict';
var Ripple = function(element) {
var $this = $(this)
$(element).on('mousedown', $this.start)
}
Ripple.prototype.start = function(e) {
var $this = $(this)
var r = $this.find('.ripple-wave')
if(r.length == 0) {
$this.prepend('<div class="ripple-wave"></div>')
r = $this.find('.ripple-wave')
}
if($this.hasClass('btn') || $this.hasClass('single-action')) {
var posX = $(this).offset().left, posY = $(this).offset().top
r.css('left', e.pageX - posX)
r.css('top', e.pageY - posY)
}
r = r.parent()
r.addClass('active')
r.one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e) {
r.removeClass('active')
})
}
var old = $.fn.ripple
$.fn.ripple = function() {
return this.each(function() {
new Ripple(this)
})
}
$.fn.ripple.Constructor = Ripple
$.fn.ripple.noConflict = function () {
$.fn.ripple = old
return this
}}(jQuery);
But if i test on Mozilla Firefox, i have to double click the element in order to do its function.
I initialize this to my on page load using:
$('.ripple').ripple()
PS: I also have on click event on each element from other JS file.
In chrome, it's working properly, in a single click.
Can you check your Firefox preferences, on the first (General) page? At least temporarily, un-check Restore Previous Session in the Startup section at the top, if it is not already. Under the Tabs section, check the box for Open Links in Tabs Instead of New windows.
Answer : Press the Alt key on your keyboard and look at the upper left of your screen. In adddition to the above : The header of your question reads : "'' how to access tools '' " Answer : Press the Alt key on your keyboard and look at the upper left of your screen.
Go to the tab you want to open, mark it with the star on your link bar. Press CTRL + B, find your link, right click, propreties > Load this tab on a splitted screen (or something like this, don't have it in english), and click on it. You're done.
Right click on an element of the page. Right click highlighted element.
$( "p" ).dblclick(function() {
alert( "Hello World!" );
});
<p ondblclick="myFunction()">Double-click me</p>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With