All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gwt.material.design.addins.client.bubble.resources.js.bubble.js Maven / Gradle / Ivy

There is a newer version: 2.8.3
Show newest version
$.fn.bubble = function (options){

    var position = options.position,
        color = options.color;
    triangle = $(this).find('.triangle');

    if(position === 'left'){
        triangle.css('borderRightColor', color);
    }else if(position === 'right'){
        triangle.css('borderLeftColor', color);
    }else if(position === 'top'){
        triangle.css('borderBottomColor', color);
    }else if(position === 'bottom'){
        triangle.css('borderTopColor', color);
    }
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy