B.html 387 Bytes
Newer Older
Ivan Tyagov's avatar
Ivan Tyagov committed
1 2 3 4 5 6
<div> B (gadget) </div>

<script type="text/javascript" language="javascript">
  //<![CDATA[
    $(document).ready(function() {
      gadget = RenderJs.GadgetIndex.getGadgetById("B");
7
      gadget.inc = function (){counter = counter + 1; };
Ivan Tyagov's avatar
Ivan Tyagov committed
8
      gadget.htmlEvent1 = function (){counter = counter + 1;};
Ivan Tyagov's avatar
Ivan Tyagov committed
9
      gadget.inc2 = function (){counter = counter + 2; };
Ivan Tyagov's avatar
Ivan Tyagov committed
10 11 12
    });
  //]]>
</script>