Wallogit.com
2017 © Pedro PelĂĄez
This plugin enables a live preview for an url in a textarea, like the facebook attachmentbr/ of a post. Multiple images and a video preview is in this demo integrated., (*1)
Online-Demo: http://liveurl.ainetworks.de/demo/, (*2)
Include this script after the jQuery library, (*4)
<script src="/path/to/jquery.liveurl.js"></script>
You can use this plugin on every textarea. Start it directly:, (*5)
$('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
}
| Option | Parameter | Default | Description |
|---|---|---|---|
| findLogo | [boolean (true / false)] |
false |
should search for an image or class namend "logo" for the image preview |
| logoWord | [string] |
logo |
Word, which should be searched, used for the "findLogo" option |
| findDescription | [boolean (true / false)] |
true |
should search for an p tag with text, only if the description is not given |
| matchNoData | [boolean (true / false)] |
true |
preview urls, which are not found (offline, 404) |
| multipleImages | [boolean (true / false)] |
true |
preview more than one image of the url |
| minWidth | [integer] |
100 |
Value in pixel for the minimum width of each preview-image |
| minHeight | [integer] |
32 |
Value in pixel for the minimum height of each preview-image |
| loadStart | [function()] |
{} |
This function starts if the plugin start a page download - for an optional loader |
| loadEnd | [function()] |
{} |
This function starts if the plugin has finished the page download |
| success | [function()] |
{data} |
Returns the information about the first found url |
| addImage | [function()] |
{image} |
This function is started each time, if a picture is found |
| imgLoadStart | [function()] |
{} |
Not implemented |
| imgLoadEnd | [function()] |
{} |
Not implemented |
Stephan Fischer, (*6)
If you want to support me, make a small donation at www.paypal.com: stephan@ainetworks.de, (*7)