public.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. var qrcode = new QRCode(document.getElementById("qrcode"), {
  2. width: 100,
  3. height: 100
  4. });
  5. // url生成二维码
  6. if($(".az_code_right").length>0){
  7. var qrcode_title = new QRCode(document.getElementById("qrcode_title"), {
  8. width : 100,
  9. height : 100
  10. });
  11. }
  12. $(function () {
  13. var p_text1 = $("#code_url").text();
  14. if($(".az_code_right").length>0){
  15. qrcode_title.makeCode(p_text1);
  16. }
  17. $(".public_nav li").removeClass('current_page').eq(1).addClass('current_page');
  18. $("#J_rank_list").load('/Layout/gameRankList');
  19. });
  20. // 安卓下载按钮
  21. $(".az_code_right .az_ed_download").hover(function () {
  22. $(".az_ed_download img").attr("src", "/static/images/home/az-white.png");
  23. }, function () {
  24. $(".az_ed_download img").attr("src", "/static/images/home/SVG-07.png");
  25. });
  26. $(".az_no_link .az_no_download").hover(function () {
  27. $(".az_no_download img").attr("src", "/static/images/home/az-white.png");
  28. }, function () {
  29. $(".az_no_download img").attr("src", "/static/images/home/SVG-19.png");
  30. });
  31. $(".az_no_download").click(function () {
  32. $(".warp_no_download_popup").show();
  33. })
  34. // 手游排行控件显示隐藏
  35. $(function () {
  36. $('.rank_list>div').eq(0).find('.big').show()
  37. $('.rank_list>div').eq(0).find('.small').hide()
  38. $('.rank_list').hover(function () {
  39. $('.rank_list>div').hover(function () {
  40. $(this).find('.big').show().parent().siblings().find('.big').hide();
  41. $(this).find('.small').hide().parent().siblings().find('.small').show();
  42. });
  43. });
  44. })