Navbar Dropdown Woe

Came across an issue with the Bootstrap navbar dropdown with respect to WordPress.  Here’s the issue: Download Bootstrap and put it up on your website (reference the min.css and min.js files). Go to the sample code for the Default Navbar in the Bootstrap docs here and copy it to your clipboard. Paste that code into…

A weird Javascript behavior

There is a webpage I visit where I click on a link and some Javascript kicks in to display a textbox that was previously invisible.  Recently, I went back to this webpage and noted that the textbox was no longer appearing. Knowing a bit about Javascript and Google Developer Tools, I knew to open the…

Support PHP in external Javascript

The Problem Have you ever tried to write code like this? external.js function test_javascript() { console.log( ‘Currently at page: <?php echo $_SERVER[‘SCRIPT_URI’] ?>’ ); } index.php <script src=”external.js”></script> Most of the time, you will find that the external.js file will have an error because it cannot make sense of the PHP snippet.  The following is…

Web fonts

Typically, browsers support a very limited number of fonts for use on websites: However, Google offers a large repository of fonts that can be used on any website.  Check this out: http://www.google.com/fonts/ If you want to use a font, simply click ‘quick use’ next to the font desired.  At that point, Google gives you a…