kromilla / flowers Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://flowers-five-bay.vercel.app
Home Page: https://flowers-five-bay.vercel.app
Based on the code provided, here are a few potential issues:
onload
event handler is not assigned to any HTML element. This means that the code will not execute when the page loads. To fix this, you can attach the onload
event handler to the window
object, like this: window.onload = () =>{ ... }
.classList
property is only supported in modern browsers. If you need to support older browsers, you may want to use the className
property instead, or include a polyfill for classList
.remove
method may throw an error if the specified class does not exist in the classList
. To avoid this, you can check if the class exists before trying to remove it, like this: if (document.body.classList.contains("container")) { document.body.classList.remove("container"); }
.body
element. If there are other elements on the page that also have this class, they will not be affected. To remove the class from all elements, you can use a loop, like this:Array.from(document.body.getElementsByClassName("container")).forEach(
(element) => element.classList.remove("container")
);
onload = () =>{
try {
Array.from(document.body.getElementsByClassName("container")).forEach(
(element) => element.classList.remove("container")
);
} catch (error) {
console.error("Error removing class: ", error);
}
};
Here are some potential bugs in the code:
--fl-speed
custom property is defined but not used in the .flower__leaf
selector.--w
and --h
custom properties are used in the .flower__line__leaf
selector, but they are not defined anywhere.--size
custom property is used in the .flower__grass__leaf
selector, but it is not defined in the .flower__grass__leaf--1
, .flower__grass__leaf--2
, .flower__grass__leaf--3
, .flower__grass__leaf--4
, .flower__grass__leaf--5
, .flower__grass__leaf--6
, .flower__grass__leaf--7
, and .flower__grass__leaf--8
selectors.--line-w
custom property is used in the .flower__grass
selector, but it is not defined anywhere.--c
custom property is used in the .flower__grass
and .flower__g-long
selectors, but it is not defined anywhere.--dark-color
custom property is used in the .long-g .leaf
selector, but it is not defined anywhere.var(--d)
custom property is used in the .grow-ans
selector, but it is not defined anywhere.--d
custom property is used in the .grow-ans
selector, but it is not defined anywhere.--line-w
custom property is used in the .flower__grass
selector, but it is not defined anywhere.--line-w
custom property is used in the .flower__grass--top
and .flower__grass--bottom
selectors, but it is not defined anywhere.--line-w
custom property is used in the .flower__grass__leaf
selector, but it is not defined anywhere.--line-w
custom property is used in the .flower__grass__leaf--1
, .flower__grass__leaf--2
, .flower__grass__leaf--3
, .flower__grass__leaf--4
, .flower__grass__leaf--5
, .flower__grass__leaf--6
, .flower__grass__leaf--7
, and .flower__grass__leaf--8
selectors, but it is not defined anywhere.--line-w
custom property is used in the .flower__grass__overlay
selector, but it is not defined anywhere.--line-w
custom property is used in the .flower__g-long
selector, but it is not defined anywhere.--line-w
custom property is used in the .flower__g-long__top
and .flower__g-long__bottom
selectors, but it is not defined anywhere.--line-w
custom property is used in the .flower__g-right
selector, but it is not defined anywhere.--line-w
custom property is used in the .flower__g-right .leaf
selector, but it is not defined anywhere.--line-w
custom property is used in the .flower__g-front
selector, but it is not defined anywhere.--line-w
custom property is used in the .flower__g-front .flower__g-front__line
selector, but it is not defined anywhere.--line-w
custom property is used in the .flower__g-fr
selector, but it is not defined anywhere.--line-w
custom property is used in the .flower__g-fr .leaf
selector, but it is not defined anywhere.--line-w
custom property is used in the .long-g .leaf
selector, but it is not defined anywhere.--line-w
custom property is used in the .long-g--1
, .long-g--2
, .long-g--3
, .long-g--4
, .long-g--5
, .long-g--6
, and .long-g--7
selectors, but it is not defined anywhere.--line-w
custom property is used in the .long-g .leaf
selector, but it is not defined anywhere.--line-w
custom property is used in the .long-g--1
, .long-g--2
, .long-g--3
, .long-g--4
, .long-g--5
, .long-g--6
, and .long-g--7
selectors, but it is not defined anywhere.--line-w
custom property is used in the .long-g .leaf
selector, but it is not defined anywhere.--line-w
custom property is used in the .long-g--1
, .long-g--2
, .long-g--3
, .long-g--4
, .long-g--5
, .long-g--6
, and .long-g--7
selectors, but it is not defined anywhere.--line-w
custom property is used in the .long-g .leaf
selector, but it is not defined anywhere.--line-w
custom property is used in the .long-g--1
, .long-g--2
, .long-g--3
, .long-g--4
, .long-g--5
, .long-g--6
, and .long-g--7
selectors, but it is not defined anywhere.--line-w
custom property is used in the .long-g .leaf
selector, but it is not defined anywhere.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.