锘縱ar Main = function () { "use strict"; var runManiNav = function () { //閸濆秴绨插蹇擃嚤閼?--infinitypush.js function responsive() { if ($(window).width() <= 1200) { console.log('mobile navigation'); $('#mobile-navigation').infinitypush({ offcanvasleft: false }); $('body').addClass('mobile'); $('body').removeClass('desktop'); } else { console.log('desktop navigation'); $('#mobile-navigation').infinitypush({ destroy: true }); $('body').removeClass('mobile'); $('body').addClass('desktop'); } } function windowResize() { $(window).resize(function () { responsive(); }); } responsive(); windowResize(); }; return { //main function to initiate template pages init: function () { runManiNav(); } }; // 閸欏厖鏅跺ù顔煎З $(function () { $(".share1 ul li").mouseenter(function () { $(".share-show").hide(); $(this).find(".share-show").show(); }); $(".share-show").mouseenter(function (e) { $(this).show(); }); $(".share-show").mouseleave(function (e) { console.log("******", e); if (e.relatedTarget == null) { e.preventDefault(); return; } $(this).hide(); }); }); }();