Once Rails knows a given string is html_safe, it will never escape it. However, there may be times when...
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available
Until recently, you could open a new tab via window.open when using execute_script in Selenium tests. It no longer...
We will use this for new Angular code. Consider the guide in "beta". Things will still refine, but the general...
CSS4 comes with :has. E.g. h1:has(b) would select all tags that contain a tag. This is implemented in...
Regular expressions in Javascript are represented by a RegExp object. There also is a regex literal as in many other...
Table of contents of the linked article: What are Web Fonts? Advantages of Web Fonts Disadvantages of Web Fonts
With "attaching an event handler once" you possibly mean one of these two things: Register a function for an event...
Note This card does not reflect the current state of lazy loading technologies. The native lazy attribute could be used...
While you usually do not need a Content-Type on GET request (which have a blank body), an external API...
If you have jQuery code like this: if (condition) { $element.show(); } else { $element.hide(); } ... you can shorten this to: $element.toggle(condition);
You can say this in Javascript: $.fn.jquery => "1.11.1"
Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...
To safely transport an arbitrary string within a URL, you need to percent-encode characters that have a particular meaning...
As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...
With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...
If the project team consists of at least 2 members, do a daily standup. It should not take much longer...
If you need to upgrade code that uses the old jQuery methods bind, delegate, live, unbind and die, the attached...
Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join...
Unfortunately, Web APIs haven’t provided the functionality to copy text to the clipboard through JavaScript, which is why visiting...
You can include files from app/assets or from the public folder with javascript_include_tag. The subtle difference that tells...
Free Bootstrap theme resembling Material Design. Bootswatch offers Sass and Less files, so the theme can easily be integrated into...
Jasmine comes with two matchers that test for equality. The first is toBe: expect(first).toBe(second) toBe passes when...
The easiest way to freeze or travel through time in a Jasmine spec is to use the built-in jasmine.clock...