JavaScript

How to Add JavaScript and HTML to Existing Pages in Horilla

When you build an extension app, you often need to add something to every page without editing core templates. Examples are a support chat widget, an analytics snippet, a global CSS variable block or a keyboard shortcut handler. Editing templates/index.html would make your change a fork. Horilla‘s asset registry avoids that by letting your app […]

Overview of Conditional Statements & Loops in JavaScript

In web development, JavaScript is a dominant language, and its power largely comes from features like conditional statements and loops. These fundamental constructs allow developers to make decisions in their code and perform repetitive tasks efficiently. Conditional Statements in JavaScript Conditional statements enable programs to perform actions based on whether certain conditions are true or […]

Overview of Data Types in JavaScript

JavaScript is a dynamic, loosely-typed language, which means you don’t have to declare the type of a variable when you create one; it’s determined automatically based on the value assigned. Knowing data types is important because they define how data is stored and what actions you can perform on it. In this blog, we’ll explore […]

How to Show & Hide DOM Elements With Alpine.JS in 2024

Alpine.js, a lightweight JavaScript framework, empowers developers to enhance the interactivity of their web applications effortlessly. At its core, Alpine.js is driven by the concept of “sprinkling” behavior onto the HTML. Rather than relying on a separate build step or complex configuration, developers can enhance their HTML directly with Alpine.js attributes, transforming static pages into […]