Catalog npm
Back to packageRELEASE DETAILS

2.0.0

npm

9x-navbar

This document explains how to easily configure the float navigation system without having to modify the core implementation files.

Published2 Sept 2025
Direct dependencies3
Transitive dependenciesNot calculated

README

Current package documentation

Float Container Configuration Guide

This document explains how to easily configure the float navigation system without having to modify the core implementation files.

Configuration Approach

The navigation system now uses a configuration-driven approach where all navigation items, links, and UI elements are defined in a single centralized configuration file.

Files Overview

  • navigation-config.js - Contains all the configurable navigation elements
  • config.js - Contains general system configuration settings
  • float-ui.js - Implementation that reads from configuration
  • main.js - Entry point and initialization

How to Update Navigation Elements

To update the navigation links (Game Tips, Download App, etc.), edit the navLinks array in navigation-config.js:

navLinks: [
  {
    href: '/new-url',              // Change the URL
    translationKey: 'gameTips',    // Reference to translations.js
    iconClass: 'fa-solid fa-gamepad' // FontAwesome icon class
  },
  // Add or remove items as needed
]

2. Updating Grid Items

To update the grid items (Fortune Wheel, VIP Program, etc.), edit the gridItems array:

gridItems: [
  {
    href: 'https://example.com',
    imgSrc: '/path/to/image.png',
    text: 'Display Text',
    translationKey: 'translationKey',
    target: '_self'
  },
  // Add or remove items as needed
]

3. Updating Dropdown Menus

To update dropdown menus (Follow Us, etc.), edit the dropdownMenus array:

dropdownMenus: [
  {
    translationKey: 'menuTitle',
    iconClass: 'fa-solid fa-users',
    subItems: [
      {
        href: 'https://example.com',
        translationKey: 'subItemText',
        iconClass: 'fa-brands fa-example',
        target: '_blank'
      },
      // Add or remove sub-items as needed
    ]
  }
]

To update the logo or partnership logo:

logo: {
  src: '/path/to/new-logo.png',
  alt: 'Logo Alt Text'
},

partnershipLogo: {
  href: 'https://partner-site.com',
  imgSrc: '/path/to/partner-logo.png',
  imgAlt: 'Partner Logo Alt Text'
}

Programmatically Updating Configuration

You can also update the configuration programmatically using the exported function:

import { updateNavigationConfig } from './float-ui.js';

// Update specific parts of the navigation
updateNavigationConfig({
  navLinks: [
    // New set of navigation links
  ],
  logo: {
    src: '/path/to/new-logo.png'
  }
});

Translation Keys

All text elements use translation keys that reference the translation system. To add or update translations:

  1. Add the translation key to navigation-config.js
  2. Make sure the corresponding keys exist in the translations.js file

Adding New Navigation Elements Dynamically

You can also add new navigation links or dropdown menus dynamically after initialization:

import { addNavLink, addDropdownMenu } from './float-ui.js';

// Add a new navigation link
addNavLink({
  href: '/new-page',
  translationKey: 'newPageName',
  iconClass: 'fa-solid fa-star'
});

// Add a new dropdown menu
addDropdownMenu({
  translationKey: 'newDropdown',
  iconClass: 'fa-solid fa-list',
  subItems: [
    // Array of sub-items
  ]
});

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^2.79.1development
rollup-plugin-terser
Environment
{
  "local_name": "rollup-plugin-terser",
  "alias": false,
  "peer_metadata": null
}
^7.0.2development
@rollup/plugin-node-resolve
Environment
{
  "local_name": "@rollup/plugin-node-resolve",
  "alias": false,
  "peer_metadata": null
}
^13.3.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "156bafcb57cad17abf1f24b8c4b12c21287bf319",
  "tarball": "https://registry.npmjs.org/9x-navbar/-/9x-navbar-2.0.0.tgz",
  "fileCount": 3,
  "integrity": "sha512-SE27cDbNZxoHyYKtzQ43kRUdt/HLE+GF8pJuYftMXL8FlV0zOHERLTPAhACNiQ01Lre/il9/7Jon4L4QUBX0ng==",
  "signatures": [
    {
      "sig": "MEQCIGCcEz/k0stDaVW5uv0wQnxwuyjgiLhxn9EJTdCdF3x3AiAHI+UyzEOi4TZ0Kis1ThaVWE9xxGjY3sxNR3qmPX5iXw==",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 14556
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:43 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:bb3f8d01e4bbfe874e68ddded5be1a346e38c94801d9542f31ac45e04ee68c5d

Other collected versions

2.1.02 Sept1.3.024 MarView all collected versions →