refactor: use - not _ for id word splitter

This commit is contained in:
Oliver Booth 2023-08-10 14:08:22 +01:00
parent 20656e74e8
commit cb331ff54f
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61
3 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@
@model OliverBooth.Pages.Blog.Index
@inject BlogService BlogService
<div id="all_blog_posts">
<div id="blog_loading_spinner" class="d-flex justify-content-center">
<div id="all-blog-posts">
<div id="blog-loading-spinner" class="d-flex justify-content-center">
<div class="spinner-border text-light" role="status">
<p class="text-center sr-only">Loading...</p>
</div>

View File

@ -212,7 +212,7 @@ div.alert *:last-child {
margin-bottom: 0 !important;
}
#blog_loading_spinner {
#blog-loading-spinner {
margin: 20px;
&.removed {

View File

@ -5,7 +5,7 @@ declare const bootstrap: any;
declare const katex: any;
(() => {
const blogPostContainer = document.querySelector("#all_blog_posts");
const blogPostContainer = document.querySelector("#all-blog-posts");
if (blogPostContainer) {
API.getBlogPostCount().then(async (count) => {
for (let i = 0; i < count; i++) {