mirror of https://github.com/freeCodeCamp/devdocs
parent
6ce3aa2667
commit
d0d47e2891
@ -0,0 +1,10 @@
|
|||||||
|
app.templates.tipKeyNav = """
|
||||||
|
<p class="_notif-text">
|
||||||
|
<strong>ProTip</strong>
|
||||||
|
<span class="_notif-info">(click to dismiss)</span>
|
||||||
|
<p class="_notif-text">
|
||||||
|
Hit <code class="_label">↓</code> <code class="_label">↑</code> <code class="_label">←</code> <code class="_label">→</code> to navigate the sidebar.<br>
|
||||||
|
Hit <code class="_label">alt ↓</code> <code class="_label">alt ↑</code> or <code class="_label">space</code> <code class="_label">shift space</code> to scroll the page.
|
||||||
|
<p class="_notif-text">
|
||||||
|
<a href="/help#shortcuts" class="_notif-link">See all keyboard shortcuts</a>
|
||||||
|
"""
|
@ -0,0 +1,11 @@
|
|||||||
|
#= require views/misc/notif
|
||||||
|
|
||||||
|
class app.views.Tip extends app.views.Notif
|
||||||
|
@className: '_notif _notif-tip'
|
||||||
|
|
||||||
|
@defautOptions:
|
||||||
|
autoHide: false
|
||||||
|
|
||||||
|
render: ->
|
||||||
|
@html @tmpl("tip#{@type}")
|
||||||
|
return
|
Loading…
Reference in new issue