Advertisement
overtone

JAVASCRIPT

Feb 12th, 2012
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. function topRowClicked()
  4. {
  5.  
  6.     var myclass = $("div.main-page").css("background-color","#0000ff");
  7.     console.log("TESTING TOP");
  8. }
  9. function bottomRowClicked()
  10. {
  11.     var myclass = $("div.main-page").css("background-color","#00ff00");
  12.     console.log("TESTING BOTTOM");
  13. }
  14.  
  15.  
  16.  
  17.  
  18.  
  19. function test()
  20. {
  21.     var oldColor = $("div.main-page").attr("background-color");
  22.     var myclass = $("div.main-page").css("background-color","#ff0000");
  23.     console.log("Testing Testing 12");
  24.     console.log(myclass);
  25. }
  26.  
  27.  
  28. $(document).ready(function() {
  29.     $("body").bind('tap',function(event, ui){
  30.         $("#111 p").replaceWith("<p>Event Triggered: Tapped</p>");
  31.     })
  32.  
  33. //    $("tr.first-row").bind('tap',function(event, ui){
  34. //        topRowClicked();
  35. //    })
  36.     $("tr.second-row").bind('tap',function(event, ui){
  37.         bottomRowClicked();
  38.     })
  39.     $("widget-button").bind('tap',function(event, ui){
  40.         bottomRowClicked();
  41.     })
  42.  
  43.  
  44. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement