Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungWhy Claude Code keeps writing shell commands that fail on your Mac(20.09.2026 um 21:06 Uhr)
Sichere Programmierungllms.txt v2: What the Spec Says, and What 137,000 Domains Show(20.09.2026 um 21:17 Uhr)
Sicherheitslücken (CVE)NiceTryGPT: Less pattern matching. More actual hacking.(20.09.2026 um 21:19 Uhr)
IT Security VideoActivities BoF (kde2026)(20.09.2026 um 00:00 Uhr)
IT Security Toolsirdoc-app(20.09.2026 um 20:33 Uhr)
Sichere ProgrammierungWhy Claude Code keeps writing shell commands that fail on your Mac(20.09.2026 um 21:06 Uhr)
Sichere Programmierungllms.txt v2: What the Spec Says, and What 137,000 Domains Show(20.09.2026 um 21:17 Uhr)
Sicherheitslücken (CVE)NiceTryGPT: Less pattern matching. More actual hacking.(20.09.2026 um 21:19 Uhr)
IT Security VideoActivities BoF (kde2026)(20.09.2026 um 00:00 Uhr)
IT Security Toolsirdoc-app(20.09.2026 um 20:33 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

gli.js - lightweight jQuery Alternative

Reagiere als Erste:r — dein Feedback zählt!

gli.js 🚀

GitHub logo SH20RAJ / gliJS

gli.js is a lightweight JavaScript library that provides a simplified alternative to jQuery. It offers a range of useful functions to manipulate the DOM, handle events, and perform various operations on elements.

gli.js 🚀

License GitHub stars

gli.js is a lightweight JavaScript library that provides a simplified alternative to jQuery. It offers a range of useful functions to manipulate the DOM, handle events, perform AJAX requests, and animate elements.

Table of Contents

Getting Started

To use gli.js, include the script file in your HTML document:

<script src="https://cdn.jsdelivr.net/gh/SH20RAJ/gliJS@latest/gli.min.js"></script>

You can also download the gli.js file from the repository and host it locally.

Usage

Selecting Elements

You can select elements using the s function and pass a CSS selector as a parameter:

var elements = s('.selector');

Manipulating Classes

  • addClass(className): Adds the specified class to the selected elements.
  • removeClass(className): Removes the specified class from the selected elements.
  • toggleClass(className)

License
GitHub stars
gli.js is a lightweight JavaScript library that provides a simplified alternative to jQuery. It offers a range of useful functions to manipulate the DOM, handle events, perform AJAX requests, and animate elements.

Table of Contents

  • Getting Started
  • Usage
    • Selecting Elements
    • Manipulating Classes
    • Displaying Elements
    • Manipulating Content
    • Manipulating Attributes
    • Handling Events
    • Traversing the DOM
    • AJAX
    • Animation
  • Examples
  • Browser Support
  • Contributing
  • License

Getting Started

To use gli.js, include the script file in your HTML document:

<script src="https://cdn.jsdelivr.net/gh/SH20RAJ/gliJS@latest/gli.min.js"></script>

You can also download the gli.js file from the repository and host it locally.

Usage

Selecting Elements

You can select elements using the s function and pass a CSS selector as a parameter:

var elements = s('.selector');

Manipulating Classes

  • addClass(className): Adds the specified class to the selected elements.
  • removeClass(className): Removes the specified class from the selected elements.
  • toggleClass(className): Toggles the specified class on the selected elements.

Displaying Elements

  • hide(): Hides the selected elements.
  • show(): Shows the selected elements.

Manipulating Content

  • text(content): Gets or sets the text content of the selected elements.

Manipulating Attributes

  • attr(attributeName, value): Gets or sets the attribute value of the selected elements.
  • removeAttr(attributeName): Removes the specified attribute from the selected elements.
  • hasAttr(attributeName): Checks if the selected elements have the specified attribute.

Handling Events

  • on(eventName, selector, handler): Attaches an event handler to the selected elements or their descendants.

Traversing the DOM

  • parent(): Returns a new gli object containing the parent elements of the selected elements.
  • children(): Returns a new gli object containing the children elements of the selected elements.
  • siblings(): Returns a new gli object containing the sibling elements of the selected elements.

AJAX

  • get(url, successCallback, errorCallback): Performs an HTTP GET request.
  • post(url, data, successCallback, errorCallback): Performs an HTTP POST request.

Animation

  • animate(properties, duration, easing, completeCallback): Animates CSS properties of the selected elements.

For more detailed information on each method and its parameters, please refer to the API Documentation.

Examples

Example 1: Hiding an Element

s('#element').hide();

Example 2: Adding a Class to Multiple Elements

s('.elements').addClass('highlight');

Example 3: Handling Click Events

s('.button').on('click', function(event) {
  // Handle click event
});

Example 4: Making an AJAX GET Request

s.get('https://api.example.com/data', function(response) {
  // Handle successful response
}, function(errorStatus) {
  // Handle error
});

Example 5: Animating an Element

s('.element').animate([
  ['opacity', 0, 1],
  ['width', '100px', '200px'],
], 1000, function(timestamp) {
  // Animation complete
});

You can find more examples and use cases in the examples directory.

Browser Support

gli.js supports all modern browsers, including Chrome, Firefox, Safari, and Edge.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request for any improvements or fixes you'd like to contribute.

Please read the Contributing Guidelines for more details on how to contribute.

License

This library is released under the MIT License. See the LICENSE file for more details.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten gli.js - lightweight jQuery Alternative

Thematisch verwandte Begriffe: glijs, lightweight, jQuery, Alternative · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-93956 | A flaw has been found in olivier-ls PHP-FTS up to 1.1.2. Affected by thi…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick