Wednesday, January 25, 2012

Create Common Unicode Icons With CSS


Create Common Unicode Icons With CSS

Here’s a pretty neat and easy way to use Unicode icons as an alternative for using images (i.e. gifs) as symbols to indicate certain contents inside your web page. You can visit cool resources for more Web Design tutorials.


CSS

a[href^="mailto:"]:before { content: "\2709"; }
.phone:before             { content: "\2706"; }
.important:before         { content: "\27BD"; }
blockquote:before         { content: "\275D"; }
blockquote:after          { content: "\275E"; }
.alert:before             { content: "\26A0"; }

:before, :after {
  color: purple;
}

p, blockquote {
  margin: 20px;
}
body, a {
  color: #333;
  text-decoration: none;
  font-size: 21px;
}

Sample HTML

<p><a href="mailto:chriscoyier@gmail.com"> The unicode icon on the left is perfect for indicating email addresses </a></p>

<p class="phone"> To the left is a unicode icon for a phone number </p>

<p class="important"> The icon on the left is a unicode icon to indicate an important message. </p>

<blockquote> This message is enclosed in two types of unicode icons; one for before and one for after. </blockquote>

<p class="alert"> The icon on the left is a unicode icon for 'alert' messages <p>

Tuesday, January 24, 2012

XRegExp - JavaScript Regular Expression Library | blogfreakz.com

XRegExp - JavaScript Regular Expression Library | blogfreakz.com:
XRegExp is an open source JavaScript library that provides an augmented, extensible, cross-browser implementation of regular expressions, including support for additional syntax, flags, and methods.
xregexp XRegExp   JavaScript Regular Expression Library

CamanJS- Javascript Library for Image Manipulation | blogfreakz.com

CamanJS- Javascript Library for Image Manipulation | blogfreakz.com:
CamanJS is Javacript library for manipulating images using the HTML5 canvas and Javascript. It’s a combination of a simple-to-use interface with advanced and efficient image/canvas editing techniques. It is also completely library independent and can be safely used next to jQuery, YUI, Scriptaculous, MooTools, etc.

camanjs CamanJS    Javascript Library for Image Manipulation

jStat - JavaScript Statistical Library | blogfreakz.com

jStat - JavaScript Statistical Library | blogfreakz.com:


jStat is a statistical library written in JavaScript that allows you to perform advanced statistical operations without the need of a dedicated statistical language (i.e. MATLAB or R). The majority of jStat functions can be used independently of any other libraries. However, the plotting functionality of jStat is based on the jQuery plugin – flot.
jstat jStat   JavaScript Statistical Library

Timeglider - Open Source Timeline Component Built in Javascript

Timeglider - Open Source Timeline Component Built in Javascript:
Timeglider is a zooming, panning data-driven timeline — great for history projects, project planning, and much more. The timeline can be zoomed by dragging the vertical slider at right: up for zooming in (less time shown) and down for zooming out (more time shown). The mousewheel also works as a zoom controller.
timeglider Timeglider   Open Source Timeline Component Built in Javascript

Watermark - Create Image Watermarks With Canvas and Javascript

Watermark - Create Image Watermarks With Canvas and Javascript | blogfreakz.com:

watermark.js is a js library for creating watermarks on images. Images with a classname of your choice (default “watermark”) will get processed and then apply your watermark. Your watermark doesn’t have to be a .PNG or .GIF with transparency, watermark.js creates transparency even if you defined a .JPG as your watermark picture.

watermark Watermark   Create Image Watermarks With Canvas and Javascript

Monday, January 23, 2012

Play videos directly from within a fancybox | blogfreakz.com

Play videos directly from within a fancybox | blogfreakz.com:

jdmweb share great tutorials how to play videos directly within fancybox. The idea behind this tutorial is pretty simple. We want to display a thumbnail of the video, in a link. When the user click on the image, fancybox will oponed with an overlay, and the video will start playing automatically in it.

fancybo videos Play videos directly from within a fancybox