Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
96c4e2f9
authored
May 27, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
deeef8ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
index.html
index.html
View file @
96c4e2f9
...
...
@@ -390,10 +390,13 @@
console
.
log
(
1
)
var
radm_num
=
Math
.
floor
(
Math
.
random
()
*
(
$
(
".row li .t1"
).
length
-
0
))
+
0
;
var
num_
=
Number
(
$
(
$
(
".row li .t1"
)[
radm_num
]).
attr
(
"numbers"
))
$
(
$
(
".row li .t1"
)[
radm_num
]).
prop
(
'number'
,
Math
.
ceil
(
num_
/
2
)).
animateNumber
({
if
(
num_
>
0
){
$
(
$
(
".row li .t1"
)[
radm_num
]).
prop
(
'number'
,
Math
.
ceil
(
num_
/
2
)).
animateNumber
({
number
:
num_
,
numberStep
:
comma_separator_number_step
},
500
);
}
},
rankData
:
function
(
daily_search_list
,
daily_order_list
)
{
var
html1
=
""
,
html2
=
""
;
...
...
@@ -441,18 +444,18 @@
date
:
function
()
{
var
day1
=
new
Date
();
day1
.
setTime
(
day1
.
getTime
()
-
24
*
60
*
60
*
1000
);
charts.date = day1.getFullYear() + "-" + (
day1.getMonth() + 1) + "-" + day1.getDate(
);
charts
.
date
=
day1
.
getFullYear
()
+
"-"
+
(
(
day1
.
getMonth
()
+
1
)
<
10
?(
'0'
+
(
day1
.
getMonth
()
+
1
)):(
day1
.
getMonth
()
+
1
)
)
+
"-"
+
((
day1
.
getDate
()
<
10
?(
'0'
+
day1
.
getDate
()):
day1
.
getDate
())
);
var
week
=
new
Array
(
"日"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
);
var
now
=
new
Date
();
var
year
=
now
.
getFullYear
();
var
month
=
now
.
getMonth
()
+
1
;
var
day
=
now
.
getDate
();
var
weekDay
=
now
.
getDay
();
$("#indexDate").html("今天是:" + year + "年" + month + "月" + day + "日" + " " + week[weekDay]);
$
(
"#indexDate"
).
html
(
"今天是:"
+
year
+
"年"
+
(
month
<
10
)?(
'0'
+
month
):
month
+
"月"
+
day
+
"日"
+
" "
+
week
[
weekDay
]);
$
(
"#year"
).
text
(
year
);
$("#month").text(month);
$("#day").text(day);
$
(
"#month"
).
text
(
(
month
<
10
)?(
'0'
+
month
):
month
);
$
(
"#day"
).
text
(
(
day
<
10
)?(
'0'
+
day
):
day
);
$
(
"#week"
).
text
(
week
[
weekDay
]);
$
.
ajax
({
url
:
"http://wthrcdn.etouch.cn/weather_mini?city=深圳"
,
...
...
@@ -476,6 +479,7 @@
var
s
=
myDate
.
getSeconds
();
if
(
s
<
10
)
{
s
=
"0"
+
s
}
$
(
"#time"
).
html
(
h
+
":"
+
m
+
":"
+
s
);
},
1000
)
...
...
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