The Chat Gem Lives!

  • If you scroll down, you can see that little blue orb. Click it, and it will turn purple.

    But is that all it does?

    Through a bit of hackery, I found the following:

    <code>/**
    * Gem callback.
    */
    gem: null,

    /**
    * Initialize.
    */
    initialize: function() {
    /*if (Cookie.read('d3.chatGem'))
    D3.chatGem(true);*/
    },

    /**
    * Toggle the chat gem!
    *
    * @param activate
    */
    activateGem: function(activate) {
    $('#chat-gem').toggleClass('activated');

    if (Core.isCallback(D3.gem))
    D3.gem();

    /*var gem = $('#chat-gem');

    if (activate) {
    gem.addClass('activated');
    } else {
    if (gem.hasClass('activated')) {
    gem.removeClass('activated');
    Cookie.erase('d3.chatGem');
    } else {
    gem.addClass('activated');
    Cookie.create('d3.chatGem', 1, {
    expires: 720,
    path: '/'
    });
    }
    }*/
    }</code>

    As you see, it has commented out code. That code adds a browser cookie that the gem has been clicked.

    I have manually added this cookie, and will explore to see if it does anything :)

    - Edit -

    Found the direct location of its source code:

    http://eu.battle.net/d3/static/js/d3.js?v2

    - Edit 2 -

    initialize: function() {
    /*if (Cookie.read('d3.chatGem'))
    D3.chatGem(true);*/
    },

    The "D3.chatGem" function is "undefined", meaning the code has not been created yet.

    So it seems all it does is change color, but will do more in the future - We can only wait!

    - Edit 3 -

    Replaced the picture with the actual code.
  • 24/08/2011 14:18Posted by Reelix
    So it seems all it does is change color, but will do more in the future - We can only wait!
    Wait for what! A gem that changes colour is cool in itself, don't you think? :P