How to Highlight quotes with coffeescript

Hello, I’ll show you how easy it is to highlight a word in a search using coffeescript, and then I will show the difference in the coffee and use jquery normal, and in the end, the result compiled coffeescript.
The code is much more organized and beautiful.

To call the function Search  do as follows:

any_name = new Search();

any_name=highlight(“your param or quote”);

in Rails: any_name=highlight(“<%= params[:search] %>”);
in PHP: any_name=highlight(“<?php echo $_POST["search"]?>”); OR any_name=highlight(“<?php echo $_GET["search"]?>”);

Using CoffeeScript.

Using jQuery

 

Result Compiled of CoffeeScript

 

CoffeeScript code download here.

jQuery vs Flash 2

Hi, this is a simple animation using jquery.

Some time ago, I worked in an agency that has developed a giant touchscreen panel for a client, took about three months to develop, when I read the documentation, I said, I can do this with jquery, and not using flash , as the developer was a major flash-known owner of the agency, he decided to do in flash, well, were the nights of sleep lost to development, occurred at the end almost everything right, finally.

I left that agency, and decided to develop the same project using jquery, of course not had the patience to develop 100%, just wanted to show what was possible, did the main part of the project that was user interaction with the virtual beach. As you can see in the example below.

I will still finish the entire project, but that is for a next time.

 

 

 

The project in flash was really good, but wanted to show that there are other possibilities.

And congratulations to the agency for this great achievement.

jQuery vs Flash

Hi, this is a simple example that it is possible to create animated applications using jquery and not flash.

This was a wedding gift from a friend of mine.

Roberta & Gustavo