Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-05-26 20:46:06 +07:00
parent 9f4e5bc732
commit a029258872
3 changed files with 7 additions and 7 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Noctune - Music That Hits Different</title> <title>Noctune - Music That Hits Different</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
<script type="module" crossorigin src="/assets/index-sEdWZnAM.js"></script> <script type="module" crossorigin src="/assets/index-BxVozdka.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CuqcJYD7.css"> <link rel="stylesheet" crossorigin href="/assets/index-CuqcJYD7.css">
</head> </head>
<body class="bg-noctune-cream"> <body class="bg-noctune-cream">
+5 -5
View File
@@ -15,11 +15,11 @@ function load(url) {
howl = new Howl({ howl = new Howl({
src: [url], src: [url],
html5: true, html5: true,
onplay: () => listeners.onPlay?.(), onplay: () => listeners.play?.(),
onpause: () => listeners.onPause?.(), onpause: () => listeners.pause?.(),
onend: () => listeners.onEnd?.(), onend: () => listeners.end?.(),
onloaderror: () => listeners.onError?.(), onloaderror: () => listeners.error?.(),
onplayerror: () => listeners.onError?.(), onplayerror: () => listeners.error?.(),
}) })
} }