diff --git a/js/main.js b/js/main.js index 3233cc3..8aadb0e 100644 --- a/js/main.js +++ b/js/main.js @@ -20,7 +20,8 @@ $(window).on('load', function() { /*------------------ Background set --------------------*/ -document.addEventListener("DOMContentLoaded", function() { +// document.addEventListener("DOMContentLoaded", function() { +$(document).ready(function() { $('.set-bg').each(function() { var bg = $(this).data('setbg'); $(this).css('background-image', 'url(' + bg + ')');