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. ios平台appstore不支持网页内嵌app解决方案

    苹果一直拒绝 UIWebView 内嵌 HTML5 页面的 iPhone.iPad APP应用上架到 App Store,建议这样的APP去做成Safari的Web应用.但是,苹果的审核人员只从界面. ...

  2. Hibernate异常:MappingException

    异常信息: org.hibernate.MappingException: Unknown entity: com.geore.pojo.customer.Customer 造成原因: Mapping ...

  3. [随笔重写] Python3 的深拷贝与浅拷贝

    1. Python3 关于深浅拷贝的官方文档 文档地址:Python3.7.2 源码地址:lib/copy.py 2. 先说结论 深拷贝与浅拷贝是对复合对象而言的 深拷贝会构造一个新的复合对象,然后递 ...

  4. ubuntu终端代理之proxychains

    命令行代理 安装proxychains sudo apt install proxychains 配置proxychains sudo vim /etc/proxychains.conf 在proxy ...

  5. Weak Pair (dfs+树状数组)

    Weak Pair (dfs+树状数组) 题意 这个题目是要求:一颗树上,有n个节点,给出每个节点的权值.另外给出一个值k,问有多少对节点满足: \(power[u]*power[v]<=k\) ...

  6. enWin使用部分中文字库

    在小型嵌入式设备中有时需要简单的人机2交互界面,小型GUI有很多,比较常用的有STenWin,UCGUI,enwin,Embedded Wizard GUI.对与STenWin和enWin区别主要在S ...

  7. JVM — 类加载机制

    1. 引言 java 类被虚拟机编译之后成为一个 Class 的字节码文件,该字节码文件中包含各种描述信息,最终都需要加载到虚拟机中之后才能运行和使用.那么虚拟机是如何加载这些 Class 文件?Cl ...

  8. spark复习笔记(3)

    在windows上实现wordcount单词统计 一.编写scala程序,引入spark类库,完成wordcount 1.sparkcontextAPI sparkcontext是spark功能的主要 ...

  9. 谈谈CS英文论文写作

    作为一个CS的研究生,发篇文章是你毕业的必要条件.现如今,学校对于文章的要求也越来越高,一般来说,还是国外的期刊或者会议更加受到认可,这样对于毕业也有好处.因此,以我自己的感受来说,论文的写作以及表达 ...

  10. vue防抖节流函数---组件封装,防止按钮多次点击

    1.vue 封装utils.js /** * @param {function} func 执行函数 * @param {number} time 防抖节流时间 * @param {boolean} ...