How can a site instantly detect that javascript has been disabled?

CSS Solution See DEMO. Also available as a JS library. Stop the CSS animation by continuously replacing the element with JavaScript. Once JavaScript is disabled, the CSS animation kicks in and displays a message. @keyframes Browser compatibility: Chrome, Firefox 5.0+, IE 10+, Opera 12+, Safari 4.0+ <style> .nojs_init { position: relative; animation:nojs-animation 0.2s step-end; -moz-animation:nojs-animation … Read more

What purpose does a tag serve inside of a tag?

I did some searching through their code and found this snippet (I’ve cleaned it up to make it more readable): var DepLoader = (function () { function init() { var dependencies = document.getElementById(“inline-deps”); if (!dependencies || JS.hasClass(document.body, “deps–loaded”)) { webfontsReady(); } else { var html = dependencies.innerText || dependencies.textContent; JS.addClass(document.body, “deps–loaded”); processRaw(html); } } function … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)