custom-javascript.js
838 Bytes
import jQuery from 'jquery';
import DataTable from 'datatables.net-bs5';
import "./_resources_list";
var a = document.querySelector('.blur-image');
document.addEventListener("DOMContentLoaded", function() {
if (!a) return !1;
var b = a.getAttribute("data-src"),
c = document.querySelector('.full-image'),
img = new Image;
img.src = b;
img.onload = function() {
c.classList.add('image-loaded'),
c.style.backgroundImage = 'url(' + b + ')';
};
});
// jQuery(document).ready(function($) {
// $('.page-template-login .full-image::before').css('margin-left',"-"+$('.container').css('margin-left'));
// window.addEventListener('resize', function() {
// $('.page-template-login .full-image::before').css('margin-left',"-"+$('.container').css('margin-left'));
// });