/* * @descripttion: * @version: * @author: 闫旭 * @date: 2021-01-04 15:45:37 * @lasteditors: suerimn * @lastedittime: 2021-02-04 17:16:17 */ (function () { function videostate(ele) { // ele.addeventlistener("play", function () { // //播放开始执行的函数 显示控制器 // $(".video_play").hide(); // $("#video").attr("controls", true); // }); // ele.addeventlistener("pause", function () { // //暂停开始执行的函数 // $(".video_play").show(); // }); } $(function () { // 视频操作逻辑 var video = document.queryselector("video"); videostate(video); $(".profile").on("click", ".video_play", function () { video.play(); $(this).hide(); }); }); $(".company_profile_right_single").hover( function () { $(this).find(".img").hide(); $(this).find(".active_img").show(); }, function () { $(this).find(".img").show(); $(this).find(".active_img").hide(); } ); })();