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
1ce0515e
Commit
1ce0515e
authored
Feb 10, 2014
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Details window now has a scrollbar when browser window is small
parent
362f4218
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
guide.coffee
guide.coffee
+10
-2
index.php
index.php
+2
-2
style.sass
style.sass
+3
-1
No files found.
guide.coffee
View file @
1ce0515e
...
...
@@ -9,6 +9,7 @@ STORAGE_PROGRAMS = 'tvgids-programs'
HOURS_BEFORE
=
HOURS_AFTER
=
2
DEFAULT_CHANNELS
=
[
1
,
2
,
3
,
4
,
31
,
46
,
92
,
36
,
37
,
34
,
29
,
18
,
91
]
DEFAULT_CHANNELS
=
_
.
map
(
DEFAULT_CHANNELS
,
String
)
DETAILS_WINDOW_PADDING
=
22
# top/margin padding + border clean margin
#
# Utils
...
...
@@ -208,6 +209,8 @@ ProgramDetailsView = Backbone.View.extend(
initialize
:
(
options
)
->
@
listenTo
(
Settings
,
'change:selected_program'
,
@
toggleDetails
)
@
setBounds
()
$
(
window
).
resize
(
=>
@
setBounds
())
toggleDetails
:
->
id
=
Settings
.
get
(
'selected_program'
)
...
...
@@ -230,9 +233,14 @@ ProgramDetailsView = Backbone.View.extend(
@
$el
.
hide
()
@
$
(
'.content'
).
empty
()
setBounds
:
->
max
=
$
(
window
).
height
()
-
2
*
DETAILS_WINDOW_PADDING
@
$
(
'.content'
).
css
(
maxHeight
:
max
)
@
alignMiddle
()
alignMiddle
:
->
top
=
@
$
(
'.content'
).
outerHeight
()
/
2
@
$
(
'.content'
).
css
(
marginTop
:
"-
#{
top
}
px"
)
height
=
@
$
(
'.content'
).
outerHeight
()
@
$
(
'.content'
).
css
(
marginTop
:
"-
#{
height
/
2
}
px"
)
)
AppView
=
Backbone
.
View
.
extend
(
...
...
index.php
View file @
1ce0515e
...
...
@@ -110,8 +110,8 @@ function getwday($day) {
<%
})
%>
<
/ul
>
<
div
class
=
"
description
"
><%=
description
%><
/div
>
Zie
ook
de
<
a
href
=
"
http://www.tvgids.nl/programma/<%= id %>
"
target
=
"
_blank
"
>
details
<
/a> op tvgids.nl
.
<
p
>
Zie
ook
de
<
a
href
=
"
http://www.tvgids.nl/programma/<%= id %>
"
target
=
"
_blank
"
>
details
<
/a> op tvgids.nl.
</
p
>
</script>
<script
src=
"lib/jquery-1.10.2.min.js"
type=
"text/javascript"
></script>
...
...
style.sass
View file @
1ce0515e
...
...
@@ -263,9 +263,11 @@ $details-initial-offset: 150px
width
:
$details-width
margin
:
-
$details-initial-offset
0
0
(
-
$details-width
/
2
)
border-radius
:
6px
padding
:
1
0px
15px
padding
:
1
2px
15px
0
font
:
12px
/
18px
Helvetica
box-shadow
:
0
0
7px
5px
#0f0f0f
overflow-x
:
hidden
overflow-y
:
auto
*
max-width
:
$details-width
...
...
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