on master help sign in
cleanup empty
commitf360a861f11785bbdae1e5a3f0985190a712309c authorDYM <re@dym.sh> dateMon 5 Aug 2019, 21:54 (7 years ago) parentddc9753
2 files changed+2−2
links/main.css+1−1 scripts/portal.js+1−1
links/main.css+1−1
@@ -62,7 +62,7 @@ body #portal #icon { display: block;width: 30px;height: 30px;background-image: u
6262body #portal ul { columns:3; }
6363body #portal ul li { display:block; padding-left:5px; text-overflow: ellipsis; text-transform: lowercase;}
6464body #portal ul li:before { content: attr(id) ")"; }
65−body #portal ul li:not([data-type=''])::after { content:"<" attr(data-type) ">"; color:#555; }
65+body #portal ul li[data-type]::after { content:"<" attr(data-type) ">"; color:#555; }
6666body #portal ul li a { line-height: 20px; padding:0px 5px; text-decoration: none;}
6767body #portal ul li a:visited { color:#ccc; text-decoration: none;}
6868body #portal ul li a:hover { text-decoration: underline; }
scripts/portal.js+1−1
@@ -18,7 +18,7 @@ function Portal (sites) {
1818 function _directory (sites) {
1919 return `
2020 <ul>${sites.reduce( (acc, site, id) =>
21− `${acc}<li data-type='${site.type || ''}' id='${id}'><a href='${site.url}'>${_name(site)}</a></li>`
21+ `${acc}<li ${site.type ? `data-type="${site.type}"` : ''} id='${id}'><a href='${site.url}'>${_name(site)}</a></li>`
2222 , '')}</ul>\n${_readme()}${_buttons()}`
2323 }
2424