Commit 8d528f6c authored by Nurasyl's avatar Nurasyl

init

parents
const body = $("body");
const getNewElem = (elem, text, css) => {
const newElem = $("<" + elem + ">");
newElem.html(text);
newElem.css(css);
return newElem;
};
const style = {
"border": "1px solid black",
"padding": "50px",
"background": "red"
};
body.html(getNewElem("div", "I am div", style));
\ No newline at end of file
const getRandomNumber = () => Math.round(Math.random() * 100);
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="./JS/util.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<title>Document</title>
</head>
<body>
<script src="./JS/index.js"></script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment