intelogie/jquery-liveurl

此包的最新版本(dev-master)没有可用的许可信息。

安装: 104

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 44

语言:JavaScript

dev-master 2016-07-21 05:10 UTC

This package is auto-updated.

Last update: 2024-09-21 19:50:24 UTC


README

此插件为 textarea 中的 URL 提供实时预览功能,类似于 Facebook 帖子附件
中的功能。在演示中集成了多张图片和视频预览。

功能

  • 从 textarea 过滤 URL 和图片
  • 多张图片
  • 视频预览
  • 无需 PHP(YQL)
  • 元标签识别
  • 正文图片检查器
  • 正文段落检查器(用于描述备用)

演示

在线演示: http://liveurl.ainetworks.de/demo/

安装

在 jQuery 库 之后 包含此脚本

  <script src="/path/to/jquery.liveurl.js"></script>

浏览器兼容性

  • Google Chrome 23
  • Mozilla Firefox 16.0.2
  • Internet Explorer 7, 8 和 9
  • Safari 5.1.7

快速使用

您可以在每个 textarea 上使用此插件。直接启动它

$('textarea').liveUrl({
  success : function(data) 
  {  
    console.log(data);
    // this return the first found url data
  }
});

返回

Object = {
    title: "New Car Quotes, Buy Used Cars, and Prices | The cars.com alternative  | Car.com", 
    description: "Car Reviews, Car Financing, and a Free non-obligat…e.", 
    url: "http://www.car.com", 
    video: null
}

选项

开发

作者

Stephan Fischer

捐赠

如果您想支持我,请在小额捐赠 www.paypal.comstephan@ainetworks.de