]> git.mxchange.org Git - friendica-addons.git/blob - jappixmini/jappix/js/me.js
Merge branch '3.6-release'
[friendica-addons.git] / jappixmini / jappix / js / me.js
1 /*
2
3 Jappix - An open social platform
4 These are the Jappix Me tool functions for Jappix
5
6 -------------------------------------------------
7
8 License: AGPL
9 Author: Vanaryon
10 Last revision: 16/01/12
11
12 */
13
14 // Opens the Me tools
15 function openMe() {     
16         // Popup HTML content
17         var html = 
18         '<div class="top">' + _e("Public profile") + '</div>' + 
19         
20         '<div class="content">' + 
21                 '<a class="me-images logo" href="https://me.jappix.com/" target="_blank"></a>' + 
22                 
23                 '<div class="infos">' + 
24                         '<p class="infos-title">' + _e("Your profile anywhere on the Web.") + '</p>' + 
25                         '<p>' + printf(_e("%s is a Jappix.com service which makes your XMPP profile public. It is easier to share it. No XMPP account is required to view your social channel, your current position and your contact details."), '<a href="https://me.jappix.com/" target="_blank">Jappix Me</a>') + '</p>' + 
26                         '<p>' + _e("Furthermore, every picture you post in your social channel is added to a beautiful picture timeline. You can now view the pictures you shared year by year.") + '</p>' + 
27                         '<p>' + _e("You can also use your XMPP avatar as a single avatar for every website, blog and forum you use. When you change it on XMPP, the new avatar appears everywhere. What a genious improvement!") + '</p>' + 
28                 '</div>' + 
29                 
30                 '<a class="go one-button" href="https://me.jappix.com/new" target="_blank">' + _e("Yay, let's create my public profile!") + '</a>' + 
31         '</div>' + 
32         
33         '<div class="bottom">' + 
34                 '<a href="#" class="finish">' + _e("Close") + '</a>' + 
35         '</div>';
36         
37         // Create the popup
38         createPopup('me', html);
39         
40         // Associate the events
41         launchMe();
42         
43         logThis('Public profile tool opened.');
44 }
45
46 // Closes the Me tools
47 function closeMe() {
48         // Destroy the popup
49         destroyPopup('me');
50         
51         return false;
52 }
53
54 // Addon launcher
55 function launchMe() {
56         // Click events
57         $('#me .content a.go').click(function() {
58                 closeMe();
59         });
60         
61         $('#me .bottom .finish').click(closeMe);
62 }