Giter Site home page Giter Site logo

grumble.js's Introduction

Sorry, this project is no longer maintained.

grumble.js

Add a bubble to any element; configure its rotation on a 360 degree axis and define its distance from the centre of the element.

Bubble size adapts to contents - perfect when text is localised and size can not be determined up front.

Examples

grumble.js examples

Author

James Cryer / Huddle.com

Licence

Do what you like, just don't be an arsehole.

grumble.js's People

Contributors

jamescryer avatar laurentdebricon avatar mkoryak avatar cissa avatar

Stargazers

 avatar Roxwize avatar koringz avatar Frogsuite IRD avatar y、 avatar  avatar Eissen avatar  avatar Daniel Budi Setyawan avatar little ze avatar Zhou Liwei avatar 九尾 avatar Sarvesh Athawale avatar Villads Claes avatar Jiang-YongZheng  avatar kelvin-guru avatar  avatar LGD.HuaFEEng avatar Yu Zhanbei avatar HuYali avatar  avatar  avatar ZG avatar 刘元涛 avatar Orkhan ALIYEV avatar  avatar Lotency avatar keith orbit avatar  avatar  avatar Statanis 123 avatar Debashish Pal avatar  avatar MasterMonster avatar 王世锋 avatar mo watermelon avatar syt123450 avatar aFlappyPig avatar  avatar Andy avatar HadesZ avatar  avatar Carol avatar 公主的觅风 avatar SopCat avatar Akops avatar 31526 avatar song avatar rucila avatar guobangbang avatar  avatar 编程悟道 avatar HFY avatar 秋天 avatar Mark Conley avatar Soul Coders avatar Anyways avatar  avatar web-triangle.ru avatar 颜海镜 avatar Greg avatar  avatar 曾星旗 avatar Parsa avatar vincent-tsui avatar  avatar  avatar Sidamor avatar Pulkit Kathuria avatar adonWong avatar Tian Tao avatar  avatar Vinci avatar Paweł Jedwabny avatar Jordão avatar Guanglong Liu avatar yongming avatar  avatar lizm1989 avatar bzxjp avatar aqing avatar Harshvardhan Pandit avatar  avatar 成国维 avatar  avatar pax avatar micky.zh avatar  avatar  avatar cwLin avatar 陈月红 avatar  avatar FrancisTao avatar bailey avatar Dave avatar Rogar·Q avatar 张亚飞 avatar wuzhicms avatar  avatar 文期 avatar

Watchers

Maxim Zaslavsky avatar D. Dotsenko avatar Selwin Ong avatar  avatar sp avatar Patoschi avatar Yiannis M avatar itkele avatar Dinesh Kr. Choudhary avatar hunslater avatar withy avatar Ed Cooper avatar blueice avatar 周雄海 avatar Chris Melo avatar  avatar Michael Anthony avatar Jonathan avatar wgs avatar Lei Zhilong avatar Tuna Aras avatar Hideaki Takata avatar howard avatar  avatar liang.xu avatar  avatar Yogesh Jangir avatar sashawang avatar  avatar  avatar 王世锋 avatar Bill Gang avatar  avatar Guanglong Liu avatar

grumble.js's Issues

Broken in IE10.

Get an error message about attempting to get .item from null.

Appears .item is something that the minify'er adds as it does not appear to be in the un-minify'd source.

Again this is an IE10 issue, but I haven't checked in other IE browsers.

downloading does not work

Hi James,
Can you check why downloading does not work? I am interested to fiddle with your code! looks great.

[enhancement] Add missing bower.json.

Hey, maintainer(s) of jamescryer/grumble.js!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library jamescryer/grumble.js is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "jamescryer/grumble.js",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Bubble image not positioned correctly on rotation

Hi, under certain situations, the rotation is not centered correctly, might be because Im using the library from a chrome extension.
My fix was to add -webkit-transform-origin on cssRotate:

cssRotate: function () {
this.bubble.css({
'-moz-transform': 'rotate(' + this.rotateDeg + 'deg)',
'-webkit-transform': 'rotate(' + this.rotateDeg + 'deg)',
'-o-transform': 'rotate(' + this.rotateDeg + 'deg)',
'transform': 'rotate(' + this.rotateDeg + 'deg)',
'-webkit-transform-origin-x': Math.floor(this.css.width/2)+ 'px',
'-webkit-transform-origin-y': Math.floor(this.css.height / 2) + 'px'
});
}

how can I add a link to the text of grumble?

$('#darkside').mouseover(function(e){
var $me = $(this), interval;

e.preventDefault();

$me.grumble(
    {
        angle: 330,
        text: 'Click to job list!',
        type: 'alt-', 
        distance: 130,
        showAfter: 0 ,
        hideAfter:3000,
    }
);
$(".grumble-text").click(function(){ window.location.href="query.php?backurl="+window.location.href; });

});

This will be work! But it not a good way to solve this problem. How can I get two grumble with a href when I click?

Different start positions in different browsers

It seems that the starting position of the bubbles are different in Firefox/IE9 from those in Chrome for div and img tags.

Lets say you have a div with 100 width/100 height, in Firefox and IE9 the starting coordinates of the bubble are (0,50), in Chrome they are (0,0).

Im initializing with:

        $(document).ready(function(){

            $('#chicken').grumble(
                {
                    text: 'Hell yeah.',
                    angle: 45,
                    distance: 0,
                }
            );

        });

(yes, a talking chicken)

Im going to look with more detail at this issue later.

showToolTip is not defined

Hi! I'm french so sorry for my english. So when I add the file, this javascript errors appears : showToolTip is not defined.

So one can help me?

Thanks

David AUFFRAY

Blows up on RequireJS (possibly on all other AMD loaders) with "{code here} has no 'extend' method"

This happens because content is eval'ed in some context that does not provide GrumbleBubble from window.

Suggest changing both, Bubble AND jQuery-Grumble codes to be wrapped as such:

For Bubble:

(function(window){
var $ = window.jQuery
...
})(window)

for jquery-grumble:

(function (window) {
var $ = window.jQuery
, Bubble = window.GrumbleBubble
...
})(window)

and the code stops blowing when $obj.grumble( is called.

This, of course does not make the code AMD-compatible in pure sense as it still does not have a define( , but it really does not need to be since it just decorates jQuery and all AMD loaders can just require that and get back $ object.

By the way. Plug in if fricken awesome! Females here (at office) especially love the bubbles, as error messages in bubbles are no longer bad-looking :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.