repo.or.cz
/
recordtv.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Refactor favourite implementation and add some tests.
[recordtv.git]
/
include
/
index.html
blob
71d3473f29a925fa94bc1b14f7848e6634d188bf
1
<script
type
=
"text/javascript"
>
2
<!--
3
var
currentTime
=
new
Date
();
4
5
filename
=
"tv-"
;
6
filename
+=
currentTime
.
getFullYear
();
7
filename
+=
"-"
;
8
mon
=
currentTime
.
getMonth
() +
1
;
9
if
(
mon
<
10
)
10
{
11
filename
+=
"0"
;
12
}
13
filename
+=
mon
;
14
filename
+=
"-"
;
15
day
=
currentTime
.
getDate
();
16
if
(
day
<
10
)
17
{
18
filename
+=
"0"
;
19
}
20
filename
+=
day
;
21
filename
+=
".html"
;
22
23
window
.
location
=
filename
;
24
//-->
25
</script>
26