3
* author: Anthony Dillon
6
function UbuntuOneSystem($parent){
11
this.init = function(){
12
$('#ubuntuone-window').hide();
13
$('#ubuntuone-window .control .close').bind('click', function(){
16
$('#ubuntuone-window .content .body .ubuntuone-buttons .join-now').bind('click', function(){
18
//_parent.errorMessage.open();
19
_this.openUbuntu1Page();
22
$('#ubuntuone-window .content .body .ubuntuone-buttons .learn-more').bind('click', function(){
23
_this.openUbuntu1Page();
26
$('#ubuntuone-window .content .body .ubuntuone-buttons .have-account').bind('click', function(){
27
_this.openUbuntu1Page();
31
this.open = function(){
34
$('#ubuntuone-window ').show();
37
if($('css3-container').length > 0){
38
$('#ubuntuone-window').prev().css('top', $('#ubuntuone-window').css('top'));
39
$('#ubuntuone-window').prev().css('left', $('#ubuntuone-window').css('left'));
44
this.openUbuntu1Page = function(){
45
window.open('http://one.ubuntu.com');
48
this.close = function(){
50
_parent.openWindows['ubuntuone-window'] = false;
51
$('#ubuntuone-window .control .close').unbind('click');
52
$('#ubuntuone-window').hide();
53
_parent.systemMenu.closeWindow('uone');
58
this.isOpen = function(){
62
this.resize = function(){
66
this.center = function(){
67
var left = ($(document).width() / 2) - ($('#ubuntuone-window ').width() / 2);
68
var top = Math.max(24,($(document).height() / 2) - ($('#ubuntuone-window ').height() / 2));
69
$('#ubuntuone-window ').css('left',left);
70
$('#ubuntuone-window ').css('top',top);
b'\\ No newline at end of file'