Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2019-2-OpenSourceSW
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
조민지
2018-12-11 16:14:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
948b9057357acd38a82837c2b757a71991f181db
948b9057
1 parent
87fa9774
반복문 수정
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
15 deletions
views/index.ejs
views/index.ejs
View file @
948b905
...
...
@@ -109,9 +109,9 @@
var
deathArr
=
[],
time
=
new
Date
().
getTime
();
var
length
=
<%=
dataLen
%>
;
var
i
=-
9
;
var
j
=
0
;
for
(
j
;
j
<
10
-
length
;
j
++
)
var
i
=-
9
;
//얘는 시간계산용
var
j
=
0
;
//얘는 반복문용
for
(;
j
<
10
-
length
;
j
++
)
{
deathArr
.
push
({
x
:
time
+
i
*
60000
,
...
...
@@ -124,14 +124,21 @@
var
temp
;
temp
=
<%=
probArr
%>
;
for
(
j
;
j
<
10
;
j
++
)
{
// for(;j<10;j++)
// {
// deathArr.push({
// x: time + i * 60000,
// y: temp
// })
// i++;
// }
deathArr
.
push
({
x
:
time
+
i
*
60000
,
y
:
temp
})
i
++
;
}
<%
})
%>
return
deathArr
;
...
...
@@ -226,14 +233,21 @@
var
temp
;
temp
=
<%=
ptArr
%>
;
for
(
j
;
j
<
10
;
j
++
)
{
// for(j;j<10;j++)
// {
// tempArr.push({
// x: time + i * 60000,
// y: temp
// })
// i++;
// }
tempArr
.
push
({
x
:
time
+
i
*
60000
,
y
:
temp
})
i
++
;
}
<%
})
%>
return
tempArr
;
...
...
@@ -328,14 +342,21 @@
var
temp
;
temp
=
<%=
wsArr
%>
;
for
(
j
;
j
<
10
;
j
++
)
{
// for(j;j<10;j++)
// {
// windArr.push({
// x: time + i * 60000,
// y: temp
// })
// i++;
// }
windArr
.
push
({
x
:
time
+
i
*
60000
,
y
:
temp
})
i
++
;
}
<%
})
%>
return
windArr
;
...
...
@@ -430,14 +451,21 @@
var
temp
;
temp
=
<%=
rainArr
%>
;
for
(
j
;
j
<
10
;
j
++
)
{
// for(j;j<10;j++)
// {
// rainArr.push({
// x: time + i * 60000,
// y: temp
// })
// i++;
// }
rainArr
.
push
({
x
:
time
+
i
*
60000
,
y
:
temp
})
i
++
;
}
<%
})
%>
return
rainArr
;
...
...
Please
register
or
login
to post a comment