Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
webinar_11_AJS-13-14
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
Nikolay Tarassenko
webinar_11_AJS-13-14
Commits
80b73c96
Commit
80b73c96
authored
Feb 01, 2023
by
Nikolay Tarassenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
index.html
example_1/index.html
+12
-0
index.js
example_1/js/index.js
+17
-0
No files found.
example_1/index.html
0 → 100644
View file @
80b73c96
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
Document
</title>
</head>
<body>
<script
src=
"js/index.js"
></script>
</body>
</html>
example_1/js/index.js
0 → 100644
View file @
80b73c96
let
bill
=
10
;
let
userInput
=
prompt
(
'Введите число'
);
const
number
=
parseInt
(
userInput
);
if
(
userInput
!==
null
)
{
if
(
!
isNaN
(
number
)
&&
number
>
0
)
{
alert
(
'Число больше нуля'
);
bill
+=
number
;
}
if
(
!
isNaN
(
number
)
&&
number
<
0
)
{
alert
(
'Число меньше нуля'
);
}
}
else
{
alert
(
'Cancel'
);
}
alert
(
bill
);
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