Advertisement
overtone

Javascript to accompany android click

Feb 12th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.     $("tr.first-row").bind('tap',function(event, ui){
  3.         topRowClicked();
  4.     })
  5.     $("tr.second-row").bind('tap',function(event, ui){
  6.         bottomRowClicked();
  7.     })
  8.     $("widget-button").bind('tap',function(event, ui){
  9.         bottomRowClicked();
  10.     })
  11.  
  12.  
  13. });
  14.  
  15. function topRowClicked()
  16. {
  17.     var myclass = $("div.main-page").css("background-color","#0000ff");
  18.     console.log("TESTING TOP");
  19. }
  20. function bottomRowClicked()
  21. {
  22.     var myclass = $("div.main-page").css("background-color","#00ff00");
  23.     console.log("TESTING BOTTOM")
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement