Tag styling
This commit is contained in:
15
tagslice.js
15
tagslice.js
@@ -23,15 +23,16 @@ class TagSlice {
|
||||
|
||||
buildTagList_(container) {
|
||||
let taglist = this.createElement_(container, 'taglist');
|
||||
this.tagInclude_ = this.buildTagSection_(taglist, 'Include');
|
||||
this.tagExclude_ = this.buildTagSection_(taglist, 'Exclude');
|
||||
this.tagSortAsc_ = this.buildTagSection_(taglist, 'Sort (ascending)')
|
||||
this.tagSortDesc_ = this.buildTagSection_(taglist, 'Sort (descending)')
|
||||
this.tagInclude_ = this.buildTagSection_(taglist, 'include');
|
||||
this.tagExclude_ = this.buildTagSection_(taglist, 'exclude');
|
||||
this.tagSortAsc_ = this.buildTagSection_(taglist, 'sort ⇣')
|
||||
this.tagSortDesc_ = this.buildTagSection_(taglist, 'sort ⇡')
|
||||
}
|
||||
|
||||
buildTagSection_(container, title) {
|
||||
let tagsection = this.createElement_(container, 'tagsection');
|
||||
let tagsectiontitle = this.createElement_(tagsection, 'tagsectiontitle', title);
|
||||
this.buildTag_(tagsection, title).classList.add('placeholder');
|
||||
return tagsection;
|
||||
}
|
||||
|
||||
buildObjectList_(container) {
|
||||
@@ -39,6 +40,10 @@ class TagSlice {
|
||||
container.appendChild(objectlist);
|
||||
}
|
||||
|
||||
buildTag_(container, name) {
|
||||
return this.createElement_(container, 'tag', name);
|
||||
}
|
||||
|
||||
loadJson_() {
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', 'tagslice.json');
|
||||
|
||||
Reference in New Issue
Block a user