MxWeiXinPF.Web/templatesstore/js/common_mobile.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

$(document).ready(function(){
	//分辨率适应
	$(window).resize(function(){
		$(".submitBox .btn").width($(window).width()*0.42-15);
		var wheight = $(window).height()-113+"px";
		$("#wrap").css("min-height",wheight);
	}).resize();
	
	//按钮点击
	$('.meun span,.btn,a').on('touchstart',function(){
		$(this).addClass('hover');
	}).on('touchend',function(){
		$(this).removeClass('hover');
	});	
	
	//侧栏菜单
	$(".option").height($(window).height()-47);
	$(".option table").width($(window).width()-60);
	$(".option tr td a").css("padding",(($(window).height()-47)/4-79)/2+"px 0");
	var flagC = true;
	$(".iconMeun").click(function(e) {
		if(flagC){
			$(".option").animate({marginLeft:0},"slow");
			flagC = false;
		}
		else{
			$(".option").animate({marginLeft:"100%"},"slow");
			flagC = true;
		}
		$(".iconMeun").toggleClass("hover");
	});
	$(".option .close").click(function(e) {
		$(".option").animate({marginLeft:"100%"},"slow");
		flagC = true;
		$(".iconMeun").toggleClass("hover");
	});
	
	//查看更多loading
	$('.btnMore').click(function(){
		$('#loading').fadeIn();
	});
	
	//在线咨询
	$('.btnConsult').click(function(){
		$('#Information').fadeIn();
	});
	$('.close').click(function(){
		$('.pop').fadeOut();
	});
	
	//video全屏播放
	$('.video').click(function(){
		$('video')[0].play();
		$('video')[0].webkitEnterFullscreen();
	});
	document.onwebkitfullscreenchange=function(){
		if(!document.webkitFullscreenElement){
			$('video')[0].pause();
		}
    };
后面还有 26 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。