-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall.min.js
More file actions
1 lines (1 loc) · 3.57 KB
/
all.min.js
File metadata and controls
1 lines (1 loc) · 3.57 KB
1
function init_popover(){$(".popover-toggle").popover({html:!0, title:function(){var t = $(this).attr("data-popover-content"); return $(t).children(".pp-heading").html()}}), $(document).on("click", ".popover .close", function(){$(this).parents(".popover").popover("hide")}), $("body").on("click", function(t){$(".popover-toggle").each(function(){$(this).is(t.target) || 0 !== $(this).has(t.target).length || 0 !== $(".popover").has(t.target).length || $(this).popover("hide")})}), $(".popover-toggle").on("hide.bs.popover", function(){$(".popover-toggle").removeClass("active")})}function social_share(t, e){var o = screen.width / 2 - 313, i = screen.height / 2 - 248 - 50; switch (e){case 0:window.open("https://www.facebook.com/sharer/sharer.php?u=" + t, "facebook-share-dialog", "width=626,height=496,top=" + i + ",left=" + o); break; case 1:window.open("https://plus.google.com/share?url=" + t, "google-plus-share-dialog", "width=626,height=496,top=" + i + ",left=" + o); break; case 2:window.open("https://twitter.com/intent/tweet?status=" + t, "twitter-share-dialog", "width=626,height=496,top=" + i + ",left=" + o)}}$(document).ready(function(){function t(){$(this).find(".sub-container").css("display", "block")}function e(){$(this).find(".sub-container").css("display", "none")}var o = $(".type-col-list .item"); if (o.bind("click", function(){o.removeClass("item-active"), $(this).toggleClass("item-active")}), $(".type-col-list .item").mouseup(function(){return!1}), $(document).mouseup(function(t){0 == $(t.target).parent(".type-col-list .item, .popover").length && $(".type-col-list .item").removeClass("item-active")}), $(".more-toggle").click(function(){$(".info .about").toggleClass("active")}), $(".toggle-lyric").click(function(){$(".play-lyric-content").toggleClass("active")}), $(".pc-auto").click(function(){$(this).toggleClass("disable")}), $("#m-menu").click(function(){$("#menu, #m-menu").toggleClass("active")}), $("#m-search").click(function(){$("#search, #m-search").toggleClass("active")}), $("#m-playlist").click(function(){$(".mmm-wrap .mmm-left ul, #m-playlist, .mmm-wrap").toggleClass("active")}), $("header .trick-menu, .xbar-close").click(function(){$("#xbar, #wrapper").toggleClass("xmove")}), $(".xclose").click(function(){$(".play-tools .btn.btn-active").removeClass("btn-active"), $(".this-block.block-active").removeClass("block-active")}), $(".top-menu> li").bind("mouseover", t), $(".top-menu> li").bind("mouseout", e), $(function(){function t(){var t = $(this), e = t.find(".modal-dialog"); t.css("display", "block"), e.css("margin-top", Math.max(0, ($(window).height() - e.height()) / 2))}$(".modal").on("show.bs.modal", t), $(window).on("resize", function(){$(".modal:visible").each(t)})}), $(".listened-list").length > 0 && $(".listened-list").newsTicker({row_height:52, max_rows:5, speed:600, direction:"down", duration:4e3, autostart:1, pauseOnHover:1}), $("#slider").length > 0 && new Swiper("#slider", {pagination:".swiper-pagination", paginationClickable:!0, loop:!0, autoplay:4e3}), $("#cover").length > 0){var i = $("#cover").Vague({intensity:80}); i.blur(), $(".btn:not(.animate)").on("click", $.proxy(i.toggleblur, i)), $(".btn input").on("keyup blur", function(t){i.animate( + $(t.currentTarget).val(), {duration:800}).done(function(){})})}$(".pc-btn, .pc-auto").tooltip(), $(".play-list").length > 0 && $(".play-list").perfectScrollbar(), $(".mmmc-lyric").length > 0 && $(".mmmc-lyric").perfectScrollbar(), $(".my-music-list").length > 0 && $(".my-music-list").perfectScrollbar(), $(".billboard-tab").click(function(){$(".billboard-tab").removeClass("btn-active"), $(this).addClass("btn-active")})});