Ads

Tuesday 30 December 2014

Bselect - Select decorator component for Twitter Bootstrap





Download   Demo
Bselect - The select decorator component that was missing for Twitter Bootstrap.
Features
  • Bootstrap-like dropdown decorator for <select> elements
  • Easy to use, a simple jQuery call and you're done!
  • Doesn't require any Bootstrap CSS or JS to work
  • Tested via QUnit
  • Support for internationalization
  • ARIA ready
  • Lightweight
    • .js: about 1 KB minified and gzipped, ~11 KB uncompressed
    • .css: about 1 KB minified and gzipped, ~6 KB uncompressed

10+ Beat or top Websites for Happy New Year wishes, quotes, messages, greetings, wallpapers or facebook FB covers 2015




New starting, fresh begin, reaffirmation of your love and promises for a brighter future all come to mind as we ring in a New Year 2015. There are the superficial, yet meaningful promises we make to ourselves. We resolve to get in shape, lose weight, and improve career paths and the like. Then there are the heartwarming promises we make to others, whether aloud or in our minds. We want to care more, express love more, reverse bad feelings in old relationships or seek out new loving relationships. We try our very best to put these desires into words. Find the perfect words! Choose among hundreds of genuine warm Happy New Year wishes, quotes, messagesgreetings, wallpapers or facebook FB covers 2015 for your family, friends and loved ones.
------------------------------------------------
1- Happy New Year wishes, quotes, messages or greetings 2015:- greetingsquote.com
Happy New Year Wishes 2015, New Year Greetings Quotes
----------
2- Happy New Year wishes, quotes, messages or greetings 2015:- sms4smile.com
2014 Free SMS Messages & SMS Jokes Collection
----------
3- Happy New Year wishes, quotes, messages or greetings 2015:- happynewyearwishes.org
Happy New Year Wishes 2015 | Happy New Year 2015
----------
4- Happy New Year wishes, quotes, messages or greetings 2015:- wishesquotes.com
Wishes Quotes - Birthday, Wedding, Love Messages
----------
5- Happy New Year wishes, quotes, messages or greetings 2015:- latestsms.in
New Year SMS, Text Messages for New Year 2015
----------
6- Happy New Year wishes, quotes, messages or greetings 2015:- greeting-card-messages.com
Free greeting card messages
----------
7- Happy New Year wishes, quotes, messages or greetings 2015:- 123newyear.com
New Year Wallpapers, Happy New Year Images 2015
----------
8- Happy New Year wishes, quotes, messages or greetings 2015:- santabanta.com
Jokes, SMS, Wallpapers, Bollywood Movies, Videos
----------
9- Happy New Year wishes, quotes, messages or greetings 2015:- wallpaperswide.com
New Year HD Desktop Wallpapers for Widescreen, High Definition, Mobile
----------
10- Happy New Year wishes, quotes, messages or greetings 2015:- covermyfb.com
New Years Facebook Covers, New Years FB Covers, New Years Facebook Timeline Covers, New Years Facebook Cover Images
----------
11- Happy New Year wishes, quotes, messages or greetings 2015:- bestfbcover.com
Happy New Year Fb Cover | Best FB Cover
----------
Just Checkout these websites and find Happy New Year wishes, quotes, messages, greetings, wallpapers or facebook FB covers and more. Wish You Happy New Year.

Monday 29 December 2014

Submodal


submodal





Download Demo
Submodal – Add submodals to Bootstrap 3.x modals
1. INCLUDE CSS AND JS FILES
<link rel="stylesheet" type="text/css" href="./components/bootstrap/dist/css/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="bs.sm.css">
<script type="text/javascript" src="./components/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="./components/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="bs.sm.js"></script>
2. HTML
Submodals are added to the .modal-body element of a modal. It’s HTML structure is identical to regular modals excluding the following two differences
  • Sub Modals do not have a .modal-header element
  • Sub Modals must have a class of .submodal (in addition to .modal)
