mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 12:20:20 +01:00
Create a footer for shepherding purposes
This commit is contained in:
parent
8092c0f3e5
commit
1ce2ecd737
|
|
@ -36,9 +36,10 @@ window.Sheep = class eSheep {
|
|||
document.body.clientWidth; // window width
|
||||
|
||||
this.screenH =
|
||||
window.innerHeight ||
|
||||
(window.innerHeight ||
|
||||
document.documentElement.clientHeight ||
|
||||
document.body.clientHeight; // window height
|
||||
document.body.clientHeight) // window height
|
||||
- (this.userOptions.footerMargin || 0);
|
||||
}
|
||||
|
||||
Start(animation) {
|
||||
|
|
@ -154,9 +155,10 @@ window.Sheep = class eSheep {
|
|||
document.body.clientWidth;
|
||||
|
||||
this.screenH =
|
||||
window.innerHeight ||
|
||||
(window.innerHeight ||
|
||||
document.documentElement.clientHeight ||
|
||||
document.body.clientHeight;
|
||||
document.body.clientHeight)
|
||||
- (this.userOptions.footerMargin || 0);
|
||||
|
||||
if (this.imageY + this.imageH > this.screenH) {
|
||||
this.imageY = this.screenH - this.imageH;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
import { TASKBAR_HEIGHT } from "utils/constants";
|
||||
import { loadFiles } from "utils/functions";
|
||||
|
||||
type SheepOptions = {
|
||||
allowPopup: string;
|
||||
collisionsWith: string[];
|
||||
footerMargin: number;
|
||||
spawnContainer: HTMLElement;
|
||||
};
|
||||
|
||||
|
|
@ -47,6 +49,7 @@ export const spawnSheep = (): Promise<void> =>
|
|||
const sheep = new window.Sheep({
|
||||
allowPopup: "no",
|
||||
collisionsWith: ["nav", "section"],
|
||||
footerMargin: TASKBAR_HEIGHT,
|
||||
spawnContainer: document.querySelector("main") as HTMLElement,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user