var meet = {
_w: document.documentElement.clientWidth,
_h: document.documentElement.clientWidth,
init: function () {
this.videoHeight = this.getHeight(16 / 9);
this.active();
this.initSwiper();
this.touchSwipeReview();
this.showShare();
this.closeShare();
this.showReviewPoint();
this.showCurrentPoint();
this.reviewPointVideo();
},
initVideo: function (id, pic) {
var _this = this;
var player = new Txplayer({
containerId: 'mod-player',
vid: id,
width: _this._w,
height: _this.videoHeight,
poster: pic
});
},
getHeight: function (scale) {
return this._w / scale;
},
active: function () {
var _this = this;
$('.mod-player').css({
'width': _this._w,
'height': _this.videoHeight
});
$('#vide-content').css({
'margin-top': (_this._h - _this.videoHeight) / 2
})
document.querySelector('body').addEventListener('touchmove', function (e) {
if (!document.querySelector('.review-more').contains(e.target)) {
e.preventDefault();
}
})
_this.initVideo('j0511ygervb', 'http://external-1255598498.file.myqcloud.com/public_h5/%E8%94%9A%E6%9D%A5H5/pic/%E5%B0%81%E9%9D%A2%E5%9B%BE.JPG');
},
initSwiper: function () {
var mySwiper = new Swiper('.swiper-container', {
direction: 'vertical',
loop: false,
pagination: '.swiper-pagination',
speed: 200,
onSlideChangeStart: function (swiper) {
console.log(swiper.activeIndex);
if (swiper.activeIndex === 2) {
$('.slider-up').addClass('slider-up-guide');
} else { }
}
})
},
touchSwipeReview: function () {
$(".review").swipe({
swipe: function (event, direction, distance, duration, fingerCount, fingerData) {
if (direction === 'up') {
}
}
});
},
showShare: function () {
$('#qrcodeShow').on('click', function () {
$('.share').fadeIn();
})
},
closeShare: function () {
$('.share').on('click', function () {
$(this).fadeOut();
})
},
showReviewPoint: function () {
$('#showReviewPoint').on('click', function () {
$('#reviewPoint').fadeIn();
})
$('#hideReviewPoint').on('click', function () {
$('#reviewPoint').fadeOut();
})
},
showCurrentPoint: function () {
$('#showCurrentPoint').on('click', function () {
$('#currentPoint').fadeIn();
})
$('#hideCurrentPoint').on('click', function () {
$('#currentPoint').fadeOut();
})
},
reviewPointVideo: function () {
var _this = this;
var player;
$('.show-video').on('click', function () {
var vid = $(this).attr('data-vid');
console.log(vid)
player = new Txplayer({
containerId: 'vide-content',
vid: vid,
width: _this._w,
height: _this.videoHeight
});
$('.modal-video').fadeIn();
})
$('.close-modal').on('click', function () {
$('.modal-video').fadeOut();
$('#vide-content').empty();
})
}
} $(document).ready(function () {
$('body').on('touchmove', function (event) {
});
meet.init();
});

  

