Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tvgids
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
tvgids
Commits
6ab54577
Commit
6ab54577
authored
Dec 31, 2013
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added custom date parser to make stuff work in Firefox
parent
42b94ce0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
README.md
README.md
+0
-1
guide.coffee
guide.coffee
+7
-2
No files found.
README.md
View file @
6ab54577
...
@@ -12,5 +12,4 @@ A working version is available at http://tkroes.nl/tvgids/.
...
@@ -12,5 +12,4 @@ A working version is available at http://tkroes.nl/tvgids/.
Issues & TODO
Issues & TODO
-------------
-------------
-
Some channels show no programs.
-
Some channels show no programs.
-
The guide currently only works in Google Chrome.
-
Load and render the first set of programs in PHP, maybe that's faster.
-
Load and render the first set of programs in PHP, maybe that's faster.
guide.coffee
View file @
6ab54577
...
@@ -21,6 +21,11 @@ zeropad = (digit) -> if digit < 10 then '0' + digit else String(digit)
...
@@ -21,6 +21,11 @@ zeropad = (digit) -> if digit < 10 then '0' + digit else String(digit)
format_time
=
(
time
)
->
format_time
=
(
time
)
->
date
=
new
Date
(
time
)
date
=
new
Date
(
time
)
zeropad
(
date
.
getHours
())
+
':'
+
zeropad
(
date
.
getMinutes
())
zeropad
(
date
.
getHours
())
+
':'
+
zeropad
(
date
.
getMinutes
())
parse_date
=
(
str
)
->
[
date
,
time
]
=
str
.
split
(
' '
)
[
year
,
month
,
day
]
=
date
.
split
(
'-'
)
[
hours
,
minutes
,
seconds
]
=
time
.
split
(
':'
)
(
new
Date
(
year
,
month
-
1
,
day
,
hours
,
minutes
,
seconds
)).
getTime
()
store_list
=
(
name
,
values
)
->
localStorage
.
setItem
(
name
,
values
.
join
(
';'
))
store_list
=
(
name
,
values
)
->
localStorage
.
setItem
(
name
,
values
.
join
(
';'
))
load_stored_list
=
(
name
,
def
)
->
load_stored_list
=
(
name
,
def
)
->
...
@@ -87,8 +92,8 @@ ChannelList = Backbone.Collection.extend(
...
@@ -87,8 +92,8 @@ ChannelList = Backbone.Collection.extend(
title
:
p
.
titel
title
:
p
.
titel
genre
:
p
.
genre
genre
:
p
.
genre
sort
:
p
.
soort
sort
:
p
.
soort
start
:
Date
.
pars
e
(
p
.
datum_start
)
start
:
parse_dat
e
(
p
.
datum_start
)
end
:
Date
.
pars
e
(
p
.
datum_end
)
end
:
parse_dat
e
(
p
.
datum_end
)
article_id
:
p
.
artikel_id
article_id
:
p
.
artikel_id
article_title
:
p
.
artikel_titel
article_title
:
p
.
artikel_titel
)
for
p
in
programs
)
for
p
in
programs
...
...
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