Skip to content

Commit

Permalink
update galaxies page, remove spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
gvard committed Jan 24, 2024
1 parent cd40278 commit 0f97885
Show file tree
Hide file tree
Showing 11 changed files with 1,354 additions and 1,444 deletions.
392 changes: 196 additions & 196 deletions astrodata/index.html

Large diffs are not rendered by default.

120 changes: 1 addition & 119 deletions dates/index.html

Large diffs are not rendered by default.

Binary file added galaxies/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added galaxies/images/M31-big.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added galaxies/images/M31.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added galaxies/images/M51-big.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added galaxies/images/M51.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
596 changes: 316 additions & 280 deletions galaxies/index.html

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions galaxies/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function toSort(classNam) {
sortFunction = getSize;
doSort(sortFunction, classNam);
}
function show(divImg) {
function show(divImg, imgPth) {
const obj = divImg.parentElement;
let name = obj.getElementsByClassName("name")[0].getElementsByTagName("a")[0].innerText;
name = mkPar('<b>', name, '</b>');
Expand All @@ -40,6 +40,9 @@ function show(divImg) {
} else {
desc = "";
}
const contentToShow = divImg.innerHTML + name + type + angular + size + mass + gType + dist + desc;
if (!imgPth) {
imgPth = divImg.getElementsByTagName('img')[0].src;
}
const contentToShow = `<img src="${imgPth}"><h2>${name}</h2>` + type + angular + size + mass + gType + dist + desc;
toShow(contentToShow);
}
910 changes: 450 additions & 460 deletions links/index.html

Large diffs are not rendered by default.

773 changes: 386 additions & 387 deletions stars/index.html

Large diffs are not rendered by default.

0 comments on commit 0f97885

Please sign in to comment.