Skip to content

Commit

Permalink
added onComplete event and support data-set defined events
Browse files Browse the repository at this point in the history
  • Loading branch information
leegee committed Oct 30, 2012
1 parent b9c45b3 commit 44e7186
Show file tree
Hide file tree
Showing 4 changed files with 207 additions and 84 deletions.
40 changes: 40 additions & 0 deletions Demo/index.html
Expand Up @@ -180,6 +180,46 @@ <h2>As previous, but without JavaScript, plus two-way interation with input fiel
</p> </p>
</section> </section>



<section>
<h2>HTML onComplete Callback</h2>
<xmp>
<span id='knob-js95'
class='mooknob rotary2'
style='background:steelblue; margin-left:20px'
data-monitor='knob-js95-value'
aria-valuemin=-100
aria-valuemax=100
data-value=0
data-forceint=1
data-oncomplete='
(function(){
alert("My value is "+this.value)
})
'></span>
&mdash; Value
<input type='text' value='' id='knob-js95-value'></span>
</xmp>
<p>The result:
<span id='knob-js95'
class='mooknob rotary2'
style='background:steelblue; margin-left:20px'
data-monitor='knob-js95-value'
aria-valuemin=-100
aria-valuemax=100
data-value=0
data-forceint=1
data-oncomplete='
(function(){
alert("My value is "+this.value)
})
'></span>
&mdash; Value
<input type='text' value='' id='knob-js95-value'></span>
</p>
</section>


<section> <section>
<h2>Inline Graphics</h2> <h2>Inline Graphics</h2>
<p> <p>
Expand Down

0 comments on commit 44e7186

Please sign in to comment.