refactor: use - not _ for id word splitter
This commit is contained in:
parent
20656e74e8
commit
cb331ff54f
@ -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>
|
||||
|
@ -212,7 +212,7 @@ div.alert *:last-child {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
#blog_loading_spinner {
|
||||
#blog-loading-spinner {
|
||||
margin: 20px;
|
||||
|
||||
&.removed {
|
||||
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user