background preloader

Miscellaneous

Facebook Twitter

Ehynds/jquery-idle-timeout. Maxfierke/jquery-sessionTimeout-bootstrap. jQuery Popup Overlay. PACE. Include pace.js and the theme css of your choice on your page (as early as is possible), and you're done! Pace will automatically monitor your ajax requests, event loop lag, document ready state, and elements on your page to decide the progress. On ajax navigation it will begin again! If you use AMD or Browserify, require in pace.js and call pace.start() as early in the loading process as is possible.

Install on Wordpress You can add PACE to your Wordpress site by installing the Wordpress Plugin. Example Configuration Pace is fully automatic, no configuration is necessary to get started. If you would like to make some tweaks, here's how: You can set window.paceOptions before bringing in the file: You can also put options on the script tag: If you're using AMD or Browserify, you can pass your options to start: Themes Pace includes a bunch of themes to get you started. Collectors Collectors are the bits of code which gather progress information.

Elements Restart Rules Pace exposes the following methods: Waypoints. Xing/wysihtml5. Use CSS3 to Create a Dynamic Stack of Index Cards | DesignLovr. Recently we hear a lot about CSS3 and its features and even though there are already some web sites out there that take advantage of some of the CSS3 features (including DesignLovr) we hardly ever see the full potential of what can be achieved with CSS3.

Today we’re going to take a step into that direction and discover some of the possibilities CSS3 gives us. We will create a dynamic stack of index cards solely with HTML and CSS3 and use such CSS3 features as transform and transition (for the dynamic effects) and @font-face, box-shadow and border-radius (for the styling). Let’s start with the simple HTML-markup, which consists of simple, unordered list, filled with random content. If you want you can download the icons I used at Tutorial 9. Now the CSS. The fonts Note This and Kulminoituva, both of which are available in @font-face kits (with all necessary font-formats and preformatted CSS-file) on Font Squirrel, are the ones used in my example design.

Remark Quicktip. CSS3 Floating Follow Tab with Rollover Effects | Demo. By Willis J. Abbot Preface Not since gunpowder was first employed in warfare has so revolutionary a contribution to the science of slaughtering men been made as by the perfection of aircraft and submarines. The former have had their first employment in this world-wide war of the nations. Comparatively few people appreciate how the thought of navigating the air's dizziest heights and the sea's gloomiest depths has obsessed the minds of inventors. In this book the author has sketched swiftly the slow stages by which in each of these fields of activity success has been attained. The most serious difficulty encountered in dealing with the present state and future development of aircraft is the rapidity with which that development proceeds.

Opportunities for the peaceful use of airplanes are beginning to suggest themselves daily. CSS3 3D Rotating Card. 22nd February 2011 - For Safari ONLY (at the moment) 7th March 2012 - Now working in Safari, Chrome and Firefox 8th January 2013 - Now also working in IE10, iPad, iPhone and iPod Touch (Tyto alba) is the most widely distributed species of owl, and one of the most widespread of all birds.

It is also referred to as Common Barn Owl, to distinguish it from other species in the barn-owl family Tytonidae. These form one of two main lineages of living owls, the other being the typical owls (Strigidae). T. alba is found almost anywhere in the world except polar and desert regions, Asia north of the Alpide belt, most of Indonesia, and the Pacific islands. Source Wikipedia copyright © stu nicholls - CSS play Information Absolutely NO javascript, and as far as I know this cannot easliy be done with jQuery etc..

Using just CSS3 to rotate a card so that you can see the information on the reverse. Just hover the image to see it rotate in perspective to show the information on the reverse side. Copyright. jQuery.dotdotdot, advanced cross-browser ellipsis for multiple line content. 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, Custom Styled Checkboxes. Download CPArticleDownload - 14.62 KB What's Supported Right out of the box, this checkbox widget provides support for most of the typical checkbox functions.

The key features are listed below. 2 States (checked, unchecked) (* Note: no support for tri-state check boxes) Enabled / Disabled Mouse support Keyboard support including tab ordering Tooltips Simple grouping Customizable images for the 2 states + enabled/disabled. Images can be customized for the whole page or on a checkbox by checkbox basis, as needed. How To Use This Widget There are 4 steps you must perform before you can use the widget. There are several ways to make use of this widget. Customizing the Look and Feel The widget provides several ways to customize the look and feel of the checkboxes. . * Example 5 shows how to apply basic mouseover and mouseout customizations Below is an API reference for the control with a brief description of each method. Additional Customizations Known Issues. SUPERSCROLLORAMA. SuperScrollorama is powered by TweenMax and the Greensock Tweening Engine. Go to greensock.com for documentation on how to use it.

