Author Archives: matt

Example: Immutable Property in JavaScript

This JavaScript code shows how to prevent a property of an object from being modified. Links: – Closures – getter – const – Can I use const?

Posted in Uncategorized | Leave a comment

Bootstrap 4 Tooltips with Aurelia CLI

This post shows how to use Bootstrap 4 Tooltips in an Aurelia project, using the Aurelia CLI. Create a new project using the Aurelia CLI. Choose the default options. Install Bootstrap 4, jQuery, and Tether. The commands above download the … Continue reading

Posted in Uncategorized | 3 Comments

Statistics Page with Aurelia and Bootstrap 4

I really like how the New York Times displays interesting statistics about their business on their corporate website, www.nytco.com. The statistics are overlaid on photographs. They change when the page is refreshed. In this post we’ll use Aurelia and Bootstrap … Continue reading

Posted in Uncategorized | Leave a comment

SVG Background Image with PNG Fallback using Modernizr

In this example Modernizr is used to detect SVG support. CSS is then used to display the image of a bike (PNG or SVG) as the background for a DIV. SVG is a scalable vector graphic, it will always be … Continue reading

Posted in Uncategorized | Leave a comment