提取的js,要先部署在远程,再引入的更多相关文章

  1. fis-receiver:一行命令将项目部署到远程服务器

    前言 本项目基于FIS2,没了.其实fis项目本身就提供了php版本的范例,这里翻译成node版本. 项目地址:https://github.com/chyingp/fis-receiver 服务端接 ...

  2. Hexo博客部署到远程仓库(Conding、Gitee、Github)

    一.本地环境搭建 1.安装Git Git可以有效.高速的处理各种项目版本管理.也就是用来管理你的hexo博客文章,上传到GitHub的工具. Git下载地址 安装好了之后使用git -version查 ...

  3. 【WCF】如何将WCF部署到远程服务器

    一.前言       最近需要将自己写的WCF服务部署到远程服务器上,也就是公网上.宿主是IIS,在配置成功之前遇到了很多问题,问题如下: 1. WCF该怎么宿主在IIS上,为何会出现 400 Bad ...

  4. CruiseControl.Net <buildpublisher>部署到远程机器报错的解决办法

    CruiseControl.Net ,使用<buildpublisher>将编译后的程序部署到远程机器时,使用以下配置 <buildpublisher> <sourceD ...

  5. Jenkins部署到远程(Linux服务器)

    接着上次的说,上次只是实现了本地自动化部署,这种情况只是针对开发环境和部署环境在同一台机器时适用.不过,一般情况下,我们都会要把项目部署到远程Linux服务器上,所以这节的主要内容是: 1.部署开发环 ...

  6. maven自动部署到远程tomcat教程

    使用maven的自动部署功能可以很方便的将maven工程自动部署到远程tomcat服务器,节省了大量时间. 本文章适用于tomcat的7.x ,8.x, 9.x版本. 下面是自动部的步骤 1,首先,配 ...

  7. 用Maven打包成EAR远程部署JBoss(二)——部署到远程JBoss

    用Maven打包成EAR远程部署JBoss(一)讲了如何使用Maven打包,可是在文章的最后也留下了一个问题,那就是如何将包部署到远程的JBoss中呢?近期在对之前的学习进行总结,发现少了这样一篇重要 ...

  8. SpringBoot工程+热部署进行远程调试

    本文转载自:https://blog.csdn.net/qq_31868349/article/details/78553901 SpringBoot工程+热部署进行远程调试 本地端添加配置 在pom ...

  9. 【SqlServer】如何把本地SqlServer数据库部署到远程服务器上

    这里笔者使用的使用SqlServer2012,本机和远程环境均为Win7. 1.选中需要部署的数据库,右击>任务>分离.选中删除连接. 2.现在在左侧的表中就看不见刚才那个数据了. 3.在 ...

随机推荐

  1. assert 与if

    strlen的实现用不用加断言(assert)? http://en.cppreference.com/w/cpp/error/assert 自己写strlen实现会加assert判断空指针,Debu ...

  2. tensorflow和pytorch的区别

    pytorch是动态框架,tensorflow是静态框架 针对tensorflow,我们先构造了一个计算图,构建完之后,这个计算图就不能改变了,我们再开启会话,输入数据,进行计算.那么这个流程就是固定 ...

  3. 应用安全 - 安全设备 - WAF原理/检测/绕过

    原理 基于Cookie值 Citrix Netscaler(2013年使用广泛) “Citrix Netscaler”会在HTTP返回头部Cookie位置加入“ns_af”的值,可以以此判断为Citr ...

  4. PTA第四周作业

    一.本周完成的作业 7-2 选择法排序 (20 分) 本题要求将给定的n个整数从大到小排序后输出. 输入格式: 输入第一行给出一个不超过10的正整数n.第二行给出n个整数,其间以空格分隔. 输出格式: ...

  5. hive DDL操作

    1.创建数据库 CREATE DATABASE [IF NOT EXISTS] database_name [COMMENT database_comment] [LOCATION hdfs_path ...

  6. Consul集群Server+Client模式

    Consul集群Server+Client模式 架构示意图 只使用Consul的Server模式有以下2个问题: 因为Consul Server数量受到控制所以压力承载(扩展性)是个问题. Serve ...

  7. PTA第二题

    #include<string.h> #include<stdio.h> #include<malloc.h> ]; ][]={"ling",& ...

  8. [Codeforces 1191D] Tokitsukaze, CSL and Stone Game(博弈论)

    [Codeforces 1191D] Tokitsukaze, CSL and Stone Game(博弈论) 题面 有n堆石子,两个人轮流取石子,一次只能从某堆里取一颗.如果某个人取的时候已经没有石 ...

  9. Vue+Element-Ui 异步表单效验

    简单的效验 Form 组件提供了表单验证的功能,只需要通过 rules 属性传入约定的验证规则,并将 Form-Item 的 prop 属性设置为需校验的字段名 /* ruleForm :表单绑定的数 ...

  10. linux为 rsync 添加开机启动

    [root@rsync-server-1 /]# echo "/usr/bin/rsync --daemon" >> /etc/rc.local [root@rsync ...