parent
51111309ae
commit
72847d4d71
37 changed files with 457 additions and 105 deletions
@ -0,0 +1,30 @@ |
|||||||
|
$(document).ready(function(){ |
||||||
|
|
||||||
|
$('.on').click(function(){ |
||||||
|
var url = $(this).attr('href') |
||||||
|
var $this = $(this) |
||||||
|
$.get( |
||||||
|
url, function(data){ |
||||||
|
if (data == 'on'){ |
||||||
|
$this.hide(); |
||||||
|
$this.siblings('.off').show(); |
||||||
|
} |
||||||
|
});//end get
|
||||||
|
return false; |
||||||
|
}); |
||||||
|
|
||||||
|
$('.off').click(function(){ |
||||||
|
var url = $(this).attr('href') |
||||||
|
var $this = $(this) |
||||||
|
$.get( |
||||||
|
url, function(data){ |
||||||
|
if (data == 'off'){ |
||||||
|
$this.hide(); |
||||||
|
$this.siblings('.on').show(); |
||||||
|
} |
||||||
|
} |
||||||
|
) |
||||||
|
return false; |
||||||
|
}); |
||||||
|
|
||||||
|
}); |
||||||
Loading…
Reference in new issue