PHP Classes

File: public/assets/js/demo/login-v2.demo.js

Recommend this page to a friend!
  Classes of Wang   Tagydes   public/assets/js/demo/login-v2.demo.js   Download  
File: public/assets/js/demo/login-v2.demo.js
Role: Auxiliary data
Content typex: text/plain
Description: Auxiliary data
Class: Tagydes
E-commerce Web administration panel and API
Author: By
Last change:
Date: 2 years ago
Size: 774 bytes
 

Contents

Class file image Download
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 4 Version: 4.3.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.3/admin/ */ var handleLoginPageChangeBackground = function() { $(document).on('click', '[data-click="change-bg"]', function(e) { e.preventDefault(); var targetImage = '[data-id="login-cover-image"]'; var targetImageSrc = 'url(' + $(this).attr('data-img') +')'; $(targetImage).css('background-image', targetImageSrc); $('[data-click="change-bg"]').closest('li').removeClass('active'); $(this).closest('li').addClass('active'); }); }; var LoginV2 = function () { "use strict"; return { //main function init: function () { handleLoginPageChangeBackground(); } }; }();