3 个仓库
Mechanisms for extracting text from DOM data attributes to be used in other operations.
Distinct from Element Attributes: Focuses on retrieving text for copying from data attributes, rather than general configuration of DOM attributes.
Explore 3 awesome GitHub repositories matching web development · Data Attribute Mapping. Refine with filters or upvote what's useful.
clipboard.js is a lightweight JavaScript library and browser API wrapper designed to manage text transfers to the system clipboard. It functions as a DOM event clipboard manager that enables the copying and cutting of text from web page elements. The library provides mechanisms for dynamic text transfer, allowing text to be resolved from static HTML elements, specific data attributes, or programmatically defined strings at runtime. It includes an event-driven callback system to trigger user interface feedback or custom actions upon the success or failure of a clipboard operation. The tool im
Implements text retrieval by reading specific data attributes from trigger elements.
Scroller 是一个 JavaScript 库,用于在 HTML 元素和 Canvas 渲染表面上实现平移和缩放交互。它充当视口状态管理器和动能滚动引擎,将触摸和鼠标指针事件转换为用于流畅导航的缩放偏移量。 该库具有一个模拟减速和边缘回弹的动能运动系统。它包括用于下拉刷新触发器的特定机制,并支持点相对缩放,以保持焦点中心位于用户的光标上。 该系统提供了一系列移动控制,包括轴锁定拖拽行为和网格对齐。它通过可配置的最小和最大缩放限制来管理视口比例,并独立于渲染层计算坐标转换。 与 DOM 的集成通过用于自动初始化滚动和缩放逻辑的数据属性来处理。
Allows automatic initialization of scrolling and zooming logic via HTML data attributes.
Imager.js is a responsive image loader library and asset delivery optimizer. It serves as a browser-based image manager that delivers optimized image variants based on device screen dimensions and pixel density. The library maps abstract image identifiers to concrete network requests for third-party hosting services. It dynamically updates image source attributes during window resize events and translates numeric widths into custom strings to match specific asset naming conventions. The system provides capabilities for responsive image delivery, including lazy loading to defer downloads unti
Uses HTML data attributes to store image breakpoints and asset identifiers, decoupling configuration from rendering logic.