Members
(constant) TESTIMONIALS_API :string
Serverless bridge to Google Sheets. Used for data persistence without server overhead. (Serverless tilts uz Google Sheets datu saglabāšanai bez servera izmaksām.)
Type:
- string
audioCtx :AudioContext
audioCtx - Global audio context for UI synthesis (Globālais audio konteksts UI sintēzei)
Type:
- AudioContext
(constant) translations
File: translations.js Purpose: Global locale dictionary for i18n engine. (Mērķis: Globālā lokāļu vārdnīca i18n dzinējam.) Author: Dāvis Strazds Architecture: Key-value pair mapping to data-i18n HTML attributes. (Arhitektūra: Atslēgu-vērtību pāru kartēšana uz data-i18n HTML atribūtiem.)
- Source:
typewriterTimeout
Typewriter Engine: Rotates defined professional roles. (Rakstāmmašīnas dzinējs: Rotē definētās profesionālās lomas.)
Methods
(async) fetchDynamicTestimonials() → {Promise.<void>}
Integrates with Google Apps Script to fetch live client testimonials. Fetches JSON payload and generates semantic cards dynamically. (Iegūst JSON datus un dinamiski ģenerē semantiskas kartītes.)
Returns:
- Type
- Promise.<void>
(async) handleFeedbackSubmit(e) → {Promise.<void>}
Handles contact form submission with UI feedback and validation.
Parameters:
| Name | Type | Description |
|---|---|---|
e |
Event | Form submission event. |
Returns:
- Type
- Promise.<void>
(async) initApp()
Main application bootstrap engine. Orchestrates parallel asset loading and visual state initialization. (Galvenais aplikācijas ielādes dzinējs. Koordinē paralēlu resursu ielādi.)
initCardEffects()
Mouse Tracking Engine: Powers the glow effect for glassmorphism cards. (Peles izsekošanas dzinējs: Nodrošina spīduma efektu glassmorphism kartītēm.)
initExcelSimulation()
Excel Data Transformation Simulation: Visualizes the power of Java-SQL integration. (Excel datu transformācijas simulācija: Vizualizē Java-SQL integrācijas jaudu.)
initFooter()
Controls the visibility of the scroll-to-top utility. (Kontrolē "ritināt uz augšu" rīka redzamību.)
initHeader()
Header Logic: Handles mobile menu toggles and dynamic background scrolling effects. (Galvenes loģika: Pārvalda mobilo izvēlni un dinamiskos fona ritināšanas efektus.)
initLaboratory()
AI Laboratory UI: Simulates agent logic flows and code generation sequences. (MI Laboratorijas UI: Simulē aģentu loģikas plūsmas un koda ģenerēšanas sekvences.)
initLeafletMap()
Map Integration: Renders Dark-Mode Leaflet map with custom markers. (Kartes integrācija: Renderē Dark-Mode Leaflet karti ar pielāgotiem marķieriem.)
initParallax()
Subtle Background Parallax: Enhances depth by scaling video background on scroll. (Smalks fona paralakse: Uzlabo dziļumu, mērogojot video fonu pie ritināšanas.)
initProjectModals()
Modal Controller: Handles project detail overlays and scroll locks. (Modālā loga kontrolieris: Apstrādā projektu detaļu pārklājumus un ritināšanas bloķēšanu.)
initScrollSpy()
ScrollSpy Implementation: Updates active navigation links based on scroll position. Also dynamically updates the navbar background color theme based on section metadata. (Atjaunina aktīvās saites un dinamiski maina navigācijas joslas krāsu tēmu.)
initScrollToTop()
UI Utility: Scroll behavior and Navigation spies. (UI palīgrīki: Ritrināšanas uzvedība un navigācijas izsekošana.) Why: Enhances interactivity by dynamically tracking user focus areas. (Kāpēc: Uzlabo interaktivitāti, dinamiski izsekojot lietotāja fokusa zonas.)
initSkillBars()
Intersection-based animation for skill visualization bars. (Uz Intersection bāzēta animācija prasmju vizualizācijas joslām.)
initViewportScenarios()
Viewport Scenario Engine: Detects device categories and applies data attributes. (Viewport scenāriju dzinējs: Nosaka ierīču kategorijas un piešķir datu atribūtus.)
(async) loadComponent(id, file) → {Promise.<void>}
Modular Component Injector: Fetches HTML fragments asynchronously. Enables DRY (Don't Repeat Yourself) principle for headers and footers. (Nodrošina DRY principu galvenēm un kājenēm.)
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | Target DOM element ID for injection. |
file |
string | Path to the HTML fragment. |
Returns:
- Type
- Promise.<void>
optimizeMediaLoading()
Media Loading Optimizer: Enhances performance by applying lazy loading and async decoding. (Mediju ielādes optimizētājs: Uzlabo veiktspēju, lietojot lazy loading un asinhronu dekodēšanu.) Why: Reduces main thread blocking and improves First Contentful Paint. (Kāpēc: Mazina galvenās pavediena bloķēšanu un uzlabo FCP rādītājus.)
playUISound(type) → {void}
Programmatic Audio Engine: UI feedback synthesis to avoid large asset overhead. Uses Web Audio API to generate real-time feedback, reducing page load size. (Izmanto Web Audio API, lai ģenerētu reāllaika atsauksmes, samazinot lapas ielādes izmēru.)
Parameters:
| Name | Type | Description |
|---|---|---|
type |
'success' | 'error' | Feedback category mapped to specific frequency ramps. |
Returns:
- Type
- void
registerServiceWorker()
PWA Service Worker Registration: Enables offline access and caching. (PWA Service Worker reģistrācija: Iespējo bezsaistes piekļuvi un kešdarbi.)
switchLanguage(lang) → {void}
Switches application language and persists preference. Uses opacity transitions to mitigate Flash of Un-translated Content (FOTC). (Izmanto caurspīdības pārejas, lai mazinātu netulkotā satura pavīdēšanu.)
Parameters:
| Name | Type | Description |
|---|---|---|
lang |
'lv' | 'en' | Targeted language locale. |
Returns:
- Type
- void
translatePage() → {void}
Maps translation dictionary to DOM elements based on data attributes. Traverses DOM and updates nodes with data-i18n attributes. (Meklē DOM un atjaunina mezglus ar data-i18n atribūtiem.)
Returns:
- Type
- void
updateLangButtons() → {void}
Syncs language switcher UI buttons with the current active locale. (Sinhronizē valodu slēdža UI pogas ar pašreizējo aktīvo lokāli.)
Returns:
- Type
- void
updateReadingProgress() → {void}
Calculates and updates the top reading progress bar. (Aprēķina un atjaunina augšējo lasīšanas progresa joslu.)
Returns:
- Type
- void