Why Greensock/TweenMax? Great performance, ease-of-use, expandibility and basically because it is awesome. First, link to the jQuery CDN and then embed TweenMax.js and SuperScrollorama. Next, start up SuperScrollorama. When initializing SuperScrollorama there are several options you might want to change. $.superscrollorama({options}) vars: optional properties for the pin method (object): isVertical Are we scrolling vertically (true) or horizontally (false)? Example Use the addTween method to build your scroll animations. .addTween(target, tween, duration, offset, reverse) target: scroll position (number) or element (string or object) tween: a Greensock animation tween object duration: scroll duration of tween in pixels (0 means autoplay) offset: adjust the animation start point reverse: disable reverse animation on up scrolling (optional) Example:

Formly. The form glamorizer for jQuery. An unbelievably easy way to add style and validation to your forms. Forms are everywhere and, usually, suck. Formly makes adding forms to your site a bit more exciting. Easily add style, validation, and a more impressive user interaction with a single function. Download Formly is a light little fella. 17kb in total for the full and 14kb for the minified version. Download full Download minifiedGitHub How-to use It's really easy to get Formly working for you. jQuery is the only prerequisite so make sure you include it, along with Formly's source files, in the head section of your file.

Now, build your form using the same standard HTML markup you've always used. Okay, now that we've built the form and have added a few commands, it's time to let Formly work it's magic. <script> $(document).ready(function() { $('#MyForm').formly(); });</script> Now that we've got the hang of it, let's stretch Formly's muscles a bit. Notice that a "validate" command does not need a "require" tag as well. Returned: RubberBand. Easily add the iOS style pull-to-refresh functionality to any page. I recently spotted Hook.js, which I was really excited about. I was let down when I noticed that it only reloaded the page and was triggered every time I reached the top of the page. It didn't feel natural to me and I wanted the ability to make an AJAX request. So I made RubberBand to do just that. Demos This page is actually a demo. Scroll to the top and "pull" it down to refresh.

You'll notice that you have to reach a "catch" point before the refresh action is taken. Using Implementing RubberBand is super easy. Next, we should make sure we have the required elements at the top of the page. Now that we have everything we need, all that's left is instantiating the object and doing something beneficial while it's open. <script> var RB = new RubberBand(function(e) { location.reload(); e.close(); });</script> That's it! Download Visit the GitHub repo to fork or browse the code, or download the compressed .ZIP directly. GitHub Compressed .ZIP Disclaimer License Licensed under the MIT License. Progress and Meter Elements. Tocify. Requirements jQuery 1.7.2+ (It is always recommended to use the latest version of jQuery) jQueryUI Widget Factory 1.8.21+ (It is always recommended to use the latest version of the jQueryUI Widget Factory) Optional Dependencies Twitter Bootstrap or jQueryUI CSS Theme Note: A Twitter Bootstrap or jQueryUI theme is only required if you want to use either framework to style your table of contents.

Notable Features Supports support Supports styling with or Supports show/hide animations with Supports Supports option to make sure a page is big enough to scroll to all table of content items Browser Support Tested in Getting Started Downloads Download the latest versions of... jQuery jQueryUI Widget Factory (You only need the Widget component underneath the UI Core dependency) Tocify (You only need jquery.tocify.js and jquery.tocify.css) Twitter Bootstrap or jQueryUI CSS Theme (Only required if you want to use either framework to style your table of contents) Include CSS and JavaScript files JavaScript Options. Live Preview jQuery Plugin. Many web applications (such as this blog) allow users to enter HTML as a comment. For security reasons, the set of allowed tags is tightly constrained by logic running on the server.

Because of this, it’s helpful to provide a preview of what the comment will look like as the user is typing the comment. sneak peek - by ArminH on sxc.huThat’s exactly what my live preview jQuery plugin does. See it in action This is the first jQuery Plugin I’ve written, so I welcome feedback. All you need for the HTML is an input, typically a TEXTAREA and an element to use as the preview, typically a DIV <textarea class="source"></textarea><label>Preview Area</label><div class="preview"></div> And the following script demonstrates one way to hook up the preview to the textarea.

One thing that’s different between this implementation and others I’ve seen is you can specify a set of allowed tags. Keep in mind that this plugin is for previewing what comments will look like and should not be used as validation!