visualEffects.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. $(document).ready(function () {
  2. $(".row4").hover(function () {
  3. $(this).stop().animate({color: "#B22222"}, 50);
  4. }, function () {
  5. $(this).stop().animate({color: "#000000"}, 50);
  6. });
  7. });
  8. $(document).ready(function () {
  9. $(".row4").click(function () {
  10. $(this).toggleClass("ChosenOne");
  11. });
  12. });
  13. $(document).ready(function () {
  14. $(".row4").dblclick(function () {
  15. var data = $(this).find("a").text();
  16. var login = $.trim(data);
  17. var params = decodeURIComponent(window.location.search.substring(1)),
  18. splited = params.split('&'),
  19. get = [];
  20. get[0] = splited[0].split('=');
  21. get[1] = splited[1].split('=');
  22. if (get[0][1] === 'per_city_action') {
  23. get[2] = splited[2].split('=');
  24. if (get[1][1] === 'city_payments') {
  25. get[3] = splited[3].split('=');
  26. window.location.href = $.query.REMOVE(get[1][0]).REMOVE(get[2][0]).REMOVE(get[3][0]).SET("module", "userprofile").SET("username", login);
  27. } else {
  28. window.location.href = $.query.REMOVE(get[1][0]).REMOVE(get[2][0]).SET("module", "userprofile").SET("username", login);
  29. }
  30. }
  31. });
  32. });