<div class="modal">
    <div class="modal-dialog">
         <div class="modal-content">
            <div class="modal-header">[...]</div>
            <div class="modal-body">

                <!-- Your Sub Modal, requires sub-modal class -->
                <div class="modal submodal">[...submodal content...]</div>

                <p>[parent modal content]</p>
            </div>
            <div class="modal-footer">[...]</div>
        </div>
    </div>
</div>
This resembles Twitter Bootstrap’s data API:
Opening
<a href="#my-submodal" class="btn" data-toggle="submodal">Open Submodal</a>
Closing
<a href="#my-submodal" class="btn" data-dismiss="submodal">Close Submodal</a>
3. JAVASCRIPT
// Open
$('#my-submodal').submodal('open');

// Close
$('#my-submodal').submodal('close');

// Toggle
$('#my-submodal').submodal('toggle');
4. EVENTS
// Before submodal is shown
$('#my-submodal').on('beforeShow', fn);

// After submodal is shown
$('#my-submodal').on('show', fn);

// Before submodal is hidden
$('#my-submodal').on('beforeHide', fn);

// After submodal is hidden
$('#my-submodal').on('hide', fn);




okvideo - Fullscreen background videos


okvideo


Download Demo
OKVideo is a jQuery plugin that allows for YouTube or Vimeo videos to be used as full-screen backgrounds on webpages. OKVideo aims to be customizable while making some basic decisions about how the plugin should control video. When using OKVideo, all videos will be served from Vimeo or YouTube based on a number of variables like browser, device, bandwidth, etc.
OKVideo uses the new YouTube IFrame API which does not require any Flash objects to be present on your website. This means that mobile devices will play video served by OKVideo. Content from Vimeo is served in a similar manner, although sometimes their videos will still be served in Flash.
Tested and working in Safari 5.1+, Chrome, Firefox 3.6+, IE 8+, Mobile Safari, Chrome for iOS.


esKju's LazyLoading

eskju-jquery-lazyloading

Download Demo
EsKju’s LazyLoading is a tool for loading content just in time in a Facebook-similar style. It was built using the jQuery library. Licensed under MIT and GPL licenses.
Features
  • Supersedes dowdy paginations
  • Customizable trough settings and CSS
  • Highly compatible
  • Uses CSS3 transitions by default


Sunday 28 December 2014

faToggle – creates toggling icons with Font Awesome Icons

fatoggle



faToggle is a jQuery plugin that creates toggling icons with Font Awesome Icons.
Features
  • Create Toggle buttons with font awesome icons
  • Create Radio and checkbox form elements with font awesome icons
  • Assign event handlers for toggle on and off
  • Designed for Font Awesome 4.2.0 and up

Sidy.js – off, on- canvas navigation panel

sidy



Sidy.js is an off-, on- canvas navigation panels using CSS transforms & transitions. This project was inspired by the SidebarTransitions project seen on SidebarTransitions
Features
  • Uses CSS3 transforms & transitions
  • Smooth performance on mobile devices – an API for cuxtom open and close panel control
  • Panel closes when the site overlay is selected

jQuery Simple Event Calendar

simple-event-calendar

jQuery.Simple-EventCalendar make it easier for you to create an event calendar, datepicker or whatever you want with jquery.



Saturday 27 December 2014

12 New or latest Best, top Christmas and New Year jquery, js or java script ice or snow falling effect plugin tutorial with example for 2015

Christmas and New Year is (once again) just around the corner, has it been that long? Well, I guess time really flies fast when your coding! In this post find some Christmas and New Year spirit and put some JS jQuery and JavaScript made Christmas decorations on your websites. Have fun Just use it.
———————————————————–

1. jQuery Snow Falling plugin

Idea behind jQuery snow falling plugin is to create one snowflake initially, clone that snowflake at some time interval and add random values for properties for each of them. And it’s done in less than 1kb minifed.
jQuery Snow Falling plugin with example
Download   Demo

2. jSnow – jQuery Snow Effect

Adding an animation effect of falling snow with JavaScript is a quick and easy way to keep your site looking current during the holidays for your site’s users. jSnow, is a jQuery plug-in that adds falling snow effect to your website. jSnow is lightweight (2kb), doesn’t require any external files to run (css or images) and it’s very easy to use.
jSnow – jQuery Snow Effect animation with demo
Download   Demo

