-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newtask 515845 #2092
base: devel
Are you sure you want to change the base?
Newtask 515845 #2092
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(function() { | ||
let statisticForSummer = sluchch(0.39, 0.98, 0.01); | ||
let answer = (1 - statisticForSummer) * 100; | ||
let time = ['летом', 'зимой']; | ||
let difference = ['уменьшилось', 'увеличилось']; | ||
let slTime1 = sl1(); | ||
let slTime2 = (slTime1 + 1) % 2; | ||
NAtask.setTask({ | ||
text: ['Число', 'Количество'].iz() + ' дорожно-транспортных происшествий (ДТП) в летний период составило ' + parseFloat((statisticForSummer).toFixed(2)) + | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Давайте проявим фантазию и подумаем, статистика чего ещё ведёт себя аналогичным образом? Ну, чтобы гуглилось хуже. Чего ещё зимой больше, чем летом? Переломов? Повреждений кровли? Проявите фантазию! |
||
' числа ДТП в зимний период. На сколько процентов ' + difference[slTime1] + | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Раз уж берётесь менять число/количество, так везде и меняйте. |
||
' число дорожно-транспортных происшествий ' + time[slTime1] + [' по сравнению ', ' в сравнении '].iz() + 'с ' + | ||
time[slTime2] + ' ?', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Здесь можно обойтись |
||
answers: answer, | ||
}); | ||
})(); | ||
|
||
//515845 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
window.nomer=[ | ||
515845, | ||
].iz(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parseFloat((statisticForSummer).toFixed(2))
Зачем это? (Вопрос не риторический)
Поможет ли вместо этого
statisticForSummer.ts()
?