JavaScript Converting jQuery to no conflict mode

Here's a script I'm using.

$(window).load(function() {
$('#edifici, #artistici, #industriale, #fotovoltaico, #veterinaria, #architettonici').hide();

if (!!window.location.hash) {
    var hash = window.location.hash;
    var $content = $(hash);
    showContent($content)
}

$('.home').click(function () {
    var id = this.id.replace('mostra_', '');
    var $content = $('#' + id + ':not(:visible)');
    if ($('.current').length === 0) {
        showContent($content)
    } else {
        $('.current').fadeOut(600, function () {
            showContent($content)
        });
    }
});

function showContent(content) {
    content.fadeIn(600);
    $('.current').removeClass('current');
    content.addClass('current');
}
});

As per this guide, to use it in WordPress (which has jQuery in no-conflict mode) I modified my script to

jQuery.noConflict();

jQuery(window).load(function($) {
$('#edifici, #artistici, #industriale, #fotovoltaico, #veterinaria, #architettonici').hide();

if (!!window.location.hash) {
    var hash = window.location.hash;
    var $content = $(hash);
    showContent($content)
}

$('.home').click(function () {
    var id = this.id.replace('mostra_', '');
    var $content = $('#' + id + ':not(:visible)');
    if ($('.current').length === 0) {
        showContent($content)
    } else {
        $('.current').fadeOut(600, function () {
            showContent($content)
        });
    }
});

function showContent(content) {
    content.fadeIn(600);
    $('.current').removeClass('current');
    content.addClass('current');
}
});

Unfortunately it doesn't seem to work properly... what am I doing wrong?

Answer:1

Google have introduced a stock chart to their results which highlights "After hours": I've had a hunt around the documentation and I can't see anything obvious that would suggest how to achieve a ...

Google have introduced a stock chart to their results which highlights "After hours": I've had a hunt around the documentation and I can't see anything obvious that would suggest how to achieve a ...

  1. custom background google chrome
  2. custom background google docs
  3. custom background google homepage
  4. custom background google
  5. custom background google slides
  6. custom background google form
  7. custom google background extension
  8. custom google background image
  9. custom google background maker
  10. custom google background firefox
  11. custom google background not working
  12. custom google background options
  13. custom google background safari
  14. flavr - custom google background

Any basic addition, subtraction, multiplication and division equation can be entered in the console or set to a variable: var solve = (3 + 7) + 2 * 8 / 2 // 18 and correctly solved. My code is not ...

Any basic addition, subtraction, multiplication and division equation can be entered in the console or set to a variable: var solve = (3 + 7) + 2 * 8 / 2 // 18 and correctly solved. My code is not ...

  1. solving equations like terms calculator
  2. solving equations like terms
  3. solving equations like terms worksheet
  4. solving equations like bases
  5. solve line equations
  6. solve equations involving like terms calculator
  7. solve equations involving like terms
  8. solve equations combine like terms worksheet
  9. solve equations using like terms calculator
  10. solve equations involving like terms worksheet
  11. solve equations using like terms
  12. solve equations combine like terms with fractions
  13. solving equations combining like terms and distributive property worksheet
  14. solving equations with like terms worksheet answers
  15. solving equations combining like terms
  16. solving equations having like terms and parentheses
  17. solving equations combining like terms calculator
  18. solving equations combining like terms #2
  19. solving equations collecting like terms joke #19 answer key
  20. solving equations with like terms and parentheses worksheets

EDIT : THe problem is that the site is sooo bad, and he is still in document.readyState = "interactive" so I don't have resize events :'( I'm working on a website (that I didn't made). I'm trying to ...

EDIT : THe problem is that the site is sooo bad, and he is still in document.readyState = "interactive" so I don't have resize events :'( I'm working on a website (that I didn't made). I'm trying to ...

I've written this code to create simple CSS and Javascript dropdown menu. HTML: <li><a href="#" onmouseover="showRanksSubmenu()" onmouseout="hideRanksSubmenu()">XYZ</a> <ul ...

I've written this code to create simple CSS and Javascript dropdown menu. HTML: <li><a href="#" onmouseover="showRanksSubmenu()" onmouseout="hideRanksSubmenu()">XYZ</a> <ul ...

  1. pure drop down menu css
  2. pure css drop down menu on click
  3. pure css drop down menu responsive
  4. dropdown pure css
  5. pure css drop down menu with arrow
  6. pure css drop down menu codepen
  7. pure css drop down menu transition
  8. pure css navigation drop down
  9. pure css hamburger dropdown menu
  10. pure css onclick dropdown menu
  11. pure css mega dropdown menu
  12. simple pure css drop down menu
  13. simple pure css drop down menu responsive