Permalink
Browse files

Added function keys for global comments

  • Loading branch information...
1 parent 12f38a7 commit 5bae353a0870d668600c31d9bdb4c986a2f427f5 @pantulis committed Jun 2, 2010
Showing with 6 additions and 2 deletions.
  1. +2 −2 index.html
  2. +4 −0 javascripts/superinstantcomment.js
View
4 index.html
@@ -17,11 +17,11 @@ <h1 id="superinstantcomment">SuperInstantComment</h1>
<ul>
<li id="content">
- <h2>Comments globales</h2>
+ <h2>Comments globales (teclas de función)</h2>
<ul>
{% for c in global_comments %}
<li>
- <a href="#" class="click2play"><strong>{{ c.name }}</strong></a>
+ F{{forloop.counter}} - <a href="#" class="click2play"><strong>{{ c.name }}</strong></a>
<audio id="global{{forloop.counter}}" autobuffer="true" src="/get?cid={{c.key}}"></audio>
</li>
{% endfor %}
View
4 javascripts/superinstantcomment.js
@@ -6,6 +6,10 @@ var SIC = {
value = code.which - 48;
selector = "#audio" + value;
SIC.play_media($(selector));
+ } else if (code.which >= 111 && code.which <= 121) {
+ value = code.which - 111;
+ selector = "#global" + value;
+ SIC.play_media($(selector));
};
})
},

0 comments on commit 5bae353

Please sign in to comment.