3. jQuery Snowfall 1.5 update now with snow buildup

Added snow buildup to the plugin, so now you can pass a jquery selector in the collection option and the snow will collect on top of all the elements matched. It uses the canvas tag so the snow wont collect in IE8 or lower.
jQuery Snowfall plugin with example
Download   Demo

4. Snowstorm: A JavaScript Snow Effect for HTML

Snowstorm is a JavaScript-driven snow effect that can be easily added to web pages. It is free for use, and easy to set up. A single JavaScript file provides the functionality required. No images are used for the snow effect.
Snowstorm: A JavaScript Snow Effect for HTML with demo
Download   Demo

5. Dynamic Snow Effect

Decorate your webpage with this great animated document effect! Watch as snow gently trickles down the page, and then disappear. The image used is changeable, so snow definitely isn’t the only effect this script can render…
Dynamic Snow Animation Effect with example
Download   Demo

6. jQuery font flake / snow flake experiment

jQuery font flake / snow flake experiment with demo
Download   Demo

7. jqsnow : jQuery Snow Effect Plugin

This extension decorates your webpage with falling snow in jQuery.
jqsnow : jQuery Snow Effect Plugin with example
Download   Demo

8. Beautiful Snow Falling Greetings with html5 css3 and jquery

We are Introducing a Snow Fall Animation with HTML5 CSS3 and jQuery. Surprise your Techy friend with this Wonderful Christmas Greetings with New Technology instead of Old Flash Animation. You can download this Christmas Greetings for free.
Beautiful Snow Falling Greetings with html5 css3 and jquery
Download   Demo

9. Xmass Snow Globes Animation Experiment

Using two animation effects, a snow 3d effect which runs using three.js 3d engine and a Firefly jQurey effect. The images are rotating in Roundabout jQurey carousel. I chose this Roundabout because is an carousel with infinite loop and has also jump option, can jump to a specific item in the carousel when is necessary.
Xmass Snow Globes Animation effect Experiment with demo
Download   Demo

10. JavaScript HTML5 Canvas Snow in 3D

JavaScript HTML5 Canvas Snow in 3D with example
Download   Demo

11. JavaScript Snow effect

A BIG snowflakes fall behind your website! This plugin using the HTML5 canvas element, which means it won’t work in IE8 or below.
JavaScript Snow effect plugin with example
Download   Demo

12. DS Snow a snow effect

This DHTML script displays a snow effect in background.
DS Snow a snow effect with example

Download   Demo

Wednesday 24 December 2014

Geocomplete – jQuery Geocoding and Places Autocomplete Plugin

geocomplete-jquery-geocoding-and-places-autocomplete-plugin


Download Demo
Geocomplete is an advanced jQuery plugin that wraps the Google Maps API’s Geocoding and Places Autocompleteservices.

You simply provide an input that lets you search for locations with a nice autocomplete dropdown. Optionally add a container to show an interactive map and a form that will be populated with the address details.

Scrolline.js

scrolline

Download Demo
Scrolline.js is a jQuery plugin. Create a scroll line bar indicator on the page.
Compatibility
Safari
Firefox
Chrome
IE
Safari mobile
1. INCLUDE JS FILES


2. JAVASCRIPT
$.scrolline({
reverse : true,
position : ‘bottom’,
backColor : ‘#2980b9′,
frontColor : ‘#f1c40f’,
weight : 12
});
3. OPTIONS
You can apply a set of optional options:

