Posts

Showing posts with the label JavaSacript

hide left sidebar and header on window load in AdminLTE theme

paste below code in header or footer  to apply on all pages else paste in particular pages. $(window).on('load',function(){ $("#header-wrap").hide();   $('body').addClass('header-collapsed');   $(".arrow-icon").toggleClass("open");     //leftsidebar collapsed or minisidebar $("body").addClass('sidebar-collapse'); })

What's the difference between 'mouseup', 'mousedown' and 'click' events?

Image
mostly guys confused in these events. So a coder must always clear about it. Mouup, mousedown and click event  are the different events. There is a basic difference as I mentioned and tried to clear it by diagram also.🔽🔽🔽 With a mouseup() event, you can click somewhere else on the screen, hold down the click button, and move the pointer to your mouseup element, and then release the mouse pointer. A click event requires the mousedown and mouseup event to happen on that element. The normal expectation is that a click requires both the mousedown and mouseup event , so I'd recommend the click event. I think this blog will help you to understand about mouseup, mousedown and click events. so if you like this blog then like it and subscribe to my blog also. Thankyou.

UI Interview Questions

Diffrence between UI and UX UI  means  USER Interface  and  UX  means  User Experience . UI Is mainly related to look and feel, colors, layout. But UX is related to how UI is used, i.e. usabity, wireframing, interaction with UI. Design of button is UI, but interaction with button is UX. How to test website performance. Website performance plays an major role. As per  Think With Google  website, a website is excellent id its  loading time is under 5 seconds . A website is fair if  loading time is 5 to 8 seconds.  But a website is poor if  loading time is more than 8 seconds. Use of Jquery ready function. Jquery recommends use of  $(document).ready(function(){ })  or  $(function(){ })  in script tag to write jquery syntax. Jquery ready function execute jquery functions after all html elements are loaded, before images, iframes, ads are loaded. Difference between Jquery read...