Posts by João Victor • 93 points
6 posts
-
1
votes1
answer74
viewsA: Making Data-type Breadcrumb from a <li> Scrolling Down Page
var $topOffset = [], $section = $('.classe_dia'); $(window).resize(function() { $topOffset = []; $.each($section, function() { $topOffset.push($(this).offset().top); }); }).trigger('resize');…
-
2
votes1
answer60
viewsQ: Merge Objects that have some similarity
Is there any way to join objects that have some similarity ? For example: var exemplo = [ {'Title': 'exemple1', 'id': 15}, {'Title': 'exemple1', 'id': 15}, {'Title': 'exemple2', 'id': 20} ] And stay…
javascriptasked João Victor 93 -
2
votes1
answer250
viewsA: How to use money mask without jQuery
document.getElementById("contract_salary").onkeyup = function() {myFunction()}; function myFunction() { var atual = document.getElementById("contract_salary").value; console.log(new…
javascriptanswered João Victor 93 -
-1
votes3
answers810
viewsA: Record Javascript session using cookie and button
Maybe this will help you. $(document).ready(function () { $("a[href^='#']").click(function(){ $.cookie("block", "none",{ expires: 9999999 }); $(".gotit").css("display", "none"); }); var none =…
-
-1
votes2
answers51
viewsA: Detect word within an element that is within a specific class
Thank you very much Leandrade and Samuelf. With the help of you 2, I managed to make a code that meets my needs. var violet = /Violet/gi;…
-
1
votes2
answers51
viewsQ: Detect word within an element that is within a specific class
I have the following code. I tried to run inside the element with the ACTIVE class, a code that checked if it had the word VIOLET inside the element with the class TITLE. But instead of running only…