current location:Home > Technical Articles > Web Front-end

  • Mobile Web Superpowers: Ambient Light API
    Mobile Web Superpowers: Ambient Light API
    The Ambient Light API: Adapting Web Experiences to Real-World Lighting This article explores the W3C Ambient Light API, a tool enabling web developers to create more responsive and user-friendly experiences by adjusting website interfaces based on am
    JS Tutorial . promise 136 2025-02-21 11:49:12
  • Building a Recipe Search Site with Angular and Elasticsearch
    Building a Recipe Search Site with Angular and Elasticsearch
    This article demonstrates building a recipe search website using Angular and Elasticsearch. Tired of wrestling with Solr or Lucene? Elasticsearch, an open-source, Lucene-based storage engine, offers a simpler solution since 2010. It's more than ju
    JS Tutorial . promise 661 2025-02-21 10:42:10
  • Introducing the Nashorn JavaScript Engine
    Introducing the Nashorn JavaScript Engine
    Oracle has developed a new JavaScript engine called Nashorn in the Java programming language and released it with Java 8. Nashorn's goal is to implement a lightweight, high-performance JavaScript runtime environment in Java and use native JVM. By using Nashorn, developers can embed JavaScript in Java applications and call Java methods and classes from JavaScript code. Core points Nashorn is a high-performance JavaScript engine developed by Oracle using Java, aiming to implement lightweight JavaScript operations in Java.
    JS Tutorial . promise 984 2025-02-21 10:21:10
  • Getting Started with Bookshelf.js
    Getting Started with Bookshelf.js
    Core points Bookshelf.js is an object-relational mapping (ORM) software for JavaScript (particularly Node.js), which simplifies the process of communicating with a database by allowing developers to use objects in their programming language of choice to interact with the database. The library provides a simple and intuitive way to perform CRUD (create, read, update, delete) operations and supports a Promise-based interface, which means that functions are called only when the query is successful. As shown in the example of creating a blog JSON API in the article, Bookshelf.js can be used in conjunction with Express.js to build the API and can be used to create the API.
    JS Tutorial . promise 957 2025-02-21 10:13:10
  • 5 JavaScript APIs to Empower Your Mobile Web Pages
    5 JavaScript APIs to Empower Your Mobile Web Pages
    Key Points Battery Status API: Provides device battery level or status information, helps save changes more frequently when the battery is low, preventing data loss. Web Notification API: Normalizes how developers notify users, allowing alerts (such as email delivery) to be issued outside the context of the web page. However, the display styles of different browsers may vary. Proximity Sensor API: Detects the distance between an object and the device running a web page, currently only supported by Firefox. Vibration API: Allows the device to vibrate and can be used to simulate specific effects in the game. The device direction API detects the device direction, which is conducive to navigation applications and games. “Mobile market is growing” and “through mobile devices (intelligent)
    JS Tutorial . promise 834 2025-02-21 09:29:08
  • 5 Typical JavaScript Interview Exercises
    5 Typical JavaScript Interview Exercises
    Core points Common JavaScript interview questions usually revolve around understanding key concepts, such as scope, creating native methods, promotion, this keyword, and call() and apply() functions. In JavaScript, it is crucial to understand the context of a function and how to call it. This keyword refers to the context, which varies depending on whether the function is called as part of an object or as a standalone function. A boost in JavaScript refers to the process in which variables and functions are moved to the top of their containment scope. However, while the function retains its initial value, the variable does not, and is initially set to undefined. JavaScript enabled
    JS Tutorial . promise 241 2025-02-21 09:23:10
  • Jump Start Sass: Architecture in Sass
    Jump Start Sass: Architecture in Sass
    Sass Architecture: A Deep Dive into Modular CSS Development This excerpt from Jump Start Sass explores the complexities of CSS architecture and how Sass enhances the process. We'll examine various architectural approaches and best practices for buil
    CSS Tutorial . promise 210 2025-02-21 08:53:09
  • Implementing Authentication in Angular Applications
    Implementing Authentication in Angular Applications
    Key Points Implementing authentication in a single page application (SPA) involves the server exposing an authentication endpoint that verifies user credentials and returns an access token. This token is then used for all secure API requests made to the server. In Angular, access tokens can be stored in a service or in a value because they are singleton objects on the client. However, to prevent token loss when the user refreshes the page, it is recommended to use a browser persistence mechanism (such as sessionStorage) to store the token. To prevent potential data theft, the user's status should be maintained and verified on the server side and on the client side. When the user logs out, the corresponding API should be called (the request header contains the access token) and
    JS Tutorial . promise 287 2025-02-21 08:40:14
  • Mocking Dependencies in AngularJS Tests
    Mocking Dependencies in AngularJS Tests
    Core points AngularJS is born with testing in mind, and its built-in dependency injection mechanism makes it possible for every component to be tested using any JavaScript testing framework (such as Jasmine). Mocking in unit testing involves the ability to isolate test code snippets, which can be challenging because the dependencies come from different sources. Mocking in AngularJS is simplified by the angular-mocks module, which provides simulations for a set of commonly used AngularJS services. Service simulation in AngularJS can be achieved by obtaining instances of actual services and listening to services, or using $provide to implement simulation services.
    JS Tutorial . promise 361 2025-02-20 12:28:16
  • Building a Pacman Game With Bacon.js
    Building a Pacman Game With Bacon.js
    The asynchronous programming feature of JavaScript is both a blessing and a curse because it will lead to "callback hell". While utility libraries such as Async.js can help organize asynchronous code, it is still difficult to effectively track control flows and infer the logic of asynchronous code. This article will introduce the concept of responsive programming, which uses libraries such as Bacon.js to handle the asynchronous features of JavaScript. Key Points Responsive programming handles asynchronous data flows, helping manage the asynchronous features of JavaScript and avoiding "callback hell". Library such as Bacon.js can be used to implement this concept. Bacon.js is a responsive programming library that can be used to create Pac Man games
    JS Tutorial . promise 403 2025-02-20 12:19:13
  • Reading Images and Data Using Canvas and JavaScript
    Reading Images and Data Using Canvas and JavaScript
    In this video, I’ll take you on a journey through the basics of how to read in image data dynamically using JavaScript. Together we’ll explore how to read in image data in three different ways – from a specific filename on your server, using the HTML
    JS Tutorial . promise 592 2025-02-20 12:02:09
  • Writing AngularJS Apps Using ES6
    Writing AngularJS Apps Using ES6
    Leveraging ES6 Features in AngularJS Development: A Comprehensive Guide Key Advantages: ES6 (ECMAScript 2015) significantly enhances AngularJS development with features like arrow functions, template literals, classes, modules, and promises. These
    JS Tutorial . promise 475 2025-02-20 11:49:12
  • The Basics of Node.js Streams
    The Basics of Node.js Streams
    Node.js, being asynchronous and event-driven, excels at I/O-bound operations. Leveraging Node.js streams significantly simplifies these tasks by efficiently processing data in smaller chunks. Let's delve into the world of streams and see how they st
    JS Tutorial . promise 253 2025-02-20 10:07:10
  • A Comparison of JavaScript HTTP Libraries for the Browser
    A Comparison of JavaScript HTTP Libraries for the Browser
    Modern web development relies heavily on AJAX requests. While the native XMLHttpRequest object provides this functionality, many developers prefer using libraries like jQuery for simpler AJAX handling. This article compares two popular alternatives:
    JS Tutorial . promise 167 2025-02-20 09:47:14
  • Making API Calls in AngularJS using Angular's $http service
    Making API Calls in AngularJS using Angular's $http service
    This article demonstrates how to use AngularJS to make HTTP requests to a remote API and update the view with the JSON response. It leverages Angular's $http service and data binding. Key Concepts: $http.get: Used to send GET requests to the API, i
    JS Tutorial . promise 958 2025-02-20 09:42:11

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28