jQuery Touch

码农软件 · 软件分类 · jQuery手机相关插件 · 2020-01-01 06:13:04

软件介绍

This plugin adds Apple iPod/iPhone (firmware 2.0+) touch functionality to jQuery. Use built in Touch methods including ontouchstart, ontouchend, ontouchmove, ongesturestart, ongesturechange and ongestureend.

You may specify what options you want available for the specified target(s), including: animate, dragx, dragy, rotate, resort and scale.

Written By: Peter Schmalfeldt ( Manifest Interactive )

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

INFORMATION:

animate: (optional bool | default true) Simulates the Apple Touch Flick gesture and allows an item to be thrown. Speed is automatically determined.

dragx: (optional bool | default true) Allows dragging along the X axis. Using only one axis locks the dragging to that axis. Setting both axis' to true will allow you to drag in any direction.

dragy: (optional bool | default true) Allows dragging along the Y axis. Using only one axis locks the dragging to that axis. Setting both axis' to true will allow you to drag in any direction.

rotate: (optional bool | default false) Allow the element to be rotated.

resort: (optional bool | default true) Set the z-index of the current element on top of the others ontouchstart.

scale: (optional bool | default false) Allow the element to be scaled.

NOTE: This is only functional an the Apple iPod/iPhone running version 2.0+. Elements also need to have a unique ID in order for jQuery Touch to communicate correctly. Also, I am currently working on the ability to allow for a "sticky" element. This will soon allow you to apply this plugin to a scrolling text box and be able to scroll its entirety without having the content just move to wherever your finger is located.

SAMPLE USAGE:

 

$('.myclass').touch({
    animate: true,
    sticky: false,
    dragx: true,
    dragy: true,
    rotate: true,
    resort: true,
    scale: true
});

 

 

$('#myelement').touch({
    animate: false,
    sticky: false,
    dragx: true,
    dragy: true,
    rotate: false,
    resort: true,
    scale: false
});

 

本文地址:https://www.codercto.com/soft/d/22397.html

数据结构与算法分析

数据结构与算法分析

张琨、张宏、朱保平 / 人民邮电出版社 / 2016-2-1 / 45

本书共分10章,主要包括第1章绪论,第2章线性表,第3章栈和队列,第4章串,第5章数组和广义表,第6章 树和二叉树,第7章图,第8章查找,第9章内部排序,第10章算法分析。其内容模块涵盖了课堂教学、习题课教学、实验教学、自学辅导、综合训练等。立体化教材的使用在提高教学效率、增强教学效果、加大教学信息量、培养学生的应用与实践能力。 作者简介一起来看看 《数据结构与算法分析》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试