Tuesday, August 21, 2012

That was stupid

I said in I'll call it an RC that the "3" and "4" keys weren't working. I figured out why.
Because, stupidly enough, i labeled the "3" key as "4", so it didn't know what to make of it.
I fixed it now.

For the people who want it (and to make this post a bit longer :P), here's the new and old code:
new:
<div class="key" id="key-3" onclick="addKey('v','3')">
    <div class="key-1 key-5" id="key-31">3</div>
    <div class="key-2" id="key-32">#</div>
    <div class="key-3" id="key-33">3</div>
    <div class="key-4" id="key-34">3</div>
</div>
<div class="key" id="key-4" onclick="addKey('v','4')">
    <div class="key-1 key-5" id="key-41">4</div>
    <div class="key-2" id="key-42">$</div>
    <div class="key-3" id="key-43">4</div>
    <div class="key-4" id="key-44">4</div>
</div>
old:
<div class="key" id="key-4" onclick="addKey('v','3')">
 <div class="key-1 key-5" id="key-31">3</div>
 <div class="key-2" id="key-32">#</div>
 <div class="key-3" id="key-33">3</div>
 <div class="key-4" id="key-34">3</div>
</div>
<div class="key" id="key-4" onclick="addKey('v','4')">
 <div class="key-1 key-5" id="key-41">4</div>
 <div class="key-2" id="key-42">$</div>
 <div class="key-3" id="key-43">4</div>
 <div class="key-4" id="key-44">4</div>
</div> 

2 comments: