Magento 2.0 Exception printing is disabled To Fix Magento 2.0 Exception printing is disabled by default for security reasons, Go to /pub/errors/ Rename local.xml.sample into… Read More →
css not loading after Magento 2 installation
February 15, 2020
To fix css not loading after Magento 2 installation use the following code on terminal – sudo a2enmod rewrite sudo service apache2 restart
add EventListener basic Javascript
January 20, 2020
add EventListener < span id=”elem”>Hello! < script > elem.addEventListener(‘click’,function(){ alert(‘hello’); }); </ script >
How to style SVG element?
January 18, 2020
<svg id=”svg” viewBox=”0 0 100 100″ xmlns=”http://www.w3.org/2000/svg”> <g id=”g”> <circle cx=”50″ cy=”50″ r=”25″ /> <circle cx=”60″ cy=”60″ r=”25″ /> </g> </svg> <style type=”text/css”> #svg{width: 500px;height:… Read More →
Create blinking notification with JavaScript Style .notification { position: fixed; z-index: 1000; padding: 5px; border: 1px solid black; font-size: 20px; background: white; text-align: center; }… Read More →
How to get screen width and height with JavaScript
December 25, 2019
get screen width and height with JavaScript < script >if (screen.width>900||window.innerWidth>900) { }</ script > Get screen width window.innerWidth Get screen height window.innerHeight