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
0531a92c
Commit
0531a92c
authored
Dec 31, 2013
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added loading screen, fixed some minor CSS issues
parent
78ee741c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
10 deletions
+42
-10
guide.coffee
guide.coffee
+10
-6
index.html
index.html
+6
-2
loading.gif
loading.gif
+0
-0
style.sass
style.sass
+26
-2
No files found.
guide.coffee
View file @
0531a92c
...
...
@@ -71,6 +71,7 @@ ChannelList = Backbone.Collection.extend(
@
findWhere
(
id
:
id
)
?
.
set
(
visible
:
false
)
fetchPrograms
:
(
day
)
->
$
(
'#loading-screen'
).
show
()
$
.
getJSON
(
FETCH_URL
channels
:
@
pluck
(
'id'
).
join
(
','
),
day
:
day
...
...
@@ -88,6 +89,7 @@ ChannelList = Backbone.Collection.extend(
article_title
:
p
.
artikel_titel
)
for
p
in
programs
))
$
(
'#loading-screen'
).
hide
()
)
)
...
...
@@ -156,7 +158,7 @@ ProgramView = Backbone.View.extend(
@
$el
.
addClass
(
'current'
)
)
ChannelLabelView
=
Backbone
.
View
.
extend
(
ChannelLabel
s
View
=
Backbone
.
View
.
extend
(
el
:
$
(
'.channel-labels'
)
initialize
:
(
options
)
->
...
...
@@ -200,11 +202,11 @@ AppView = Backbone.View.extend(
@
listenTo
(
Channels
,
'reset'
,
@
addChannels
)
@
listenTo
(
Settings
,
'change:day'
,
@
fetchPrograms
)
@
labelview
=
new
ChannelLabelView
(
app
:
@
)
@
labelview
=
new
ChannelLabel
s
View
(
app
:
@
)
@
updateIndicator
()
@
centerIndicator
()
Channels
.
fetch
()
@
centerIndicator
()
@
updateIndicator
()
setInterval
((
=>
@
updateIndicator
()),
3600000
/
HOUR_WIDTH
)
addChannels
:
->
...
...
@@ -214,7 +216,7 @@ AppView = Backbone.View.extend(
view
.
render
()
@
$
(
'.channels'
).
append
(
view
.
el
)
,
@
)
@
$
(
'.indicator'
).
height
(
@
$
(
'.channels'
).
height
()
)
@
updateIndicator
(
)
@
fetchPrograms
()
loadDay
:
(
day
)
->
...
...
@@ -224,7 +226,9 @@ AppView = Backbone.View.extend(
updateIndicator
:
->
left
=
time2px
(
seconds_today
(
Date
.
now
()))
+
CHANNEL_LABEL_WIDTH
-
1
@
$
(
'.indicator'
).
css
(
'left'
,
left
+
'px'
)
@
$
(
'.indicator'
)
.
css
(
'left'
,
left
+
'px'
)
.
height
(
@
$
(
'.channels'
).
height
()
-
2
)
centerIndicator
:
->
@
$el
.
scrollLeft
(
@
$
(
'.indicator'
).
position
().
left
-
@
$el
.
width
()
/
2
)
...
...
index.html
View file @
0531a92c
...
...
@@ -39,6 +39,12 @@
<div
class=
"hour"
>
23:00
</div>
</div>
</div>
<div
id=
"loading-screen"
class=
"loading-screen"
>
<div
class=
"bg"
></div>
<div
class=
"loader"
></div>
</div>
<div
class=
"navbar"
>
<a
href=
"javascript:void(0);"
id=
"yesterday"
class=
"navitem"
>
Gisteren
</a>
<a
href=
"javascript:void(0);"
id=
"today"
class=
"navitem active"
>
Vandaag
</a>
...
...
@@ -47,10 +53,8 @@
</div>
<script
src=
"lib/jquery-1.10.2.min.js"
type=
"text/javascript"
></script>
<script
src=
"lib/jquery.mousewheel.js"
type=
"text/javascript"
></script>
<script
src=
"lib/underscore-min.js"
type=
"text/javascript"
></script>
<script
src=
"lib/backbone-min.js"
type=
"text/javascript"
></script>
<script
src=
"lib/json2.js"
type=
"text/javascript"
></script>
<script
src=
"channels.js"
type=
"text/javascript"
></script>
<script
src=
"guide.js"
type=
"text/javascript"
></script>
...
...
loading.gif
0 → 100644
View file @
0531a92c
6.66 KB
style.sass
View file @
0531a92c
...
...
@@ -37,7 +37,7 @@ html, body
.guide
width
:
100%
height
:
100%
//
height: 100%
overflow-x
:
scroll
position
:
relative
...
...
@@ -116,7 +116,6 @@ html, body
&
:hover
.favlink
visibility
:
visible
.indicator
position
:
absolute
width
:
1px
...
...
@@ -156,3 +155,28 @@ html, body
button
margin
:
6px
0
6px
6px
$loader-size
:
66px
.loading-screen
display
:
none
position
:
fixed
width
:
100%
height
:
100%
top
:
0
left
:
0
.bg
width
:
100%
height
:
100%
background-color
:
#000
opacity
:
0
.8
.loader
position
:
absolute
width
:
$loader-size
height
:
$loader-size
top
:
50%
left
:
50%
margin
:
(
-
$loader-size
/
2
)
0
0
(
-
$loader-size
/
2
)
background
:
url("loading.gif")
no-repeat
left
top
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