Currently browsing JavaScript

YouTube Video Cover
Ciprian on Tuesday, July 9, 2019 — 1,979 Views

How to create a YouTube video cover using the YouTube Iframe API

There’s an increasing trend of adding full-width (possibly full-height) YouTube video covers with autoplay. Using the YouTube Iframe [...]

JavaScript Logo
Ciprian on Monday, July 8, 2019 — 894 Views

How to Get and Set URL Parameters with JavaScript

This is an old script, which helped a lot with the initial phase launching a project on all browsers and devices. How to use: Find more [...]

JavaScript Logo
Ciprian on Tuesday, October 16, 2018 — 4,326 Views

How to Build a Vanilla JavaScript Slider in Less Than 100 Lines

This quick tutorial will show you how to create a basic slider in less than 100 lines. The actual JavaScript is less than 30 [...]

JavaScript Logo
Ciprian on Sunday, September 30, 2018 — 452 Views

How to Implement a Service Worker in Your Website and How to Create a Basic PWA

You definitely don’t need a plugin for this. Although there are plugins which help with creating a service worker and a progressive [...]

JavaScript Logo
Ciprian on Saturday, September 29, 2018 — 564 Views

A Trio of Approachable Vanilla JS Sliders

This post has been superseded by How to Build a Vanilla JavaScript Slider in Less Than 100 Lines. The past weeks had me hunting for the [...]

JavaScript Logo
Ciprian on Saturday, September 29, 2018 — 925 Views

Cross-browser Query Parameter Getter and Setter

Here’s a cross-browser compatible¬†way of getting query parameter from a URL or setting query parameters and reloading the page. An [...]

Ciprian on Friday, September 28, 2018 — 874 Views

How to Autoplay a Video Element Using JavaScript

The latest Chrome version has stopped video autoplay if the video is not muted. Firefox and the other browsers will soon follow suit. [...]

JavaScript Logo
Ciprian on Friday, July 13, 2018 — 415 Views

Native JavaScript Drag&Drop Upload

Modern browsers allow you to define native dragging & dropping functionality with a graceful degradation for older/ancient browsers, [...]

JavaScript Logo
Ciprian on Monday, July 9, 2018 — 3,154 Views

Passing Arguments to External JavaScript Files

This post covers the topic of passing arguments to external JavaScript files. I want to say up front that there doesn’t seem to be a [...]

JavaScript Logo
Ciprian on Monday, July 9, 2018 — 458 Views

JavaScript Data Types

Every variable in JavaScript has a data type which dictates the values that can be stored in it. However, JavaScript is a weakly typed [...]

JavaScript Logo
Ciprian on Monday, July 9, 2018 — 841 Views

Building a Simple Tab Strip using Vanilla JavaScript

I recently developed a simple tab strip using only HTML, CSS, and vanilla JavaScript. The script does not require any dependencies and is [...]

JavaScript Logo
Ciprian on Wednesday, July 4, 2018 — 703 Views

Convert jQuery.get() to Vanilla JavaScript

In the latest iteration of my YouTube Playlist Player plugin, I decided to remove all jQuery dependencies. I replaced the following jQuery [...]

Privacy Policy