jQuery.validVal - A highly customizable and feature rich jQuery form validator that embraces the power of HTML5 jQuery Autosize A small, stand-alone script to automatically adjust textarea height. Demo Released under the MIT License, source on Github (changelog) Download Install via NPM npm install autosize Browser compatibility Usage The autosize function accepts a single textarea element, or an array or array-like object (such as a NodeList or jQuery collection) of textarea elements. autosize(document.querySelectorAll('textarea')); autosize(document.querySelector('textarea')); autosize($('textarea')); Methods Life-cycle Events Trouble shooting / FAQ Setting a min-height or max-height Use CSS to specify a min-height and max-height for the textarea element. The rows attribute can also be used to specify a minimum height. Fixing slow or sluggish performance In Webkit, the default focus style for input and textarea elements includes outline-style: auto, which has a blurred drop-shadow like appearance. Initial height is incorrect Autosize needs to be able to calculate the width of the textarea element when it is assigned. Hey,
55 Best jQuery Carousel Plugins In web design, a jQuery carousel is an element giving visitors easy and visible access to several content items. It is typically a dynamic scrolling list of items in horizontal order where previous and next items are partially visible. The items, consisting of HTML content, images, videos etc. can be scrolled back and forth (with or without animated transitions). Using sliding horizontal panels, known, as Carousels and Sliders, to feature top content, is one of the strongest web design trends over the last couple of years. It is a very effective method to increase the web site usability and engage the user. The reason for this trend is mainly the arrival of jQuery that have made it almost a “walk in the park” to add a jQuery carousel or a jQuery image slider plugin to a web site. Disclosure: Please note that some of the links below are affiliate links and I will earn a commission if you purchase through those links (at no extra cost to you). Advertisement JCoverflip – MORE INFO / DEMO
jQuery jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.[2] It was released in January 2006 at BarCamp NYC by John Resig. It is currently developed by a team of developers led by Dave Methvin. Used by over 80% of the 10,000 most visited websites,[3] jQuery is the most popular JavaScript library in use today.[4][5] The set of jQuery core features—DOM element selections, traversal and manipulation—enabled by its selector engine (named "Sizzle" from v1.3), created a new "programming style", fusing algorithms and DOM-data-structures; and influenced the architecture of other JavaScript frameworks like YUI v3 and Dojo. Microsoft and Nokia bundle jQuery on their platforms.[7] Microsoft includes it with Visual Studio[8] for use within Microsoft's ASP.NET AJAX framework and ASP.NET MVC Framework while Nokia has integrated it into the Web Run-Time widget development platform.[9] jQuery has also been used in MediaWiki since version 1.16.[10]
Comment détecter des appareils mobiles avec du javascript - PL en toute liberté Vous voulez que les visiteurs équipés d'un appareil mobile (iPhone, Ipod, Android, etc) puissent choisir la version mobile ou standard de votre site Web? Voici une petite astuce. Insérer ce code dans la page d'accueil de votre site (entre les deux balises HEAD): Pour voir ce que ça donne avec votre mobile, voir ce site. Pour voir le rendu dans votre navigateur, cliquez ici. Si vous utilisez SPIP somme gestionnaire de contenu, le plugin iSPIP facilite la création du site pour mobile. Mise à jour: J'utilise ce script afin d'ajouter un gros bouton rouge dans la page d'accueil qui donne le choix au visiteur de naviguer dans le site normal ou version mobile.
jQuery Media Queries