Song.Site/Templates/Mobi/Default/Scripts/Course.js
(完整代码) 1KB$(function () {
//底部按钮的事件
mui('body').on('tap', '.footer a', function (event) {
var target = this.getAttribute("target");
if (target == null) document.location.href = this.href;
if (target == "_top") top.location.href = this.href;
});
//主内容选项卡
mui('body').on('tap', '.control .control-item', function (event) {
$(".control .control-item").removeClass("active");
$(this).addClass("active");
var index = $(".control .control-item").index(this);
$(".control-content>div").hide();
$(".control-content>div:eq(" + index + ")").show();
});
//自动计算图片的高度,以方便显示圆形
$(".thPhoto").each(function(index, element) {
var wd=$(this).innerWidth();
$(this).height(wd*0.95);
});
});
window.onload=function(){
$(".thPhoto").each(function(index, element) {
var wd=$(this).innerWidth();
$(this).height(wd*0.95);
});
}
$(window).scroll(function () {
// 重点就是下面这一条语句的实现
$("#footer").css({ top: window.innerHeight + window.scrollY - $("#fixnav").outerHeight() });
});
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
