Updated to the latest iteration of the sales tracking app; Added some temporary photos for UBS.
This commit is contained in:
23
public/admin/js/brainstorm.js
Normal file
23
public/admin/js/brainstorm.js
Normal file
@@ -0,0 +1,23 @@
|
||||
//Client side brainstorm.
|
||||
|
||||
var Brainstorm;
|
||||
|
||||
+function($) {
|
||||
Brainstorm = function(options) {
|
||||
var _this = this;
|
||||
this.options = $.extend({}, Brainstorm.DEFAULTS, options);
|
||||
this.socket = io.connect(options.url);
|
||||
|
||||
this.socket.on('name', function(data) {
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
Brainstorm.DEFAULTS = {
|
||||
url: '' //The url to make a websocket connection to.
|
||||
};
|
||||
|
||||
Brainstorm.prototype.query = function(params) {
|
||||
this.socket.emit("query", params);
|
||||
};
|
||||
}(jquery);
|
||||
Reference in New Issue
Block a user