Simple hacky dark mode for any site
As I type now, I am sleepy an in a dark room with my laptop. It hurts my eyes looking at most websites with white backgrounds and dark text. So, I thus present to you a bookmarklet that will hack …
As I type now, I am sleepy an in a dark room with my laptop. It hurts my eyes looking at most websites with white backgrounds and dark text. So, I thus present to you a bookmarklet that will hack …
CSS3 is powerful and fun! Using SVG and CSS animations, you can do so many wonderful things! Using CSS animations is more efficient than using Javascript giving smoother transitions and less processing power for the browser. The animation is rather …
Sometimes, devs can rely on jQuery a little too much, and forget how to check for a className without a framework to help. Granted
$(elem).hasClass("className");is easy. But sometimes, one must go jquery free!
el.classList.contains(className);However, the .contains is not …
I, like many of you, grew up playing MadLibs® – and I sure do miss them! So, I decided to try to make some of my own using WordPress and the Advanced Custom Fields plugin. The way I set this …
I am sure you have seen some of the virtual choir videos floating around the internet recently, now that America is under lockdown due to COVID-19. Perhaps you have wanted to try one yourself! Here is an example of one …
Phaser.io is a cool free/open source Javascript platform for making HTML5/Canvas games, animations and WebGL awesomeness! I thought I would play around a bit and make an example of a camera panning a peaceful meadow in such a way that …
Support for older browsers that cannot run array.includes(“searchForThis”). Here is a workaround for that in your code!
if (![].includes) {
Array.prototype.includes = function (searchElement /*, fromIndex*/) {
'use strict';
var O = Object(this);
var len = parseInt(O.length) || 0;
if
Ever want to make a bookmarklet? Well, this will help. (Comes in handy to hack things in place before a major fix/build goes out – i.e. changing iframe sources that have a bad url)
Just drag the link that this …
Here are some of the common php things I use, and always have to look up:
Mysql:
[php]
$result = mysqli_query($con,"SELECT * FROM Persons");</code>
<code>while($row = mysqli_fetch_array($result)) {
echo $row['FirstName'] . " " . $row['LastName'];
echo "
";
}
[/php]