Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
classwork_25
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Нұрасыл Қайратұлы
classwork_25
Commits
8d528f6c
Commit
8d528f6c
authored
Dec 22, 2023
by
Nurasyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parents
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
index.js
JS/index.js
+17
-0
util.js
JS/util.js
+2
-0
index.html
index.html
+14
-0
No files found.
JS/index.js
0 → 100644
View file @
8d528f6c
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
JS/util.js
0 → 100644
View file @
8d528f6c
const
getRandomNumber
=
()
=>
Math
.
round
(
Math
.
random
()
*
100
);
\ No newline at end of file
index.html
0 → 100644
View file @
8d528f6c
<!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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment