/* Jappix - An open social platform These are the talkpage JS scripts for Jappix ------------------------------------------------- License: AGPL Author: Vanaryon Last revision: 06/05/11 */ // Creates the talkpage events function eventsTalkPage() { // Launch all associated addons launchMicroblog(); launchRoster(); launchPresence(); launchPEP(); launchNotifications(); launchMusic(); } // Creates the talkpage code function createTalkPage() { // Talkpage exists? if(exists('#talk')) return false; // Anonymous detector var anonymous = isAnonymous(); // Generate the HTML code var html = '
' + '
' + '' + ''; if(!anonymous && document.createElement('audio').canPlayType) html += '
' + '
' + '
' + '
' + '
' + '
' + '' + '
' + '
' + '

' + _e("No result!") + '

' + '
' + '' + '
' + '
' + '
'; if(!anonymous) html += '
' + '
' + '
' + '
' + '
' + '' + _e("Empty") + '' + '

' + _e("No notifications.") + '

' + '
' + '
' + '
'; html += '
' + '
' + '
'; if(!anonymous) html += '
' + '
' + '
' + '' + 'x' + '
' + '
' + '
' + '' + '
' + '
' + '' + '
' + '
' + '' + '
' + '
' + '' + '
' + '
' + '
' + '
'; html += '
' + '
' + '
' + '' + '' + '' + '' + '
'; if(!anonymous) html += '
' + '' + '' + '' + '' + '
' + '
' + '' + '' + '' + '' + '
'; html += '
' + '
' + '
' + '
' + '
' + '
'; if(!anonymous) html += '
' + '
' + '
' + _e("Channel") + '
' + '
'; html += '
' + '
' + '
' + '
' + '
' + '
'; if(!anonymous) html += '
' + '
' + '
' + '' + '
' + '
' + '

' + _e("What\'s up with you?") + '

' + '
' + '' + '
' + '
' + '' + '
' + '
' + '
' + '

' + _e("Attach a file") + '

' + generateFileShare() + '
' + '
' + '
' + '
' + '
' + '
' + '' + '
'; html += '
' + '
' + '
' + '
'; // Create the HTML code $('body').prepend(html); // Adapt the buddy-list size adaptRoster(); // Create JS events eventsTalkPage(); // Start the auto idle functions liveIdle(); return true; } // Destroys the talkpage code function destroyTalkPage() { // Reset our database resetDB(); // Reset some vars STANZA_ID = 1; BLIST_ALL = false; FIRST_PRESENCE_SENT = false; SEARCH_FILTERED = false; AVATAR_PENDING = []; // Kill all timers, exept the board ones $('*:not(#board .one-board)').stopTime(); // Kill the auto idle functions dieIdle(); // We renitalise the html markup as its initiale look $('.removable').remove(); pageTitle('home'); // Finally we show the homepage $('#home').show(); }