webfaction and repo.or.cz deployment done
[worddb.git] / static / js / worddb.lib.js
blob25bbe926f874312b30a3818204cfb692518e2821
1 function get_class_data(o, prefix){
2 var classes = jQuery(o).attr("class").split(" ");
3 var data = "";
4 $.each(classes, function(i, cls){
5 if(cls.indexOf(prefix) == 0){
6 data = cls.substring(prefix.length);
8 });
9 return data;
12 $.fn.hover_class = function(classes){
13 classes = classes.split(" ");
14 return this.each(function(i, o){
15 $(o).hover(function(){
16 }, function(){
17 });
18 });