backColor – Define the color of back’s scrolline (default ‘#ecf0f1′)
direction – Can be vertical or horizontal (default ‘horizontal’)
frontColor – Define the color of front’s scrolline (default ‘#2ecc71′)
opacity – Define alpha’s scrolline, value must be between 0 and 1 (default 1)
position – Define the position of scrolline : top and bottom for horizontal’s position, left or rightfor vertical’s position (default top in horizontal and left in vertical)
reverse – Revert the front line sens on set value at true (default false)
weight – Define the larger of scrolline on pixels (default 5)
zindex – Change the z-index value if needed (default 10)
scrollEnd – Callback’s function call at the end of scrolling
Share

colResizable

colresizable

Download Demo
colResizable is a free jQuery plugin to resize table columns dragging them manually. It is compatible with both mouse and touch devices and has some nice features such as layout persistence after page refresh or postback. It works with both percentage and pixel-based table layouts.
It is tiny in size (colResizable 1.0 is only 2kb) and it is fully compatible with all major browsers (IE7+, Firefox, Chrome and Opera).
Features
colResizable was developed since no other similar plugin with the below listed features was found:
Compatible with mouse and touch devices (PC, tablets, and mobile phones)
Compatibility with both percentage and pixel-based table layouts
Column resizing not altering total table width (optional)
No external resources needed (such as images or stylesheets)
Optional layout persistence after page refresh or postback
Customization of column anchors
Small footprint
Cross-browser compatibility (IE7+, Chrome, Safari, Firefox)
Events




Bootstrap Application Wizard


bootstrap-application-wizard

Download Demo
Bootstrap Application Wizard is a jQuery plugin for Bootstrap that allows multi-step forms to progress in a natural order while remaining flexible. It works as a drop-in addon to bootstrap and requires little configuration outside of setting up the wizard modal itself.

Monday 22 December 2014

Animated Headlines with CSS & jQuery

animated-headlines-with-css-jquery

Download Demo
A collection of animated headlines, with interchangeable words that replace one another through CSS transitions and jQuery.


Focusable – Spotlight Focus on DOM Elements

focusable-spotlight-focus-on-dom-elements


Download   Demo
An awesome and lightweight library for performing spotlight in your DOM elements, setting an animated overlay to the rest of the page.

API

Set spotlight (jQuery style)
$('#my-element').setFocus(options);
Set spotlight (through library)
Focusable.setFocus($('#my-element'), options);
Refresh current focused element
Focusable.refresh();
Hide spotlight
Focusable.hide();
Get focused element
Focusable.getActiveElement();
Get options
Focusable.getOptions();

###### Options
Property | Value | Default | Description
------------ | ------------- | ------------- | -------------
fadeDuration | Number | 700 | Duration of the overlay transition (milliseconds).
hideOnClick | Boolean | false | Hides the overlay when the user click into it.
hideOnESC | Boolean | false | Hides the overlay when the user press Esc.
findOnResize | Boolean | false | Refind the element in the DOM in case that the element don't still exists.

###### Runing tests
* `npm install`
* `grunt`
* See the result of testsuite in [http://localhost:9092](http://localhost:9092)

###### Dependencies
- jQuery

###### Contributing

0. Check [open issues](https://github.com/zzarcon/focusable/issues)
1. [Fork it](https://github.com/zzarcon/focusable/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

###### Author
You can follow me on Twitter - https://twitter.com/zzarcon


jQuery Custom Radio Checkbox plugin

custom-radio-checkbox

Download Demo
Custom Radio Checkbox is a jQuery plugin to customize native radios and checkboxes with your own design.
Features
  • Semantic HTML
  • Blazing Fast!
  • Easy to use (just include required files into your website and you’re done!)
  • Supports ajax loaded content, just call $(‘selector’).customRadioCheckbox();
Cross-browser
All versions of the following browsers are supported IE6+, FireFox, Chrome, Safari, Opera
Lightweight
Size compressed & gzipped
  • JS: 511 bytes
  • CSS: 206 bytes
1. INCLUDE CSS AND JS FILES
<link href="css/custom-radio-checkbox.css" rel="stylesheet" type="text/css" media="screen" />
<script src="js/jquery.custom-radio-checkbox.js"></script>
2. HTML
The <input> is inside the <label>
*important: Use the “for” attribute in the <label> to support IE6
<form method="post" action="" id="form">
    <div class="fl w200 mr10">
        <h2>Radio group 1</h2>
        <p>
            <label for="yes">
                <input type="radio" name="radioGroup1" id="yes" value="Yes" />Yes
            </label>
        </p>
        <p>
            <label for="no">
                <input type="radio" name="radioGroup1" id="no" value="No" />No
            </label>
        </p>
        <p>
            <label for="maybe">
                <input type="radio" name="radioGroup1" id="maybe" value="Maybe" />Maybe
            </label>
        </p>
    </div>
 
    <div class="fl w200">
        <h2>Radio group 2</h2>
        <p>
            <label for="uno">
                <input type="radio" name="radioGroup2" id="uno" value="Uno" />Uno
            </label>
        </p>
        <p>
            <label for="dos">
                <input type="radio" name="radioGroup2" id="dos" value="Dos" />Dos
            </label>
        </p>
        <p>
            <label for="tres">
                <input type="radio" name="radioGroup2" id="tres" value="Tres" />Tres
            </label>
        </p>
    </div>
 
    <div class="separator"></div>
 
    <!-- checkbox -->
    <p>
        <label for="checkbox1">
            <input type="checkbox" name="Checkbox" id="checkbox1" value="1" />Checkbox 1
        </label>
    </p>
    <p>
        <label for="checkbox2">
            <input type="checkbox" name="Checkbox" id="checkbox2" value="2" />Checkbox 2
        </label>
    </p>
    <p>
        <label for="checkbox3">
            <input type="checkbox" name="Checkbox" id="checkbox3" value="3" />Checkbox 3
        </label>
    </p>
 
    <div class="separator"></div>
    <p id="submit"><input type="submit" value="Show result" /></p>
</form>


Validation with lightbox


validation-with-lightbox

Download   Demo
Validation with Lightbox is a jQuery plugin for validating form and display error or success message with lightbox effects. This is referenced in some material from Internet and the references are placed at the end of the page.
1. INCLUDE CSS AND JS FILES
<link href="css/jquery-valid-lightbox-v1_1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-valid-lightbox-v1.1.js"></script>
2. HTML
There is HTML part and beware of these 3 points:
You must contain action=”javascript:void(0)” onsubmit=”return checking(‘your_url’);” in the form tab. action=”javascript:void(0)” is for stop submiiting the form, onsubmit=”return checking(‘your_url’); mean run the javascript function named checking() and pass the form submittion target to the javascript funvtion. Text box are idenified with the id name. Radio and checkbox are idenified with the input flied name.
<form name="demo_form" method="POST" action="javascript:void(0)" onsubmit="return checking('success.html');">
    <div class="item">
        <h6><label>First Name</label></h6>
        <div class="input_panel"><input type="text" id="firstname" name="firstname"></div>
    </div>
    <div class="item">
        <h6><label>Last Name</label></h6>
        <div class="input_panel"><input type="text" id="lastname" name="lastname"></div>
     </div>
     <div class="item">
        <h6><label>Age</label></h6>
        <div class="input_panel">
        <select id="age" name="age">
        <option value=""> - Please select the range -</option>
        <option value="0">0-18</option>
        <option value="19">19-35</option>
        <option value="36">36-50</option>
        <option value="50">50-90</option>
        <option value="100">>100</option>
        </select>
        </div>
    </div>
    <div class="item">
        <h6><label>Gender</label></h6>
        <div class="input_panel">
            <input type="radio" name="gender" value="male">Male<br>
            <input type="radio" name="gender" value="female">Female    
        </div>
    </div>
    <div class="item">
        <h6><label>Service you like</label></h6>
        <div class="input_panel">
            <input type="checkbox" name="service" value="Bike">bike<br>
            <input type="checkbox" name="service" value="Car">car  
        </div>
    </div>
    <div class="item">
        <h6><label>Where to know us</label></h6>
        <div class="input_panel">
        <input type="checkbox" name="where_from" value="newspaper">newspaper<br>
        <input type="checkbox" name="where_from" value="friend">friend<br>
        <input type="checkbox" name="where_from" value="internet">internet
        </div>
    </div<
    <input id="submit" type="submit" value="Submit form" >
    <br /><br />
</form>
3. JAVASCRIPT
Config the sentences below in jquery-valid-lightbox-v1.1.js:
var config = {
    "form_name"          : "demo_form",                       //Your form name, not id name
    "submit_form"        : true,                              //"true" is submit form, "false" would pop-up an error message.
    "title-message"      : {
        "success_title"  :"Validation Success",               //Lightbox title when validation was success.
        "error_title"    :"Error!"                            //Lightbox title when validation was fail.
    },
    "success-message"    :"Your application is submittted.",  //Lightbox content when validation was succes.
    "error-message"      : [
        {"name"      :"firstname",                            //1st input field name (name bt not id)
         "err_msg"   :"Title 1 is empty"},                    //Related error (1st input field) if validation was incorrect.
        {"name"      :"lastname" ,                            //2st input field name
         "err_msg"   :"You have fogotten fill in Title 2"},   //Related error (2st input field) if validation was incorrect.
        {"name"      :"age",                                  //3st input field name
         "err_msg"   :"Which is the range of your age"},      //Related error (3st input field) if validation was incorrect.
        {"name"      :"gender",                               //4st input field name
         "err_msg"   :"Please select your gender"},           //Related error (4st input field) if validation was incorrect.
        {"name"      :"service"  ,                            //5st input field name
         "err_msg"   :"Which service you like most ?"},       //Related error (5st input field) if validation was incorrect.
        {"name"      :"where_from"  ,                         //6st input field name
         "err_msg"   :"You havn't fill in where to know us."} //Related error (6st input field) if validation was incorrect.         
    ],
    "footer_close_btn_text" :"Close",     //Close button tex on the bottom-right corner of pop-up message box
    "close_btn_icon"        :"X",         //Close button icon on the top-right corner of pop-up message box
};
4. OPTIONS
An overview of the value for config:

value Default demo value e.g. Description
form_name demo_form Your form name
submit_form true “true” is submit form, “false” would pop-up an error message.
title-message.success_title Validation Success Lightbox title when validation was success.
title-message.error_title Error! Lightbox title when validation was fail.
success-message Your application is submittted. Lightbox content when validation was succes.
error-message.name gender Your form name, not id name
error-message.err_msg Please select your gender Your form name, not id name
footer_close_btn_text Close Close button tex on the bottom-right corner of pop-up message box
close_btn_icon X Close button tex on the bottom-right corner of pop-up message box

Friday 19 December 2014

jQuery Sidebar

http://www.htmluse.com/wp-content/uploads/2014/12/jquery-sidebar.jpg

Download Demo
jQuery Sidebar is a stupid simple sidebar jQuery plugin.
1. INCLUDE JS FILES
<!-- Include jQuery -->
<script src="path/to/jquery.min.js"></script>
<!-- Include jQuery Sidebar -->
<script src="path/to/jquery.sidebar.min.js"></script>
2. HTML
<div class="sidebar left">Hello World</div>
<div class="sidebar right">I am on right!</div>
<div class="sidebar top">I am on top!</div>
<div class="sidebar bottom">I am on bottom!</div>
3. JAVASCRIPT
// Sidebar on left (default)
$(".sidebar.left").sidebar().trigger("sidebar:open");
 
// Sidebar on right side
$(".sidebar.right").sidebar({side: "right"});
 
// Sidebar on top side
$(".sidebar.top").sidebar({side: "top"});
 
// Sidebar on bottom side
$(".sidebar.bottom").sidebar({side: "bottom"});
4. ADVANCED
sidebar(options)
Initialize sidebar on selected elements.
$(".my-sidebar").sidebar({...});
After the call above, you can programatically open/close/toggle the sidebar using:
$(".my-sidebar").trigger("sidebar:open");
$(".my-sidebar").trigger("sidebar:close");
$(".my-sidebar").trigger("sidebar:toggle");
After the sidebar is opened/closed, sidebar:opened/sidebar:closed event is emitted.
$(".my-sidebar").on("sidebar:opened", function () {
   // Do something on open
});

$(".my-sidebar").on("sidebar:closed", function () {
   // Do something on close
});
Params
  • Object options: An object that will be merged with the default options.
    • speed: animation speed (default: 200)
    • side: left|right|top|bottom (default: “left”)
Return
  • jQuery The jQuery elements that were selected.



tweetParser.js

http://www.htmluse.com/wp-content/uploads/2014/12/tweetparser.jpg
Download Demo
tweetParser.js Parse elements containing a tweets and turn URLS, @users & #hashtags into working urls.
1. INCLUDE JS FILES
<script src="js/jquery.min.js"></script>
<script src="js/jquery.tweetParser.min.js"></script>
2. HTML
<p class="tweets">This is my awesome text only tweet ! #web #twitter @twitter http://www.twitter.com/ !!</p>
3. JAVASCRIPT
//basic usage
$("p.tweets").tweetParser();
 
//With parameters
$("p.tweets").tweetParser({
    urlClass : "tweet_link", //this is default
    userClass : "tweet_user", //this is default
    hashtagClass : "hashtag", //this is default
    target : "_blank" //this is default
});
4. OPTIONS
Parameters Type default description
urlClass String tweet_link css Class used for url in the tweet
userClass String tweet_user css Class used for @user profil url in the tweet
hashtagClass String hashtag css Class used for hashtags url in the tweet
target HTML attribute for anchor tags _blank target used for all generated




Formcache - A simple jQuery form cache plugin



 123




Download Demo
Formcache is a simple jQuery form cache plugin.
Browser Support
  • Chrome 31+
  • Firefox 31+
  • Internet Explorer 8+
  • Opera 26+
  • Safari 5.1+
  • iOS Safari 7.1+
  • Android Browser 4.1+
  • Chrome for Android 39+
1. INCLUDE JS FILES
<script src="/path/to/jquery.js"></script><!-- jQuery is required -->
<script src="/path/to/formcache.js"></script>
2. HTML
<form id="form"></form>
3. JAVASCRIPT
$('#form').formcache();
4. OPTIONS
key
  • Type: String | Number
  • Default: ”
A special identification for the form cache, must be different to other forms in the same page.
By default, the form’s index in the document will be used as the key.
local
  • Type: Boolean
  • Default: true
Store cache in localStorage.
session
  • Type: Boolean
  • Default: true
Store cache in sessionStorage.
autoStore
  • Type: Boolean
  • Default: true
Update and store the cache automatically when a form control changed or before page unload.
maxAge
  • Type: Number
  • Default: undefined
set the stored time (in seconds) of the caches, just like the max-age for cookie.
By default, the session caches will be cleared when the browser closes, and the local caches will be stored all the time.
Notes:
  • session caches still will be cleared when the browser closes.
  • local caches still will be cleared when the browser caches clears.
controls
  • Type: Array
  • Default:
[
  'select',
  'textarea',
  'input'
]
A jQuery selectors array. Defines the form controls which need to be cached.
Note: All file inputs will be ignored always by default.
5. METHODS
getCache([index])
Params Type Default Description
index Number 0 Cache index
Get the default cache object or a special one.
Examples:
$().formcache('getCache')
$().formcache('getCache', 1)
getCaches()
Get all cache objects.
Examples:
$().formcache('getCaches')
setCache([index, ]data)
Params Type Default Description
index Number 0 Cache index
data Object
Cache item
Override the default cache object or add a new one.
Examples:
$().formcache('setCache', {})
$().formcache('setCache', 1, {})
setCaches(data)
Params Type Description
data Array Cache items
Override the old caches with new caches.
Examples:
$().formcache('setCaches', [{}])
$().formcache('setCaches', [{}, {}])
removeCache([index])
Params Type Default Description
index Number 0 Cache index
Remove the default cache object or a special one.
Examples:
$().formcache('removeCache')
$().formcache('removeCache', 1)
removeCaches()
Remove all cache objects.
Examples:
$().formcache('removeCaches')
outputCache([index])
Params Type Default Description
index Number 0 Cache index
Output the default cache object or a special one to the form.
The outputed cache object will be updated automatically when any form control changed.
Examples:
$().formcache('outputCache')
$().formcache('outputCache', 1)
serialize()
Serialize the form and return a cache object.
Examples:
var cache = $('form').formcache('serialize');

$('form').formcache('setCache', cache);
$('form').formcache('setCaches', [cache, cache]);
store()
Store all caches to sessionStorage or localStorage.
The plugin will do this automatically when a form control changed, or the window unloaded.
clear()
Clear all caches.
destroy()
Destroy the formcache instance, but keep the caches.
If you want to remove all caches, you can call clear method first and then call the destroy method.








NotifIt - Simple notifications with JQuery

notifit


Download Demo
NotifIt is a simple colorful animated notifications with JQuery
Now you can send notifications of everything you want and when you want, simply and quickly. Easy to learn and use. Customize with your favorite colors, define the size you want, set the opacity, make a sticky one and much more!
1. INCLUDE CSS AND JS FILES
<script type="text/javascript" src="jquery.js"></script>
<script type='text/javascript' src='js/notifIt.js'></script>
<link rel='stylesheet' type='text/css' href='css/notifIt.css'>
2. JAVASCRIPT
notif({
    msg: "<b>Oops!</b> A wild error appeared!",
    type: "error",
    position: "center"
});
3. OPTIONS

Variable name Type Posible values Default
type String success, error, warning, info default
msg String Message
position String left, center, right, bottom right
width Integer-String Number > 0, ‘all’ 400
height Integer Number between 0 and 100 60
autohide Boolean true, false true
opacity Float From 0 to 1 1
multiline Boolean true, false false
fade Boolean true, false false
bgcolor String HEX color #444
color String HEX color #EEE
timeout Integer Miliseconds 5000
zindex Integer The z-index of the notification null (ignored)
offset Integer The offset in pixels from the edge of the screen 0
callback Function Function null (ignored),
clickable Boolean true, false false

Thursday 18 December 2014

Skidder jQuery slideshow pugin



Download   Demo
Skidder is a jQuery slideshow pugin that supports centering, swiping and responsive scaling.
Features
  • optional paging
  • optional cycling
  • optional centering
  • optional image scaling, also on resize
  • iOS-like swiping on touch devices
  • works with: Chrome, Firefox, Safari, IE8+ …
1. INCLUDE CSS AND JS FILES
<link rel="stylesheet" href="../src/jquery.skidder.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="../src/jquery.skidder.js"></script>
2.  HTML
<div class="slideshow" style="display: none;">
  <div class="slide"><img src="1.jpg"></div>
  <div class="slide"><img src="2.jpg"></div>
  <div class="slide"><img src="3.jpg"></div>
</div>
3. JAVASCRIPT
$('.slideshow').skidder();
Make sure that images are loaded before initialising the plug-in, or the slideshow might not get sized correctly. You can use imagesloaded.js for this purpose – load it, then call like this:
$('.slideshow').each( function() {  
  var $slideshow = $(this);
  $slideshow.imagesLoaded( function() {
    $slideshow.skidder();
  });
});
Sliding contriols are disabled for slideshows with less than two images.
4. OPTIONS
Option Description
slideClass Default: ‘.slide’
scaleImages Scales widest image to maxSlideWidth. Adjusts slideshow height accordingly. Requires images! Default: false
maxSlideWidth Scale widest image to this width if scaleImages == true. Default: 800
paging Creates a clickable and stylable paging dot for each slide. Default: true
swiping Enable swiping on touch device. Default: true
leftaligned Set to true if you don’t want your slideshow centered. (true = buggy!) Default: false
cycle Set to false if you don’t want your slideshow to wrap around (false = buggy!).Default: true
jumpback In non-cycling mode jumpback will display a ‘return to first slide’ arrow at the last slide. Default: false
speed Transition speed. Default: 400
autoplay _Default: false
interval Autoplay interval _Default: 4000
afterSliding Define if you need a callback function
5. RESIZING
$(‘.slideshow’).skidder(‘resize’);

You will want to debounce this to save some trees