. Building upon my experience with the ReactJS Slide Puzzle, I thought I'd take the concept of a React-based game one step further. Flip is not very practical, and uses a lot of potentially buggy CSS3 and ES5 methods, but I mean, it's just a game.…
. I put together a simple 3X3 slide puzzle as a first attempt at React.js. I was inspired after running through Brian Barnett's great Tic Tac React tutorial, and therefore mine shares much of the same code. I really recommend his post if you're interested in…
. JavaScript itself is conflicted about its prototypal nature. In a prototypal system, objects inherit from objects. JavaScript, however, lacks an operator that performs that operation. Instead it has a new operator...Prototypal Inheritance in JavaScript, Douglas Crockford
The goal is to create a new object with a given prototype link.…
. "Hijax" is a term used to describe a progressive enhancement in which internal site links are "hijacked" by JavaScript in order to load the content dynamically. It reveals to developers a whole new world of interactivity control. It's a fancy and futuristic world—a…
. In Windows and OSX, pressing control or command while clicking a link opens it in a new tab. Using event.preventDefault() on anchor tags breaks this native behavior, but you can use this code to restore it.
// allow command-click and control-click to open new tab
if (event.metaKey…