diff options
Diffstat (limited to 'app/static/js/websdk-1.js')
-rw-r--r-- | app/static/js/websdk-1.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/static/js/websdk-1.js b/app/static/js/websdk-1.js index be651e0..91fb243 100644 --- a/app/static/js/websdk-1.js +++ b/app/static/js/websdk-1.js @@ -1,6 +1,15 @@ /* import jquery-1.6.2.js */ + +// Jquery center +jQuery.fn.center = function () { + this.css("position","absolute"); + this.css("top", (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop() + "px"); + this.css("left", (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft() + "px"); + return this; +} + +// Make all buttons jqueryui objects $(function() { $( "input:button" ).button(); $( "input:submit" ).button(); - /* $( "a", ".demo" ).click(function() { return false; }); */ }); |