提取的js,要先部署在远程,再引入
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,要先部署在远程,再引入的更多相关文章
- fis-receiver:一行命令将项目部署到远程服务器
前言 本项目基于FIS2,没了.其实fis项目本身就提供了php版本的范例,这里翻译成node版本. 项目地址:https://github.com/chyingp/fis-receiver 服务端接 ...
- Hexo博客部署到远程仓库(Conding、Gitee、Github)
一.本地环境搭建 1.安装Git Git可以有效.高速的处理各种项目版本管理.也就是用来管理你的hexo博客文章,上传到GitHub的工具. Git下载地址 安装好了之后使用git -version查 ...
- 【WCF】如何将WCF部署到远程服务器
一.前言 最近需要将自己写的WCF服务部署到远程服务器上,也就是公网上.宿主是IIS,在配置成功之前遇到了很多问题,问题如下: 1. WCF该怎么宿主在IIS上,为何会出现 400 Bad ...
- CruiseControl.Net <buildpublisher>部署到远程机器报错的解决办法
CruiseControl.Net ,使用<buildpublisher>将编译后的程序部署到远程机器时,使用以下配置 <buildpublisher> <sourceD ...
- Jenkins部署到远程(Linux服务器)
接着上次的说,上次只是实现了本地自动化部署,这种情况只是针对开发环境和部署环境在同一台机器时适用.不过,一般情况下,我们都会要把项目部署到远程Linux服务器上,所以这节的主要内容是: 1.部署开发环 ...
- maven自动部署到远程tomcat教程
使用maven的自动部署功能可以很方便的将maven工程自动部署到远程tomcat服务器,节省了大量时间. 本文章适用于tomcat的7.x ,8.x, 9.x版本. 下面是自动部的步骤 1,首先,配 ...
- 用Maven打包成EAR远程部署JBoss(二)——部署到远程JBoss
用Maven打包成EAR远程部署JBoss(一)讲了如何使用Maven打包,可是在文章的最后也留下了一个问题,那就是如何将包部署到远程的JBoss中呢?近期在对之前的学习进行总结,发现少了这样一篇重要 ...
- SpringBoot工程+热部署进行远程调试
本文转载自:https://blog.csdn.net/qq_31868349/article/details/78553901 SpringBoot工程+热部署进行远程调试 本地端添加配置 在pom ...
- 【SqlServer】如何把本地SqlServer数据库部署到远程服务器上
这里笔者使用的使用SqlServer2012,本机和远程环境均为Win7. 1.选中需要部署的数据库,右击>任务>分离.选中删除连接. 2.现在在左侧的表中就看不见刚才那个数据了. 3.在 ...
随机推荐
- 编程字体Source Code Pro 免费下载
对于程序员来说,好的字体应该满足的基本条件: 字母和数字易于分辨,如: 英文字母o 和 阿拉伯数字 0 ,或者 英文字母 l 和 阿拉伯数字 1 ,两个单引号 '' 和双引号 ”. 字体等宽,保持对齐 ...
- 关于iphone 6s 页面功能不能正常使用问题
6s 不支持es6 语法.去除es6语法后页面功能正常使用!!!!!
- Node.js实战10:“流”是Node.js最强大的功能之一。
流是Nodejs的高级应用,掌握流的使用,才能真正胜任NodeJS开发. Nodejs中,流是基于事件的API,用于管理和处理数据,而且效率很好! 什么是流? 流是一个抽象接口,Node 中有很多对象 ...
- linux中cut命令
cut命令 cut常用参数 cut命令用来显示行中的指定部分,删除文件中指定字段. 说明:该命令有两项功能,其一是用来显示文件的内容,它依次读取由参数file所指明的文件,将它们的内容输出到标准输出上 ...
- (前篇:NIO系列 推荐阅读) Java NIO 底层原理
出处: Java NIO 底层原理 目录 1.1. Java IO读写原理 1.1.1. 内核缓冲与进程缓冲区 1.1.2. java IO读写的底层流程 1.2. 四种主要的IO模型 1.3. 同步 ...
- java操作mongodb工具类
新建maven项目 pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="ht ...
- JSP学习(3)
JSP学习(3) JSP内置对象 Web容器创建的一组对象,不使用new关键字就可以使用的内置对象 用户服务器请求 缓冲区:Buffer,就是内存的一块区域,用来保存临时数据. get与post的区别 ...
- Centos7搭建日志服务器rsyslog+loganalyzer
一.系统环境 Rsyslog Server OS:CentOS 7 Rsyslog Server IP:172.28.194.118 Rsyslog Version: rsyslog-7.4.7-12 ...
- 08Servlet
1.Servlet概念 1.1 servlet的特点 1)sevlet是一个普通的java类,继承HttpServlet类. 2)其实实现了Servlet接口的java类,才是一个Servlet类. ...
- 04Dropout
不加Dropout,训练数据的准确率高,基本上可以接近100%,但是,对于测试集来说,效果并不好: 加上Dropout,训练数据的准确率可能变低,但是,对于测试集来说,效果更好了,所以说Dropout ...