JS function detect which div is being clicked

Useful when debuging on mobile where you can’t open tag inspector. jQuery( document ).ready(function() { jQuery(“div”).click(function() { var myClass = jQuery(this).attr(“class”); alert(myClass); }); });   Illustration by tamypu

Published
Categorized as Blog

Online Tools for Web Developers

CSS Tools Ultimate CSS Gradient Generator Box Shadow CSS3 Generator Free online tool to unminify JavaScript, CSS and HTML code Webfont Generator HTML UTF-8 Miscellaneous Symbols HTML Formatter Favicon Generator Page Speed webpagetest.org tools.pingdom.com gtmetrix.com Google Mobile-Friendly Test Image author: Nguyenshishi

Published
Categorized as Blog

Social engineering content detected- Site phishing

Few days ago I received email from Google Search Console Team with title “Social engineering content detected”. On one of the sites that I was working some small fixes, was detected site phishing. Someone used site’s domain and added link to phishing page with plenty download’s links. URL looked like this: http://www.sitename[.]com/~smarketi/apple/app/account/id45554485_54/key_hgyggggfft5485fe/ As security was… Continue reading Social engineering content detected- Site phishing

Published
Categorized as Blog

Display content based on WordPress navigation menu

For one page WordPress theme I needed to display content based on defined menu. So I had menu location named top_menu and my job was to find what pages are inside and to display their content. First I needed to use function that would bring me back name of menu assigned to that location.