Commit ab373e10 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Added help popup

parent 1d54742e
......@@ -255,6 +255,9 @@ AppView = Backbone.View.extend(
$('#tomorrow').click(-> Settings.set(day: 1))
$('#overmorrow').click(-> Settings.set(day: 2))
$('#help').click((e) -> e.stopPropagation(); $('#help-popup').show())
$(document).click(-> $('#help-popup').hide())
Channels.fetch()
@centerIndicator()
@updateIndicator()
......
......@@ -72,6 +72,18 @@ function getwday($day) {
<a href="javascript:void(0);" id="overmorrow"
class="navitem"><?php echo getwday(2) ?></a>
<a href="settings.php" class="navitem">Selecteer zenders</a>
<div id="help" class="navitem help">
<i class="icon-info-sign" title="Gebruiksaanwijzing"></i>
<div class="popup" id="help-popup">
<ul>
<li>Klik op een programma om details te zien.</li>
<li>Klik op <i class="icon-heart"></i> bij een programma om deze
in je favorieten te zetten. Dit wordt lokaal
opgeslagen, dus je moet op elke andere computer je
favorieten opnieuw instellen.</li>
</ul>
</div>
</div>
</div>
<div id="program-details" class="program-details">
......
......@@ -37,6 +37,57 @@ html, body
color: #666
cursor: default
.help
position: relative
cursor: pointer
.popup
cursor: default
background-color: white
border-radius: 6px
padding: 0 15px
font: 12px/18px Helvetica
position: absolute
left: 8px
top: 39px
color: #333
width: 300px
display: none
ul
padding-left: 15px
// Arrow up (from Twitter Bootstrap)
background-color: white
border: 1px solid #ccc
border: 1px solid rgba(0, 0, 0, 0.2)
border-right-width: 2px
border-bottom-width: 2px
border-radius: 6px
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2)
background-clip: padding-box
&:before
position: absolute
top: -7px
left: 9px
display: inline-block
border-right: 7px solid transparent
border-bottom: 7px solid #ccc
border-left: 7px solid transparent
border-bottom-color: rgba(0, 0, 0, 0.2)
content: ''
&:after
position: absolute
top: -6px
left: 10px
display: inline-block
border-right: 6px solid transparent
border-bottom: 6px solid #ffffff
border-left: 6px solid transparent
content: ''
.guide
width: 100%
max-height: 100%
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment