Commit 94d0d92dba6fdac824bbe2e11fb56f3c96d4c02a
Exists in
master
and in
29 other branches
Merge branch 'chat' of https://gitlab.com/diguliu/noosfero
See merge request !454
Showing
247 changed files
with
25122 additions
and
10471 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 247 files displayed.
app/controllers/public/chat_controller.rb
@@ -6,6 +6,7 @@ class ChatController < PublicController | @@ -6,6 +6,7 @@ class ChatController < PublicController | ||
6 | def start_session | 6 | def start_session |
7 | login = user.jid | 7 | login = user.jid |
8 | password = current_user.crypted_password | 8 | password = current_user.crypted_password |
9 | + session[:chat] ||= {:rooms => []} | ||
9 | begin | 10 | begin |
10 | jid, sid, rid = RubyBOSH.initialize_session(login, password, "http://#{environment.default_hostname}/http-bind", | 11 | jid, sid, rid = RubyBOSH.initialize_session(login, password, "http://#{environment.default_hostname}/http-bind", |
11 | :wait => 30, :hold => 1, :window => 5) | 12 | :wait => 30, :hold => 1, :window => 5) |
@@ -16,6 +17,31 @@ class ChatController < PublicController | @@ -16,6 +17,31 @@ class ChatController < PublicController | ||
16 | end | 17 | end |
17 | end | 18 | end |
18 | 19 | ||
20 | + def toggle | ||
21 | + session[:chat][:status] = session[:chat][:status] == 'opened' ? 'closed' : 'opened' | ||
22 | + render :nothing => true | ||
23 | + end | ||
24 | + | ||
25 | + def tab | ||
26 | + session[:chat][:tab_id] = params[:tab_id] | ||
27 | + render :nothing => true | ||
28 | + end | ||
29 | + | ||
30 | + def join | ||
31 | + session[:chat][:rooms] << params[:room_id] | ||
32 | + session[:chat][:rooms].uniq! | ||
33 | + render :nothing => true | ||
34 | + end | ||
35 | + | ||
36 | + def leave | ||
37 | + session[:chat][:rooms].delete(params[:room_id]) | ||
38 | + render :nothing => true | ||
39 | + end | ||
40 | + | ||
41 | + def my_session | ||
42 | + render :text => session[:chat].to_json, :layout => false | ||
43 | + end | ||
44 | + | ||
19 | def avatar | 45 | def avatar |
20 | profile = environment.profiles.find_by_identifier(params[:id]) | 46 | profile = environment.profiles.find_by_identifier(params[:id]) |
21 | filename, mimetype = profile_icon(profile, :minor, true) | 47 | filename, mimetype = profile_icon(profile, :minor, true) |
@@ -28,15 +54,6 @@ class ChatController < PublicController | @@ -28,15 +54,6 @@ class ChatController < PublicController | ||
28 | end | 54 | end |
29 | end | 55 | end |
30 | 56 | ||
31 | - def index | ||
32 | - presence = current_user.last_chat_status | ||
33 | - if presence.blank? or presence == 'chat' | ||
34 | - render :action => 'auto_connect_online' | ||
35 | - else | ||
36 | - render :action => 'auto_connect_busy' | ||
37 | - end | ||
38 | - end | ||
39 | - | ||
40 | def update_presence_status | 57 | def update_presence_status |
41 | if request.xhr? | 58 | if request.xhr? |
42 | current_user.update_attributes({:chat_status_at => DateTime.now}.merge(params[:status] || {})) | 59 | current_user.update_attributes({:chat_status_at => DateTime.now}.merge(params[:status] || {})) |
@@ -44,6 +61,44 @@ class ChatController < PublicController | @@ -44,6 +61,44 @@ class ChatController < PublicController | ||
44 | render :nothing => true | 61 | render :nothing => true |
45 | end | 62 | end |
46 | 63 | ||
64 | + def save_message | ||
65 | + to = environment.profiles.find_by_identifier(params[:to]) | ||
66 | + body = params[:body] | ||
67 | + | ||
68 | + ChatMessage.create!(:to => to, :from => user, :body => body) | ||
69 | + render :text => 'ok' | ||
70 | + end | ||
71 | + | ||
72 | + def recent_messages | ||
73 | + other = environment.profiles.find_by_identifier(params[:identifier]) | ||
74 | + if other.kind_of?(Organization) | ||
75 | + messages = ChatMessage.where('to_id=:other', :other => other.id) | ||
76 | + else | ||
77 | + messages = ChatMessage.where('(to_id=:other and from_id=:me) or (to_id=:me and from_id=:other)', {:me => user.id, :other => other.id}) | ||
78 | + end | ||
79 | + | ||
80 | + messages = messages.order('created_at DESC').includes(:to, :from).offset(params[:offset]).limit(20) | ||
81 | + messages_json = messages.map do |message| | ||
82 | + { | ||
83 | + :body => message.body, | ||
84 | + :to => {:id => message.to.identifier, :name => message.to.name}, | ||
85 | + :from => {:id => message.from.identifier, :name => message.from.name}, | ||
86 | + :created_at => message.created_at | ||
87 | + } | ||
88 | + end | ||
89 | + render :json => messages_json.reverse | ||
90 | + end | ||
91 | + | ||
92 | + def recent_conversations | ||
93 | + conversations_order = ActiveRecord::Base.connection.execute("select profiles.identifier from profiles inner join (select distinct r.id as id, MAX(r.created_at) as created_at from (select from_id, to_id, created_at, (case when from_id=#{user.id} then to_id else from_id end) as id from chat_messages where from_id=#{user.id} or to_id=#{user.id}) as r group by id order by created_at desc, id) as t on profiles.id=t.id order by t.created_at desc").entries.map {|e| e['identifier']} | ||
94 | + render :json => {:order => conversations_order.reverse, :domain => environment.default_hostname.gsub('.','-')}.to_json | ||
95 | + end | ||
96 | + | ||
97 | + #TODO Ideally this is done through roster table on ejabberd. | ||
98 | + def roster_groups | ||
99 | + render :text => user.memberships.map {|m| {:jid => m.jid, :name => m.name}}.to_json | ||
100 | + end | ||
101 | + | ||
47 | protected | 102 | protected |
48 | 103 | ||
49 | def check_environment_feature | 104 | def check_environment_feature |
app/helpers/chat_helper.rb
@@ -6,8 +6,9 @@ module ChatHelper | @@ -6,8 +6,9 @@ module ChatHelper | ||
6 | ['icon-menu-busy', _('Busy'), 'chat-busy'], | 6 | ['icon-menu-busy', _('Busy'), 'chat-busy'], |
7 | ['icon-menu-offline', _('Sign out of chat'), 'chat-disconnect'], | 7 | ['icon-menu-offline', _('Sign out of chat'), 'chat-disconnect'], |
8 | ] | 8 | ] |
9 | + avatar = profile_image(user, :portrait, :class => 'avatar') | ||
9 | content_tag('span', | 10 | content_tag('span', |
10 | - link_to(content_tag('span', status) + ui_icon('ui-icon-triangle-1-s'), | 11 | + link_to(avatar + content_tag('span', user.name) + ui_icon('ui-icon-triangle-1-s'), |
11 | '#', | 12 | '#', |
12 | :onclick => 'toggleMenu(this); return false', | 13 | :onclick => 'toggleMenu(this); return false', |
13 | :class => icon_class + ' simplemenu-trigger' | 14 | :class => icon_class + ' simplemenu-trigger' |
app/helpers/layout_helper.rb
@@ -50,6 +50,7 @@ module LayoutHelper | @@ -50,6 +50,7 @@ module LayoutHelper | ||
50 | 'colorbox', | 50 | 'colorbox', |
51 | 'selectordie', | 51 | 'selectordie', |
52 | 'inputosaurus', | 52 | 'inputosaurus', |
53 | + 'chat', | ||
53 | pngfix_stylesheet_path, | 54 | pngfix_stylesheet_path, |
54 | ] + tokeninput_stylesheets | 55 | ] + tokeninput_stylesheets |
55 | plugins_stylesheets = @plugins.select(&:stylesheet?).map { |plugin| plugin.class.public_path('style.css') } | 56 | plugins_stylesheets = @plugins.select(&:stylesheet?).map { |plugin| plugin.class.public_path('style.css') } |
app/views/chat/auto_connect_busy.html.erb
app/views/chat/auto_connect_online.html.erb
app/views/layouts/application-ng.html.erb
@@ -56,7 +56,7 @@ | @@ -56,7 +56,7 @@ | ||
56 | </div><!-- end id="content" --> | 56 | </div><!-- end id="content" --> |
57 | </div><!-- end id="wrap-2" --> | 57 | </div><!-- end id="wrap-2" --> |
58 | </div><!-- end id="wrap-1" --> | 58 | </div><!-- end id="wrap-1" --> |
59 | - <%= render_environment_features(:logged_in) %> | 59 | + <%= render_environment_features(:logged_in) if logged_in? %> |
60 | <div id="theme-footer"> | 60 | <div id="theme-footer"> |
61 | <%= theme_footer %> | 61 | <%= theme_footer %> |
62 | </div><!-- end id="theme-footer" --> | 62 | </div><!-- end id="theme-footer" --> |
app/views/layouts/chat.html.erb
@@ -1,64 +0,0 @@ | @@ -1,64 +0,0 @@ | ||
1 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
2 | -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= html_language %>" lang="<%= html_language %>"> | ||
3 | - <head> | ||
4 | - <title><%= h page_title %></title> | ||
5 | - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||
6 | - <meta name="description" content="<%= @environment.name %>" /> | ||
7 | - <link rel="shortcut icon" href="<%= image_path(theme_favicon) %>" type="image/x-icon" /> | ||
8 | - <%= noosfero_javascript %> | ||
9 | - <%= javascript_include_tag 'prototype', 'jquery.scrollabletab', 'strophejs-1.0.1/strophe', 'jquery.emoticon', '../designs/icons/pidgin/emoticons.js', 'ba-linkify', 'jquery.ba-hashchange', 'jquery.sound', 'chat', :cache => 'cache/chat' %> | ||
10 | - <%= noosfero_stylesheets %> | ||
11 | - <%= stylesheet_link_tag icon_theme_stylesheet_path %> | ||
12 | - <%= stylesheet_link_tag theme_stylesheet_path %> | ||
13 | - <%= stylesheet_link_tag jquery_ui_theme_stylesheet_path %> | ||
14 | - <script type='text/javascript'> | ||
15 | - var $presence_status_label = { | ||
16 | - chat: '<%= _('Online') %>', | ||
17 | - dnd: '<%= _('Busy') %>', | ||
18 | - '': '<%= _('Offline') %>' | ||
19 | - }; | ||
20 | - var $own_name = '<%= user.name %>'; | ||
21 | - var $starting_chat_notice = '<%= _("starting chat with %{name}") %>'; | ||
22 | - var $muc_domain = '<%= "conference.#{environment.default_hostname}" %>'; | ||
23 | - var $user_unavailable_error = '<%= _("<strong>ooops!</strong> The message could not be sent because the user is not online") %>'; | ||
24 | - var $update_presence_status_every = <%= User.expires_chat_status_every.minutes %>; | ||
25 | - var $balloon_template = '<div data-who="%{who}" class="message %{who}"><img class="avatar" src="%{avatar_url}"/><% comment_balloon do %><h5 class="%{who}-name">%{name}</h5><span class="time">%{time}</span><p>%{message}</p><% end %></div>'; | ||
26 | - </script> | ||
27 | - </head> | ||
28 | - <body id='chat'> | ||
29 | - <div id='title-bar'> | ||
30 | - <h1 class='title'><%= _("%s - Friends online (<span id='friends-online'>%d</span>)") % [h(page_title), 0] %></h1> | ||
31 | - </div> | ||
32 | - <div id='buddy-list'> | ||
33 | - <div id='environment-logo'> | ||
34 | - <%= image_tag "#{theme_path}/images/thin-logo.png", :title => environment.name, :alt => environment.name %> | ||
35 | - </div> | ||
36 | - <div class='toolbar'> | ||
37 | - <div id='user-status'><%= user_status_menu('icon-menu-offline', _('Offline')) %></div> | ||
38 | - <div class='dialog-error' style='display: none'></div> | ||
39 | - </div> | ||
40 | - <ul class='buddy-list'> | ||
41 | - <!-- <li class='offline'><a id='%{jid_id}' class='icon-menu-offline-11' href='#'>%{name}</a></li> --> | ||
42 | - </ul> | ||
43 | - </div> | ||
44 | - <div id='chat-window' class='tabs-bottom'> | ||
45 | - <div id='tabs'> | ||
46 | - <ul> | ||
47 | - <!-- <li class="tab"><a href="#{href}">#{label}</a></li> --> | ||
48 | - </ul> | ||
49 | - </div> | ||
50 | - <!-- | ||
51 | - <div id='#conversation-%{jid_id}' class='conversation'> | ||
52 | - <div class='history'> | ||
53 | - <div class='message %{who}'><img class='avatar' src='%{avatar_url}' /><h5 class='%{who}-info'>%{name}</h5><span class='time'>%{time}</span><p>%{message}</p></div> | ||
54 | - </div> | ||
55 | - <div class='input-div'> | ||
56 | - <div class='icon-chat'></div> | ||
57 | - <textarea type='textarea' data-to='%{jid}'></textarea> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - --> | ||
61 | - </div> | ||
62 | - <%= yield %> | ||
63 | - </body> | ||
64 | -</html> |
app/views/shared/logged_in/xmpp_chat.html.erb
1 | -<div id='chat-online-users' style='display: none'> | ||
2 | - <div id='chat-online-users-content' style='display: none;'> | ||
3 | - <div id='chat-online-users-hidden-content'> | ||
4 | - <ul></ul> | ||
5 | - <span id='anyone-online' style='display: none'><%= _('None of your friends is online at the moment') %></span> | 1 | + <%= javascript_include_tag 'strophejs-1.1.3/strophe.min', 'jquery.emoticon', '../designs/icons/pidgin/emoticons.js', 'ba-linkify', 'jquery.ba-hashchange', 'jquery.sound', 'chat', 'perfect-scrollbar.min.js', 'perfect-scrollbar.with-mousewheel.min.js', 'jquery.timeago.js', :cache => 'cache/chat' %> |
2 | + <%= stylesheet_link_tag 'perfect-scrollbar.min.css' %> | ||
3 | + | ||
4 | + <% extend ChatHelper %> | ||
5 | + | ||
6 | + <script type='text/javascript'> | ||
7 | + var $own_name = '<%= user.name %>'; | ||
8 | + var $muc_domain = '<%= "conference.#{environment.default_hostname}" %>'; | ||
9 | + var $bosh_service = '//<%= environment.default_hostname %>/http-bind'; | ||
10 | + var $user_unavailable_error = '<%= _("<strong>ooops!</strong> The message could not be sent because the user is not online") %>'; | ||
11 | + var $update_presence_status_every = <%= User.expires_chat_status_every.minutes %>; | ||
12 | + var $presence = '<%= current_user.last_chat_status %>'; | ||
13 | + </script> | ||
14 | + | ||
15 | + | ||
16 | + <div id="chat-label"> | ||
17 | + <span class="right-arrow">▶</span> | ||
18 | + <span class="title"><%= _('Chat') %></span> | ||
19 | + </div> | ||
20 | + | ||
21 | + <div id='chat'> | ||
22 | + <div id='buddy-list'> | ||
23 | + <div class='toolbar'> | ||
24 | + <div id='user-status'> | ||
25 | + <%= user_status_menu('icon-menu-offline', _('Offline')) %> | ||
26 | + </div> | ||
27 | + <div class='dialog-error' style='display: none'></div> | ||
28 | + </div> | ||
29 | + | ||
30 | + <div class='body'> | ||
31 | + <%= text_field_tag(:query, '', :placeholder => _('Search...'), :class => 'search') %> | ||
32 | + | ||
33 | + <div class='buddies'> | ||
34 | + <ul class='online'></ul> | ||
35 | + <ul class='offline'></ul> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + </div> | ||
39 | + | ||
40 | + <div id='chat-window'> | ||
41 | + <div id='conversations'></div> | ||
42 | + </div> | ||
43 | + | ||
44 | + <div id="chat-templates" style="display: none;"> | ||
45 | + | ||
46 | + <div class="conversation"> | ||
47 | + <div class="conversation-header"> | ||
48 | + <span class="chat-target"> | ||
49 | + <img class="avatar"> | ||
50 | + <span class="other-name"></span> | ||
51 | + </span> | ||
52 | + </div> | ||
53 | + <div class='history'></div> | ||
54 | + <div class='input-div'> | ||
55 | + <div class='icon-chat'></div> | ||
56 | + <textarea class='input'></textarea> | ||
57 | + </div> | ||
58 | + </div> | ||
59 | + | ||
60 | + <a class='join room-action'><%= _('Join room') %></a> | ||
61 | + <a class='leave room-action' style="display: none"><%= _('Leave room') %></a> | ||
62 | + | ||
63 | + <div class="buddy-item"> | ||
64 | + <li class='%{presence_status}'> | ||
65 | + <a id='%{jid_id}' class='icon-menu-%{presence_status}-11' href='#'> | ||
66 | + <span class="unread-messages"></span> | ||
67 | + %{avatar} | ||
68 | + <span class="name">%{name}</span> | ||
69 | + </a> | ||
70 | + </li> | ||
71 | + </div> | ||
72 | + | ||
73 | + <div class="occupant-list-template"> | ||
74 | + <div class="occupants room-action"> | ||
75 | + <a href="#" class="up"><%= _('Online') %> (<span class="occupants-online">0</span>)</a> | ||
76 | + <ul class='occupant-list'></ul> | ||
77 | + </div> | ||
78 | + </div> | ||
79 | + | ||
80 | + <div class="occupant-item"> | ||
81 | + <li class='%{presence_status}'> | ||
82 | + <a data-id='%{jid_id}' class='icon-menu-%{presence_status}-11' href='#'> | ||
83 | + <span class="unread-messages"></span> | ||
84 | + %{avatar} | ||
85 | + <span class="name">%{name}<span> | ||
86 | + </a> | ||
87 | + </li> | ||
88 | + </div> | ||
89 | + | ||
90 | + <div class="message"> | ||
91 | + <div data-who="%{who}" class="message %{who}"> | ||
92 | + <div class="content"> | ||
93 | + <span class="time" title="%{time}"></span> | ||
94 | + <div class="author"> | ||
95 | + %{avatar} | ||
96 | + </div> | ||
97 | + <p>%{message}</p> | ||
98 | + </div> | ||
99 | + </div> | ||
100 | + </div> | ||
101 | + | ||
102 | + <div class="error-message"> | ||
103 | + <span class='error'>%{text}</span> | ||
104 | + </div> | ||
105 | + | ||
6 | </div> | 106 | </div> |
7 | </div> | 107 | </div> |
8 | - <a href='#' id='chat-online-users-title' onclick='return false;'> | ||
9 | - <div class='header'><i class='icon-chat'></i><span><%= _("Friends in chat (<span class='amount_of_friends'>%{amount}</span>)") %></span></div> | ||
10 | - </a> | ||
11 | -</div> |
app/views/shared/profile_actions/xmpp_chat.html.erb
app/views/shared/usermenu/xmpp_chat.html.erb
@@ -1 +0,0 @@ | @@ -1 +0,0 @@ | ||
1 | -<%= link_to('<i class="icon-chat"></i><strong>' + _('Open chat') +'</strong>', '#', :id => 'openchat', :onclick => 'open_chat_window(this)') %> |
2.11 KB
public/designs/icons/tango/style.css
@@ -97,6 +97,7 @@ | @@ -97,6 +97,7 @@ | ||
97 | .icon-media-next { background-image: url(Tango/16x16/actions/media-skip-forward.png) } | 97 | .icon-media-next { background-image: url(Tango/16x16/actions/media-skip-forward.png) } |
98 | .icon-lock { background-image: url(Tango/16x16/actions/lock.png) } | 98 | .icon-lock { background-image: url(Tango/16x16/actions/lock.png) } |
99 | .icon-chat { background-image: url(Tango/16x16/apps/internet-group-chat.png); background-repeat: no-repeat } | 99 | .icon-chat { background-image: url(Tango/16x16/apps/internet-group-chat.png); background-repeat: no-repeat } |
100 | +.icon-big-chat { background-image: url(mod/64x64/apps/internet-group-chat.png); background-repeat: no-repeat } | ||
100 | .icon-reply { background-image: url(Tango/16x16/actions/mail-reply-sender.png) } | 101 | .icon-reply { background-image: url(Tango/16x16/actions/mail-reply-sender.png) } |
101 | .icon-newforum { background-image: url(Tango/16x16/apps/internet-group-chat.png) } | 102 | .icon-newforum { background-image: url(Tango/16x16/apps/internet-group-chat.png) } |
102 | .icon-forum { background-image: url(Tango/16x16/apps/system-users.png) } | 103 | .icon-forum { background-image: url(Tango/16x16/apps/system-users.png) } |
public/designs/themes/noosfero/style.css
@@ -9,11 +9,6 @@ | @@ -9,11 +9,6 @@ | ||
9 | #title-bar { | 9 | #title-bar { |
10 | background-color: gray; | 10 | background-color: gray; |
11 | } | 11 | } |
12 | -#buddy-list .toolbar { | ||
13 | - background-color: gray; | ||
14 | - border-top: 1px solid; | ||
15 | - border-bottom: 1px solid; | ||
16 | -} | ||
17 | #title-bar h1 { | 12 | #title-bar h1 { |
18 | color: white; | 13 | color: white; |
19 | } | 14 | } |
public/javascripts/application.js
@@ -348,8 +348,7 @@ function toggleSubmenu(trigger, title, link_list) { | @@ -348,8 +348,7 @@ function toggleSubmenu(trigger, title, link_list) { | ||
348 | } | 348 | } |
349 | 349 | ||
350 | function toggleMenu(trigger) { | 350 | function toggleMenu(trigger) { |
351 | - hideAllSubmenus(); | ||
352 | - jQuery(trigger).siblings('.simplemenu-submenu').toggle().toggleClass('opened'); | 351 | + jQuery(trigger).siblings('.simplemenu-submenu').toggle(); |
353 | } | 352 | } |
354 | 353 | ||
355 | function hideAllSubmenus() { | 354 | function hideAllSubmenus() { |
@@ -524,9 +523,6 @@ function userDataCallback(data) { | @@ -524,9 +523,6 @@ function userDataCallback(data) { | ||
524 | noosfero.user_data = data; | 523 | noosfero.user_data = data; |
525 | if (data.login) { | 524 | if (data.login) { |
526 | // logged in | 525 | // logged in |
527 | - if (data.chat_enabled) { | ||
528 | - setInterval(function(){ jQuery.getJSON(user_data, chatOnlineUsersDataCallBack)}, 10000); | ||
529 | - } | ||
530 | jQuery('head').append('<meta content="authenticity_token" name="csrf-param" />'); | 526 | jQuery('head').append('<meta content="authenticity_token" name="csrf-param" />'); |
531 | jQuery('head').append('<meta content="'+jQuery.cookie("_noosfero_.XSRF-TOKEN")+'" name="csrf-token" />'); | 527 | jQuery('head').append('<meta content="'+jQuery.cookie("_noosfero_.XSRF-TOKEN")+'" name="csrf-token" />'); |
532 | } | 528 | } |
@@ -552,33 +548,6 @@ jQuery(function($) { | @@ -552,33 +548,6 @@ jQuery(function($) { | ||
552 | $.getJSON(user_data, userDataCallback) | 548 | $.getJSON(user_data, userDataCallback) |
553 | 549 | ||
554 | $.ajaxSetup({ cache: false }); | 550 | $.ajaxSetup({ cache: false }); |
555 | - | ||
556 | - function chatOnlineUsersDataCallBack(data) { | ||
557 | - if ($('#chat-online-users').length == 0) { | ||
558 | - return; | ||
559 | - } | ||
560 | - var content = ''; | ||
561 | - $('#chat-online-users .amount_of_friends').html(data['amount_of_friends']); | ||
562 | - $('#chat-online-users').fadeIn(); | ||
563 | - for (var user in data['friends_list']) { | ||
564 | - var name = "<span class='friend_name'>%{name}</span>"; | ||
565 | - var avatar = data['friends_list'][user]['avatar']; | ||
566 | - var jid = data['friends_list'][user]['jid']; | ||
567 | - var status_name = data['friends_list'][user]['status'] || 'offline'; | ||
568 | - avatar = avatar ? '<img src="' + avatar + '" />' : '' | ||
569 | - name = name.replace('%{name}',data['friends_list'][user]['name']); | ||
570 | - open_chat_link = "onclick='open_chat_window(this, \"#" + jid + "\")'"; | ||
571 | - var status_icon = "<div class='chat-online-user-status icon-menu-"+ status_name + "-11'><span>" + status_name + '</span></div>'; | ||
572 | - content += "<li><a href='#' class='chat-online-user' " + open_chat_link + "><div class='chat-online-user-avatar'>" + avatar + '</div>' + name + status_icon + '</a></li>'; | ||
573 | - } | ||
574 | - content ? $('#chat-online-users-hidden-content ul').html(content) : $('#anyone-online').show(); | ||
575 | - $('#chat-online-users-title').click(function(){ | ||
576 | - if($('#chat-online-users-content').is(':visible')) | ||
577 | - $('#chat-online-users-content').hide(); | ||
578 | - else | ||
579 | - $('#chat-online-users-content').show(); | ||
580 | - }); | ||
581 | - } | ||
582 | }); | 551 | }); |
583 | 552 | ||
584 | // controls the display of contact list | 553 | // controls the display of contact list |
@@ -620,13 +589,6 @@ function display_notice(message) { | @@ -620,13 +589,6 @@ function display_notice(message) { | ||
620 | setTimeout(function() { $noticeBox.fadeOut('fast'); }, 5000); | 589 | setTimeout(function() { $noticeBox.fadeOut('fast'); }, 5000); |
621 | } | 590 | } |
622 | 591 | ||
623 | -function open_chat_window(self_link, anchor) { | ||
624 | - anchor = anchor || '#'; | ||
625 | - var noosfero_chat_window = window.open(noosfero_root() + '/chat' + anchor,'noosfero_chat','width=900,height=500'); | ||
626 | - noosfero_chat_window.focus(); | ||
627 | - return false; | ||
628 | -} | ||
629 | - | ||
630 | jQuery(function($) { | 592 | jQuery(function($) { |
631 | /* Adds a class to "opera" to the body element if Opera browser detected. | 593 | /* Adds a class to "opera" to the body element if Opera browser detected. |
632 | */ | 594 | */ |
@@ -1146,3 +1108,49 @@ function apply_zoom_to_images(zoom_text) { | @@ -1146,3 +1108,49 @@ function apply_zoom_to_images(zoom_text) { | ||
1146 | }); | 1108 | }); |
1147 | }); | 1109 | }); |
1148 | } | 1110 | } |
1111 | + | ||
1112 | +function notifyMe(title, options) { | ||
1113 | + // This might be useful in the future | ||
1114 | + // | ||
1115 | + // Let's check if the browser supports notifications | ||
1116 | + // if (!("Notification" in window)) { | ||
1117 | + // alert("This browser does not support desktop notification"); | ||
1118 | + // } | ||
1119 | + | ||
1120 | + // Let's check if the user is okay to get some notification | ||
1121 | + var notification = null; | ||
1122 | + if (Notification.permission === "granted") { | ||
1123 | + // If it's okay let's create a notification | ||
1124 | + notification = new Notification(title, options); | ||
1125 | + } | ||
1126 | + | ||
1127 | + // Otherwise, we need to ask the user for permission | ||
1128 | + // Note, Chrome does not implement the permission static property | ||
1129 | + // So we have to check for NOT 'denied' instead of 'default' | ||
1130 | + else if (Notification.permission !== 'denied') { | ||
1131 | + Notification.requestPermission(function (permission) { | ||
1132 | + // Whatever the user answers, we make sure we store the information | ||
1133 | + if (!('permission' in Notification)) { | ||
1134 | + Notification.permission = permission; | ||
1135 | + } | ||
1136 | + | ||
1137 | + // If the user is okay, let's create a notification | ||
1138 | + if (permission === "granted") { | ||
1139 | + notification = new Notification(title, options); | ||
1140 | + } | ||
1141 | + }); | ||
1142 | + } | ||
1143 | + return notification; | ||
1144 | + // At last, if the user already denied any notification, and you | ||
1145 | + // want to be respectful there is no need to bother them any more. | ||
1146 | +} | ||
1147 | + | ||
1148 | +function start_fetching(element){ | ||
1149 | + jQuery(element).append('<div class="fetching-overlay">Loading...</div>'); | ||
1150 | +} | ||
1151 | + | ||
1152 | +function stop_fetching(element){ | ||
1153 | + jQuery('.fetching-overlay', element).remove(); | ||
1154 | +} | ||
1155 | + | ||
1156 | +window.isHidden = function isHidden() { return (typeof(document.hidden) != 'undefined') ? document.hidden : !document.hasFocus() }; |
public/javascripts/chat.js
@@ -20,22 +20,17 @@ jQuery(function($) { | @@ -20,22 +20,17 @@ jQuery(function($) { | ||
20 | var Jabber = { | 20 | var Jabber = { |
21 | debug: true, | 21 | debug: true, |
22 | connection: null, | 22 | connection: null, |
23 | - bosh_service: '/http-bind', | 23 | + bosh_service: $bosh_service, |
24 | muc_domain: $muc_domain, | 24 | muc_domain: $muc_domain, |
25 | muc_supported: false, | 25 | muc_supported: false, |
26 | presence_status: '', | 26 | presence_status: '', |
27 | - update_presence_status_every: $update_presence_status_every, // time in seconds of how often update presence status to Noosfero DB | ||
28 | - tab_prefix: 'conversation-', // used to compose jQuery UI tabs and anchors to select then | 27 | + conversation_prefix: 'conversation-', |
29 | jids: {}, | 28 | jids: {}, |
30 | rooms: {}, | 29 | rooms: {}, |
30 | + no_more_messages: {}, | ||
31 | 31 | ||
32 | - templates: { | ||
33 | - buddy_item: "<li class='%{presence_status}'><a id='%{jid_id}' class='icon-menu-%{presence_status}-11' href='#'>%{name}</a></li>", | ||
34 | - occupant_item: "<li class='%{presence_status}'><a data-id='%{jid_id}' class='icon-menu-%{presence_status}-11' href='#'>%{name}</a></li>", | ||
35 | - room_item: "<li class='room'><a id='%{jid_id}' class='icon-chat' href='#'>%{name}</a></li>", | ||
36 | - message: $balloon_template, | ||
37 | - error: "<span class='error'>%{text}</span>", | ||
38 | - occupant_list: "<div class='occupant-list'><ul class='occupant-list'></ul></div>" | 32 | + template: function(selector) { |
33 | + return $('#chat #chat-templates '+selector).clone().html(); | ||
39 | }, | 34 | }, |
40 | 35 | ||
41 | jid_to_id: function (jid) { | 36 | jid_to_id: function (jid) { |
@@ -56,40 +51,62 @@ jQuery(function($) { | @@ -56,40 +51,62 @@ jQuery(function($) { | ||
56 | return Jabber.jids[jid_id].unread_messages; | 51 | return Jabber.jids[jid_id].unread_messages; |
57 | }, | 52 | }, |
58 | 53 | ||
59 | - insert_or_update_user: function (list, item, jid, name, presence, template) { | 54 | + insert_or_update_user: function (list, item, jid, name, presence, template, type, remove_on_offline) { |
60 | var jid_id = Jabber.jid_to_id(jid); | 55 | var jid_id = Jabber.jid_to_id(jid); |
56 | + var identifier = Strophe.getNodeFromJid(jid); | ||
61 | var html = template | 57 | var html = template |
62 | .replace('%{jid_id}', jid_id) | 58 | .replace('%{jid_id}', jid_id) |
63 | .replace(/%{presence_status}/g, presence) | 59 | .replace(/%{presence_status}/g, presence) |
60 | + .replace('%{avatar}', getAvatar(identifier)) | ||
64 | .replace('%{name}', name); | 61 | .replace('%{name}', name); |
65 | - if ($(item).length > 0) { | ||
66 | - $(item).parent('li').replaceWith(html); | ||
67 | - } else { | ||
68 | - $(list).append(html); | ||
69 | - } | ||
70 | - Jabber.jids[jid_id] = {jid: jid, name: name, type: 'chat', presence: presence}; | 62 | + |
63 | + $(item).parent().remove(); | ||
64 | + if(presence != 'offline' || !remove_on_offline) | ||
65 | + $(list).append(html); | ||
66 | + Jabber.jids[jid_id] = {jid: jid, name: name, type: type, presence: presence}; | ||
67 | + }, | ||
68 | + insert_or_update_group: function (jid, presence) { | ||
69 | + var jid_id = Jabber.jid_to_id(jid); | ||
70 | + var list = $('#buddy-list .buddies ul.'+presence); | ||
71 | + var item = $('#' + jid_id); | ||
72 | + presence = presence || ($(item).length > 0 ? $(item).parent('li').attr('class') : 'offline'); | ||
73 | + log('adding or updating contact ' + jid + ' as ' + presence); | ||
74 | + Jabber.insert_or_update_user(list, item, jid, Jabber.name_of(jid_id), presence, Jabber.template('.buddy-item'), 'groupchat'); | ||
75 | + $("#chat-window .tab a[href='#"+ Jabber.conversation_prefix + jid_id +"']") | ||
76 | + .removeClass() | ||
77 | + .addClass('icon-menu-' + presence + '-11'); | ||
71 | }, | 78 | }, |
72 | insert_or_update_contact: function (jid, name, presence) { | 79 | insert_or_update_contact: function (jid, name, presence) { |
73 | var jid_id = Jabber.jid_to_id(jid); | 80 | var jid_id = Jabber.jid_to_id(jid); |
74 | - var list = $('#buddy-list .buddy-list'); | ||
75 | var item = $('#' + jid_id); | 81 | var item = $('#' + jid_id); |
76 | presence = presence || ($(item).length > 0 ? $(item).parent('li').attr('class') : 'offline'); | 82 | presence = presence || ($(item).length > 0 ? $(item).parent('li').attr('class') : 'offline'); |
83 | + var list = $('#buddy-list .buddies ul' + (presence=='offline' ? '.offline' : '.online')); | ||
84 | + | ||
77 | log('adding or updating contact ' + jid + ' as ' + presence); | 85 | log('adding or updating contact ' + jid + ' as ' + presence); |
78 | - Jabber.insert_or_update_user(list, item, jid, name, presence, Jabber.templates.buddy_item); | ||
79 | - $("#chat-window .tab a[href='#"+ Jabber.tab_prefix + jid_id +"']") | 86 | + Jabber.insert_or_update_user(list, item, jid, name, presence, Jabber.template('.buddy-item'), 'chat'); |
87 | + $("#chat-window .tab a[href='#"+ Jabber.conversation_prefix + jid_id +"']") | ||
80 | .removeClass() | 88 | .removeClass() |
81 | .addClass('icon-menu-' + presence + '-11'); | 89 | .addClass('icon-menu-' + presence + '-11'); |
82 | }, | 90 | }, |
83 | insert_or_update_occupant: function (jid, name, presence, room_jid) { | 91 | insert_or_update_occupant: function (jid, name, presence, room_jid) { |
84 | log('adding or updating occupant ' + jid + ' as ' + presence); | 92 | log('adding or updating occupant ' + jid + ' as ' + presence); |
85 | var jid_id = Jabber.jid_to_id(jid); | 93 | var jid_id = Jabber.jid_to_id(jid); |
86 | - var list = $('#' + Jabber.tab_prefix + Jabber.jid_to_id(room_jid) + ' .occupant-list ul'); | 94 | + var room_jid_id = Jabber.jid_to_id(room_jid); |
95 | + var list = $('#' + Jabber.conversation_prefix + room_jid_id + ' .occupants ul'); | ||
87 | var item = $(list).find('a[data-id='+ jid_id +']'); | 96 | var item = $(list).find('a[data-id='+ jid_id +']'); |
88 | - Jabber.insert_or_update_user(list, item, jid, name, presence, Jabber.templates.occupant_item); | ||
89 | - if (Jabber.rooms[Jabber.jid_to_id(room_jid)] === undefined) { | ||
90 | - Jabber.rooms[Jabber.jid_to_id(room_jid)] = {}; | 97 | + Jabber.insert_or_update_user(list, item, jid, name, presence, Jabber.template('.occupant-item'), 'chat', true); |
98 | + if (Jabber.rooms[room_jid_id] === undefined) | ||
99 | + Jabber.rooms[room_jid_id] = {}; | ||
100 | + | ||
101 | + var room = Jabber.rooms[room_jid_id]; | ||
102 | + if(presence == 'offline') { | ||
103 | + delete Jabber.rooms[room_jid_id][name]; | ||
104 | + } | ||
105 | + else { | ||
106 | + Jabber.rooms[room_jid_id][name] = jid; | ||
91 | } | 107 | } |
92 | - Jabber.rooms[Jabber.jid_to_id(room_jid)][name] = jid; | 108 | + |
109 | + list.parents('.occupants').find('.occupants-online').text(Object.keys(Jabber.rooms[room_jid_id]).length); | ||
93 | }, | 110 | }, |
94 | 111 | ||
95 | remove_contact: function(jid) { | 112 | remove_contact: function(jid) { |
@@ -109,26 +126,36 @@ jQuery(function($) { | @@ -109,26 +126,36 @@ jQuery(function($) { | ||
109 | return body; | 126 | return body; |
110 | }, | 127 | }, |
111 | 128 | ||
112 | - show_message: function (jid, name, body, who, identifier) { | 129 | + show_message: function (jid, name, body, who, identifier, time, offset) { |
130 | + if(!offset) offset = 0; | ||
113 | if (body) { | 131 | if (body) { |
114 | body = Jabber.render_body_message(body); | 132 | body = Jabber.render_body_message(body); |
115 | var jid_id = Jabber.jid_to_id(jid); | 133 | var jid_id = Jabber.jid_to_id(jid); |
116 | - var tab_id = '#' + Jabber.tab_prefix + jid_id; | ||
117 | - if ($(tab_id).find('.message').length > 0 && $(tab_id).find('.message:last').attr('data-who') == who) { | ||
118 | - $(tab_id).find('.history').find('.message:last .comment-balloon-content').append('<p>' + body + '</p>'); | 134 | + var tab_id = '#' + Jabber.conversation_prefix + jid_id; |
135 | + var history = $(tab_id).find('.history'); | ||
136 | + | ||
137 | + var offset_container = history.find('.chat-offset-container-'+offset); | ||
138 | + if(offset_container.length == 0) | ||
139 | + offset_container = $('<div class="chat-offset-container-'+offset+'"></div>').prependTo(history); | ||
140 | + | ||
141 | + if (offset_container.find('.message:last').attr('data-who') == who) { | ||
142 | + offset_container.find('.message:last .content').append('<p>' + body + '</p>'); | ||
119 | } | 143 | } |
120 | else { | 144 | else { |
121 | - var time = new Date(); | ||
122 | - time = time.getHours() + ':' + checkTime(time.getMinutes()); | ||
123 | - var message_html = Jabber.templates.message | 145 | + if (time==undefined) { |
146 | + time = new Date().toISOString(); | ||
147 | + } | ||
148 | + var message_html = Jabber.template('.message') | ||
124 | .replace('%{message}', body) | 149 | .replace('%{message}', body) |
125 | .replace(/%{who}/g, who) | 150 | .replace(/%{who}/g, who) |
126 | .replace('%{time}', time) | 151 | .replace('%{time}', time) |
127 | .replace('%{name}', name) | 152 | .replace('%{name}', name) |
128 | - .replace('%{avatar_url}', '/chat/avatar/' + identifier); | ||
129 | - $('#' + Jabber.tab_prefix + jid_id).find('.history').append(message_html); | 153 | + .replace('%{avatar}', getAvatar(identifier)); |
154 | + offset_container.append(message_html); | ||
155 | + $(".message span.time").timeago(); | ||
130 | } | 156 | } |
131 | - $(tab_id).find('.history').scrollTo({top:'100%', left:'0%'}); | 157 | + if(offset == 0) history.scrollTo({top:'100%', left:'0%'}); |
158 | + else history.scrollTo(offset_container.height()); | ||
132 | if (who != "self") { | 159 | if (who != "self") { |
133 | if ($(tab_id).find('.history:visible').length == 0) { | 160 | if ($(tab_id).find('.history:visible').length == 0) { |
134 | count_unread_messages(jid_id); | 161 | count_unread_messages(jid_id); |
@@ -144,30 +171,57 @@ jQuery(function($) { | @@ -144,30 +171,57 @@ jQuery(function($) { | ||
144 | .removeClass('icon-menu-chat') | 171 | .removeClass('icon-menu-chat') |
145 | .removeClass('icon-menu-offline') | 172 | .removeClass('icon-menu-offline') |
146 | .removeClass('icon-menu-dnd') | 173 | .removeClass('icon-menu-dnd') |
147 | - .addClass('icon-menu-' + (presence || 'offline')) | ||
148 | - .find('span').html($presence_status_label[presence]); | 174 | + .addClass('icon-menu-' + (presence || 'offline')); |
175 | + $('#buddy-list #user-status img.avatar').replaceWith(getMyAvatar()); | ||
149 | $.get('/chat/update_presence_status', { status: {chat_status: presence, last_chat_status: presence} }); | 176 | $.get('/chat/update_presence_status', { status: {chat_status: presence, last_chat_status: presence} }); |
150 | }, | 177 | }, |
151 | 178 | ||
152 | send_availability_status: function(presence) { | 179 | send_availability_status: function(presence) { |
180 | + log('send availability status ' + presence); | ||
153 | Jabber.connection.send($pres().c('show').t(presence).up()); | 181 | Jabber.connection.send($pres().c('show').t(presence).up()); |
154 | Jabber.show_status(presence); | 182 | Jabber.show_status(presence); |
155 | }, | 183 | }, |
156 | 184 | ||
157 | - enter_room: function(room_jid) { | 185 | + enter_room: function(jid, push) { |
186 | + if(push == undefined) | ||
187 | + push = true | ||
188 | + var jid_id = Jabber.jid_to_id(jid); | ||
189 | + var conversation_id = Jabber.conversation_prefix + jid_id; | ||
190 | + var button = $('#' + conversation_id + ' .join'); | ||
191 | + button.hide(); | ||
192 | + button.siblings('.leave').show(); | ||
158 | Jabber.connection.send( | 193 | Jabber.connection.send( |
159 | - $pres({to: room_jid + '/' + $own_name}).c('x', {xmlns: Strophe.NS.MUC}).c('history', {maxchars: 0}) | 194 | + $pres({to: jid + '/' + $own_name}).c('x', {xmlns: Strophe.NS.MUC}).c('history', {maxchars: 0}) |
160 | ); | 195 | ); |
196 | + Jabber.insert_or_update_group(jid, 'online'); | ||
197 | + Jabber.update_chat_title(); | ||
198 | + sort_conversations(); | ||
199 | + if(push) | ||
200 | + $.post('/chat/join', {room_id: jid}); | ||
161 | }, | 201 | }, |
162 | 202 | ||
163 | - leave_room: function(room_jid) { | ||
164 | - Jabber.connection.send($pres({from: Jabber.connection.jid, to: room_jid + '/' + $own_name, type: 'unavailable'})) | 203 | + leave_room: function(jid, push) { |
204 | + if(push == undefined) | ||
205 | + push = true | ||
206 | + var jid_id = Jabber.jid_to_id(jid); | ||
207 | + var conversation_id = Jabber.conversation_prefix + jid_id; | ||
208 | + var button = $('#' + conversation_id + ' .leave'); | ||
209 | + button.hide(); | ||
210 | + button.siblings('.join').show(); | ||
211 | + Jabber.connection.send($pres({from: Jabber.connection.jid, to: jid + '/' + $own_name, type: 'unavailable'})) | ||
212 | + Jabber.insert_or_update_group(jid, 'offline'); | ||
213 | + sort_conversations(); | ||
214 | + if(push) | ||
215 | + $.post('/chat/leave', {room_id: jid}); | ||
165 | }, | 216 | }, |
166 | 217 | ||
167 | update_chat_title: function () { | 218 | update_chat_title: function () { |
168 | - var friends_online = $('#buddy-list .buddy-list li:visible').length; | 219 | + var friends_online = $('#buddy-list #friends .buddy-list.online li').length; |
169 | $('#friends-online').text(friends_online); | 220 | $('#friends-online').text(friends_online); |
170 | - document.title = $('#title-bar .title').text(); | 221 | + var friends_offline = $('#buddy-list #friends .buddy-list.offline li').length; |
222 | + $('#friends-offline').text(friends_offline); | ||
223 | + var groups_online = $('#buddy-list #rooms .buddy-list li').length; | ||
224 | + $('#groups-online').text(groups_online); | ||
171 | }, | 225 | }, |
172 | 226 | ||
173 | on_connect: function (status) { | 227 | on_connect: function (status) { |
@@ -184,19 +238,17 @@ jQuery(function($) { | @@ -184,19 +238,17 @@ jQuery(function($) { | ||
184 | break; | 238 | break; |
185 | case Strophe.Status.DISCONNECTED: | 239 | case Strophe.Status.DISCONNECTED: |
186 | log('disconnected'); | 240 | log('disconnected'); |
187 | - Jabber.show_status(''); | ||
188 | - $('#buddy-list ul.buddy-list, .occupant-list ul.occupant-list').html(''); | 241 | + $('#buddy-list ul.buddy-list, .occupants ul.occupant-list').html(''); |
189 | Jabber.update_chat_title(); | 242 | Jabber.update_chat_title(); |
190 | - $('#chat-window .tab a').removeClass().addClass('icon-menu-offline-11'); | ||
191 | $('#buddy-list .toolbar').removeClass('small-loading-dark'); | 243 | $('#buddy-list .toolbar').removeClass('small-loading-dark'); |
192 | - $('textarea').attr('disabled', 'disabled'); | 244 | + $('textarea').prop('disabled', 'disabled'); |
193 | break; | 245 | break; |
194 | case Strophe.Status.CONNECTED: | 246 | case Strophe.Status.CONNECTED: |
195 | log('connected'); | 247 | log('connected'); |
196 | case Strophe.Status.ATTACHED: | 248 | case Strophe.Status.ATTACHED: |
197 | log('XMPP/BOSH session attached'); | 249 | log('XMPP/BOSH session attached'); |
198 | $('#buddy-list .toolbar').removeClass('small-loading-dark'); | 250 | $('#buddy-list .toolbar').removeClass('small-loading-dark'); |
199 | - $('textarea').attr('disabled', ''); | 251 | + $('textarea').prop('disabled', ''); |
200 | break; | 252 | break; |
201 | } | 253 | } |
202 | }, | 254 | }, |
@@ -209,11 +261,27 @@ jQuery(function($) { | @@ -209,11 +261,27 @@ jQuery(function($) { | ||
209 | var jid_id = Jabber.jid_to_id(jid); | 261 | var jid_id = Jabber.jid_to_id(jid); |
210 | Jabber.insert_or_update_contact(jid, name); | 262 | Jabber.insert_or_update_contact(jid, name); |
211 | }); | 263 | }); |
264 | + //TODO Add groups through roster too... | ||
265 | + $.ajax({ | ||
266 | + url: '/chat/roster_groups', | ||
267 | + dataType: 'json', | ||
268 | + success: function(data){ | ||
269 | + data.each(function(room){ | ||
270 | + var jid_id = Jabber.jid_to_id(room.jid); | ||
271 | + Jabber.jids[jid_id] = {jid: room.jid, name: room.name, type: 'groupchat'}; | ||
272 | + //FIXME This must check on session if the user is inside the room... | ||
273 | + Jabber.insert_or_update_group(room.jid, 'offline'); | ||
274 | + }); | ||
275 | + }, | ||
276 | + error: function(data, textStatus, jqXHR){ | ||
277 | + console.log(data); | ||
278 | + }, | ||
279 | + }); | ||
280 | + sort_conversations(); | ||
212 | // set up presence handler and send initial presence | 281 | // set up presence handler and send initial presence |
213 | Jabber.connection.addHandler(Jabber.on_presence, null, "presence"); | 282 | Jabber.connection.addHandler(Jabber.on_presence, null, "presence"); |
214 | Jabber.send_availability_status(Jabber.presence_status); | 283 | Jabber.send_availability_status(Jabber.presence_status); |
215 | - // detect if chat was opened with anchor like #community@conference.jabber.colivre | ||
216 | - $(window).trigger('hashchange'); | 284 | + load_defaults(); |
217 | }, | 285 | }, |
218 | 286 | ||
219 | // NOTE: cause Noosfero store's rosters in database based on friendship relation between people | 287 | // NOTE: cause Noosfero store's rosters in database based on friendship relation between people |
@@ -307,6 +375,10 @@ jQuery(function($) { | @@ -307,6 +375,10 @@ jQuery(function($) { | ||
307 | else { | 375 | else { |
308 | // why server sends presence from myself to me? | 376 | // why server sends presence from myself to me? |
309 | log('ignoring presence from myself'); | 377 | log('ignoring presence from myself'); |
378 | + if(presence.show=='offline') { | ||
379 | + console.log(Jabber.presence_status); | ||
380 | + Jabber.send_availability_status(Jabber.presence_status); | ||
381 | + } | ||
310 | } | 382 | } |
311 | } | 383 | } |
312 | } | 384 | } |
@@ -321,7 +393,7 @@ jQuery(function($) { | @@ -321,7 +393,7 @@ jQuery(function($) { | ||
321 | var name = Jabber.name_of(jid_id); | 393 | var name = Jabber.name_of(jid_id); |
322 | create_conversation_tab(name, jid_id); | 394 | create_conversation_tab(name, jid_id); |
323 | Jabber.show_message(jid, name, escape_html(message.body), 'other', Strophe.getNodeFromJid(jid)); | 395 | Jabber.show_message(jid, name, escape_html(message.body), 'other', Strophe.getNodeFromJid(jid)); |
324 | - $.sound.play('/sounds/receive.wav'); | 396 | + notifyMessage(message); |
325 | return true; | 397 | return true; |
326 | }, | 398 | }, |
327 | 399 | ||
@@ -337,8 +409,8 @@ jQuery(function($) { | @@ -337,8 +409,8 @@ jQuery(function($) { | ||
337 | else if ($own_name != name) { | 409 | else if ($own_name != name) { |
338 | var jid = Jabber.rooms[Jabber.jid_to_id(message.from)][name]; | 410 | var jid = Jabber.rooms[Jabber.jid_to_id(message.from)][name]; |
339 | Jabber.show_message(message.from, name, escape_html(message.body), name, Strophe.getNodeFromJid(jid)); | 411 | Jabber.show_message(message.from, name, escape_html(message.body), name, Strophe.getNodeFromJid(jid)); |
340 | - $.sound.play('/sounds/receive.wav'); | ||
341 | } | 412 | } |
413 | + notifyMessage(message); | ||
342 | return true; | 414 | return true; |
343 | }, | 415 | }, |
344 | 416 | ||
@@ -346,7 +418,7 @@ jQuery(function($) { | @@ -346,7 +418,7 @@ jQuery(function($) { | ||
346 | message = Jabber.parse(message) | 418 | message = Jabber.parse(message) |
347 | var jid = Strophe.getBareJidFromJid(message.from); | 419 | var jid = Strophe.getBareJidFromJid(message.from); |
348 | log('Receiving error message from ' + jid); | 420 | log('Receiving error message from ' + jid); |
349 | - var body = Jabber.templates.error.replace('%{text}', message.error); | 421 | + var body = Jabber.template('.error-message').replace('%{text}', message.error); |
350 | Jabber.show_message(jid, Jabber.name_of(Jabber.jid_to_id(jid)), body, 'other', Strophe.getNodeFromJid(jid)); | 422 | Jabber.show_message(jid, Jabber.name_of(Jabber.jid_to_id(jid)), body, 'other', Strophe.getNodeFromJid(jid)); |
351 | return true; | 423 | return true; |
352 | }, | 424 | }, |
@@ -389,13 +461,6 @@ jQuery(function($) { | @@ -389,13 +461,6 @@ jQuery(function($) { | ||
389 | Jabber.on_muc_support | 461 | Jabber.on_muc_support |
390 | ); | 462 | ); |
391 | 463 | ||
392 | - // Timed handle to save presence status to Noosfero DB every (N) seconds | ||
393 | - Jabber.connection.addTimedHandler(Jabber.update_presence_status_every * 1000, function() { | ||
394 | - log('saving presence status to Noosfero DB'); | ||
395 | - $.get('/chat/update_presence_status', { status: {chat_status: Jabber.presence_status} }); | ||
396 | - return true; | ||
397 | - }); | ||
398 | - | ||
399 | // uncomment for extra debugging | 464 | // uncomment for extra debugging |
400 | //Strophe.log = function (lvl, msg) { log(msg); }; | 465 | //Strophe.log = function (lvl, msg) { log(msg); }; |
401 | }, | 466 | }, |
@@ -433,6 +498,7 @@ jQuery(function($) { | @@ -433,6 +498,7 @@ jQuery(function($) { | ||
433 | .c('active', {xmlns: Strophe.NS.CHAT_STATES}); | 498 | .c('active', {xmlns: Strophe.NS.CHAT_STATES}); |
434 | Jabber.connection.send(message); | 499 | Jabber.connection.send(message); |
435 | Jabber.show_message(jid, $own_name, escape_html(body), 'self', Strophe.getNodeFromJid(Jabber.connection.jid)); | 500 | Jabber.show_message(jid, $own_name, escape_html(body), 'self', Strophe.getNodeFromJid(Jabber.connection.jid)); |
501 | + move_conversation_to_the_top(jid); | ||
436 | }, | 502 | }, |
437 | 503 | ||
438 | is_a_room: function(jid_id) { | 504 | is_a_room: function(jid_id) { |
@@ -440,8 +506,12 @@ jQuery(function($) { | @@ -440,8 +506,12 @@ jQuery(function($) { | ||
440 | }, | 506 | }, |
441 | 507 | ||
442 | show_notice: function(jid_id, msg) { | 508 | show_notice: function(jid_id, msg) { |
443 | - var tab_id = '#' + Jabber.tab_prefix + jid_id; | ||
444 | - $(tab_id).find('.history').append("<span class='notice'>" + msg + "</span>"); | 509 | + var tab_id = '#' + Jabber.conversation_prefix + jid_id; |
510 | + var notice = $(tab_id).find('.history .notice'); | ||
511 | + if (notice.length > 0) | ||
512 | + notice.html(msg) | ||
513 | + else | ||
514 | + $(tab_id).find('.history').append("<span class='notice'>" + msg + "</span>"); | ||
445 | } | 515 | } |
446 | }; | 516 | }; |
447 | 517 | ||
@@ -451,14 +521,7 @@ jQuery(function($) { | @@ -451,14 +521,7 @@ jQuery(function($) { | ||
451 | }); | 521 | }); |
452 | 522 | ||
453 | $('#chat-disconnect').click(function() { | 523 | $('#chat-disconnect').click(function() { |
454 | - if (Jabber.connection && Jabber.connection.connected) { | ||
455 | - Jabber.connection.disconnect(); | ||
456 | - } | ||
457 | - }); | ||
458 | - | ||
459 | - // save presence_status as offline in Noosfero database when close or reload chat window | ||
460 | - $(window).unload(function() { | ||
461 | - $.get('/chat/update_presence_status', { status: {chat_status: ''} }); | 524 | + disconnect(); |
462 | }); | 525 | }); |
463 | 526 | ||
464 | $('#chat-busy').click(function() { | 527 | $('#chat-busy').click(function() { |
@@ -471,175 +534,231 @@ jQuery(function($) { | @@ -471,175 +534,231 @@ jQuery(function($) { | ||
471 | Jabber.connect(); | 534 | Jabber.connect(); |
472 | }); | 535 | }); |
473 | 536 | ||
474 | - // detect when click in chat with a community or person in main window of Noosfero environment | ||
475 | - $(window).bind('hashchange', function() { | ||
476 | - if (window.location.hash) { | ||
477 | - var full_jid = window.location.hash.replace('#', ''); | ||
478 | - var jid = Strophe.getBareJidFromJid(full_jid); | ||
479 | - var name = Strophe.getResourceFromJid(full_jid); | ||
480 | - var jid_id = Jabber.jid_to_id(full_jid); | ||
481 | - window.location.hash = '#'; | ||
482 | - if (full_jid) { | ||
483 | - if (Strophe.getDomainFromJid(jid) == Jabber.muc_domain) { | ||
484 | - if (Jabber.muc_supported) { | ||
485 | - log('opening groupchat with ' + jid); | ||
486 | - Jabber.jids[jid_id] = {jid: jid, name: name, type: 'groupchat'}; | ||
487 | - Jabber.enter_room(jid); | ||
488 | - create_conversation_tab(name, jid_id); | ||
489 | - } | ||
490 | - } | ||
491 | - else { | ||
492 | - log('opening chat with ' + jid); | ||
493 | - create_conversation_tab(name, jid_id); | ||
494 | - } | ||
495 | - } | ||
496 | - } | ||
497 | - }); | ||
498 | - | ||
499 | $('.conversation textarea').live('keydown', function(e) { | 537 | $('.conversation textarea').live('keydown', function(e) { |
500 | if (e.keyCode == 13) { | 538 | if (e.keyCode == 13) { |
501 | var jid = $(this).attr('data-to'); | 539 | var jid = $(this).attr('data-to'); |
502 | var body = $(this).val(); | 540 | var body = $(this).val(); |
503 | body = body.stripScripts(); | 541 | body = body.stripScripts(); |
542 | + save_message(jid, body); | ||
504 | Jabber.deliver_message(jid, body); | 543 | Jabber.deliver_message(jid, body); |
505 | $(this).val(''); | 544 | $(this).val(''); |
506 | return false; | 545 | return false; |
507 | } | 546 | } |
508 | }); | 547 | }); |
509 | 548 | ||
549 | + function save_message(jid, body) { | ||
550 | + $.post('/chat/save_message', { | ||
551 | + to: getIdentifier(jid), | ||
552 | + body: body | ||
553 | + }); | ||
554 | + } | ||
555 | + | ||
510 | // open new conversation or change to already opened tab | 556 | // open new conversation or change to already opened tab |
511 | - $('#buddy-list .buddy-list li a').live('click', function() { | 557 | + $('#buddy-list .buddies li a').live('click', function() { |
512 | var jid_id = $(this).attr('id'); | 558 | var jid_id = $(this).attr('id'); |
513 | var name = Jabber.name_of(jid_id); | 559 | var name = Jabber.name_of(jid_id); |
514 | - create_conversation_tab(name, jid_id); | 560 | + var conversation = create_conversation_tab(name, jid_id); |
561 | + | ||
562 | + $('.conversation').hide(); | ||
563 | + conversation.show(); | ||
564 | + count_unread_messages(jid_id, true); | ||
565 | + if(conversation.find('.chat-offset-container-0').length == 0) | ||
566 | + recent_messages(Jabber.jid_of(jid_id)); | ||
567 | + conversation.find('.conversation .input-div textarea.input').focus(); | ||
568 | + $.post('/chat/tab', {tab_id: jid_id}); | ||
515 | }); | 569 | }); |
516 | 570 | ||
517 | // put name into text area when click in one occupant | 571 | // put name into text area when click in one occupant |
518 | - $('.occupant-list .occupant-list li a').live('click', function() { | 572 | + $('.occupants .occupant-list li a').live('click', function() { |
519 | var jid_id = $(this).attr('data-id'); | 573 | var jid_id = $(this).attr('data-id'); |
520 | var name = Jabber.name_of(jid_id); | 574 | var name = Jabber.name_of(jid_id); |
521 | var val = $('.conversation textarea:visible').val(); | 575 | var val = $('.conversation textarea:visible').val(); |
522 | - $('.conversation textarea:visible').val(val + name + ', ').focus(); | 576 | + $('.conversation textarea:visible').focus().val(val + name + ', '); |
523 | }); | 577 | }); |
524 | 578 | ||
525 | - $('.conversation .history').live('click', function() { | 579 | + $('#chat .conversation .history').live('click', function() { |
526 | $('.conversation textarea:visible').focus(); | 580 | $('.conversation textarea:visible').focus(); |
527 | }); | 581 | }); |
528 | 582 | ||
529 | - function create_conversation_tab(title, jid_id) { | ||
530 | - if (! $('#' + Jabber.tab_prefix + jid_id).length > 0) { | ||
531 | - // opening chat with selected online friend | ||
532 | - var panel = $('<div id="'+Jabber.tab_prefix + jid_id+'"></div>').appendTo($tabs); | ||
533 | - panel.append("<div class='conversation'><div class='history'></div><div class='input-div'><div class='icon-chat'></div><textarea class='input'></textarea></div></div>"); | 583 | + function toggle_chat_window() { |
584 | + if(jQuery('#conversations .conversation').length == 0) jQuery('.buddies a').first().click(); | ||
585 | + jQuery('#chat').toggleClass('opened'); | ||
586 | + jQuery('#chat-label').toggleClass('opened'); | ||
587 | + } | ||
534 | 588 | ||
535 | - //FIXME | ||
536 | - //var notice = $starting_chat_notice.replace('%{name}', $(ui.tab).html()); | ||
537 | - //Jabber.show_notice(jid_id, notice); | 589 | + function load_conversation(jid) { |
590 | + var jid_id = Jabber.jid_to_id(jid); | ||
591 | + var name = Jabber.name_of(jid_id); | ||
592 | + if (jid) { | ||
593 | + if (Strophe.getDomainFromJid(jid) == Jabber.muc_domain) { | ||
594 | + if (Jabber.muc_supported) { | ||
595 | + log('opening groupchat with ' + jid); | ||
596 | + Jabber.jids[jid_id] = {jid: jid, name: name, type: 'groupchat'}; | ||
597 | + var conversation = create_conversation_tab(name, jid_id); | ||
598 | + Jabber.enter_room(jid); | ||
599 | + recent_messages(jid); | ||
600 | + return conversation; | ||
601 | + } | ||
602 | + } | ||
603 | + else { | ||
604 | + log('opening chat with ' + jid); | ||
605 | + Jabber.jids[jid_id] = {jid: jid, name: name, type: 'friendchat'}; | ||
606 | + var conversation = create_conversation_tab(name, jid_id); | ||
607 | + recent_messages(jid); | ||
608 | + return conversation; | ||
609 | + } | ||
610 | + } | ||
611 | + } | ||
538 | 612 | ||
539 | - // define textarea name as '<TAB_ID>' | ||
540 | - panel.find('textarea').attr('name', panel.id); | 613 | + function open_conversation(jid) { |
614 | + var conversation = load_conversation(jid); | ||
615 | + var jid_id = $(this).attr('id'); | ||
616 | + | ||
617 | + $('.conversation').hide(); | ||
618 | + conversation.show(); | ||
619 | + count_unread_messages(jid_id, true); | ||
620 | + if(conversation.find('.chat-offset-container-0').length == 0) | ||
621 | + recent_messages(Jabber.jid_of(jid_id)); | ||
622 | + conversation.find('.input').focus(); | ||
623 | + $('#chat').addClass('opened'); | ||
624 | + $('#chat-label').addClass('opened'); | ||
625 | + $.post('/chat/tab', {tab_id: jid_id}); | ||
626 | + } | ||
541 | 627 | ||
542 | - if (Jabber.is_a_room(jid_id)) { | ||
543 | - panel.append(Jabber.templates.occupant_list); | ||
544 | - panel.find('.history').addClass('room'); | ||
545 | - } | 628 | + function create_conversation_tab(title, jid_id) { |
629 | + var conversation_id = Jabber.conversation_prefix + jid_id; | ||
630 | + var conversation = $('#' + conversation_id); | ||
631 | + if (conversation.length > 0) { | ||
632 | + return conversation; | ||
633 | + } | ||
634 | + | ||
635 | + var jid = Jabber.jid_of(jid_id); | ||
636 | + var identifier = getIdentifier(jid); | ||
546 | 637 | ||
547 | - $tabs.find('.ui-tabs-nav').append( "<li><a href='"+('#' + Jabber.tab_prefix + jid_id)+"'><span class=\"unread-messages\" style=\"display:none\"></span>"+title+"</a></li>" ); | ||
548 | - $tabs.tabs('refresh'); | 638 | + var panel = $('#chat-templates .conversation').clone().appendTo($conversations).attr('id', conversation_id); |
639 | + panel.find('.chat-target .avatar').replaceWith(getAvatar(identifier)); | ||
640 | + panel.find('.chat-target .other-name').html(title); | ||
641 | + $('#chat .history').perfectScrollbar(); | ||
549 | 642 | ||
550 | - var jid = Jabber.jid_of(jid_id); | ||
551 | - $("a[href='#" + Jabber.tab_prefix + jid_id + "']").addClass($('#' + jid_id).attr('class') || 'icon-chat'); | ||
552 | - $('#' + Jabber.tab_prefix + jid_id).find('textarea').attr('data-to', jid); | 643 | + panel.find('.history').scroll(function(){ |
644 | + if($(this).scrollTop() == 0){ | ||
645 | + var offset = panel.find('.message p').size(); | ||
646 | + recent_messages(jid, offset); | ||
647 | + } | ||
648 | + }); | ||
649 | + | ||
650 | + var textarea = panel.find('textarea'); | ||
651 | + textarea.attr('name', panel.id); | ||
652 | + | ||
653 | + if (Jabber.is_a_room(jid_id)) { | ||
654 | + panel.append(Jabber.template('.occupant-list-template')); | ||
655 | + panel.find('.history').addClass('room'); | ||
656 | + var room_actions = $('#chat-templates .room-action').clone(); | ||
657 | + room_actions.data('jid', jid); | ||
658 | + panel.find('.history').after(room_actions); | ||
659 | + $('#chat .occupants .occupant-list').perfectScrollbar(); | ||
553 | } | 660 | } |
661 | + textarea.attr('data-to', jid); | ||
662 | + | ||
663 | + return panel; | ||
664 | + } | ||
665 | + | ||
666 | + function ensure_scroll(jid, offset) { | ||
667 | + var jid_id = Jabber.jid_to_id(jid); | ||
668 | + var history = jQuery('#conversation-'+jid_id+' .history'); | ||
669 | + // Load more messages if was not enough to show the scroll | ||
670 | + if(history.prop('scrollHeight') - history.prop('clientHeight') <= 0){ | ||
671 | + var offset = history.find('.message p').size(); | ||
672 | + recent_messages(jid, offset); | ||
673 | + } | ||
674 | + } | ||
675 | + | ||
676 | + function recent_messages(jid, offset) { | ||
677 | + if (Jabber.no_more_messages[jid]) return; | ||
678 | + | ||
679 | + if(!offset) offset = 0; | ||
680 | + start_fetching('.history'); | ||
681 | + $.getJSON('/chat/recent_messages', {identifier: getIdentifier(jid), offset: offset}, function(data) { | ||
682 | + // Register if no more messages returned and stop trying to load | ||
683 | + // more messages in the future. | ||
684 | + if(data.length == 0) | ||
685 | + Jabber.no_more_messages[jid] = true; | ||
686 | + | ||
687 | + $.each(data, function(i, message) { | ||
688 | + var body = message['body']; | ||
689 | + var from = message['from']; | ||
690 | + var to = message['to']; | ||
691 | + var date = message['created_at']; | ||
692 | + var who = from['id']==getCurrentIdentifier() ? 'self' : from['id'] | ||
693 | + | ||
694 | + Jabber.show_message(jid, from['name'], body, who, from['id'], date, offset); | ||
695 | + }); | ||
696 | + stop_fetching('.history'); | ||
697 | + ensure_scroll(jid, offset); | ||
698 | + }); | ||
699 | + } | ||
700 | + | ||
701 | + function move_conversation_to_the_top(jid) { | ||
702 | + id = Jabber.jid_to_id(jid); | ||
703 | + var link = $('#'+id); | ||
704 | + var li = link.closest('li'); | ||
705 | + var ul = link.closest('ul'); | ||
706 | + ul.prepend(li); | ||
707 | + } | ||
708 | + | ||
709 | + function sort_conversations() { | ||
710 | + $.getJSON('/chat/recent_conversations', {}, function(data) { | ||
711 | + $.each(data['order'], function(i, identifier) { | ||
712 | + move_conversation_to_the_top(identifier+'-'+data['domain']); | ||
713 | + }) | ||
714 | + }) | ||
715 | + } | ||
716 | + | ||
717 | + function load_defaults() { | ||
718 | + $.getJSON('/chat/my_session', {}, function(data) { | ||
719 | + $.each(data.rooms, function(i, room_jid) { | ||
720 | + $('#chat').trigger('opengroup', room_jid); | ||
721 | + }) | ||
722 | + | ||
723 | + $('#'+data.tab_id).click(); | ||
724 | + | ||
725 | + if(data.status == 'opened') | ||
726 | + toggle_chat_window(); | ||
727 | + }) | ||
554 | } | 728 | } |
555 | 729 | ||
556 | function count_unread_messages(jid_id, hide) { | 730 | function count_unread_messages(jid_id, hide) { |
731 | + var unread = $('.buddies #'+jid_id+ ' .unread-messages'); | ||
557 | if (hide) { | 732 | if (hide) { |
558 | - $('a[href=#' + Jabber.tab_prefix + jid_id + ']').find('.unread-messages').hide(); | 733 | + unread.hide(); |
734 | + unread.siblings('img').show(); | ||
559 | Jabber.unread_messages_of(jid_id, 0); | 735 | Jabber.unread_messages_of(jid_id, 0); |
560 | - $('a[href=#' + Jabber.tab_prefix + jid_id + ']').find('.unread-messages').text(''); | 736 | + unread.text(''); |
561 | } | 737 | } |
562 | else { | 738 | else { |
563 | - $('a[href=#' + Jabber.tab_prefix + jid_id + ']').find('.unread-messages').show(); | 739 | + unread.siblings('img').hide(); |
740 | + unread.css('display', 'inline-block'); | ||
564 | var unread_messages = Jabber.unread_messages_of(jid_id) || 0; | 741 | var unread_messages = Jabber.unread_messages_of(jid_id) || 0; |
565 | Jabber.unread_messages_of(jid_id, ++unread_messages); | 742 | Jabber.unread_messages_of(jid_id, ++unread_messages); |
566 | - $('a[href=#' + Jabber.tab_prefix + jid_id + ']').find('.unread-messages').text(unread_messages); | 743 | + unread.text(unread_messages); |
567 | } | 744 | } |
745 | + update_total_unread_messages(); | ||
568 | } | 746 | } |
569 | 747 | ||
570 | - // creating tabs | ||
571 | - var $tabs = $('#chat-window #tabs').tabs({ | ||
572 | - tabTemplate: '<li class="tab"><a href="#{href}"><span class="unread-messages" style="display:none"></span>#{label}</a></li>', | ||
573 | - panelTemplate: "<div class='conversation'><div class='history'></div><div class='input-div'><div class='icon-chat'></div><textarea class='input'></textarea></div></div>", | ||
574 | - add: function(event, ui) { //FIXME DEPRECATED | ||
575 | - var jid_id = ui.panel.id.replace(Jabber.tab_prefix, ''); | ||
576 | - | ||
577 | - var notice = $starting_chat_notice.replace('%{name}', $(ui.tab).html()); | ||
578 | - Jabber.show_notice(jid_id, notice); | ||
579 | - | ||
580 | - // define textarea name as '<TAB_ID>' | ||
581 | - $(ui.panel).find('textarea').attr('name', ui.panel.id); | ||
582 | - | ||
583 | - if (Jabber.is_a_room(jid_id)) { | ||
584 | - $(ui.panel).append(Jabber.templates.occupant_list); | ||
585 | - $(ui.panel).find('.history').addClass('room'); | ||
586 | - } | ||
587 | - }, | ||
588 | - show: function(event, ui) { | ||
589 | - $(ui.panel).find('.history').scrollTo({top:'100%', left:'0%'}); | ||
590 | - $(ui.panel).find('textarea').focus(); | ||
591 | - var jid_id = ui.panel.id.replace(Jabber.tab_prefix, ''); | ||
592 | - count_unread_messages(jid_id, true); | ||
593 | - }, | ||
594 | - remove: function(event, ui) { //FIXME DEPRECATED | ||
595 | - var jid_id = ui.panel.id.replace(Jabber.tab_prefix, ''); | ||
596 | - if (Jabber.is_a_room(jid_id)) { | ||
597 | - // exiting from a chat room | ||
598 | - var jid = Jabber.jid_of(jid_id); | ||
599 | - log('leaving chatroom ' + jid); | ||
600 | - Jabber.leave_room(jid); | ||
601 | - } | ||
602 | - else { | ||
603 | - // TODO notify to friend when I close chat window | ||
604 | - } | 748 | + function update_total_unread_messages() { |
749 | + var total_unread = $('#openchat .unread-messages'); | ||
750 | + var sum = 0; | ||
751 | + $('.buddies .unread-messages').each(function() { | ||
752 | + sum += Number($(this).text()); | ||
753 | + }); | ||
754 | + if(sum>0) { | ||
755 | + total_unread.text(sum); | ||
756 | + } else { | ||
757 | + total_unread.text(''); | ||
605 | } | 758 | } |
606 | - }).scrollabletab({ | ||
607 | - closable: true | ||
608 | - }); | 759 | + } |
609 | 760 | ||
610 | - // remove some unnecessary css classes to apply style for tabs in bottom | ||
611 | - $(".tabs-bottom .ui-tabs-nav, .tabs-bottom .ui-tabs-nav > *") | ||
612 | - .removeClass("ui-corner-all ui-corner-top ui-helper-clearfix"); | ||
613 | - $('#chat-window #tabs').removeClass("ui-corner-all ui-widget-content"); | ||
614 | - | ||
615 | - // positionting scrollabletab wrapper at bottom and tabs next/prev buttons | ||
616 | - $('#stTabswrapper,#tabs').css({'position':'absolute', 'top':0, 'bottom':0, 'left': 0, 'right': 0, 'width': 'auto'}); | ||
617 | - $('.stNavWrapper').css('position', 'absolute').css('bottom', 0).css('left', 0).css('right', 0) | ||
618 | - .find('.stNav').css('top', null).css('bottom', '12px').css('height', '22px') | ||
619 | - .find('.ui-icon').css('margin-top', '2px'); | ||
620 | - $('.webkit .stNavWrapper .stNav').css('height', '20px'); | ||
621 | - | ||
622 | - // // blink window title alerting about new unread messages | ||
623 | - // | ||
624 | - // FIXME disabling window blinking for now | ||
625 | - // | ||
626 | - // $(window).blur(function() { | ||
627 | - // setTimeout(function() { | ||
628 | - // window.blinkInterval = setInterval(function() { | ||
629 | - // if (document.title.match(/\*.+\* .+/)) { | ||
630 | - // document.title = document.title.replace(/\*.+\* /g, ''); | ||
631 | - // } | ||
632 | - // else if (document.alert_title) { | ||
633 | - // document.title = '*'+ document.alert_title +'* '+ document.title.replace(/\*.+\* /g, ''); | ||
634 | - // }}, 2000 | ||
635 | - // ); | ||
636 | - // }, 2000); | ||
637 | - // }, false); | ||
638 | - // $(window).focus(function() { | ||
639 | - // clearInterval(window.blinkInterval); | ||
640 | - // document.alert_title = null; | ||
641 | - // document.title = document.title.replace(/\*.+\* /g, ''); | ||
642 | - // }, false); | 761 | + var $conversations = $('#chat-window #conversations'); |
643 | 762 | ||
644 | function log(msg) { | 763 | function log(msg) { |
645 | if(Jabber.debug && window.console && window.console.log) { | 764 | if(Jabber.debug && window.console && window.console.log) { |
@@ -655,11 +774,103 @@ jQuery(function($) { | @@ -655,11 +774,103 @@ jQuery(function($) { | ||
655 | .replace(/>/g, '>'); | 774 | .replace(/>/g, '>'); |
656 | } | 775 | } |
657 | 776 | ||
658 | -}); | 777 | + function getCurrentIdentifier() { |
778 | + return getIdentifier(Jabber.connection.jid); | ||
779 | + } | ||
780 | + | ||
781 | + function getIdentifier(jid) { | ||
782 | + return Strophe.getNodeFromJid(jid); | ||
783 | + } | ||
784 | + | ||
785 | + function getMyAvatar() { | ||
786 | + return getAvatar(getCurrentIdentifier()); | ||
787 | + } | ||
788 | + | ||
789 | + function getAvatar(identifier) { | ||
790 | + return '<img class="avatar" src="/chat/avatar/' + identifier + '">'; | ||
791 | + } | ||
792 | + | ||
793 | + function disconnect() { | ||
794 | + log('disconnect'); | ||
795 | + if (Jabber.connection && Jabber.connection.connected) { | ||
796 | + Jabber.connection.disconnect(); | ||
797 | + } | ||
798 | + Jabber.presence_status = 'offline'; | ||
799 | + Jabber.show_status('offline'); | ||
800 | + } | ||
801 | + | ||
802 | + function notifyMessage(message) { | ||
803 | + var jid = Strophe.getBareJidFromJid(message.from); | ||
804 | + var jid_id = Jabber.jid_to_id(jid); | ||
805 | + var name = Jabber.name_of(jid_id); | ||
806 | + var identifier = Strophe.getNodeFromJid(jid); | ||
807 | + var avatar = "/chat/avatar/"+identifier | ||
808 | + if(!$('#chat').hasClass('opened') || window.isHidden()) { | ||
809 | + var options = {body: message.body, icon: avatar, tag: jid_id}; | ||
810 | + console.log('Notify '+name); | ||
811 | + $(notifyMe(name, options)).on('click', function(){ | ||
812 | + open_conversation(jid); | ||
813 | + }); | ||
814 | + $.sound.play('/sounds/receive.wav'); | ||
815 | + } | ||
816 | + } | ||
659 | 817 | ||
660 | -function checkTime(i) { | ||
661 | - if (i<10) { | ||
662 | - i="0" + i; | 818 | + $('.title-bar a').click(function() { |
819 | + $(this).parents('.status-group').find('.buddies').toggle('fast'); | ||
820 | + }); | ||
821 | + $('#chat').on('click', '.occupants a', function() { | ||
822 | + $(this).siblings('.occupant-list').toggle('fast'); | ||
823 | + $(this).toggleClass('up'); | ||
824 | + }); | ||
825 | + | ||
826 | + //restore connection if user was connected | ||
827 | + if($presence=='' || $presence == 'chat') { | ||
828 | + $('#chat-connect').trigger('click'); | ||
829 | + } else if($presence == 'dnd') { | ||
830 | + $('#chat-busy').trigger('click'); | ||
663 | } | 831 | } |
664 | - return i; | ||
665 | -} | 832 | + |
833 | + $('#chat #buddy-list .buddies').perfectScrollbar(); | ||
834 | + | ||
835 | + // custom css expression for a case-insensitive contains() | ||
836 | + jQuery.expr[':'].Contains = function(a,i,m){ | ||
837 | + return (a.textContent || a.innerText || "").toUpperCase().indexOf(m[3].toUpperCase())>=0; | ||
838 | + }; | ||
839 | + | ||
840 | + $('#chat .search').change( function () { | ||
841 | + var filter = $(this).val(); | ||
842 | + var list = $('#buddy-list .buddies a'); | ||
843 | + if(filter) { | ||
844 | + // this finds all links in a list that contain the input, | ||
845 | + // and hide the ones not containing the input while showing the ones that do | ||
846 | + $(list).find("span:not(:Contains(" + filter + "))").parent().hide(); | ||
847 | + $(list).find("span:Contains(" + filter + ")").parent().show(); | ||
848 | + } else { | ||
849 | + $(list).show(); | ||
850 | + } | ||
851 | + return false; | ||
852 | + }).keyup( function () { | ||
853 | + // fire the above change event after every letter | ||
854 | + $(this).change(); | ||
855 | + }); | ||
856 | + | ||
857 | + $('#chat .buddies a').live('click', function(){ | ||
858 | + $('#chat .search').val('').change(); | ||
859 | + }); | ||
860 | + | ||
861 | + $('#chat-label').click(function(){ | ||
862 | + toggle_chat_window(); | ||
863 | + $.post('/chat/toggle'); | ||
864 | + }); | ||
865 | + | ||
866 | + $('.room-action.join').live('click', function(){ | ||
867 | + var jid = $(this).data('jid'); | ||
868 | + Jabber.enter_room(jid); | ||
869 | + }); | ||
870 | + | ||
871 | + $('.room-action.leave').live('click', function(){ | ||
872 | + var jid = $(this).data('jid'); | ||
873 | + Jabber.leave_room(jid); | ||
874 | + }); | ||
875 | + | ||
876 | +}); |
@@ -0,0 +1,221 @@ | @@ -0,0 +1,221 @@ | ||
1 | +/** | ||
2 | + * Timeago is a jQuery plugin that makes it easy to support automatically | ||
3 | + * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago"). | ||
4 | + * | ||
5 | + * @name timeago | ||
6 | + * @version 1.4.1 | ||
7 | + * @requires jQuery v1.2.3+ | ||
8 | + * @author Ryan McGeary | ||
9 | + * @license MIT License - http://www.opensource.org/licenses/mit-license.php | ||
10 | + * | ||
11 | + * For usage and examples, visit: | ||
12 | + * http://timeago.yarp.com/ | ||
13 | + * | ||
14 | + * Copyright (c) 2008-2013, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org) | ||
15 | + */ | ||
16 | + | ||
17 | +(function (factory) { | ||
18 | + if (typeof define === 'function' && define.amd) { | ||
19 | + // AMD. Register as an anonymous module. | ||
20 | + define(['jquery'], factory); | ||
21 | + } else { | ||
22 | + // Browser globals | ||
23 | + factory(jQuery); | ||
24 | + } | ||
25 | +}(function ($) { | ||
26 | + $.timeago = function(timestamp) { | ||
27 | + if (timestamp instanceof Date) { | ||
28 | + return inWords(timestamp); | ||
29 | + } else if (typeof timestamp === "string") { | ||
30 | + return inWords($.timeago.parse(timestamp)); | ||
31 | + } else if (typeof timestamp === "number") { | ||
32 | + return inWords(new Date(timestamp)); | ||
33 | + } else { | ||
34 | + return inWords($.timeago.datetime(timestamp)); | ||
35 | + } | ||
36 | + }; | ||
37 | + var $t = $.timeago; | ||
38 | + | ||
39 | + $.extend($.timeago, { | ||
40 | + settings: { | ||
41 | + refreshMillis: 60000, | ||
42 | + allowPast: true, | ||
43 | + allowFuture: false, | ||
44 | + localeTitle: false, | ||
45 | + cutoff: 0, | ||
46 | + strings: { | ||
47 | + prefixAgo: null, | ||
48 | + prefixFromNow: null, | ||
49 | + suffixAgo: "ago", | ||
50 | + suffixFromNow: "from now", | ||
51 | + inPast: 'any moment now', | ||
52 | + seconds: "less than a minute", | ||
53 | + minute: "about a minute", | ||
54 | + minutes: "%d minutes", | ||
55 | + hour: "about an hour", | ||
56 | + hours: "about %d hours", | ||
57 | + day: "a day", | ||
58 | + days: "%d days", | ||
59 | + month: "about a month", | ||
60 | + months: "%d months", | ||
61 | + year: "about a year", | ||
62 | + years: "%d years", | ||
63 | + wordSeparator: " ", | ||
64 | + numbers: [] | ||
65 | + } | ||
66 | + }, | ||
67 | + | ||
68 | + inWords: function(distanceMillis) { | ||
69 | + if(!this.settings.allowPast && ! this.settings.allowFuture) { | ||
70 | + throw 'timeago allowPast and allowFuture settings can not both be set to false.'; | ||
71 | + } | ||
72 | + | ||
73 | + var $l = this.settings.strings; | ||
74 | + var prefix = $l.prefixAgo; | ||
75 | + var suffix = $l.suffixAgo; | ||
76 | + if (this.settings.allowFuture) { | ||
77 | + if (distanceMillis < 0) { | ||
78 | + prefix = $l.prefixFromNow; | ||
79 | + suffix = $l.suffixFromNow; | ||
80 | + } | ||
81 | + } | ||
82 | + | ||
83 | + if(!this.settings.allowPast && distanceMillis >= 0) { | ||
84 | + return this.settings.strings.inPast; | ||
85 | + } | ||
86 | + | ||
87 | + var seconds = Math.abs(distanceMillis) / 1000; | ||
88 | + var minutes = seconds / 60; | ||
89 | + var hours = minutes / 60; | ||
90 | + var days = hours / 24; | ||
91 | + var years = days / 365; | ||
92 | + | ||
93 | + function substitute(stringOrFunction, number) { | ||
94 | + var string = $.isFunction(stringOrFunction) ? stringOrFunction(number, distanceMillis) : stringOrFunction; | ||
95 | + var value = ($l.numbers && $l.numbers[number]) || number; | ||
96 | + return string.replace(/%d/i, value); | ||
97 | + } | ||
98 | + | ||
99 | + var words = seconds < 45 && substitute($l.seconds, Math.round(seconds)) || | ||
100 | + seconds < 90 && substitute($l.minute, 1) || | ||
101 | + minutes < 45 && substitute($l.minutes, Math.round(minutes)) || | ||
102 | + minutes < 90 && substitute($l.hour, 1) || | ||
103 | + hours < 24 && substitute($l.hours, Math.round(hours)) || | ||
104 | + hours < 42 && substitute($l.day, 1) || | ||
105 | + days < 30 && substitute($l.days, Math.round(days)) || | ||
106 | + days < 45 && substitute($l.month, 1) || | ||
107 | + days < 365 && substitute($l.months, Math.round(days / 30)) || | ||
108 | + years < 1.5 && substitute($l.year, 1) || | ||
109 | + substitute($l.years, Math.round(years)); | ||
110 | + | ||
111 | + var separator = $l.wordSeparator || ""; | ||
112 | + if ($l.wordSeparator === undefined) { separator = " "; } | ||
113 | + return $.trim([prefix, words, suffix].join(separator)); | ||
114 | + }, | ||
115 | + | ||
116 | + parse: function(iso8601) { | ||
117 | + var s = $.trim(iso8601); | ||
118 | + s = s.replace(/\.\d+/,""); // remove milliseconds | ||
119 | + s = s.replace(/-/,"/").replace(/-/,"/"); | ||
120 | + s = s.replace(/T/," ").replace(/Z/," UTC"); | ||
121 | + s = s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"); // -04:00 -> -0400 | ||
122 | + s = s.replace(/([\+\-]\d\d)$/," $100"); // +09 -> +0900 | ||
123 | + return new Date(s); | ||
124 | + }, | ||
125 | + datetime: function(elem) { | ||
126 | + var iso8601 = $t.isTime(elem) ? $(elem).attr("datetime") : $(elem).attr("title"); | ||
127 | + return $t.parse(iso8601); | ||
128 | + }, | ||
129 | + isTime: function(elem) { | ||
130 | + // jQuery's `is()` doesn't play well with HTML5 in IE | ||
131 | + return $(elem).get(0).tagName.toLowerCase() === "time"; // $(elem).is("time"); | ||
132 | + } | ||
133 | + }); | ||
134 | + | ||
135 | + // functions that can be called via $(el).timeago('action') | ||
136 | + // init is default when no action is given | ||
137 | + // functions are called with context of a single element | ||
138 | + var functions = { | ||
139 | + init: function(){ | ||
140 | + var refresh_el = $.proxy(refresh, this); | ||
141 | + refresh_el(); | ||
142 | + var $s = $t.settings; | ||
143 | + if ($s.refreshMillis > 0) { | ||
144 | + this._timeagoInterval = setInterval(refresh_el, $s.refreshMillis); | ||
145 | + } | ||
146 | + }, | ||
147 | + update: function(time){ | ||
148 | + var parsedTime = $t.parse(time); | ||
149 | + $(this).data('timeago', { datetime: parsedTime }); | ||
150 | + if($t.settings.localeTitle) $(this).attr("title", parsedTime.toLocaleString()); | ||
151 | + refresh.apply(this); | ||
152 | + }, | ||
153 | + updateFromDOM: function(){ | ||
154 | + $(this).data('timeago', { datetime: $t.parse( $t.isTime(this) ? $(this).attr("datetime") : $(this).attr("title") ) }); | ||
155 | + refresh.apply(this); | ||
156 | + }, | ||
157 | + dispose: function () { | ||
158 | + if (this._timeagoInterval) { | ||
159 | + window.clearInterval(this._timeagoInterval); | ||
160 | + this._timeagoInterval = null; | ||
161 | + } | ||
162 | + } | ||
163 | + }; | ||
164 | + | ||
165 | + $.fn.timeago = function(action, options) { | ||
166 | + var fn = action ? functions[action] : functions.init; | ||
167 | + if(!fn){ | ||
168 | + throw new Error("Unknown function name '"+ action +"' for timeago"); | ||
169 | + } | ||
170 | + // each over objects here and call the requested function | ||
171 | + this.each(function(){ | ||
172 | + fn.call(this, options); | ||
173 | + }); | ||
174 | + return this; | ||
175 | + }; | ||
176 | + | ||
177 | + function refresh() { | ||
178 | + //check if it's still visible | ||
179 | + if(!$.contains(document.documentElement,this)){ | ||
180 | + //stop if it has been removed | ||
181 | + $(this).timeago("dispose"); | ||
182 | + return this; | ||
183 | + } | ||
184 | + | ||
185 | + var data = prepareData(this); | ||
186 | + var $s = $t.settings; | ||
187 | + | ||
188 | + if (!isNaN(data.datetime)) { | ||
189 | + if ( $s.cutoff == 0 || Math.abs(distance(data.datetime)) < $s.cutoff) { | ||
190 | + $(this).text(inWords(data.datetime)); | ||
191 | + } | ||
192 | + } | ||
193 | + return this; | ||
194 | + } | ||
195 | + | ||
196 | + function prepareData(element) { | ||
197 | + element = $(element); | ||
198 | + if (!element.data("timeago")) { | ||
199 | + element.data("timeago", { datetime: $t.datetime(element) }); | ||
200 | + var text = $.trim(element.text()); | ||
201 | + if ($t.settings.localeTitle) { | ||
202 | + element.attr("title", element.data('timeago').datetime.toLocaleString()); | ||
203 | + } else if (text.length > 0 && !($t.isTime(element) && element.attr("title"))) { | ||
204 | + element.attr("title", text); | ||
205 | + } | ||
206 | + } | ||
207 | + return element.data("timeago"); | ||
208 | + } | ||
209 | + | ||
210 | + function inWords(date) { | ||
211 | + return $t.inWords(distance(date)); | ||
212 | + } | ||
213 | + | ||
214 | + function distance(date) { | ||
215 | + return (new Date().getTime() - date.getTime()); | ||
216 | + } | ||
217 | + | ||
218 | + // fix for IE6 suckage | ||
219 | + document.createElement("abbr"); | ||
220 | + document.createElement("time"); | ||
221 | +})); |
@@ -0,0 +1,4 @@ | @@ -0,0 +1,4 @@ | ||
1 | +/*! perfect-scrollbar - v0.4.11 | ||
2 | +* http://noraesae.github.com/perfect-scrollbar/ | ||
3 | +* Copyright (c) 2014 Hyeonje Alex Jun; Licensed MIT */ | ||
4 | +(function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)})(function(e){"use strict";var t={wheelSpeed:10,wheelPropagation:!1,minScrollbarLength:null,maxScrollbarLength:null,useBothWheelAxes:!1,useKeyboard:!0,suppressScrollX:!1,suppressScrollY:!1,scrollXMarginOffset:0,scrollYMarginOffset:0,includePadding:!1},o=function(){var e=0;return function(){var t=e;return e+=1,".perfect-scrollbar-"+t}}();e.fn.perfectScrollbar=function(r,n){return this.each(function(){var l=e.extend(!0,{},t),s=e(this);if("object"==typeof r?e.extend(!0,l,r):n=r,"update"===n)return s.data("perfect-scrollbar-update")&&s.data("perfect-scrollbar-update")(),s;if("destroy"===n)return s.data("perfect-scrollbar-destroy")&&s.data("perfect-scrollbar-destroy")(),s;if(s.data("perfect-scrollbar"))return s.data("perfect-scrollbar");s.addClass("ps-container");var a,c,i,u,d,p,f,h,v,b,g=e("<div class='ps-scrollbar-x-rail'></div>").appendTo(s),m=e("<div class='ps-scrollbar-y-rail'></div>").appendTo(s),w=e("<div class='ps-scrollbar-x'></div>").appendTo(g),T=e("<div class='ps-scrollbar-y'></div>").appendTo(m),L=parseInt(g.css("bottom"),10),y=L===L,I=y?null:parseInt(g.css("top"),10),S=parseInt(m.css("right"),10),x=S===S,C=x?null:parseInt(m.css("left"),10),P="rtl"===s.css("direction"),D=o(),X=parseInt(g.css("borderLeftWidth"),10)+parseInt(g.css("borderRightWidth"),10),Y=parseInt(g.css("borderTopWidth"),10)+parseInt(g.css("borderBottomWidth"),10),k=function(e,t){var o=e+t,r=u-v;b=0>o?0:o>r?r:o;var n=parseInt(b*(p-u)/(u-v),10);s.scrollTop(n),y?g.css({bottom:L-n}):g.css({top:I+n})},M=function(e,t){var o=e+t,r=i-f;h=0>o?0:o>r?r:o;var n=parseInt(h*(d-i)/(i-f),10);s.scrollLeft(n),x?m.css({right:S-n}):m.css({left:C+n})},W=function(e){return l.minScrollbarLength&&(e=Math.max(e,l.minScrollbarLength)),l.maxScrollbarLength&&(e=Math.min(e,l.maxScrollbarLength)),e},j=function(){var e={width:i,display:a?"inherit":"none"};e.left=P?s.scrollLeft()+i-d:s.scrollLeft(),y?e.bottom=L-s.scrollTop():e.top=I+s.scrollTop(),g.css(e);var t={top:s.scrollTop(),height:u,display:c?"inherit":"none"};x?t.right=P?d-s.scrollLeft()-S-T.outerWidth():S-s.scrollLeft():t.left=P?s.scrollLeft()+2*i-d-C-T.outerWidth():C+s.scrollLeft(),m.css(t),w.css({left:h,width:f-X}),T.css({top:b,height:v-Y}),a?s.addClass("ps-active-x"):s.removeClass("ps-active-x"),c?s.addClass("ps-active-y"):s.removeClass("ps-active-y")},E=function(){i=l.includePadding?s.innerWidth():s.width(),u=l.includePadding?s.innerHeight():s.height(),d=s.prop("scrollWidth"),p=s.prop("scrollHeight"),!l.suppressScrollX&&d>i+l.scrollXMarginOffset?(a=!0,f=W(parseInt(i*i/d,10)),h=parseInt(s.scrollLeft()*(i-f)/(d-i),10)):(a=!1,f=0,h=0,s.scrollLeft(0)),!l.suppressScrollY&&p>u+l.scrollYMarginOffset?(c=!0,v=W(parseInt(u*u/p,10)),b=parseInt(s.scrollTop()*(u-v)/(p-u),10)):(c=!1,v=0,b=0,s.scrollTop(0)),b>=u-v&&(b=u-v),h>=i-f&&(h=i-f),j()},O=function(){var t,o;w.bind("mousedown"+D,function(e){o=e.pageX,t=w.position().left,g.addClass("in-scrolling"),e.stopPropagation(),e.preventDefault()}),e(document).bind("mousemove"+D,function(e){g.hasClass("in-scrolling")&&(M(t,e.pageX-o),e.stopPropagation(),e.preventDefault())}),e(document).bind("mouseup"+D,function(){g.hasClass("in-scrolling")&&g.removeClass("in-scrolling")}),t=o=null},q=function(){var t,o;T.bind("mousedown"+D,function(e){o=e.pageY,t=T.position().top,m.addClass("in-scrolling"),e.stopPropagation(),e.preventDefault()}),e(document).bind("mousemove"+D,function(e){m.hasClass("in-scrolling")&&(k(t,e.pageY-o),e.stopPropagation(),e.preventDefault())}),e(document).bind("mouseup"+D,function(){m.hasClass("in-scrolling")&&m.removeClass("in-scrolling")}),t=o=null},A=function(e,t){var o=s.scrollTop();if(0===e){if(!c)return!1;if(0===o&&t>0||o>=p-u&&0>t)return!l.wheelPropagation}var r=s.scrollLeft();if(0===t){if(!a)return!1;if(0===r&&0>e||r>=d-i&&e>0)return!l.wheelPropagation}return!0},B=function(){l.wheelSpeed/=10;var e=!1;s.bind("mousewheel"+D,function(t,o,r,n){var i=t.deltaX*t.deltaFactor||r,u=t.deltaY*t.deltaFactor||n;e=!1,l.useBothWheelAxes?c&&!a?(u?s.scrollTop(s.scrollTop()-u*l.wheelSpeed):s.scrollTop(s.scrollTop()+i*l.wheelSpeed),e=!0):a&&!c&&(i?s.scrollLeft(s.scrollLeft()+i*l.wheelSpeed):s.scrollLeft(s.scrollLeft()-u*l.wheelSpeed),e=!0):(s.scrollTop(s.scrollTop()-u*l.wheelSpeed),s.scrollLeft(s.scrollLeft()+i*l.wheelSpeed)),E(),e=e||A(i,u),e&&(t.stopPropagation(),t.preventDefault())}),s.bind("MozMousePixelScroll"+D,function(t){e&&t.preventDefault()})},F=function(){var t=!1;s.bind("mouseenter"+D,function(){t=!0}),s.bind("mouseleave"+D,function(){t=!1});var o=!1;e(document).bind("keydown"+D,function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||!t||e(document.activeElement).is(":input,[contenteditable]"))){var n=0,l=0;switch(r.which){case 37:n=-30;break;case 38:l=30;break;case 39:n=30;break;case 40:l=-30;break;case 33:l=90;break;case 32:case 34:l=-90;break;case 35:l=-u;break;case 36:l=u;break;default:return}s.scrollTop(s.scrollTop()-l),s.scrollLeft(s.scrollLeft()+n),o=A(n,l),o&&r.preventDefault()}})},H=function(){var e=function(e){e.stopPropagation()};T.bind("click"+D,e),m.bind("click"+D,function(e){var t=parseInt(v/2,10),o=e.pageY-m.offset().top-t,r=u-v,n=o/r;0>n?n=0:n>1&&(n=1),s.scrollTop((p-u)*n)}),w.bind("click"+D,e),g.bind("click"+D,function(e){var t=parseInt(f/2,10),o=e.pageX-g.offset().left-t,r=i-f,n=o/r;0>n?n=0:n>1&&(n=1),s.scrollLeft((d-i)*n)})},K=function(){var t=function(e,t){s.scrollTop(s.scrollTop()-t),s.scrollLeft(s.scrollLeft()-e),E()},o={},r=0,n={},l=null,a=!1;e(window).bind("touchstart"+D,function(){a=!0}),e(window).bind("touchend"+D,function(){a=!1}),s.bind("touchstart"+D,function(e){var t=e.originalEvent.targetTouches[0];o.pageX=t.pageX,o.pageY=t.pageY,r=(new Date).getTime(),null!==l&&clearInterval(l),e.stopPropagation()}),s.bind("touchmove"+D,function(e){if(!a&&1===e.originalEvent.targetTouches.length){var l=e.originalEvent.targetTouches[0],s={};s.pageX=l.pageX,s.pageY=l.pageY;var c=s.pageX-o.pageX,i=s.pageY-o.pageY;t(c,i),o=s;var u=(new Date).getTime(),d=u-r;d>0&&(n.x=c/d,n.y=i/d,r=u),e.preventDefault()}}),s.bind("touchend"+D,function(){clearInterval(l),l=setInterval(function(){return.01>Math.abs(n.x)&&.01>Math.abs(n.y)?(clearInterval(l),void 0):(t(30*n.x,30*n.y),n.x*=.8,n.y*=.8,void 0)},10)})},z=function(){s.bind("scroll"+D,function(){E()})},Q=function(){s.unbind(D),e(window).unbind(D),e(document).unbind(D),s.data("perfect-scrollbar",null),s.data("perfect-scrollbar-update",null),s.data("perfect-scrollbar-destroy",null),w.remove(),T.remove(),g.remove(),m.remove(),g=m=w=T=a=c=i=u=d=p=f=h=L=y=I=v=b=S=x=C=P=D=null},R=function(t){s.addClass("ie").addClass("ie"+t);var o=function(){var t=function(){e(this).addClass("hover")},o=function(){e(this).removeClass("hover")};s.bind("mouseenter"+D,t).bind("mouseleave"+D,o),g.bind("mouseenter"+D,t).bind("mouseleave"+D,o),m.bind("mouseenter"+D,t).bind("mouseleave"+D,o),w.bind("mouseenter"+D,t).bind("mouseleave"+D,o),T.bind("mouseenter"+D,t).bind("mouseleave"+D,o)},r=function(){j=function(){var e={left:h+s.scrollLeft(),width:f};y?e.bottom=L:e.top=I,w.css(e);var t={top:b+s.scrollTop(),height:v};x?t.right=S:t.left=C,T.css(t),w.hide().show(),T.hide().show()}};6===t&&(o(),r())},G="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,J=function(){var e=navigator.userAgent.toLowerCase().match(/(msie) ([\w.]+)/);e&&"msie"===e[1]&&R(parseInt(e[2],10)),E(),z(),O(),q(),H(),G&&K(),s.mousewheel&&B(),l.useKeyboard&&F(),s.data("perfect-scrollbar",s),s.data("perfect-scrollbar-update",E),s.data("perfect-scrollbar-destroy",Q)};return J(),s})}}); | ||
0 | \ No newline at end of file | 5 | \ No newline at end of file |
public/javascripts/perfect-scrollbar.with-mousewheel.min.js
0 → 100644
@@ -0,0 +1,4 @@ | @@ -0,0 +1,4 @@ | ||
1 | +/*! perfect-scrollbar - v0.4.11 | ||
2 | +* http://noraesae.github.com/perfect-scrollbar/ | ||
3 | +* Copyright (c) 2014 Hyeonje Alex Jun; Licensed MIT */ | ||
4 | +(function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)})(function(e){"use strict";var t={wheelSpeed:10,wheelPropagation:!1,minScrollbarLength:null,maxScrollbarLength:null,useBothWheelAxes:!1,useKeyboard:!0,suppressScrollX:!1,suppressScrollY:!1,scrollXMarginOffset:0,scrollYMarginOffset:0,includePadding:!1},o=function(){var e=0;return function(){var t=e;return e+=1,".perfect-scrollbar-"+t}}();e.fn.perfectScrollbar=function(n,r){return this.each(function(){var l=e.extend(!0,{},t),s=e(this);if("object"==typeof n?e.extend(!0,l,n):r=n,"update"===r)return s.data("perfect-scrollbar-update")&&s.data("perfect-scrollbar-update")(),s;if("destroy"===r)return s.data("perfect-scrollbar-destroy")&&s.data("perfect-scrollbar-destroy")(),s;if(s.data("perfect-scrollbar"))return s.data("perfect-scrollbar");s.addClass("ps-container");var a,i,c,u,d,p,f,h,v,b,g=e("<div class='ps-scrollbar-x-rail'></div>").appendTo(s),m=e("<div class='ps-scrollbar-y-rail'></div>").appendTo(s),w=e("<div class='ps-scrollbar-x'></div>").appendTo(g),L=e("<div class='ps-scrollbar-y'></div>").appendTo(m),T=parseInt(g.css("bottom"),10),y=T===T,x=y?null:parseInt(g.css("top"),10),S=parseInt(m.css("right"),10),I=S===S,P=I?null:parseInt(m.css("left"),10),D="rtl"===s.css("direction"),M=o(),C=parseInt(g.css("borderLeftWidth"),10)+parseInt(g.css("borderRightWidth"),10),X=parseInt(g.css("borderTopWidth"),10)+parseInt(g.css("borderBottomWidth"),10),Y=function(e,t){var o=e+t,n=u-v;b=0>o?0:o>n?n:o;var r=parseInt(b*(p-u)/(u-v),10);s.scrollTop(r),y?g.css({bottom:T-r}):g.css({top:x+r})},k=function(e,t){var o=e+t,n=c-f;h=0>o?0:o>n?n:o;var r=parseInt(h*(d-c)/(c-f),10);s.scrollLeft(r),I?m.css({right:S-r}):m.css({left:P+r})},W=function(e){return l.minScrollbarLength&&(e=Math.max(e,l.minScrollbarLength)),l.maxScrollbarLength&&(e=Math.min(e,l.maxScrollbarLength)),e},j=function(){var e={width:c,display:a?"inherit":"none"};e.left=D?s.scrollLeft()+c-d:s.scrollLeft(),y?e.bottom=T-s.scrollTop():e.top=x+s.scrollTop(),g.css(e);var t={top:s.scrollTop(),height:u,display:i?"inherit":"none"};I?t.right=D?d-s.scrollLeft()-S-L.outerWidth():S-s.scrollLeft():t.left=D?s.scrollLeft()+2*c-d-P-L.outerWidth():P+s.scrollLeft(),m.css(t),w.css({left:h,width:f-C}),L.css({top:b,height:v-X}),a?s.addClass("ps-active-x"):s.removeClass("ps-active-x"),i?s.addClass("ps-active-y"):s.removeClass("ps-active-y")},O=function(){c=l.includePadding?s.innerWidth():s.width(),u=l.includePadding?s.innerHeight():s.height(),d=s.prop("scrollWidth"),p=s.prop("scrollHeight"),!l.suppressScrollX&&d>c+l.scrollXMarginOffset?(a=!0,f=W(parseInt(c*c/d,10)),h=parseInt(s.scrollLeft()*(c-f)/(d-c),10)):(a=!1,f=0,h=0,s.scrollLeft(0)),!l.suppressScrollY&&p>u+l.scrollYMarginOffset?(i=!0,v=W(parseInt(u*u/p,10)),b=parseInt(s.scrollTop()*(u-v)/(p-u),10)):(i=!1,v=0,b=0,s.scrollTop(0)),b>=u-v&&(b=u-v),h>=c-f&&(h=c-f),j()},E=function(){var t,o;w.bind("mousedown"+M,function(e){o=e.pageX,t=w.position().left,g.addClass("in-scrolling"),e.stopPropagation(),e.preventDefault()}),e(document).bind("mousemove"+M,function(e){g.hasClass("in-scrolling")&&(k(t,e.pageX-o),e.stopPropagation(),e.preventDefault())}),e(document).bind("mouseup"+M,function(){g.hasClass("in-scrolling")&&g.removeClass("in-scrolling")}),t=o=null},H=function(){var t,o;L.bind("mousedown"+M,function(e){o=e.pageY,t=L.position().top,m.addClass("in-scrolling"),e.stopPropagation(),e.preventDefault()}),e(document).bind("mousemove"+M,function(e){m.hasClass("in-scrolling")&&(Y(t,e.pageY-o),e.stopPropagation(),e.preventDefault())}),e(document).bind("mouseup"+M,function(){m.hasClass("in-scrolling")&&m.removeClass("in-scrolling")}),t=o=null},A=function(e,t){var o=s.scrollTop();if(0===e){if(!i)return!1;if(0===o&&t>0||o>=p-u&&0>t)return!l.wheelPropagation}var n=s.scrollLeft();if(0===t){if(!a)return!1;if(0===n&&0>e||n>=d-c&&e>0)return!l.wheelPropagation}return!0},q=function(){l.wheelSpeed/=10;var e=!1;s.bind("mousewheel"+M,function(t,o,n,r){var c=t.deltaX*t.deltaFactor||n,u=t.deltaY*t.deltaFactor||r;e=!1,l.useBothWheelAxes?i&&!a?(u?s.scrollTop(s.scrollTop()-u*l.wheelSpeed):s.scrollTop(s.scrollTop()+c*l.wheelSpeed),e=!0):a&&!i&&(c?s.scrollLeft(s.scrollLeft()+c*l.wheelSpeed):s.scrollLeft(s.scrollLeft()-u*l.wheelSpeed),e=!0):(s.scrollTop(s.scrollTop()-u*l.wheelSpeed),s.scrollLeft(s.scrollLeft()+c*l.wheelSpeed)),O(),e=e||A(c,u),e&&(t.stopPropagation(),t.preventDefault())}),s.bind("MozMousePixelScroll"+M,function(t){e&&t.preventDefault()})},B=function(){var t=!1;s.bind("mouseenter"+M,function(){t=!0}),s.bind("mouseleave"+M,function(){t=!1});var o=!1;e(document).bind("keydown"+M,function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||!t||e(document.activeElement).is(":input,[contenteditable]"))){var r=0,l=0;switch(n.which){case 37:r=-30;break;case 38:l=30;break;case 39:r=30;break;case 40:l=-30;break;case 33:l=90;break;case 32:case 34:l=-90;break;case 35:l=-u;break;case 36:l=u;break;default:return}s.scrollTop(s.scrollTop()-l),s.scrollLeft(s.scrollLeft()+r),o=A(r,l),o&&n.preventDefault()}})},F=function(){var e=function(e){e.stopPropagation()};L.bind("click"+M,e),m.bind("click"+M,function(e){var t=parseInt(v/2,10),o=e.pageY-m.offset().top-t,n=u-v,r=o/n;0>r?r=0:r>1&&(r=1),s.scrollTop((p-u)*r)}),w.bind("click"+M,e),g.bind("click"+M,function(e){var t=parseInt(f/2,10),o=e.pageX-g.offset().left-t,n=c-f,r=o/n;0>r?r=0:r>1&&(r=1),s.scrollLeft((d-c)*r)})},z=function(){var t=function(e,t){s.scrollTop(s.scrollTop()-t),s.scrollLeft(s.scrollLeft()-e),O()},o={},n=0,r={},l=null,a=!1;e(window).bind("touchstart"+M,function(){a=!0}),e(window).bind("touchend"+M,function(){a=!1}),s.bind("touchstart"+M,function(e){var t=e.originalEvent.targetTouches[0];o.pageX=t.pageX,o.pageY=t.pageY,n=(new Date).getTime(),null!==l&&clearInterval(l),e.stopPropagation()}),s.bind("touchmove"+M,function(e){if(!a&&1===e.originalEvent.targetTouches.length){var l=e.originalEvent.targetTouches[0],s={};s.pageX=l.pageX,s.pageY=l.pageY;var i=s.pageX-o.pageX,c=s.pageY-o.pageY;t(i,c),o=s;var u=(new Date).getTime(),d=u-n;d>0&&(r.x=i/d,r.y=c/d,n=u),e.preventDefault()}}),s.bind("touchend"+M,function(){clearInterval(l),l=setInterval(function(){return.01>Math.abs(r.x)&&.01>Math.abs(r.y)?(clearInterval(l),void 0):(t(30*r.x,30*r.y),r.x*=.8,r.y*=.8,void 0)},10)})},K=function(){s.bind("scroll"+M,function(){O()})},Q=function(){s.unbind(M),e(window).unbind(M),e(document).unbind(M),s.data("perfect-scrollbar",null),s.data("perfect-scrollbar-update",null),s.data("perfect-scrollbar-destroy",null),w.remove(),L.remove(),g.remove(),m.remove(),g=m=w=L=a=i=c=u=d=p=f=h=T=y=x=v=b=S=I=P=D=M=null},R=function(t){s.addClass("ie").addClass("ie"+t);var o=function(){var t=function(){e(this).addClass("hover")},o=function(){e(this).removeClass("hover")};s.bind("mouseenter"+M,t).bind("mouseleave"+M,o),g.bind("mouseenter"+M,t).bind("mouseleave"+M,o),m.bind("mouseenter"+M,t).bind("mouseleave"+M,o),w.bind("mouseenter"+M,t).bind("mouseleave"+M,o),L.bind("mouseenter"+M,t).bind("mouseleave"+M,o)},n=function(){j=function(){var e={left:h+s.scrollLeft(),width:f};y?e.bottom=T:e.top=x,w.css(e);var t={top:b+s.scrollTop(),height:v};I?t.right=S:t.left=P,L.css(t),w.hide().show(),L.hide().show()}};6===t&&(o(),n())},N="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,Z=function(){var e=navigator.userAgent.toLowerCase().match(/(msie) ([\w.]+)/);e&&"msie"===e[1]&&R(parseInt(e[2],10)),O(),K(),E(),H(),F(),N&&z(),s.mousewheel&&q(),l.useKeyboard&&B(),s.data("perfect-scrollbar",s),s.data("perfect-scrollbar-update",O),s.data("perfect-scrollbar-destroy",Q)};return Z(),s})}}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var s=t||window.event,a=i.call(arguments,1),c=0,u=0,d=0,p=0;if(t=e.event.fix(s),t.type="mousewheel","detail"in s&&(d=-1*s.detail),"wheelDelta"in s&&(d=s.wheelDelta),"wheelDeltaY"in s&&(d=s.wheelDeltaY),"wheelDeltaX"in s&&(u=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(u=-1*d,d=0),c=0===d?u:d,"deltaY"in s&&(d=-1*s.deltaY,c=d),"deltaX"in s&&(u=s.deltaX,0===d&&(c=-1*u)),0!==d||0!==u){if(1===s.deltaMode){var f=e.data(this,"mousewheel-line-height");c*=f,d*=f,u*=f}else if(2===s.deltaMode){var h=e.data(this,"mousewheel-page-height");c*=h,d*=h,u*=h}return p=Math.max(Math.abs(d),Math.abs(u)),(!l||l>p)&&(l=p,n(s,p)&&(l/=40)),n(s,p)&&(c/=40,u/=40,d/=40),c=Math[c>=1?"floor":"ceil"](c/l),u=Math[u>=1?"floor":"ceil"](u/l),d=Math[d>=1?"floor":"ceil"](d/l),t.deltaX=u,t.deltaY=d,t.deltaFactor=l,t.deltaMode=0,a.unshift(t,c,u,d),r&&clearTimeout(r),r=setTimeout(o,200),(e.event.dispatch||e.event.handle).apply(this,a)}}function o(){l=null}function n(e,t){return u.settings.adjustOldDeltas&&"mousewheel"===e.type&&0===t%120}var r,l,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(e.event.fixHooks)for(var c=s.length;c;)e.event.fixHooks[s[--c]]=e.event.mouseHooks;var u=e.event.special.mousewheel={version:"3.1.9",setup:function(){if(this.addEventListener)for(var o=a.length;o;)this.addEventListener(a[--o],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",u.getLineHeight(this)),e.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=a.length;e;)this.removeEventListener(a[--e],t,!1);else this.onmousewheel=null},getLineHeight:function(t){return parseInt(e(t)["offsetParent"in e.fn?"offsetParent":"parent"]().css("fontSize"),10)},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}); | ||
0 | \ No newline at end of file | 5 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/LICENSE.txt
@@ -1,19 +0,0 @@ | @@ -1,19 +0,0 @@ | ||
1 | -Copyright (c) 2006-2009 Collecta, Inc. | ||
2 | - | ||
3 | -Permission is hereby granted, free of charge, to any person obtaining a copy | ||
4 | -of this software and associated documentation files (the "Software"), to deal | ||
5 | -in the Software without restriction, including without limitation the rights | ||
6 | -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
7 | -copies of the Software, and to permit persons to whom the Software is | ||
8 | -furnished to do so, subject to the following conditions: | ||
9 | - | ||
10 | -The above copyright notice and this permission notice shall be included in | ||
11 | -all copies or substantial portions of the Software. | ||
12 | - | ||
13 | -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
14 | -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
15 | -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
16 | -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
17 | -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
18 | -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
19 | -THE SOFTWARE. |
public/javascripts/strophejs-1.0.1/README.txt
@@ -1,15 +0,0 @@ | @@ -1,15 +0,0 @@ | ||
1 | -Strophe.js is a JavaScript library for speaking XMPP via BOSH (XEP 124 | ||
2 | -and 206). It is licensed under the MIT license, except for the files | ||
3 | -base64.js and md5.js, which are licensed as public domain and | ||
4 | -BSD (see these files for details). | ||
5 | - | ||
6 | -It has been tested on Firefox 1.5, 2.x, and 3.x, IE 6, 7, and 8, Safari, Mobile | ||
7 | -Safari, Chrome, and it should also work on the mobile Opera browser as | ||
8 | -well as the desktop Opera browser. | ||
9 | - | ||
10 | -The homepage for Strophe is http://code.stanziq.com/strophe. | ||
11 | - | ||
12 | -The book Professional XMPP Programming with JavaScript and jQuery is | ||
13 | -also available, which covers Strophe in detail in the context of web | ||
14 | -applications. You can find more information at | ||
15 | -http://professionalxmpp.com. |
public/javascripts/strophejs-1.0.1/contrib/discojs/README.txt
@@ -1,42 +0,0 @@ | @@ -1,42 +0,0 @@ | ||
1 | -Disco Dancing with XMPP | ||
2 | - | ||
3 | - There are many things one can do via XMPP. The list is | ||
4 | - endlist. But one thing that some forget about is discovering | ||
5 | - services a XMPP entity or server provides. In most cases a human or | ||
6 | - user does not care about this information and should not care. But | ||
7 | - you may have a website or web application that needs this | ||
8 | - information in order to decide what options to show to your | ||
9 | - users. You can do this very easily with JQuery, Strophe, and | ||
10 | - Punjab. | ||
11 | - | ||
12 | - We start with Punjab or a BOSH connection manager. This is | ||
13 | - needed so we can connect to a XMPP server. First, lets download | ||
14 | - punjab. | ||
15 | - | ||
16 | - svn co https://code.stanziq.com/svn/punjab/trunk punjab | ||
17 | - | ||
18 | - After we have punjab go into the directory and install punjab. | ||
19 | - | ||
20 | - cd punjab | ||
21 | - python setup.py install | ||
22 | - | ||
23 | - Then create a .tac file to configure Punjab. | ||
24 | - | ||
25 | - See punjab.tac | ||
26 | - | ||
27 | - Next, we will need Strophe. Lets download thelatest version from | ||
28 | - svn too. | ||
29 | - | ||
30 | - cd /directory/where/you/configured/punjab/html | ||
31 | - | ||
32 | - svn co https://code.stanziq.com/svn/strophe/trunk/strophejs | ||
33 | - | ||
34 | - In your html directory you will then begin to create your disco browser. | ||
35 | - | ||
36 | - Version 1 we take the basic example and modify it to do disco. | ||
37 | - | ||
38 | - Version 2 we add anonymous login | ||
39 | - | ||
40 | - Version 3 we make it pretty | ||
41 | - | ||
42 | - Version 4 we add handlers for different services |
public/javascripts/strophejs-1.0.1/contrib/discojs/css/disco.css
public/javascripts/strophejs-1.0.1/contrib/discojs/index.html
@@ -1,47 +0,0 @@ | @@ -1,47 +0,0 @@ | ||
1 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
2 | -<html xmlns="http://www.w3.org/1999/xhtml"> | ||
3 | -<head> | ||
4 | - <title>XMPP Disco Dancing</title> | ||
5 | - <script language='javascript' | ||
6 | - type='text/javascript' | ||
7 | - src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script> | ||
8 | - <script language='javascript' | ||
9 | - type='text/javascript' | ||
10 | - src='strophejs/b64.js'></script> | ||
11 | - <script language='javascript' | ||
12 | - type='text/javascript' | ||
13 | - src='strophejs/md5.js'></script> | ||
14 | - <script language='javascript' | ||
15 | - type='text/javascript' | ||
16 | - src='strophejs/sha1.js'></script> | ||
17 | - <script language='javascript' | ||
18 | - type='text/javascript' | ||
19 | - src='strophejs/strophe.js'></script> | ||
20 | -<script language='javascript' | ||
21 | - type='text/javascript' | ||
22 | - src='scripts/basic.js'></script> | ||
23 | - <script language='javascript' | ||
24 | - type='text/javascript' | ||
25 | - src='scripts/disco.js'></script> | ||
26 | - <link rel="stylesheet" href="css/disco.css" type="text/css" /> | ||
27 | -</head> | ||
28 | -<body> | ||
29 | - <div id='login' style='text-align: center'> | ||
30 | - <form id='cred' name='cred'> | ||
31 | - <label for='jid'>JID:</label> | ||
32 | - <input type='text' class='leftinput' id='jid' /> | ||
33 | - <label for='pass'>Password:</label> | ||
34 | - <input type='password' class='leftinput' id='pass' /> | ||
35 | - <input type='submit' id='connect' value='connect' /> | ||
36 | - </form> | ||
37 | - <br/> | ||
38 | - </div> | ||
39 | - <hr /> | ||
40 | - <div id='disco'> | ||
41 | -</div> | ||
42 | - <hr /> | ||
43 | - <div id='log_container'> | ||
44 | -<a href='#'>Status Log :</a> | ||
45 | -<div id='log'></div></div> | ||
46 | -</body> | ||
47 | -</html> |
public/javascripts/strophejs-1.0.1/contrib/discojs/punjab.tac
@@ -1,18 +0,0 @@ | @@ -1,18 +0,0 @@ | ||
1 | -# punjab tac file | ||
2 | -from twisted.web import server, resource, static | ||
3 | -from twisted.application import service, internet | ||
4 | - | ||
5 | -from punjab.httpb import Httpb, HttpbService | ||
6 | - | ||
7 | -root = static.File("./") # This needs to be the directory | ||
8 | - # where you will have your html | ||
9 | - # and javascript. | ||
10 | - | ||
11 | -b = resource.IResource(HttpbService(1)) # turn on debug with 1 | ||
12 | -root.putChild('bosh', b) | ||
13 | - | ||
14 | - | ||
15 | -site = server.Site(root) | ||
16 | - | ||
17 | -application = service.Application("punjab") | ||
18 | -internet.TCPServer(5280, site).setServiceParent(application) |
public/javascripts/strophejs-1.0.1/contrib/discojs/scripts/basic.js
@@ -1,102 +0,0 @@ | @@ -1,102 +0,0 @@ | ||
1 | -var BOSH_SERVICE = 'http://localhost:5280/bosh'; | ||
2 | - | ||
3 | -var connection = null; | ||
4 | -var browser = null; | ||
5 | -var show_log = true; | ||
6 | - | ||
7 | -function log(msg) | ||
8 | -{ | ||
9 | - $('#log').append('<div></div>').append(document.createTextNode(msg)); | ||
10 | -} | ||
11 | - | ||
12 | - | ||
13 | -function rawInput(data) | ||
14 | -{ | ||
15 | - log('RECV: ' + data); | ||
16 | -} | ||
17 | - | ||
18 | -function rawOutput(data) | ||
19 | -{ | ||
20 | - log('SENT: ' + data); | ||
21 | -} | ||
22 | - | ||
23 | -function onConnect(status) | ||
24 | -{ | ||
25 | - if (status == Strophe.Status.CONNECTING) { | ||
26 | - log('Strophe is connecting.'); | ||
27 | - | ||
28 | - } else if (status == Strophe.Status.CONNFAIL) { | ||
29 | - log('Strophe failed to connect.'); | ||
30 | - showConnect(); | ||
31 | - } else if (status == Strophe.Status.DISCONNECTING) { | ||
32 | - log('Strophe is disconnecting.'); | ||
33 | - } else if (status == Strophe.Status.DISCONNECTED) { | ||
34 | - log('Strophe is disconnected.'); | ||
35 | - showConnect(); | ||
36 | - | ||
37 | - } else if (status == Strophe.Status.CONNECTED) { | ||
38 | - log('Strophe is connected.'); | ||
39 | - // Start up disco browser | ||
40 | - browser.showBrowser(); | ||
41 | - } | ||
42 | -} | ||
43 | - | ||
44 | -function showConnect() | ||
45 | -{ | ||
46 | - var jid = $('#jid'); | ||
47 | - var pass = $('#pass'); | ||
48 | - var button = $('#connect').get(0); | ||
49 | - | ||
50 | - browser.closeBrowser(); | ||
51 | - | ||
52 | - $('label').show(); | ||
53 | - jid.show(); | ||
54 | - pass.show(); | ||
55 | - $('#anon').show(); | ||
56 | - button.value = 'connect'; | ||
57 | - return false; | ||
58 | -} | ||
59 | - | ||
60 | -function showDisconnect() | ||
61 | -{ | ||
62 | - var jid = $('#jid'); | ||
63 | - var pass = $('#pass'); | ||
64 | - var button = $('#connect').get(0); | ||
65 | - | ||
66 | - button.value = 'disconnect'; | ||
67 | - pass.hide(); | ||
68 | - jid.hide(); | ||
69 | - $('label').hide(); | ||
70 | - $('#anon').hide(); | ||
71 | - return false; | ||
72 | -} | ||
73 | - | ||
74 | -$(document).ready(function () { | ||
75 | - connection = new Strophe.Connection(BOSH_SERVICE); | ||
76 | - connection.rawInput = rawInput; | ||
77 | - connection.rawOutput = rawOutput; | ||
78 | - | ||
79 | - browser = new Disco(); | ||
80 | - | ||
81 | - $("#log_container").bind('click', function () { | ||
82 | - $("#log").toggle(); | ||
83 | - } | ||
84 | - ); | ||
85 | - | ||
86 | - $('#cred').bind('submit', function () { | ||
87 | - var button = $('#connect').get(0); | ||
88 | - var jid = $('#jid'); | ||
89 | - var pass = $('#pass'); | ||
90 | - | ||
91 | - if (button.value == 'connect') { | ||
92 | - showDisconnect(); | ||
93 | - connection.connect(jid.get(0).value, | ||
94 | - pass.get(0).value, | ||
95 | - onConnect); | ||
96 | - } else { | ||
97 | - connection.disconnect(); | ||
98 | - showConnect(); | ||
99 | - } | ||
100 | - return false; | ||
101 | - }); | ||
102 | -}); | ||
103 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/contrib/discojs/scripts/disco.js
@@ -1,60 +0,0 @@ | @@ -1,60 +0,0 @@ | ||
1 | - | ||
2 | -var NS_DISCO_INFO = 'http://jabber.org/protocol/disco#info'; | ||
3 | -var NS_DISCO_ITEM = 'http://jabber.org/protocol/disco#items'; | ||
4 | - | ||
5 | - | ||
6 | -// Disco stuff | ||
7 | -Disco = function () { | ||
8 | - // Class that does nothing | ||
9 | -}; | ||
10 | - | ||
11 | -Disco.prototype = { | ||
12 | - showBrowser: function() { | ||
13 | - // Browser Display | ||
14 | - var disco = $('#disco'); | ||
15 | - var jid = $('#jid'); | ||
16 | - var server = connection.jid.split('@')[1]; | ||
17 | - | ||
18 | - // display input box | ||
19 | - disco.append("<div id='server'><form id='browse' name='browse'>Server : <input type='text' name='server' id='server' value='"+server+"' /><input type='submit' value='browse'/></form></div>"); | ||
20 | - | ||
21 | - // add handler for search form | ||
22 | - $("#browse").bind('submit', function () { | ||
23 | - this.startBrowse($("#server").get(0).value); | ||
24 | - return false; | ||
25 | - }); | ||
26 | - | ||
27 | - this.startBrowse(server); | ||
28 | - }, | ||
29 | - | ||
30 | - closeBrowser: function() { | ||
31 | - var disco = $('#disco'); | ||
32 | - | ||
33 | - disco.empty(); | ||
34 | - }, | ||
35 | - | ||
36 | - startBrowse: function(server) { | ||
37 | - // build iq request | ||
38 | - var id = 'startBrowse'; | ||
39 | - | ||
40 | - var discoiq = $iq({'from':connection.jid+"/"+connection.resource, | ||
41 | - 'to':server, | ||
42 | - 'id':id, | ||
43 | - 'type':'get'} | ||
44 | - ) | ||
45 | - .c('query', {'xmlns': NS_DISCO_INFO}); | ||
46 | - | ||
47 | - connection.addHandler(this._cbBrowse, null, 'iq', 'result', id); | ||
48 | - connection.send(discoiq.tree()); | ||
49 | - | ||
50 | - }, | ||
51 | - | ||
52 | - _cbBrowse: function(e) { | ||
53 | - var elem = $(e); // make this Element a JQuery Element | ||
54 | - alert(e); | ||
55 | - | ||
56 | - return false; // return false to remove the handler | ||
57 | - }, | ||
58 | - | ||
59 | -}; | ||
60 | - |
public/javascripts/strophejs-1.0.1/doc/files/core-js.html
@@ -1,189 +0,0 @@ | @@ -1,189 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><title>strophe.js</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="strophe.js"></a>strophe.js</h1><div class=CBody><p>A JavaScript library for XMPP BOSH.</p><p>This is the JavaScript version of the Strophe library. Since JavaScript has no facilities for persistent TCP connections, this library uses Bidirectional-streams Over Synchronous HTTP (BOSH) to emulate a persistent, stateful, two-way connection to an XMPP server. More information on BOSH can be found in XEP 124.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#strophe.js" >strophe.js</a></td><td class=SDescription>A JavaScript library for XMPP BOSH.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#$build" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">$build</a></td><td class=SDescription>Create a Strophe.Builder. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#$msg" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">$msg</a></td><td class=SDescription>Create a Strophe.Builder with a <message/> element as the root.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#$iq" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">$iq</a></td><td class=SDescription>Create a Strophe.Builder with an <iq/> element as the root.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#$pres" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">$pres</a></td><td class=SDescription>Create a Strophe.Builder with a <presence/> element as the root.</td></tr><tr class="SClass"><td class=SEntry><a href="#Strophe" >Strophe</a></td><td class=SDescription>An object container for all Strophe library functions.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent2 SMarked"><td class=SEntry><a href="#Strophe.VERSION" >VERSION</a></td><td class=SDescription>The version of the Strophe library. </td></tr><tr class="SConstant SIndent2"><td class=SEntry><a href="#Strophe.XMPP_Namespace_Constants" >XMPP Namespace Constants</a></td><td class=SDescription>Common namespace constants from the XMPP RFCs and XEPs.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.addNamespace" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">addNamespace</a></td><td class=SDescription>This function is used to extend the current namespaces in Strophe.NS. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection_Status_Constants" >Connection Status Constants</a></td><td class=SDescription>Connection status constants for use by the connection handler callback.</td></tr><tr class="SConstant SIndent2"><td class=SEntry><a href="#Strophe.Log_Level_Constants" >Log Level Constants</a></td><td class=SDescription>Logging level indicators.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.forEachChild" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">forEachChild</a></td><td class=SDescription>Map a function over some or all child elements of a given element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.isTagEqual" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">isTagEqual</a></td><td class=SDescription>Compare an element’s tag name with a string.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.xmlElement" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">xmlElement</a></td><td class=SDescription>Create an XML DOM element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.xmlescape" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">xmlescape</a></td><td class=SDescription>Excapes invalid xml characters.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.xmlTextNode" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">xmlTextNode</a></td><td class=SDescription>Creates an XML DOM text node.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.getText" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">getText</a></td><td class=SDescription>Get the concatenation of all text children of an element.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.copyElement" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">copyElement</a></td><td class=SDescription>Copy an XML DOM element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.escapeNode" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">escapeNode</a></td><td class=SDescription>Escape the node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.unescapeNode" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">unescapeNode</a></td><td class=SDescription>Unescape a node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.getNodeFromJid" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">getNodeFromJid</a></td><td class=SDescription>Get the node portion of a JID String.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.getDomainFromJid" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">getDomainFromJid</a></td><td class=SDescription>Get the domain portion of a JID String.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.getResourceFromJid" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">getResourceFromJid</a></td><td class=SDescription>Get the resource portion of a JID String.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.getBareJidFromJid" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">getBareJidFromJid</a></td><td class=SDescription>Get the bare JID from a JID String.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.log" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">log</a></td><td class=SDescription>User overrideable logging function.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.debug" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">debug</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.DEBUG level.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.info" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')">info</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.INFO level.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.warn" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')">warn</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.WARN level.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.error" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')">error</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.ERROR level.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.fatal" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')">fatal</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.FATAL level.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.serialize" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')">serialize</a></td><td class=SDescription>Render a DOM element and all descendants to a String.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.addConnectionPlugin" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')">addConnectionPlugin</a></td><td class=SDescription>Extends the Strophe.Connection object with the given plugin.</td></tr><tr class="SClass"><td class=SEntry><a href="#Strophe.Builder" >Strophe.<wbr>Builder</a></td><td class=SDescription>XML DOM builder.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Builder.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.Strophe.Builder" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')">Strophe.<wbr>Builder</a></td><td class=SDescription>Create a Strophe.Builder object.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.tree" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')">tree</a></td><td class=SDescription>Return the DOM tree.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.toString" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')">toString</a></td><td class=SDescription>Serialize the DOM tree to a String.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.up" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')">up</a></td><td class=SDescription>Make the current parent element the new current element.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.attrs" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')">attrs</a></td><td class=SDescription>Add or modify attributes of the current element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.c" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')">c</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.cnode" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')">cnode</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.t" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')">t</a></td><td class=SDescription>Add a child text element.</td></tr><tr class="SClass"><td class=SEntry><a href="#Strophe.Connection" >Strophe.<wbr>Connection</a></td><td class=SDescription>XMPP Connection manager.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Connection.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.Strophe.Connection" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')">Strophe.<wbr>Connection</a></td><td class=SDescription>Create and initialize a Strophe.Connection object.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.reset" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')">reset</a></td><td class=SDescription>Reset the connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.pause" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')">pause</a></td><td class=SDescription>Pause the request manager.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.resume" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')">resume</a></td><td class=SDescription>Resume the request manager.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.getUniqueId" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')">getUniqueId</a></td><td class=SDescription>Generate a unique ID for use in <iq/> elements.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.connect" id=link40 onMouseOver="ShowTip(event, 'tt40', 'link40')" onMouseOut="HideTip('tt40')">connect</a></td><td class=SDescription>Starts the connection process.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.attach" id=link41 onMouseOver="ShowTip(event, 'tt41', 'link41')" onMouseOut="HideTip('tt41')">attach</a></td><td class=SDescription>Attach to an already created and authenticated BOSH session.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.xmlInput" id=link42 onMouseOver="ShowTip(event, 'tt42', 'link42')" onMouseOut="HideTip('tt42')">xmlInput</a></td><td class=SDescription>User overrideable function that receives XML data coming into the connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.xmlOutput" id=link43 onMouseOver="ShowTip(event, 'tt43', 'link43')" onMouseOut="HideTip('tt43')">xmlOutput</a></td><td class=SDescription>User overrideable function that receives XML data sent to the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.rawInput" id=link44 onMouseOver="ShowTip(event, 'tt44', 'link44')" onMouseOut="HideTip('tt44')">rawInput</a></td><td class=SDescription>User overrideable function that receives raw data coming into the connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.rawOutput" id=link45 onMouseOver="ShowTip(event, 'tt45', 'link45')" onMouseOut="HideTip('tt45')">rawOutput</a></td><td class=SDescription>User overrideable function that receives raw data sent to the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.send" id=link46 onMouseOver="ShowTip(event, 'tt46', 'link46')" onMouseOut="HideTip('tt46')">send</a></td><td class=SDescription>Send a stanza.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.flush" id=link47 onMouseOver="ShowTip(event, 'tt47', 'link47')" onMouseOut="HideTip('tt47')">flush</a></td><td class=SDescription>Immediately send any pending outgoing data.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.sendIQ" id=link48 onMouseOver="ShowTip(event, 'tt48', 'link48')" onMouseOut="HideTip('tt48')">sendIQ</a></td><td class=SDescription>Helper function to send IQ stanzas.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.addTimedHandler" id=link49 onMouseOver="ShowTip(event, 'tt49', 'link49')" onMouseOut="HideTip('tt49')">addTimedHandler</a></td><td class=SDescription>Add a timed handler to the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.deleteTimedHandler" id=link50 onMouseOver="ShowTip(event, 'tt50', 'link50')" onMouseOut="HideTip('tt50')">deleteTimedHandler</a></td><td class=SDescription>Delete a timed handler for a connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.addHandler" id=link51 onMouseOver="ShowTip(event, 'tt51', 'link51')" onMouseOut="HideTip('tt51')">addHandler</a></td><td class=SDescription>Add a stanza handler for the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.deleteHandler" id=link52 onMouseOver="ShowTip(event, 'tt52', 'link52')" onMouseOut="HideTip('tt52')">deleteHandler</a></td><td class=SDescription>Delete a stanza handler for a connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.disconnect" id=link53 onMouseOver="ShowTip(event, 'tt53', 'link53')" onMouseOut="HideTip('tt53')">disconnect</a></td><td class=SDescription>Start the graceful disconnection process.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> | ||
15 | - | ||
16 | -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Functions"></a>Functions</h3></div></div> | ||
17 | - | ||
18 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$build"></a>$build</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $build(</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder. This is an alias for ‘new Strophe.Builder(name, attrs)’.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The root element name.</td></tr><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The attributes for the root element in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div> | ||
19 | - | ||
20 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$msg"></a>$msg</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $msg(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder with a <message/> element as the root.</p><h4 class=CHeading>Parmaeters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The <message/> element attributes in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div> | ||
21 | - | ||
22 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$iq"></a>$iq</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $iq(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder with an <iq/> element as the root.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The <iq/> element attributes in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div> | ||
23 | - | ||
24 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$pres"></a>$pres</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $pres(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder with a <presence/> element as the root.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The <presence/> element attributes in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div> | ||
25 | - | ||
26 | -<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="Strophe"></a>Strophe</h2><div class=CBody><p>An object container for all Strophe library functions.</p><p>This class is just a container for all the objects and constants used in the library. It is not meant to be instantiated, but to provide a namespace for library objects, constants, and functions.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent1 SMarked"><td class=SEntry><a href="#Strophe.VERSION" >VERSION</a></td><td class=SDescription>The version of the Strophe library. </td></tr><tr class="SConstant SIndent1"><td class=SEntry><a href="#Strophe.XMPP_Namespace_Constants" >XMPP Namespace Constants</a></td><td class=SDescription>Common namespace constants from the XMPP RFCs and XEPs.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.addNamespace" id=link54 onMouseOver="ShowTip(event, 'tt5', 'link54')" onMouseOut="HideTip('tt5')">addNamespace</a></td><td class=SDescription>This function is used to extend the current namespaces in Strophe.NS. </td></tr><tr class="SGroup"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection_Status_Constants" >Connection Status Constants</a></td><td class=SDescription>Connection status constants for use by the connection handler callback.</td></tr><tr class="SConstant SIndent1"><td class=SEntry><a href="#Strophe.Log_Level_Constants" >Log Level Constants</a></td><td class=SDescription>Logging level indicators.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.forEachChild" id=link55 onMouseOver="ShowTip(event, 'tt6', 'link55')" onMouseOut="HideTip('tt6')">forEachChild</a></td><td class=SDescription>Map a function over some or all child elements of a given element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.isTagEqual" id=link56 onMouseOver="ShowTip(event, 'tt7', 'link56')" onMouseOut="HideTip('tt7')">isTagEqual</a></td><td class=SDescription>Compare an element’s tag name with a string.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.xmlElement" id=link57 onMouseOver="ShowTip(event, 'tt8', 'link57')" onMouseOut="HideTip('tt8')">xmlElement</a></td><td class=SDescription>Create an XML DOM element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.xmlescape" id=link58 onMouseOver="ShowTip(event, 'tt9', 'link58')" onMouseOut="HideTip('tt9')">xmlescape</a></td><td class=SDescription>Excapes invalid xml characters.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.xmlTextNode" id=link59 onMouseOver="ShowTip(event, 'tt10', 'link59')" onMouseOut="HideTip('tt10')">xmlTextNode</a></td><td class=SDescription>Creates an XML DOM text node.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.getText" id=link60 onMouseOver="ShowTip(event, 'tt11', 'link60')" onMouseOut="HideTip('tt11')">getText</a></td><td class=SDescription>Get the concatenation of all text children of an element.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.copyElement" id=link61 onMouseOver="ShowTip(event, 'tt12', 'link61')" onMouseOut="HideTip('tt12')">copyElement</a></td><td class=SDescription>Copy an XML DOM element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.escapeNode" id=link62 onMouseOver="ShowTip(event, 'tt13', 'link62')" onMouseOut="HideTip('tt13')">escapeNode</a></td><td class=SDescription>Escape the node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.unescapeNode" id=link63 onMouseOver="ShowTip(event, 'tt14', 'link63')" onMouseOut="HideTip('tt14')">unescapeNode</a></td><td class=SDescription>Unescape a node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.getNodeFromJid" id=link64 onMouseOver="ShowTip(event, 'tt15', 'link64')" onMouseOut="HideTip('tt15')">getNodeFromJid</a></td><td class=SDescription>Get the node portion of a JID String.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.getDomainFromJid" id=link65 onMouseOver="ShowTip(event, 'tt16', 'link65')" onMouseOut="HideTip('tt16')">getDomainFromJid</a></td><td class=SDescription>Get the domain portion of a JID String.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.getResourceFromJid" id=link66 onMouseOver="ShowTip(event, 'tt17', 'link66')" onMouseOut="HideTip('tt17')">getResourceFromJid</a></td><td class=SDescription>Get the resource portion of a JID String.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.getBareJidFromJid" id=link67 onMouseOver="ShowTip(event, 'tt18', 'link67')" onMouseOut="HideTip('tt18')">getBareJidFromJid</a></td><td class=SDescription>Get the bare JID from a JID String.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.log" id=link68 onMouseOver="ShowTip(event, 'tt19', 'link68')" onMouseOut="HideTip('tt19')">log</a></td><td class=SDescription>User overrideable logging function.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.debug" id=link69 onMouseOver="ShowTip(event, 'tt20', 'link69')" onMouseOut="HideTip('tt20')">debug</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.DEBUG level.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.info" id=link70 onMouseOver="ShowTip(event, 'tt21', 'link70')" onMouseOut="HideTip('tt21')">info</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.INFO level.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.warn" id=link71 onMouseOver="ShowTip(event, 'tt22', 'link71')" onMouseOut="HideTip('tt22')">warn</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.WARN level.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.error" id=link72 onMouseOver="ShowTip(event, 'tt23', 'link72')" onMouseOut="HideTip('tt23')">error</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.ERROR level.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.fatal" id=link73 onMouseOver="ShowTip(event, 'tt24', 'link73')" onMouseOut="HideTip('tt24')">fatal</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.FATAL level.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.serialize" id=link74 onMouseOver="ShowTip(event, 'tt25', 'link74')" onMouseOut="HideTip('tt25')">serialize</a></td><td class=SDescription>Render a DOM element and all descendants to a String.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.addConnectionPlugin" id=link75 onMouseOver="ShowTip(event, 'tt26', 'link75')" onMouseOut="HideTip('tt26')">addConnectionPlugin</a></td><td class=SDescription>Extends the Strophe.Connection object with the given plugin.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> | ||
27 | - | ||
28 | -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Constants"></a>Constants</h3></div></div> | ||
29 | - | ||
30 | -<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.VERSION"></a>VERSION</h3><div class=CBody><p>The version of the Strophe library. Unreleased builds will have a version of head-HASH where HASH is a partial revision.</p></div></div></div> | ||
31 | - | ||
32 | -<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.XMPP_Namespace_Constants"></a>XMPP Namespace Constants</h3><div class=CBody><p>Common namespace constants from the XMPP RFCs and XEPs.</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.HTTPBIND"></a>NS.HTTPBIND</td><td class=CDLDescription>HTTP BIND namespace from XEP 124.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.BOSH"></a>NS.BOSH</td><td class=CDLDescription>BOSH namespace from XEP 206.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.CLIENT"></a>NS.CLIENT</td><td class=CDLDescription>Main XMPP client namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.AUTH"></a>NS.AUTH</td><td class=CDLDescription>Legacy authentication namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.ROSTER"></a>NS.ROSTER</td><td class=CDLDescription>Roster operations namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.PROFILE"></a>NS.PROFILE</td><td class=CDLDescription>Profile namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.DISCO_INFO"></a>NS.DISCO_INFO</td><td class=CDLDescription>Service discovery info namespace from XEP 30.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.DISCO_ITEMS"></a>NS.DISCO_ITEMS</td><td class=CDLDescription>Service discovery items namespace from XEP 30.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.MUC"></a>NS.MUC</td><td class=CDLDescription>Multi-User Chat namespace from XEP 45.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.SASL"></a>NS.SASL</td><td class=CDLDescription>XMPP SASL namespace from RFC 3920.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.STREAM"></a>NS.STREAM</td><td class=CDLDescription>XMPP Streams namespace from RFC 3920.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.BIND"></a>NS.BIND</td><td class=CDLDescription>XMPP Binding namespace from RFC 3920.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.SESSION"></a>NS.SESSION</td><td class=CDLDescription>XMPP Session namespace from RFC 3920.</td></tr></table></div></div></div> | ||
33 | - | ||
34 | -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Functions"></a>Functions</h3></div></div> | ||
35 | - | ||
36 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.addNamespace"></a>addNamespace</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addNamespace: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>This function is used to extend the current namespaces in Strophe.NS. It takes a key and a value with the key being the name of the new namespace, with its actual value. For example: Strophe.addNamespace(‘PUBSUB’, “<a href="http://jabber.org/protocol/pubsub" class=LURL target=_top>http://jabber.org/protocol/pubsub</a>”);</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name under which the namespace will be referenced under Strophe.NS</td></tr><tr><td class=CDLEntry>(String) value</td><td class=CDLDescription>The actual namespace.</td></tr></table></div></div></div> | ||
37 | - | ||
38 | -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Constants"></a>Constants</h3></div></div> | ||
39 | - | ||
40 | -<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection_Status_Constants"></a>Connection Status Constants</h3><div class=CBody><p>Connection status constants for use by the connection handler callback.</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.ERROR"></a>Status.ERROR</td><td class=CDLDescription>An error has occurred</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.CONNECTING"></a>Status.CONNECTING</td><td class=CDLDescription>The connection is currently being made</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.CONNFAIL"></a>Status.CONNFAIL</td><td class=CDLDescription>The connection attempt failed</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.AUTHENTICATING"></a>Status.AUTHENTICATING</td><td class=CDLDescription>The connection is authenticating</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.AUTHFAIL"></a>Status.AUTHFAIL</td><td class=CDLDescription>The authentication attempt failed</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.CONNECTED"></a>Status.CONNECTED</td><td class=CDLDescription>The connection has succeeded</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.DISCONNECTED"></a>Status.DISCONNECTED</td><td class=CDLDescription>The connection has been terminated</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.DISCONNECTING"></a>Status.DISCONNECTING</td><td class=CDLDescription>The connection is currently being terminated</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.ATTACHED"></a>Status.ATTACHED</td><td class=CDLDescription>The connection has been attached</td></tr></table></div></div></div> | ||
41 | - | ||
42 | -<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.Log_Level_Constants"></a>Log Level Constants</h3><div class=CBody><p>Logging level indicators.</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.DEBUG"></a>LogLevel.DEBUG</td><td class=CDLDescription>Debug output</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.INFO"></a>LogLevel.INFO</td><td class=CDLDescription>Informational output</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.WARN"></a>LogLevel.WARN</td><td class=CDLDescription>Warnings</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.ERROR"></a>LogLevel.ERROR</td><td class=CDLDescription>Errors</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.FATAL"></a>LogLevel.FATAL</td><td class=CDLDescription>Fatal errors</td></tr></table></div></div></div> | ||
43 | - | ||
44 | -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Functions"></a>Functions</h3></div></div> | ||
45 | - | ||
46 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.forEachChild"></a>forEachChild</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>forEachChild: function (</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>elemName,</td></tr><tr><td></td><td class=PParameter nowrap>func</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Map a function over some or all child elements of a given element.</p><p>This is a small convenience function for mapping a function over some or all of the children of an element. If elemName is null, all children will be passed to the function, otherwise only children whose tag names match elemName will be passed.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The element to operate on.</td></tr><tr><td class=CDLEntry>(String) elemName</td><td class=CDLDescription>The child element tag name filter.</td></tr><tr><td class=CDLEntry>(Function) func</td><td class=CDLDescription>The function to apply to each child. This function should take a single argument, a DOM element.</td></tr></table></div></div></div> | ||
47 | - | ||
48 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.isTagEqual"></a>isTagEqual</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>isTagEqual: function (</td><td class=PParameter nowrap>el,</td></tr><tr><td></td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Compare an element’s tag name with a string.</p><p>This function is case insensitive.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) el</td><td class=CDLDescription>A DOM element.</td></tr><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The element name.</td></tr></table><h4 class=CHeading>Returns</h4><p>true if the element’s tag name matches <u>el</u>, and false otherwise.</p></div></div></div> | ||
49 | - | ||
50 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.xmlElement"></a>xmlElement</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlElement: function (</td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create an XML DOM element.</p><p>This function creates an XML DOM element correctly across all implementations. Specifically the Microsoft implementation of document.createElement makes DOM elements with 43+ default attributes unless elements are created with the ActiveX object Microsoft.XMLDOM.</p><p>Most DOMs force element names to lowercase, so we use the _realname attribute on the created element to store the case sensitive name. This is required to generate proper XML for things like vCard avatars (XEP 153). This attribute is stripped out before being sent over the wire or serialized, but you may notice it during debugging.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name for the element.</td></tr><tr><td class=CDLEntry>(Array) attrs</td><td class=CDLDescription>An optional array of key/value pairs to use as element attributes in the following format [[‘key1’, ‘value1’], [‘key2’, ‘value2’]]</td></tr><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>The text child data for the element.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new XML DOM element.</p></div></div></div> | ||
51 | - | ||
52 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.xmlescape"></a>xmlescape</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlescape: function(</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Excapes invalid xml characters.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>text to escape.</td></tr></table><h4 class=CHeading>Returns</h4><p>Escaped text.</p></div></div></div> | ||
53 | - | ||
54 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.xmlTextNode"></a>xmlTextNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlTextNode: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates an XML DOM text node.</p><p>Provides a cross implementation version of document.createTextNode.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>The content of the text node.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new XML DOM text node.</p></div></div></div> | ||
55 | - | ||
56 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getText"></a>getText</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getText: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the concatenation of all text children of an element.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String with the concatenated text of all text element children.</p></div></div></div> | ||
57 | - | ||
58 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.copyElement"></a>copyElement</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>copyElement: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Copy an XML DOM element.</p><p>This function copies a DOM element and all its descendants and returns the new copy.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new, copied DOM element tree.</p></div></div></div> | ||
59 | - | ||
60 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.escapeNode"></a>escapeNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>escapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Escape the node part (also called local part) of a JID.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) node</td><td class=CDLDescription>A node (or local part).</td></tr></table><h4 class=CHeading>Returns</h4><p>An escaped node (or local part).</p></div></div></div> | ||
61 | - | ||
62 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.unescapeNode"></a>unescapeNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>unescapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Unescape a node part (also called local part) of a JID.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) node</td><td class=CDLDescription>A node (or local part).</td></tr></table><h4 class=CHeading>Returns</h4><p>An unescaped node (or local part).</p></div></div></div> | ||
63 | - | ||
64 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getNodeFromJid"></a>getNodeFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getNodeFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the node portion of a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the node.</p></div></div></div> | ||
65 | - | ||
66 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getDomainFromJid"></a>getDomainFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getDomainFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the domain portion of a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the domain.</p></div></div></div> | ||
67 | - | ||
68 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getResourceFromJid"></a>getResourceFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getResourceFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the resource portion of a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the resource.</p></div></div></div> | ||
69 | - | ||
70 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getBareJidFromJid"></a>getBareJidFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getBareJidFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the bare JID from a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the bare JID.</p></div></div></div> | ||
71 | - | ||
72 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.log"></a>log</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>log: function (</td><td class=PParameter nowrap>level,</td></tr><tr><td></td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable logging function.</p><p>This function is called whenever the Strophe library calls any of the logging functions. The default implementation of this function does nothing. If client code wishes to handle the logging messages, it should override this with</p><blockquote><pre>Strophe.log = function (level, msg) { | ||
73 | - (user code here) | ||
74 | -};</pre></blockquote><p>Please note that data sent and received over the wire is logged via Strophe.Connection.rawInput() and Strophe.Connection.rawOutput().</p><p>The different levels and their meanings are</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>DEBUG</td><td class=CDLDescription>Messages useful for debugging purposes.</td></tr><tr><td class=CDLEntry>INFO</td><td class=CDLDescription>Informational messages. This is mostly information like ‘disconnect was called’ or ‘SASL auth succeeded’.</td></tr><tr><td class=CDLEntry>WARN</td><td class=CDLDescription>Warnings about potential problems. This is mostly used to report transient connection errors like request timeouts.</td></tr><tr><td class=CDLEntry>ERROR</td><td class=CDLDescription>Some error occurred.</td></tr><tr><td class=CDLEntry>FATAL</td><td class=CDLDescription>A non-recoverable fatal error occurred.</td></tr></table><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Integer) level</td><td class=CDLDescription>The log level of the log message. This will be one of the values in Strophe.LogLevel.</td></tr><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div> | ||
75 | - | ||
76 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.debug"></a>debug</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>debug: function(</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.DEBUG level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div> | ||
77 | - | ||
78 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.info"></a>info</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>info: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.INFO level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div> | ||
79 | - | ||
80 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.warn"></a>warn</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>warn: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.WARN level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div> | ||
81 | - | ||
82 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.error"></a>error</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>error: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.ERROR level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div> | ||
83 | - | ||
84 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.fatal"></a>fatal</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>fatal: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.FATAL level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div> | ||
85 | - | ||
86 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.serialize"></a>serialize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>serialize: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Render a DOM element and all descendants to a String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>The serialized element tree as a String.</p></div></div></div> | ||
87 | - | ||
88 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.addConnectionPlugin"></a>addConnectionPlugin</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addConnectionPlugin: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>ptype</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Extends the Strophe.Connection object with the given plugin.</p><h4 class=CHeading>Paramaters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name of the extension.</td></tr><tr><td class=CDLEntry>(Object) ptype</td><td class=CDLDescription>The plugin’s prototype.</td></tr></table></div></div></div> | ||
89 | - | ||
90 | -<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="Strophe.Builder"></a>Strophe.<wbr>Builder</h2><div class=CBody><p>XML DOM builder.</p><p>This object provides an interface similar to JQuery but for building DOM element easily and rapidly. All the functions except for toString() and tree() return the object, so calls can be chained. Here’s an example using the $iq() builder helper.</p><blockquote><pre>$iq({to: 'you': from: 'me': type: 'get', id: '1'}) | ||
91 | - .c('query', {xmlns: 'strophe:example'}) | ||
92 | - .c('example') | ||
93 | - .toString()</pre></blockquote><p>The above generates this XML fragment</p><blockquote><pre><iq to='you' from='me' type='get' id='1'> | ||
94 | - <query xmlns='strophe:example'> | ||
95 | - <example/> | ||
96 | - </query> | ||
97 | -</iq></pre></blockquote><p>The corresponding DOM manipulations to get a similar fragment would be a lot more tedious and probably involve several helper variables.</p><p>Since adding children makes new operations operate on the child, up() is provided to traverse up the tree. To add two children, do</p><blockquote><pre>builder.c('child1', ...).up().c('child2', ...)</pre></blockquote><p>The next operation on the Builder will be relative to the second child.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Strophe.Builder.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.Strophe.Builder" id=link76 onMouseOver="ShowTip(event, 'tt27', 'link76')" onMouseOut="HideTip('tt27')">Strophe.<wbr>Builder</a></td><td class=SDescription>Create a Strophe.Builder object.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.tree" id=link77 onMouseOver="ShowTip(event, 'tt28', 'link77')" onMouseOut="HideTip('tt28')">tree</a></td><td class=SDescription>Return the DOM tree.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.toString" id=link78 onMouseOver="ShowTip(event, 'tt29', 'link78')" onMouseOut="HideTip('tt29')">toString</a></td><td class=SDescription>Serialize the DOM tree to a String.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.up" id=link79 onMouseOver="ShowTip(event, 'tt30', 'link79')" onMouseOut="HideTip('tt30')">up</a></td><td class=SDescription>Make the current parent element the new current element.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.attrs" id=link80 onMouseOver="ShowTip(event, 'tt31', 'link80')" onMouseOut="HideTip('tt31')">attrs</a></td><td class=SDescription>Add or modify attributes of the current element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.c" id=link81 onMouseOver="ShowTip(event, 'tt32', 'link81')" onMouseOut="HideTip('tt32')">c</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.cnode" id=link82 onMouseOver="ShowTip(event, 'tt33', 'link82')" onMouseOut="HideTip('tt33')">cnode</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.t" id=link83 onMouseOver="ShowTip(event, 'tt34', 'link83')" onMouseOut="HideTip('tt34')">t</a></td><td class=SDescription>Add a child text element.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> | ||
98 | - | ||
99 | -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.Functions"></a>Functions</h3></div></div> | ||
100 | - | ||
101 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.Strophe.Builder"></a>Strophe.<wbr>Builder</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Builder = function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder object.</p><p>The attributes should be passed in object notation. For example</p><blockquote><pre>var b = new Builder('message', {to: 'you', from: 'me'});</pre></blockquote><p>or</p><blockquote><pre>var b = new Builder('messsage', {'xml:lang': 'en'});</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name of the root element.</td></tr><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The attributes for the root element in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder.</p></div></div></div> | ||
102 | - | ||
103 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.tree"></a>tree</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>tree: function ()</td></tr></table></blockquote><p>Return the DOM tree.</p><p>This function returns the current DOM tree as an element object. This is suitable for passing to functions like Strophe.Connection.send().</p><h4 class=CHeading>Returns</h4><p>The DOM tree as a element object.</p></div></div></div> | ||
104 | - | ||
105 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.toString"></a>toString</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>toString: function ()</td></tr></table></blockquote><p>Serialize the DOM tree to a String.</p><p>This function returns a string serialization of the current DOM tree. It is often used internally to pass data to a Strophe.Request object.</p><h4 class=CHeading>Returns</h4><p>The serialized DOM tree in a String.</p></div></div></div> | ||
106 | - | ||
107 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.up"></a>up</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>up: function ()</td></tr></table></blockquote><p>Make the current parent element the new current element.</p><p>This function is often used after c() to traverse back up the tree. For example, to add two children to the same element</p><blockquote><pre>builder.c('child1', {}).up().c('child2', {});</pre></blockquote><h4 class=CHeading>Returns</h4><p>The Stophe.Builder object.</p></div></div></div> | ||
108 | - | ||
109 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.attrs"></a>attrs</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attrs: function (</td><td class=PParameter nowrap>moreattrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add or modify attributes of the current element.</p><p>The attributes should be passed in object notation. This function does not move the current element pointer.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) moreattrs</td><td class=CDLDescription>The attributes to add/modify in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div> | ||
110 | - | ||
111 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.c"></a>c</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>c: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a child to the current element and make it the new current element.</p><p>This function moves the current element pointer to the child. If you need to add another child, it is necessary to use up() to go back to the parent in the tree.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name of the child.</td></tr><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The attributes of the child in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div> | ||
112 | - | ||
113 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.cnode"></a>cnode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>cnode: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a child to the current element and make it the new current element.</p><p>This function is the same as c() except that instead of using a name and an attributes object to create the child it uses an existing DOM element object.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div> | ||
114 | - | ||
115 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.t"></a>t</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>t: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a child text element.</p><p>This <b>does not</b> make the child the new current element since there are no children of text elements.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>The text data to append to the current element.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div> | ||
116 | - | ||
117 | -<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="Strophe.Connection"></a>Strophe.<wbr>Connection</h2><div class=CBody><p>XMPP Connection manager.</p><p>Thie class is the main part of Strophe. It manages a BOSH connection to an XMPP server and dispatches events to the user callbacks as data arrives. It supports SASL PLAIN, SASL DIGEST-MD5, and legacy authentication.</p><p>After creating a Strophe.Connection object, the user will typically call connect() with a user supplied callback to handle connection level events like authentication failure, disconnection, or connection complete.</p><p>The user will also have several event handlers defined by using addHandler() and addTimedHandler(). These will allow the user code to respond to interesting stanzas or do something periodically with the connection. These handlers will be active once authentication is finished.</p><p>To send data to the connection, use send().</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Strophe.Connection.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.Strophe.Connection" id=link84 onMouseOver="ShowTip(event, 'tt35', 'link84')" onMouseOut="HideTip('tt35')">Strophe.<wbr>Connection</a></td><td class=SDescription>Create and initialize a Strophe.Connection object.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.reset" id=link85 onMouseOver="ShowTip(event, 'tt36', 'link85')" onMouseOut="HideTip('tt36')">reset</a></td><td class=SDescription>Reset the connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.pause" id=link86 onMouseOver="ShowTip(event, 'tt37', 'link86')" onMouseOut="HideTip('tt37')">pause</a></td><td class=SDescription>Pause the request manager.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.resume" id=link87 onMouseOver="ShowTip(event, 'tt38', 'link87')" onMouseOut="HideTip('tt38')">resume</a></td><td class=SDescription>Resume the request manager.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.getUniqueId" id=link88 onMouseOver="ShowTip(event, 'tt39', 'link88')" onMouseOut="HideTip('tt39')">getUniqueId</a></td><td class=SDescription>Generate a unique ID for use in <iq/> elements.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.connect" id=link89 onMouseOver="ShowTip(event, 'tt40', 'link89')" onMouseOut="HideTip('tt40')">connect</a></td><td class=SDescription>Starts the connection process.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.attach" id=link90 onMouseOver="ShowTip(event, 'tt41', 'link90')" onMouseOut="HideTip('tt41')">attach</a></td><td class=SDescription>Attach to an already created and authenticated BOSH session.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.xmlInput" id=link91 onMouseOver="ShowTip(event, 'tt42', 'link91')" onMouseOut="HideTip('tt42')">xmlInput</a></td><td class=SDescription>User overrideable function that receives XML data coming into the connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.xmlOutput" id=link92 onMouseOver="ShowTip(event, 'tt43', 'link92')" onMouseOut="HideTip('tt43')">xmlOutput</a></td><td class=SDescription>User overrideable function that receives XML data sent to the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.rawInput" id=link93 onMouseOver="ShowTip(event, 'tt44', 'link93')" onMouseOut="HideTip('tt44')">rawInput</a></td><td class=SDescription>User overrideable function that receives raw data coming into the connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.rawOutput" id=link94 onMouseOver="ShowTip(event, 'tt45', 'link94')" onMouseOut="HideTip('tt45')">rawOutput</a></td><td class=SDescription>User overrideable function that receives raw data sent to the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.send" id=link95 onMouseOver="ShowTip(event, 'tt46', 'link95')" onMouseOut="HideTip('tt46')">send</a></td><td class=SDescription>Send a stanza.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.flush" id=link96 onMouseOver="ShowTip(event, 'tt47', 'link96')" onMouseOut="HideTip('tt47')">flush</a></td><td class=SDescription>Immediately send any pending outgoing data.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.sendIQ" id=link97 onMouseOver="ShowTip(event, 'tt48', 'link97')" onMouseOut="HideTip('tt48')">sendIQ</a></td><td class=SDescription>Helper function to send IQ stanzas.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.addTimedHandler" id=link98 onMouseOver="ShowTip(event, 'tt49', 'link98')" onMouseOut="HideTip('tt49')">addTimedHandler</a></td><td class=SDescription>Add a timed handler to the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.deleteTimedHandler" id=link99 onMouseOver="ShowTip(event, 'tt50', 'link99')" onMouseOut="HideTip('tt50')">deleteTimedHandler</a></td><td class=SDescription>Delete a timed handler for a connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.addHandler" id=link100 onMouseOver="ShowTip(event, 'tt51', 'link100')" onMouseOut="HideTip('tt51')">addHandler</a></td><td class=SDescription>Add a stanza handler for the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.deleteHandler" id=link101 onMouseOver="ShowTip(event, 'tt52', 'link101')" onMouseOut="HideTip('tt52')">deleteHandler</a></td><td class=SDescription>Delete a stanza handler for a connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.disconnect" id=link102 onMouseOver="ShowTip(event, 'tt53', 'link102')" onMouseOut="HideTip('tt53')">disconnect</a></td><td class=SDescription>Start the graceful disconnection process.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> | ||
118 | - | ||
119 | -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.Functions"></a>Functions</h3></div></div> | ||
120 | - | ||
121 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.Strophe.Connection"></a>Strophe.<wbr>Connection</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Connection = function (</td><td class=PParameter nowrap>service</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create and initialize a Strophe.Connection object.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) service</td><td class=CDLDescription>The BOSH service URL.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Connection object.</p></div></div></div> | ||
122 | - | ||
123 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.reset"></a>reset</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>reset: function ()</td></tr></table></blockquote><p>Reset the connection.</p><p>This function should be called after a connection is disconnected before that connection is reused.</p></div></div></div> | ||
124 | - | ||
125 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.pause"></a>pause</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>pause: function ()</td></tr></table></blockquote><p>Pause the request manager.</p><p>This will prevent Strophe from sending any more requests to the server. This is very useful for temporarily pausing while a lot of send() calls are happening quickly. This causes Strophe to send the data in a single request, saving many request trips.</p></div></div></div> | ||
126 | - | ||
127 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.resume"></a>resume</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>resume: function ()</td></tr></table></blockquote><p>Resume the request manager.</p><p>This resumes after pause() has been called.</p></div></div></div> | ||
128 | - | ||
129 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.getUniqueId"></a>getUniqueId</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getUniqueId: function (</td><td class=PParameter nowrap>suffix</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Generate a unique ID for use in <iq/> elements.</p><p>All <iq/> stanzas are required to have unique id attributes. This function makes creating these easy. Each connection instance has a counter which starts from zero, and the value of this counter plus a colon followed by the suffix becomes the unique id. If no suffix is supplied, the counter is used as the unique id.</p><p>Suffixes are used to make debugging easier when reading the stream data, and their use is recommended. The counter resets to 0 for every new connection for the same reason. For connections to the same server that authenticate the same way, all the ids should be the same, which makes it easy to see changes. This is useful for automated testing as well.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) suffix</td><td class=CDLDescription>A optional suffix to append to the id.</td></tr></table><h4 class=CHeading>Returns</h4><p>A unique string to be used for the id attribute.</p></div></div></div> | ||
130 | - | ||
131 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.connect"></a>connect</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>connect: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>pass,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Starts the connection process.</p><p>As the connection process proceeds, the user supplied callback will be triggered multiple times with status updates. The callback should take two arguments - the status code and the error condition.</p><p>The status code will be one of the values in the Strophe.Status constants. The error condition will be one of the conditions defined in RFC 3920 or the condition ‘strophe-parsererror’.</p><p>Please see XEP 124 for a more detailed explanation of the optional parameters below.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>The user’s JID. This may be a bare JID, or a full JID. If a node is not supplied, SASL ANONYMOUS authentication will be attempted.</td></tr><tr><td class=CDLEntry>(String) pass</td><td class=CDLDescription>The user’s password. (Function) callback The connect callback function.</td></tr><tr><td class=CDLEntry>(Integer) wait</td><td class=CDLDescription>The optional HTTPBIND wait value. This is the time the server will wait before returning an empty result for a request. The default setting of 60 seconds is recommended. Other settings will require tweaks to the Strophe.TIMEOUT value.</td></tr><tr><td class=CDLEntry>(Integer) hold</td><td class=CDLDescription>The optional HTTPBIND hold value. This is the number of connections the server will hold at one time. This should almost always be set to 1 (the default).</td></tr></table></div></div></div> | ||
132 | - | ||
133 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.attach"></a>attach</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attach: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>sid,</td></tr><tr><td></td><td class=PParameter nowrap>rid,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold,</td></tr><tr><td></td><td class=PParameter nowrap>wind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Attach to an already created and authenticated BOSH session.</p><p>This function is provided to allow Strophe to attach to BOSH sessions which have been created externally, perhaps by a Web application. This is often used to support auto-login type features without putting user credentials into the page.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>The full JID that is bound by the session.</td></tr><tr><td class=CDLEntry>(String) sid</td><td class=CDLDescription>The SID of the BOSH session.</td></tr><tr><td class=CDLEntry>(String) rid</td><td class=CDLDescription>The current RID of the BOSH session. This RID will be used by the next request. (Function) callback The connect callback function.</td></tr><tr><td class=CDLEntry>(Integer) wait</td><td class=CDLDescription>The optional HTTPBIND wait value. This is the time the server will wait before returning an empty result for a request. The default setting of 60 seconds is recommended. Other settings will require tweaks to the Strophe.TIMEOUT value.</td></tr><tr><td class=CDLEntry>(Integer) hold</td><td class=CDLDescription>The optional HTTPBIND hold value. This is the number of connections the server will hold at one time. This should almost always be set to 1 (the default).</td></tr><tr><td class=CDLEntry>(Integer) wind</td><td class=CDLDescription>The optional HTTBIND window value. This is the allowed range of request ids that are valid. The default is 5.</td></tr></table></div></div></div> | ||
134 | - | ||
135 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.xmlInput"></a>xmlInput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlInput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives XML data coming into the connection.</p><p>The default function does nothing. User code can override this with</p><blockquote><pre>Strophe.Connection.xmlInput = function (elem) { | ||
136 | - (user code) | ||
137 | -};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The XML data received by the connection.</td></tr></table></div></div></div> | ||
138 | - | ||
139 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.xmlOutput"></a>xmlOutput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlOutput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives XML data sent to the connection.</p><p>The default function does nothing. User code can override this with</p><blockquote><pre>Strophe.Connection.xmlOutput = function (elem) { | ||
140 | - (user code) | ||
141 | -};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The XMLdata sent by the connection.</td></tr></table></div></div></div> | ||
142 | - | ||
143 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.rawInput"></a>rawInput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawInput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives raw data coming into the connection.</p><p>The default function does nothing. User code can override this with</p><blockquote><pre>Strophe.Connection.rawInput = function (data) { | ||
144 | - (user code) | ||
145 | -};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) data</td><td class=CDLDescription>The data received by the connection.</td></tr></table></div></div></div> | ||
146 | - | ||
147 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.rawOutput"></a>rawOutput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawOutput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives raw data sent to the connection.</p><p>The default function does nothing. User code can override this with</p><blockquote><pre>Strophe.Connection.rawOutput = function (data) { | ||
148 | - (user code) | ||
149 | -};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) data</td><td class=CDLDescription>The data sent by the connection.</td></tr></table></div></div></div> | ||
150 | - | ||
151 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.send"></a>send</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>send: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Send a stanza.</p><p>This function is called to push data onto the send queue to go out over the wire. Whenever a request is sent to the BOSH server, all pending data is sent and the queue is flushed.</p><h4 class=CHeading>Parameters</h4><p>(XMLElement | [XMLElement] | Strophe.Builder) elem - The stanza to send.</p></div></div></div> | ||
152 | - | ||
153 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.flush"></a>flush</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>flush: function ()</td></tr></table></blockquote><p>Immediately send any pending outgoing data.</p><p>Normally send() queues outgoing data until the next idle period (100ms), which optimizes network use in the common cases when several send()s are called in succession. flush() can be used to immediately send all pending data.</p></div></div></div> | ||
154 | - | ||
155 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.sendIQ"></a>sendIQ</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>sendIQ: function(</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>errback,</td></tr><tr><td></td><td class=PParameter nowrap>timeout</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Helper function to send IQ stanzas.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The stanza to send.</td></tr><tr><td class=CDLEntry>(Function) callback</td><td class=CDLDescription>The callback function for a successful request.</td></tr><tr><td class=CDLEntry>(Function) errback</td><td class=CDLDescription>The callback function for a failed or timed out request. On timeout, the stanza will be null.</td></tr><tr><td class=CDLEntry>(Integer) timeout</td><td class=CDLDescription>The time specified in milliseconds for a timeout to occur.</td></tr></table><h4 class=CHeading>Returns</h4><p>The id used to send the IQ.</p></div></div></div> | ||
156 | - | ||
157 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.addTimedHandler"></a>addTimedHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addTimedHandler: function (</td><td class=PParameter nowrap>period,</td></tr><tr><td></td><td class=PParameter nowrap>handler</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a timed handler to the connection.</p><p>This function adds a timed handler. The provided handler will be called every period milliseconds until it returns false, the connection is terminated, or the handler is removed. Handlers that wish to continue being invoked should return true.</p><p>Because of method binding it is necessary to save the result of this function if you wish to remove a handler with deleteTimedHandler().</p><p>Note that user handlers are not active until authentication is successful.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Integer) period</td><td class=CDLDescription>The period of the handler.</td></tr><tr><td class=CDLEntry>(Function) handler</td><td class=CDLDescription>The callback function.</td></tr></table><h4 class=CHeading>Returns</h4><p>A reference to the handler that can be used to remove it.</p></div></div></div> | ||
158 | - | ||
159 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.deleteTimedHandler"></a>deleteTimedHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteTimedHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Delete a timed handler for a connection.</p><p>This function removes a timed handler from the connection. The handRef parameter is <b>not</b> the function passed to addTimedHandler(), but is the reference returned from addTimedHandler().</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Strophe.TimedHandler) handRef</td><td class=CDLDescription>The handler reference.</td></tr></table></div></div></div> | ||
160 | - | ||
161 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.addHandler"></a>addHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addHandler: function (</td><td class=PParameter nowrap>handler,</td></tr><tr><td></td><td class=PParameter nowrap>ns,</td></tr><tr><td></td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>type,</td></tr><tr><td></td><td class=PParameter nowrap>id,</td></tr><tr><td></td><td class=PParameter nowrap>from,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a stanza handler for the connection.</p><p>This function adds a stanza handler to the connection. The handler callback will be called for any stanza that matches the parameters. Note that if multiple parameters are supplied, they must all match for the handler to be invoked.</p><p>The handler will receive the stanza that triggered it as its argument. The handler should return true if it is to be invoked again; returning false will remove the handler after it returns.</p><p>As a convenience, the ns parameters applies to the top level element and also any of its immediate children. This is primarily to make matching /iq/query elements easy.</p><p>The options argument contains handler matching flags that affect how matches are determined. Currently the only flag is matchBare (a boolean). When matchBare is true, the from parameter and the from attribute on the stanza will be matched as bare JIDs instead of full JIDs. To use this, pass {matchBare: true} as the value of options. The default value for matchBare is false.</p><p>The return value should be saved if you wish to remove the handler with deleteHandler().</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Function) handler</td><td class=CDLDescription>The user callback.</td></tr><tr><td class=CDLEntry>(String) ns</td><td class=CDLDescription>The namespace to match.</td></tr><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The stanza name to match.</td></tr><tr><td class=CDLEntry>(String) type</td><td class=CDLDescription>The stanza type attribute to match.</td></tr><tr><td class=CDLEntry>(String) id</td><td class=CDLDescription>The stanza id attribute to match.</td></tr><tr><td class=CDLEntry>(String) from</td><td class=CDLDescription>The stanza from attribute to match.</td></tr><tr><td class=CDLEntry>(String) options</td><td class=CDLDescription>The handler options</td></tr></table><h4 class=CHeading>Returns</h4><p>A reference to the handler that can be used to remove it.</p></div></div></div> | ||
162 | - | ||
163 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.deleteHandler"></a>deleteHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Delete a stanza handler for a connection.</p><p>This function removes a stanza handler from the connection. The handRef parameter is <b>not</b> the function passed to addHandler(), but is the reference returned from addHandler().</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Strophe.Handler) handRef</td><td class=CDLDescription>The handler reference.</td></tr></table></div></div></div> | ||
164 | - | ||
165 | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.disconnect"></a>disconnect</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>disconnect: function (</td><td class=PParameter nowrap>reason</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Start the graceful disconnection process.</p><p>This function starts the disconnection process. This process starts by sending unavailable presence and sending BOSH body of type terminate. A timeout handler makes sure that disconnection happens even if the BOSH server does not respond.</p><p>The user supplied connection callback will be notified of the progress as this process happens.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) reason</td><td class=CDLDescription>The reason the disconnect is occuring.</td></tr></table></div></div></div> | ||
166 | - | ||
167 | -</div><!--Content--> | ||
168 | - | ||
169 | - | ||
170 | -<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer--> | ||
171 | - | ||
172 | - | ||
173 | -<div id=Menu><div class=MEntry><div class=MFile id=MSelected>js</div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Functions.html">Functions</a></div></div></div></div></div><script type="text/javascript"><!-- | ||
174 | -var searchPanel = new SearchPanel("searchPanel", "HTML", "../search"); | ||
175 | ---></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu--> | ||
176 | - | ||
177 | - | ||
178 | - | ||
179 | -<!--START_ND_TOOLTIPS--> | ||
180 | -<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $build(</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $msg(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with a message/ element as the root.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $iq(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with an iq/ element as the root.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $pres(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with a presence/ element as the root.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addNamespace: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>This function is used to extend the current namespaces in Strophe.NS. </div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>forEachChild: function (</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>elemName,</td></tr><tr><td></td><td class=PParameter nowrap>func</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Map a function over some or all child elements of a given element.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>isTagEqual: function (</td><td class=PParameter nowrap>el,</td></tr><tr><td></td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Compare an element’s tag name with a string.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlElement: function (</td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create an XML DOM element.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlescape: function(</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Excapes invalid xml characters.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlTextNode: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Creates an XML DOM text node.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getText: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the concatenation of all text children of an element.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>copyElement: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Copy an XML DOM element.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>escapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Escape the node part (also called local part) of a JID.</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>unescapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Unescape a node part (also called local part) of a JID.</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getNodeFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the node portion of a JID String.</div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getDomainFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the domain portion of a JID String.</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getResourceFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the resource portion of a JID String.</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getBareJidFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the bare JID from a JID String.</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>log: function (</td><td class=PParameter nowrap>level,</td></tr><tr><td></td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable logging function.</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>debug: function(</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.DEBUG level.</div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>info: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.INFO level.</div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>warn: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.WARN level.</div></div><div class=CToolTip id="tt23"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>error: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.ERROR level.</div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>fatal: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.FATAL level.</div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>serialize: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Render a DOM element and all descendants to a String.</div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addConnectionPlugin: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>ptype</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Extends the Strophe.Connection object with the given plugin.</div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Builder = function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder object.</div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>tree: function ()</td></tr></table></blockquote>Return the DOM tree.</div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>toString: function ()</td></tr></table></blockquote>Serialize the DOM tree to a String.</div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>up: function ()</td></tr></table></blockquote>Make the current parent element the new current element.</div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attrs: function (</td><td class=PParameter nowrap>moreattrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add or modify attributes of the current element.</div></div><div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>c: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child to the current element and make it the new current element.</div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>cnode: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child to the current element and make it the new current element.</div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>t: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child text element.</div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Connection = function (</td><td class=PParameter nowrap>service</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create and initialize a Strophe.Connection object.</div></div><div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>reset: function ()</td></tr></table></blockquote>Reset the connection.</div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>pause: function ()</td></tr></table></blockquote>Pause the request manager.</div></div><div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>resume: function ()</td></tr></table></blockquote>Resume the request manager.</div></div><div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getUniqueId: function (</td><td class=PParameter nowrap>suffix</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Generate a unique ID for use in iq/ elements.</div></div><div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>connect: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>pass,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Starts the connection process.</div></div><div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attach: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>sid,</td></tr><tr><td></td><td class=PParameter nowrap>rid,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold,</td></tr><tr><td></td><td class=PParameter nowrap>wind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Attach to an already created and authenticated BOSH session.</div></div><div class=CToolTip id="tt42"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlInput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives XML data coming into the connection.</div></div><div class=CToolTip id="tt43"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlOutput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives XML data sent to the connection.</div></div><div class=CToolTip id="tt44"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawInput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives raw data coming into the connection.</div></div><div class=CToolTip id="tt45"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawOutput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives raw data sent to the connection.</div></div><div class=CToolTip id="tt46"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>send: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Send a stanza.</div></div><div class=CToolTip id="tt47"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>flush: function ()</td></tr></table></blockquote>Immediately send any pending outgoing data.</div></div><div class=CToolTip id="tt48"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>sendIQ: function(</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>errback,</td></tr><tr><td></td><td class=PParameter nowrap>timeout</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Helper function to send IQ stanzas.</div></div><div class=CToolTip id="tt49"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addTimedHandler: function (</td><td class=PParameter nowrap>period,</td></tr><tr><td></td><td class=PParameter nowrap>handler</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a timed handler to the connection.</div></div><div class=CToolTip id="tt50"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteTimedHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a timed handler for a connection.</div></div><div class=CToolTip id="tt51"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addHandler: function (</td><td class=PParameter nowrap>handler,</td></tr><tr><td></td><td class=PParameter nowrap>ns,</td></tr><tr><td></td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>type,</td></tr><tr><td></td><td class=PParameter nowrap>id,</td></tr><tr><td></td><td class=PParameter nowrap>from,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a stanza handler for the connection.</div></div><div class=CToolTip id="tt52"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a stanza handler for a connection.</div></div><div class=CToolTip id="tt53"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>disconnect: function (</td><td class=PParameter nowrap>reason</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Start the graceful disconnection process.</div></div><!--END_ND_TOOLTIPS--> | ||
181 | - | ||
182 | - | ||
183 | - | ||
184 | - | ||
185 | -<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div> | ||
186 | - | ||
187 | - | ||
188 | -<script language=JavaScript><!-- | ||
189 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
190 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/index.html
public/javascripts/strophejs-1.0.1/doc/javascript/main.js
@@ -1,836 +0,0 @@ | @@ -1,836 +0,0 @@ | ||
1 | -// This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure | ||
2 | -// Natural Docs is licensed under the GPL | ||
3 | - | ||
4 | - | ||
5 | -// | ||
6 | -// Browser Styles | ||
7 | -// ____________________________________________________________________________ | ||
8 | - | ||
9 | -var agt=navigator.userAgent.toLowerCase(); | ||
10 | -var browserType; | ||
11 | -var browserVer; | ||
12 | - | ||
13 | -if (agt.indexOf("opera") != -1) | ||
14 | - { | ||
15 | - browserType = "Opera"; | ||
16 | - | ||
17 | - if (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1) | ||
18 | - { browserVer = "Opera7"; } | ||
19 | - else if (agt.indexOf("opera 8") != -1 || agt.indexOf("opera/8") != -1) | ||
20 | - { browserVer = "Opera8"; } | ||
21 | - else if (agt.indexOf("opera 9") != -1 || agt.indexOf("opera/9") != -1) | ||
22 | - { browserVer = "Opera9"; } | ||
23 | - } | ||
24 | - | ||
25 | -else if (agt.indexOf("applewebkit") != -1) | ||
26 | - { | ||
27 | - browserType = "Safari"; | ||
28 | - | ||
29 | - if (agt.indexOf("version/3") != -1) | ||
30 | - { browserVer = "Safari3"; } | ||
31 | - else if (agt.indexOf("safari/4") != -1) | ||
32 | - { browserVer = "Safari2"; } | ||
33 | - } | ||
34 | - | ||
35 | -else if (agt.indexOf("khtml") != -1) | ||
36 | - { | ||
37 | - browserType = "Konqueror"; | ||
38 | - } | ||
39 | - | ||
40 | -else if (agt.indexOf("msie") != -1) | ||
41 | - { | ||
42 | - browserType = "IE"; | ||
43 | - | ||
44 | - if (agt.indexOf("msie 6") != -1) | ||
45 | - { browserVer = "IE6"; } | ||
46 | - else if (agt.indexOf("msie 7") != -1) | ||
47 | - { browserVer = "IE7"; } | ||
48 | - } | ||
49 | - | ||
50 | -else if (agt.indexOf("gecko") != -1) | ||
51 | - { | ||
52 | - browserType = "Firefox"; | ||
53 | - | ||
54 | - if (agt.indexOf("rv:1.7") != -1) | ||
55 | - { browserVer = "Firefox1"; } | ||
56 | - else if (agt.indexOf("rv:1.8)") != -1 || agt.indexOf("rv:1.8.0") != -1) | ||
57 | - { browserVer = "Firefox15"; } | ||
58 | - else if (agt.indexOf("rv:1.8.1") != -1) | ||
59 | - { browserVer = "Firefox2"; } | ||
60 | - } | ||
61 | - | ||
62 | - | ||
63 | -// | ||
64 | -// Support Functions | ||
65 | -// ____________________________________________________________________________ | ||
66 | - | ||
67 | - | ||
68 | -function GetXPosition(item) | ||
69 | - { | ||
70 | - var position = 0; | ||
71 | - | ||
72 | - if (item.offsetWidth != null) | ||
73 | - { | ||
74 | - while (item != document.body && item != null) | ||
75 | - { | ||
76 | - position += item.offsetLeft; | ||
77 | - item = item.offsetParent; | ||
78 | - }; | ||
79 | - }; | ||
80 | - | ||
81 | - return position; | ||
82 | - }; | ||
83 | - | ||
84 | - | ||
85 | -function GetYPosition(item) | ||
86 | - { | ||
87 | - var position = 0; | ||
88 | - | ||
89 | - if (item.offsetWidth != null) | ||
90 | - { | ||
91 | - while (item != document.body && item != null) | ||
92 | - { | ||
93 | - position += item.offsetTop; | ||
94 | - item = item.offsetParent; | ||
95 | - }; | ||
96 | - }; | ||
97 | - | ||
98 | - return position; | ||
99 | - }; | ||
100 | - | ||
101 | - | ||
102 | -function MoveToPosition(item, x, y) | ||
103 | - { | ||
104 | - // Opera 5 chokes on the px extension, so it can use the Microsoft one instead. | ||
105 | - | ||
106 | - if (item.style.left != null) | ||
107 | - { | ||
108 | - item.style.left = x + "px"; | ||
109 | - item.style.top = y + "px"; | ||
110 | - } | ||
111 | - else if (item.style.pixelLeft != null) | ||
112 | - { | ||
113 | - item.style.pixelLeft = x; | ||
114 | - item.style.pixelTop = y; | ||
115 | - }; | ||
116 | - }; | ||
117 | - | ||
118 | - | ||
119 | -// | ||
120 | -// Menu | ||
121 | -// ____________________________________________________________________________ | ||
122 | - | ||
123 | - | ||
124 | -function ToggleMenu(id) | ||
125 | - { | ||
126 | - if (!window.document.getElementById) | ||
127 | - { return; }; | ||
128 | - | ||
129 | - var display = window.document.getElementById(id).style.display; | ||
130 | - | ||
131 | - if (display == "none") | ||
132 | - { display = "block"; } | ||
133 | - else | ||
134 | - { display = "none"; } | ||
135 | - | ||
136 | - window.document.getElementById(id).style.display = display; | ||
137 | - } | ||
138 | - | ||
139 | -function HideAllBut(ids, max) | ||
140 | - { | ||
141 | - if (document.getElementById) | ||
142 | - { | ||
143 | - ids.sort( function(a,b) { return a - b; } ); | ||
144 | - var number = 1; | ||
145 | - | ||
146 | - while (number < max) | ||
147 | - { | ||
148 | - if (ids.length > 0 && number == ids[0]) | ||
149 | - { ids.shift(); } | ||
150 | - else | ||
151 | - { | ||
152 | - document.getElementById("MGroupContent" + number).style.display = "none"; | ||
153 | - }; | ||
154 | - | ||
155 | - number++; | ||
156 | - }; | ||
157 | - }; | ||
158 | - } | ||
159 | - | ||
160 | - | ||
161 | -// | ||
162 | -// Tooltips | ||
163 | -// ____________________________________________________________________________ | ||
164 | - | ||
165 | - | ||
166 | -var tooltipTimer = 0; | ||
167 | - | ||
168 | -function ShowTip(event, tooltipID, linkID) | ||
169 | - { | ||
170 | - if (tooltipTimer) | ||
171 | - { clearTimeout(tooltipTimer); }; | ||
172 | - | ||
173 | - var docX = event.clientX + window.pageXOffset; | ||
174 | - var docY = event.clientY + window.pageYOffset; | ||
175 | - | ||
176 | - var showCommand = "ReallyShowTip('" + tooltipID + "', '" + linkID + "', " + docX + ", " + docY + ")"; | ||
177 | - | ||
178 | - tooltipTimer = setTimeout(showCommand, 1000); | ||
179 | - } | ||
180 | - | ||
181 | -function ReallyShowTip(tooltipID, linkID, docX, docY) | ||
182 | - { | ||
183 | - tooltipTimer = 0; | ||
184 | - | ||
185 | - var tooltip; | ||
186 | - var link; | ||
187 | - | ||
188 | - if (document.getElementById) | ||
189 | - { | ||
190 | - tooltip = document.getElementById(tooltipID); | ||
191 | - link = document.getElementById(linkID); | ||
192 | - } | ||
193 | -/* else if (document.all) | ||
194 | - { | ||
195 | - tooltip = eval("document.all['" + tooltipID + "']"); | ||
196 | - link = eval("document.all['" + linkID + "']"); | ||
197 | - } | ||
198 | -*/ | ||
199 | - if (tooltip) | ||
200 | - { | ||
201 | - var left = GetXPosition(link); | ||
202 | - var top = GetYPosition(link); | ||
203 | - top += link.offsetHeight; | ||
204 | - | ||
205 | - | ||
206 | - // The fallback method is to use the mouse X and Y relative to the document. We use a separate if and test if its a number | ||
207 | - // in case some browser snuck through the above if statement but didn't support everything. | ||
208 | - | ||
209 | - if (!isFinite(top) || top == 0) | ||
210 | - { | ||
211 | - left = docX; | ||
212 | - top = docY; | ||
213 | - } | ||
214 | - | ||
215 | - // Some spacing to get it out from under the cursor. | ||
216 | - | ||
217 | - top += 10; | ||
218 | - | ||
219 | - // Make sure the tooltip doesnt get smushed by being too close to the edge, or in some browsers, go off the edge of the | ||
220 | - // page. We do it here because Konqueror does get offsetWidth right even if it doesnt get the positioning right. | ||
221 | - | ||
222 | - if (tooltip.offsetWidth != null) | ||
223 | - { | ||
224 | - var width = tooltip.offsetWidth; | ||
225 | - var docWidth = document.body.clientWidth; | ||
226 | - | ||
227 | - if (left + width > docWidth) | ||
228 | - { left = docWidth - width - 1; } | ||
229 | - | ||
230 | - // If there's a horizontal scroll bar we could go past zero because it's using the page width, not the window width. | ||
231 | - if (left < 0) | ||
232 | - { left = 0; }; | ||
233 | - } | ||
234 | - | ||
235 | - MoveToPosition(tooltip, left, top); | ||
236 | - tooltip.style.visibility = "visible"; | ||
237 | - } | ||
238 | - } | ||
239 | - | ||
240 | -function HideTip(tooltipID) | ||
241 | - { | ||
242 | - if (tooltipTimer) | ||
243 | - { | ||
244 | - clearTimeout(tooltipTimer); | ||
245 | - tooltipTimer = 0; | ||
246 | - } | ||
247 | - | ||
248 | - var tooltip; | ||
249 | - | ||
250 | - if (document.getElementById) | ||
251 | - { tooltip = document.getElementById(tooltipID); } | ||
252 | - else if (document.all) | ||
253 | - { tooltip = eval("document.all['" + tooltipID + "']"); } | ||
254 | - | ||
255 | - if (tooltip) | ||
256 | - { tooltip.style.visibility = "hidden"; } | ||
257 | - } | ||
258 | - | ||
259 | - | ||
260 | -// | ||
261 | -// Blockquote fix for IE | ||
262 | -// ____________________________________________________________________________ | ||
263 | - | ||
264 | - | ||
265 | -function NDOnLoad() | ||
266 | - { | ||
267 | - if (browserVer == "IE6") | ||
268 | - { | ||
269 | - var scrollboxes = document.getElementsByTagName('blockquote'); | ||
270 | - | ||
271 | - if (scrollboxes.item(0)) | ||
272 | - { | ||
273 | - NDDoResize(); | ||
274 | - window.onresize=NDOnResize; | ||
275 | - }; | ||
276 | - }; | ||
277 | - }; | ||
278 | - | ||
279 | - | ||
280 | -var resizeTimer = 0; | ||
281 | - | ||
282 | -function NDOnResize() | ||
283 | - { | ||
284 | - if (resizeTimer != 0) | ||
285 | - { clearTimeout(resizeTimer); }; | ||
286 | - | ||
287 | - resizeTimer = setTimeout(NDDoResize, 250); | ||
288 | - }; | ||
289 | - | ||
290 | - | ||
291 | -function NDDoResize() | ||
292 | - { | ||
293 | - var scrollboxes = document.getElementsByTagName('blockquote'); | ||
294 | - | ||
295 | - var i; | ||
296 | - var item; | ||
297 | - | ||
298 | - i = 0; | ||
299 | - while (item = scrollboxes.item(i)) | ||
300 | - { | ||
301 | - item.style.width = 100; | ||
302 | - i++; | ||
303 | - }; | ||
304 | - | ||
305 | - i = 0; | ||
306 | - while (item = scrollboxes.item(i)) | ||
307 | - { | ||
308 | - item.style.width = item.parentNode.offsetWidth; | ||
309 | - i++; | ||
310 | - }; | ||
311 | - | ||
312 | - clearTimeout(resizeTimer); | ||
313 | - resizeTimer = 0; | ||
314 | - } | ||
315 | - | ||
316 | - | ||
317 | - | ||
318 | -/* ________________________________________________________________________________________________________ | ||
319 | - | ||
320 | - Class: SearchPanel | ||
321 | - ________________________________________________________________________________________________________ | ||
322 | - | ||
323 | - A class handling everything associated with the search panel. | ||
324 | - | ||
325 | - Parameters: | ||
326 | - | ||
327 | - name - The name of the global variable that will be storing this instance. Is needed to be able to set timeouts. | ||
328 | - mode - The mode the search is going to work in. Pass <NaturalDocs::Builder::Base->CommandLineOption()>, so the | ||
329 | - value will be something like "HTML" or "FramedHTML". | ||
330 | - | ||
331 | - ________________________________________________________________________________________________________ | ||
332 | -*/ | ||
333 | - | ||
334 | - | ||
335 | -function SearchPanel(name, mode, resultsPath) | ||
336 | - { | ||
337 | - if (!name || !mode || !resultsPath) | ||
338 | - { alert("Incorrect parameters to SearchPanel."); }; | ||
339 | - | ||
340 | - | ||
341 | - // Group: Variables | ||
342 | - // ________________________________________________________________________ | ||
343 | - | ||
344 | - /* | ||
345 | - var: name | ||
346 | - The name of the global variable that will be storing this instance of the class. | ||
347 | - */ | ||
348 | - this.name = name; | ||
349 | - | ||
350 | - /* | ||
351 | - var: mode | ||
352 | - The mode the search is going to work in, such as "HTML" or "FramedHTML". | ||
353 | - */ | ||
354 | - this.mode = mode; | ||
355 | - | ||
356 | - /* | ||
357 | - var: resultsPath | ||
358 | - The relative path from the current HTML page to the results page directory. | ||
359 | - */ | ||
360 | - this.resultsPath = resultsPath; | ||
361 | - | ||
362 | - /* | ||
363 | - var: keyTimeout | ||
364 | - The timeout used between a keystroke and when a search is performed. | ||
365 | - */ | ||
366 | - this.keyTimeout = 0; | ||
367 | - | ||
368 | - /* | ||
369 | - var: keyTimeoutLength | ||
370 | - The length of <keyTimeout> in thousandths of a second. | ||
371 | - */ | ||
372 | - this.keyTimeoutLength = 500; | ||
373 | - | ||
374 | - /* | ||
375 | - var: lastSearchValue | ||
376 | - The last search string executed, or an empty string if none. | ||
377 | - */ | ||
378 | - this.lastSearchValue = ""; | ||
379 | - | ||
380 | - /* | ||
381 | - var: lastResultsPage | ||
382 | - The last results page. The value is only relevant if <lastSearchValue> is set. | ||
383 | - */ | ||
384 | - this.lastResultsPage = ""; | ||
385 | - | ||
386 | - /* | ||
387 | - var: deactivateTimeout | ||
388 | - | ||
389 | - The timeout used between when a control is deactivated and when the entire panel is deactivated. Is necessary | ||
390 | - because a control may be deactivated in favor of another control in the same panel, in which case it should stay | ||
391 | - active. | ||
392 | - */ | ||
393 | - this.deactivateTimout = 0; | ||
394 | - | ||
395 | - /* | ||
396 | - var: deactivateTimeoutLength | ||
397 | - The length of <deactivateTimeout> in thousandths of a second. | ||
398 | - */ | ||
399 | - this.deactivateTimeoutLength = 200; | ||
400 | - | ||
401 | - | ||
402 | - | ||
403 | - | ||
404 | - // Group: DOM Elements | ||
405 | - // ________________________________________________________________________ | ||
406 | - | ||
407 | - | ||
408 | - // Function: DOMSearchField | ||
409 | - this.DOMSearchField = function() | ||
410 | - { return document.getElementById("MSearchField"); }; | ||
411 | - | ||
412 | - // Function: DOMSearchType | ||
413 | - this.DOMSearchType = function() | ||
414 | - { return document.getElementById("MSearchType"); }; | ||
415 | - | ||
416 | - // Function: DOMPopupSearchResults | ||
417 | - this.DOMPopupSearchResults = function() | ||
418 | - { return document.getElementById("MSearchResults"); }; | ||
419 | - | ||
420 | - // Function: DOMPopupSearchResultsWindow | ||
421 | - this.DOMPopupSearchResultsWindow = function() | ||
422 | - { return document.getElementById("MSearchResultsWindow"); }; | ||
423 | - | ||
424 | - // Function: DOMSearchPanel | ||
425 | - this.DOMSearchPanel = function() | ||
426 | - { return document.getElementById("MSearchPanel"); }; | ||
427 | - | ||
428 | - | ||
429 | - | ||
430 | - | ||
431 | - // Group: Event Handlers | ||
432 | - // ________________________________________________________________________ | ||
433 | - | ||
434 | - | ||
435 | - /* | ||
436 | - Function: OnSearchFieldFocus | ||
437 | - Called when focus is added or removed from the search field. | ||
438 | - */ | ||
439 | - this.OnSearchFieldFocus = function(isActive) | ||
440 | - { | ||
441 | - this.Activate(isActive); | ||
442 | - }; | ||
443 | - | ||
444 | - | ||
445 | - /* | ||
446 | - Function: OnSearchFieldChange | ||
447 | - Called when the content of the search field is changed. | ||
448 | - */ | ||
449 | - this.OnSearchFieldChange = function() | ||
450 | - { | ||
451 | - if (this.keyTimeout) | ||
452 | - { | ||
453 | - clearTimeout(this.keyTimeout); | ||
454 | - this.keyTimeout = 0; | ||
455 | - }; | ||
456 | - | ||
457 | - var searchValue = this.DOMSearchField().value.replace(/ +/g, ""); | ||
458 | - | ||
459 | - if (searchValue != this.lastSearchValue) | ||
460 | - { | ||
461 | - if (searchValue != "") | ||
462 | - { | ||
463 | - this.keyTimeout = setTimeout(this.name + ".Search()", this.keyTimeoutLength); | ||
464 | - } | ||
465 | - else | ||
466 | - { | ||
467 | - if (this.mode == "HTML") | ||
468 | - { this.DOMPopupSearchResultsWindow().style.display = "none"; }; | ||
469 | - this.lastSearchValue = ""; | ||
470 | - }; | ||
471 | - }; | ||
472 | - }; | ||
473 | - | ||
474 | - | ||
475 | - /* | ||
476 | - Function: OnSearchTypeFocus | ||
477 | - Called when focus is added or removed from the search type. | ||
478 | - */ | ||
479 | - this.OnSearchTypeFocus = function(isActive) | ||
480 | - { | ||
481 | - this.Activate(isActive); | ||
482 | - }; | ||
483 | - | ||
484 | - | ||
485 | - /* | ||
486 | - Function: OnSearchTypeChange | ||
487 | - Called when the search type is changed. | ||
488 | - */ | ||
489 | - this.OnSearchTypeChange = function() | ||
490 | - { | ||
491 | - var searchValue = this.DOMSearchField().value.replace(/ +/g, ""); | ||
492 | - | ||
493 | - if (searchValue != "") | ||
494 | - { | ||
495 | - this.Search(); | ||
496 | - }; | ||
497 | - }; | ||
498 | - | ||
499 | - | ||
500 | - | ||
501 | - // Group: Action Functions | ||
502 | - // ________________________________________________________________________ | ||
503 | - | ||
504 | - | ||
505 | - /* | ||
506 | - Function: CloseResultsWindow | ||
507 | - Closes the results window. | ||
508 | - */ | ||
509 | - this.CloseResultsWindow = function() | ||
510 | - { | ||
511 | - this.DOMPopupSearchResultsWindow().style.display = "none"; | ||
512 | - this.Activate(false, true); | ||
513 | - }; | ||
514 | - | ||
515 | - | ||
516 | - /* | ||
517 | - Function: Search | ||
518 | - Performs a search. | ||
519 | - */ | ||
520 | - this.Search = function() | ||
521 | - { | ||
522 | - this.keyTimeout = 0; | ||
523 | - | ||
524 | - var searchValue = this.DOMSearchField().value.replace(/^ +/, ""); | ||
525 | - var searchTopic = this.DOMSearchType().value; | ||
526 | - | ||
527 | - var pageExtension = searchValue.substr(0,1); | ||
528 | - | ||
529 | - if (pageExtension.match(/^[a-z]/i)) | ||
530 | - { pageExtension = pageExtension.toUpperCase(); } | ||
531 | - else if (pageExtension.match(/^[0-9]/)) | ||
532 | - { pageExtension = 'Numbers'; } | ||
533 | - else | ||
534 | - { pageExtension = "Symbols"; }; | ||
535 | - | ||
536 | - var resultsPage; | ||
537 | - var resultsPageWithSearch; | ||
538 | - var hasResultsPage; | ||
539 | - | ||
540 | - // indexSectionsWithContent is defined in searchdata.js | ||
541 | - if (indexSectionsWithContent[searchTopic][pageExtension] == true) | ||
542 | - { | ||
543 | - resultsPage = this.resultsPath + '/' + searchTopic + pageExtension + '.html'; | ||
544 | - resultsPageWithSearch = resultsPage+'?'+escape(searchValue); | ||
545 | - hasResultsPage = true; | ||
546 | - } | ||
547 | - else | ||
548 | - { | ||
549 | - resultsPage = this.resultsPath + '/NoResults.html'; | ||
550 | - resultsPageWithSearch = resultsPage; | ||
551 | - hasResultsPage = false; | ||
552 | - }; | ||
553 | - | ||
554 | - var resultsFrame; | ||
555 | - if (this.mode == "HTML") | ||
556 | - { resultsFrame = window.frames.MSearchResults; } | ||
557 | - else if (this.mode == "FramedHTML") | ||
558 | - { resultsFrame = window.top.frames['Content']; }; | ||
559 | - | ||
560 | - | ||
561 | - if (resultsPage != this.lastResultsPage || | ||
562 | - | ||
563 | - // Bug in IE. If everything becomes hidden in a run, none of them will be able to be reshown in the next for some | ||
564 | - // reason. It counts the right number of results, and you can even read the display as "block" after setting it, but it | ||
565 | - // just doesn't work in IE 6 or IE 7. So if we're on the right page but the previous search had no results, reload the | ||
566 | - // page anyway to get around the bug. | ||
567 | - (browserType == "IE" && hasResultsPage && | ||
568 | - (!resultsFrame.searchResults || resultsFrame.searchResults.lastMatchCount == 0)) ) | ||
569 | - | ||
570 | - { | ||
571 | - resultsFrame.location.href = resultsPageWithSearch; | ||
572 | - } | ||
573 | - | ||
574 | - // So if the results page is right and there's no IE bug, reperform the search on the existing page. We have to check if there | ||
575 | - // are results because NoResults.html doesn't have any JavaScript, and it would be useless to do anything on that page even | ||
576 | - // if it did. | ||
577 | - else if (hasResultsPage) | ||
578 | - { | ||
579 | - // We need to check if this exists in case the frame is present but didn't finish loading. | ||
580 | - if (resultsFrame.searchResults) | ||
581 | - { resultsFrame.searchResults.Search(searchValue); } | ||
582 | - | ||
583 | - // Otherwise just reload instead of waiting. | ||
584 | - else | ||
585 | - { resultsFrame.location.href = resultsPageWithSearch; }; | ||
586 | - }; | ||
587 | - | ||
588 | - | ||
589 | - var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow(); | ||
590 | - | ||
591 | - if (this.mode == "HTML" && domPopupSearchResultsWindow.style.display != "block") | ||
592 | - { | ||
593 | - var domSearchType = this.DOMSearchType(); | ||
594 | - | ||
595 | - var left = GetXPosition(domSearchType); | ||
596 | - var top = GetYPosition(domSearchType) + domSearchType.offsetHeight; | ||
597 | - | ||
598 | - MoveToPosition(domPopupSearchResultsWindow, left, top); | ||
599 | - domPopupSearchResultsWindow.style.display = 'block'; | ||
600 | - }; | ||
601 | - | ||
602 | - | ||
603 | - this.lastSearchValue = searchValue; | ||
604 | - this.lastResultsPage = resultsPage; | ||
605 | - }; | ||
606 | - | ||
607 | - | ||
608 | - | ||
609 | - // Group: Activation Functions | ||
610 | - // Functions that handle whether the entire panel is active or not. | ||
611 | - // ________________________________________________________________________ | ||
612 | - | ||
613 | - | ||
614 | - /* | ||
615 | - Function: Activate | ||
616 | - | ||
617 | - Activates or deactivates the search panel, resetting things to their default values if necessary. You can call this on every | ||
618 | - control's OnBlur() and it will handle not deactivating the entire panel when focus is just switching between them transparently. | ||
619 | - | ||
620 | - Parameters: | ||
621 | - | ||
622 | - isActive - Whether you're activating or deactivating the panel. | ||
623 | - ignoreDeactivateDelay - Set if you're positive the action will deactivate the panel and thus want to skip the delay. | ||
624 | - */ | ||
625 | - this.Activate = function(isActive, ignoreDeactivateDelay) | ||
626 | - { | ||
627 | - // We want to ignore isActive being false while the results window is open. | ||
628 | - if (isActive || (this.mode == "HTML" && this.DOMPopupSearchResultsWindow().style.display == "block")) | ||
629 | - { | ||
630 | - if (this.inactivateTimeout) | ||
631 | - { | ||
632 | - clearTimeout(this.inactivateTimeout); | ||
633 | - this.inactivateTimeout = 0; | ||
634 | - }; | ||
635 | - | ||
636 | - this.DOMSearchPanel().className = 'MSearchPanelActive'; | ||
637 | - | ||
638 | - var searchField = this.DOMSearchField(); | ||
639 | - | ||
640 | - if (searchField.value == 'Search') | ||
641 | - { searchField.value = ""; } | ||
642 | - } | ||
643 | - else if (!ignoreDeactivateDelay) | ||
644 | - { | ||
645 | - this.inactivateTimeout = setTimeout(this.name + ".InactivateAfterTimeout()", this.inactivateTimeoutLength); | ||
646 | - } | ||
647 | - else | ||
648 | - { | ||
649 | - this.InactivateAfterTimeout(); | ||
650 | - }; | ||
651 | - }; | ||
652 | - | ||
653 | - | ||
654 | - /* | ||
655 | - Function: InactivateAfterTimeout | ||
656 | - | ||
657 | - Called by <inactivateTimeout>, which is set by <Activate()>. Inactivation occurs on a timeout because a control may | ||
658 | - receive OnBlur() when focus is really transferring to another control in the search panel. In this case we don't want to | ||
659 | - actually deactivate the panel because not only would that cause a visible flicker but it could also reset the search value. | ||
660 | - So by doing it on a timeout instead, there's a short period where the second control's OnFocus() can cancel the deactivation. | ||
661 | - */ | ||
662 | - this.InactivateAfterTimeout = function() | ||
663 | - { | ||
664 | - this.inactivateTimeout = 0; | ||
665 | - | ||
666 | - this.DOMSearchPanel().className = 'MSearchPanelInactive'; | ||
667 | - this.DOMSearchField().value = "Search"; | ||
668 | - | ||
669 | - this.lastSearchValue = ""; | ||
670 | - this.lastResultsPage = ""; | ||
671 | - }; | ||
672 | - }; | ||
673 | - | ||
674 | - | ||
675 | - | ||
676 | - | ||
677 | -/* ________________________________________________________________________________________________________ | ||
678 | - | ||
679 | - Class: SearchResults | ||
680 | - _________________________________________________________________________________________________________ | ||
681 | - | ||
682 | - The class that handles everything on the search results page. | ||
683 | - _________________________________________________________________________________________________________ | ||
684 | -*/ | ||
685 | - | ||
686 | - | ||
687 | -function SearchResults(name, mode) | ||
688 | - { | ||
689 | - /* | ||
690 | - var: mode | ||
691 | - The mode the search is going to work in, such as "HTML" or "FramedHTML". | ||
692 | - */ | ||
693 | - this.mode = mode; | ||
694 | - | ||
695 | - /* | ||
696 | - var: lastMatchCount | ||
697 | - The number of matches from the last run of <Search()>. | ||
698 | - */ | ||
699 | - this.lastMatchCount = 0; | ||
700 | - | ||
701 | - | ||
702 | - /* | ||
703 | - Function: Toggle | ||
704 | - Toggles the visibility of the passed element ID. | ||
705 | - */ | ||
706 | - this.Toggle = function(id) | ||
707 | - { | ||
708 | - if (this.mode == "FramedHTML") | ||
709 | - { return; }; | ||
710 | - | ||
711 | - var parentElement = document.getElementById(id); | ||
712 | - | ||
713 | - var element = parentElement.firstChild; | ||
714 | - | ||
715 | - while (element && element != parentElement) | ||
716 | - { | ||
717 | - if (element.nodeName == 'DIV' && element.className == 'ISubIndex') | ||
718 | - { | ||
719 | - if (element.style.display == 'block') | ||
720 | - { element.style.display = "none"; } | ||
721 | - else | ||
722 | - { element.style.display = 'block'; } | ||
723 | - }; | ||
724 | - | ||
725 | - if (element.nodeName == 'DIV' && element.hasChildNodes()) | ||
726 | - { element = element.firstChild; } | ||
727 | - else if (element.nextSibling) | ||
728 | - { element = element.nextSibling; } | ||
729 | - else | ||
730 | - { | ||
731 | - do | ||
732 | - { | ||
733 | - element = element.parentNode; | ||
734 | - } | ||
735 | - while (element && element != parentElement && !element.nextSibling); | ||
736 | - | ||
737 | - if (element && element != parentElement) | ||
738 | - { element = element.nextSibling; }; | ||
739 | - }; | ||
740 | - }; | ||
741 | - }; | ||
742 | - | ||
743 | - | ||
744 | - /* | ||
745 | - Function: Search | ||
746 | - | ||
747 | - Searches for the passed string. If there is no parameter, it takes it from the URL query. | ||
748 | - | ||
749 | - Always returns true, since other documents may try to call it and that may or may not be possible. | ||
750 | - */ | ||
751 | - this.Search = function(search) | ||
752 | - { | ||
753 | - if (!search) | ||
754 | - { | ||
755 | - search = window.location.search; | ||
756 | - search = search.substring(1); // Remove the leading ? | ||
757 | - search = unescape(search); | ||
758 | - }; | ||
759 | - | ||
760 | - search = search.replace(/^ +/, ""); | ||
761 | - search = search.replace(/ +$/, ""); | ||
762 | - search = search.toLowerCase(); | ||
763 | - | ||
764 | - if (search.match(/[^a-z0-9]/)) // Just a little speedup so it doesn't have to go through the below unnecessarily. | ||
765 | - { | ||
766 | - search = search.replace(/\_/g, "_und"); | ||
767 | - search = search.replace(/\ +/gi, "_spc"); | ||
768 | - search = search.replace(/\~/g, "_til"); | ||
769 | - search = search.replace(/\!/g, "_exc"); | ||
770 | - search = search.replace(/\@/g, "_att"); | ||
771 | - search = search.replace(/\#/g, "_num"); | ||
772 | - search = search.replace(/\$/g, "_dol"); | ||
773 | - search = search.replace(/\%/g, "_pct"); | ||
774 | - search = search.replace(/\^/g, "_car"); | ||
775 | - search = search.replace(/\&/g, "_amp"); | ||
776 | - search = search.replace(/\*/g, "_ast"); | ||
777 | - search = search.replace(/\(/g, "_lpa"); | ||
778 | - search = search.replace(/\)/g, "_rpa"); | ||
779 | - search = search.replace(/\-/g, "_min"); | ||
780 | - search = search.replace(/\+/g, "_plu"); | ||
781 | - search = search.replace(/\=/g, "_equ"); | ||
782 | - search = search.replace(/\{/g, "_lbc"); | ||
783 | - search = search.replace(/\}/g, "_rbc"); | ||
784 | - search = search.replace(/\[/g, "_lbk"); | ||
785 | - search = search.replace(/\]/g, "_rbk"); | ||
786 | - search = search.replace(/\:/g, "_col"); | ||
787 | - search = search.replace(/\;/g, "_sco"); | ||
788 | - search = search.replace(/\"/g, "_quo"); | ||
789 | - search = search.replace(/\'/g, "_apo"); | ||
790 | - search = search.replace(/\</g, "_lan"); | ||
791 | - search = search.replace(/\>/g, "_ran"); | ||
792 | - search = search.replace(/\,/g, "_com"); | ||
793 | - search = search.replace(/\./g, "_per"); | ||
794 | - search = search.replace(/\?/g, "_que"); | ||
795 | - search = search.replace(/\//g, "_sla"); | ||
796 | - search = search.replace(/[^a-z0-9\_]i/gi, "_zzz"); | ||
797 | - }; | ||
798 | - | ||
799 | - var resultRows = document.getElementsByTagName("div"); | ||
800 | - var matches = 0; | ||
801 | - | ||
802 | - var i = 0; | ||
803 | - while (i < resultRows.length) | ||
804 | - { | ||
805 | - var row = resultRows.item(i); | ||
806 | - | ||
807 | - if (row.className == "SRResult") | ||
808 | - { | ||
809 | - var rowMatchName = row.id.toLowerCase(); | ||
810 | - rowMatchName = rowMatchName.replace(/^sr\d*_/, ''); | ||
811 | - | ||
812 | - if (search.length <= rowMatchName.length && rowMatchName.substr(0, search.length) == search) | ||
813 | - { | ||
814 | - row.style.display = "block"; | ||
815 | - matches++; | ||
816 | - } | ||
817 | - else | ||
818 | - { row.style.display = "none"; }; | ||
819 | - }; | ||
820 | - | ||
821 | - i++; | ||
822 | - }; | ||
823 | - | ||
824 | - document.getElementById("Searching").style.display="none"; | ||
825 | - | ||
826 | - if (matches == 0) | ||
827 | - { document.getElementById("NoMatches").style.display="block"; } | ||
828 | - else | ||
829 | - { document.getElementById("NoMatches").style.display="none"; } | ||
830 | - | ||
831 | - this.lastMatchCount = matches; | ||
832 | - | ||
833 | - return true; | ||
834 | - }; | ||
835 | - }; | ||
836 | - |
public/javascripts/strophejs-1.0.1/doc/javascript/searchdata.js
@@ -1,152 +0,0 @@ | @@ -1,152 +0,0 @@ | ||
1 | -var indexSectionsWithContent = { | ||
2 | - "General": { | ||
3 | - "Symbols": true, | ||
4 | - "Numbers": false, | ||
5 | - "A": true, | ||
6 | - "B": true, | ||
7 | - "C": true, | ||
8 | - "D": true, | ||
9 | - "E": true, | ||
10 | - "F": true, | ||
11 | - "G": true, | ||
12 | - "H": true, | ||
13 | - "I": true, | ||
14 | - "J": false, | ||
15 | - "K": false, | ||
16 | - "L": true, | ||
17 | - "M": true, | ||
18 | - "N": false, | ||
19 | - "O": false, | ||
20 | - "P": true, | ||
21 | - "Q": false, | ||
22 | - "R": true, | ||
23 | - "S": true, | ||
24 | - "T": true, | ||
25 | - "U": true, | ||
26 | - "V": true, | ||
27 | - "W": true, | ||
28 | - "X": true, | ||
29 | - "Y": false, | ||
30 | - "Z": false | ||
31 | - }, | ||
32 | - "Functions": { | ||
33 | - "Symbols": true, | ||
34 | - "Numbers": false, | ||
35 | - "A": true, | ||
36 | - "B": true, | ||
37 | - "C": true, | ||
38 | - "D": true, | ||
39 | - "E": true, | ||
40 | - "F": true, | ||
41 | - "G": true, | ||
42 | - "H": false, | ||
43 | - "I": true, | ||
44 | - "J": false, | ||
45 | - "K": false, | ||
46 | - "L": true, | ||
47 | - "M": false, | ||
48 | - "N": false, | ||
49 | - "O": false, | ||
50 | - "P": true, | ||
51 | - "Q": false, | ||
52 | - "R": true, | ||
53 | - "S": true, | ||
54 | - "T": true, | ||
55 | - "U": true, | ||
56 | - "V": false, | ||
57 | - "W": true, | ||
58 | - "X": true, | ||
59 | - "Y": false, | ||
60 | - "Z": false | ||
61 | - }, | ||
62 | - "Files": { | ||
63 | - "Symbols": false, | ||
64 | - "Numbers": false, | ||
65 | - "A": false, | ||
66 | - "B": false, | ||
67 | - "C": false, | ||
68 | - "D": false, | ||
69 | - "E": false, | ||
70 | - "F": false, | ||
71 | - "G": false, | ||
72 | - "H": false, | ||
73 | - "I": false, | ||
74 | - "J": false, | ||
75 | - "K": false, | ||
76 | - "L": false, | ||
77 | - "M": false, | ||
78 | - "N": false, | ||
79 | - "O": false, | ||
80 | - "P": false, | ||
81 | - "Q": false, | ||
82 | - "R": false, | ||
83 | - "S": true, | ||
84 | - "T": false, | ||
85 | - "U": false, | ||
86 | - "V": false, | ||
87 | - "W": false, | ||
88 | - "X": false, | ||
89 | - "Y": false, | ||
90 | - "Z": false | ||
91 | - }, | ||
92 | - "Constants": { | ||
93 | - "Symbols": false, | ||
94 | - "Numbers": false, | ||
95 | - "A": true, | ||
96 | - "B": true, | ||
97 | - "C": true, | ||
98 | - "D": true, | ||
99 | - "E": true, | ||
100 | - "F": true, | ||
101 | - "G": false, | ||
102 | - "H": true, | ||
103 | - "I": true, | ||
104 | - "J": false, | ||
105 | - "K": false, | ||
106 | - "L": true, | ||
107 | - "M": true, | ||
108 | - "N": false, | ||
109 | - "O": false, | ||
110 | - "P": true, | ||
111 | - "Q": false, | ||
112 | - "R": true, | ||
113 | - "S": true, | ||
114 | - "T": false, | ||
115 | - "U": false, | ||
116 | - "V": true, | ||
117 | - "W": true, | ||
118 | - "X": true, | ||
119 | - "Y": false, | ||
120 | - "Z": false | ||
121 | - }, | ||
122 | - "Classes": { | ||
123 | - "Symbols": false, | ||
124 | - "Numbers": false, | ||
125 | - "A": false, | ||
126 | - "B": false, | ||
127 | - "C": false, | ||
128 | - "D": false, | ||
129 | - "E": false, | ||
130 | - "F": false, | ||
131 | - "G": false, | ||
132 | - "H": false, | ||
133 | - "I": false, | ||
134 | - "J": false, | ||
135 | - "K": false, | ||
136 | - "L": false, | ||
137 | - "M": false, | ||
138 | - "N": false, | ||
139 | - "O": false, | ||
140 | - "P": false, | ||
141 | - "Q": false, | ||
142 | - "R": false, | ||
143 | - "S": true, | ||
144 | - "T": false, | ||
145 | - "U": false, | ||
146 | - "V": false, | ||
147 | - "W": false, | ||
148 | - "X": false, | ||
149 | - "Y": false, | ||
150 | - "Z": false | ||
151 | - } | ||
152 | - } | ||
153 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ClassesS.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_Strophe><div class=IEntry><a href="../files/core-js.html#Strophe" target=_parent class=ISymbol>Strophe</a></div></div><div class=SRResult id=SR_Strophe_perBuilder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder" target=_parent class=ISymbol>Strophe.<wbr>Builder</a></div></div><div class=SRResult id=SR_Strophe_perConnection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection" target=_parent class=ISymbol>Strophe.<wbr>Connection</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsA.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_ATTACHED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.ATTACHED" target=_parent class=ISymbol>ATTACHED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_AUTH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.AUTH" target=_parent class=ISymbol>AUTH</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_AUTHENTICATING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHENTICATING" target=_parent class=ISymbol>AUTHENTICATING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_AUTHFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHFAIL" target=_parent class=ISymbol>AUTHFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsB.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_BIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BIND" target=_parent class=ISymbol>BIND</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_BOSH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BOSH" target=_parent class=ISymbol>BOSH</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsC.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_CLIENT><div class=IEntry><a href="../files/core-js.html#Strophe.NS.CLIENT" target=_parent class=ISymbol>CLIENT</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_CONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTED" target=_parent class=ISymbol>CONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_CONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTING" target=_parent class=ISymbol>CONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_Connection_spcStatus_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Connection_Status_Constants" target=_parent class=ISymbol>Connection Status Constants</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_CONNFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNFAIL" target=_parent class=ISymbol>CONNFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsD.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_DEBUG><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.DEBUG" target=_parent class=ISymbol>DEBUG</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_DISCO_undINFO><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_INFO" target=_parent class=ISymbol>DISCO_INFO</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_DISCO_undITEMS><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_ITEMS" target=_parent class=ISymbol>DISCO_ITEMS</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_DISCONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTED" target=_parent class=ISymbol>DISCONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_DISCONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTING" target=_parent class=ISymbol>DISCONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsE.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_ERROR><div class=IEntry><a href="javascript:searchResults.Toggle('SR_ERROR')" class=ISymbol>ERROR</a><div class=ISubIndex><a href="../files/core-js.html#Strophe.LogLevel.ERROR" target=_parent class=IParent>Strophe.<wbr>LogLevel</a><a href="../files/core-js.html#Strophe.Status.ERROR" target=_parent class=IParent>Strophe.<wbr>Status</a></div></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsF.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_FATAL><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.FATAL" target=_parent class=ISymbol>FATAL</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsH.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_HTTPBIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.HTTPBIND" target=_parent class=ISymbol>HTTPBIND</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsI.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_INFO><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.INFO" target=_parent class=ISymbol>INFO</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsL.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_Log_spcLevel_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Log_Level_Constants" target=_parent class=ISymbol>Log Level Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsM.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_MUC><div class=IEntry><a href="../files/core-js.html#Strophe.NS.MUC" target=_parent class=ISymbol>MUC</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsP.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_PROFILE><div class=IEntry><a href="../files/core-js.html#Strophe.NS.PROFILE" target=_parent class=ISymbol>PROFILE</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsR.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_ROSTER><div class=IEntry><a href="../files/core-js.html#Strophe.NS.ROSTER" target=_parent class=ISymbol>ROSTER</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsS.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_SASL><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SASL" target=_parent class=ISymbol>SASL</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_SESSION><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SESSION" target=_parent class=ISymbol>SESSION</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_STREAM><div class=IEntry><a href="../files/core-js.html#Strophe.NS.STREAM" target=_parent class=ISymbol>STREAM</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsV.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_VERSION><div class=IEntry><a href="../files/core-js.html#Strophe.VERSION" target=_parent class=ISymbol>VERSION</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsW.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_WARN><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.WARN" target=_parent class=ISymbol>WARN</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/ConstantsX.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_XMPP_spcNamespace_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.XMPP_Namespace_Constants" target=_parent class=ISymbol>XMPP Namespace Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FilesS.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_strophe_perjs><div class=IEntry><a href="../files/core-js.html#strophe.js" target=_parent class=ISymbol>strophe.js</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsA.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_addConnectionPlugin><div class=IEntry><a href="../files/core-js.html#Strophe.addConnectionPlugin" target=_parent class=ISymbol>addConnectionPlugin</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addHandler" target=_parent class=ISymbol>addHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_addNamespace><div class=IEntry><a href="../files/core-js.html#Strophe.addNamespace" target=_parent class=ISymbol>addNamespace</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addTimedHandler" target=_parent class=ISymbol>addTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_attach><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.attach" target=_parent class=ISymbol>attach</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_attrs><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.attrs" target=_parent class=ISymbol>attrs</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsB.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_Builder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.Strophe.Builder" target=_parent class=ISymbol>Builder</a>, <span class=IParent>Strophe.<wbr>Builder.<wbr>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsC.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_c><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.c" target=_parent class=ISymbol>c</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_cnode><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.cnode" target=_parent class=ISymbol>cnode</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_connect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.connect" target=_parent class=ISymbol>connect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_Connection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.Strophe.Connection" target=_parent class=ISymbol>Connection</a>, <span class=IParent>Strophe.<wbr>Connection.<wbr>Strophe</span></div></div><div class=SRResult id=SR_copyElement><div class=IEntry><a href="../files/core-js.html#Strophe.copyElement" target=_parent class=ISymbol>copyElement</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsD.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_debug><div class=IEntry><a href="../files/core-js.html#Strophe.debug" target=_parent class=ISymbol>debug</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_deleteHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteHandler" target=_parent class=ISymbol>deleteHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_deleteTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteTimedHandler" target=_parent class=ISymbol>deleteTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_disconnect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.disconnect" target=_parent class=ISymbol>disconnect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsE.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_error><div class=IEntry><a href="../files/core-js.html#Strophe.error" target=_parent class=ISymbol>error</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_escapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.escapeNode" target=_parent class=ISymbol>escapeNode</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsF.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_fatal><div class=IEntry><a href="../files/core-js.html#Strophe.fatal" target=_parent class=ISymbol>fatal</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_flush><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.flush" target=_parent class=ISymbol>flush</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_forEachChild><div class=IEntry><a href="../files/core-js.html#Strophe.forEachChild" target=_parent class=ISymbol>forEachChild</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsG.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_getBareJidFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getBareJidFromJid" target=_parent class=ISymbol>getBareJidFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getDomainFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getDomainFromJid" target=_parent class=ISymbol>getDomainFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getNodeFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getNodeFromJid" target=_parent class=ISymbol>getNodeFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getResourceFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getResourceFromJid" target=_parent class=ISymbol>getResourceFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getText><div class=IEntry><a href="../files/core-js.html#Strophe.getText" target=_parent class=ISymbol>getText</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getUniqueId><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.getUniqueId" target=_parent class=ISymbol>getUniqueId</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsI.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_info><div class=IEntry><a href="../files/core-js.html#Strophe.info" target=_parent class=ISymbol>info</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_isTagEqual><div class=IEntry><a href="../files/core-js.html#Strophe.isTagEqual" target=_parent class=ISymbol>isTagEqual</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsL.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_log><div class=IEntry><a href="../files/core-js.html#Strophe.log" target=_parent class=ISymbol>log</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsP.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_pause><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.pause" target=_parent class=ISymbol>pause</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsR.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_rawInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawInput" target=_parent class=ISymbol>rawInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_rawOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawOutput" target=_parent class=ISymbol>rawOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_reset><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.reset" target=_parent class=ISymbol>reset</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_resume><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.resume" target=_parent class=ISymbol>resume</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsS.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_send><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.send" target=_parent class=ISymbol>send</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_sendIQ><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.sendIQ" target=_parent class=ISymbol>sendIQ</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_serialize><div class=IEntry><a href="../files/core-js.html#Strophe.serialize" target=_parent class=ISymbol>serialize</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsSymbols.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR__dolbuild><div class=IEntry><a href="../files/core-js.html#$build" target=_parent class=ISymbol>$build</a></div></div><div class=SRResult id=SR__doliq><div class=IEntry><a href="../files/core-js.html#$iq" target=_parent class=ISymbol>$iq</a></div></div><div class=SRResult id=SR__dolmsg><div class=IEntry><a href="../files/core-js.html#$msg" target=_parent class=ISymbol>$msg</a></div></div><div class=SRResult id=SR__dolpres><div class=IEntry><a href="../files/core-js.html#$pres" target=_parent class=ISymbol>$pres</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsT.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_t><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.t" target=_parent class=ISymbol>t</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_toString><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.toString" target=_parent class=ISymbol>toString</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_tree><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.tree" target=_parent class=ISymbol>tree</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsU.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_unescapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.unescapeNode" target=_parent class=ISymbol>unescapeNode</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_up><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.up" target=_parent class=ISymbol>up</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsW.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_warn><div class=IEntry><a href="../files/core-js.html#Strophe.warn" target=_parent class=ISymbol>warn</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/FunctionsX.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_xmlElement><div class=IEntry><a href="../files/core-js.html#Strophe.xmlElement" target=_parent class=ISymbol>xmlElement</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlescape><div class=IEntry><a href="../files/core-js.html#Strophe.xmlescape" target=_parent class=ISymbol>xmlescape</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlInput" target=_parent class=ISymbol>xmlInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlOutput" target=_parent class=ISymbol>xmlOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlTextNode><div class=IEntry><a href="../files/core-js.html#Strophe.xmlTextNode" target=_parent class=ISymbol>xmlTextNode</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralA.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_addConnectionPlugin><div class=IEntry><a href="../files/core-js.html#Strophe.addConnectionPlugin" target=_parent class=ISymbol>addConnectionPlugin</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addHandler" target=_parent class=ISymbol>addHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_addNamespace><div class=IEntry><a href="../files/core-js.html#Strophe.addNamespace" target=_parent class=ISymbol>addNamespace</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addTimedHandler" target=_parent class=ISymbol>addTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_attach><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.attach" target=_parent class=ISymbol>attach</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_ATTACHED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.ATTACHED" target=_parent class=ISymbol>ATTACHED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_attrs><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.attrs" target=_parent class=ISymbol>attrs</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_AUTH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.AUTH" target=_parent class=ISymbol>AUTH</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_AUTHENTICATING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHENTICATING" target=_parent class=ISymbol>AUTHENTICATING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_AUTHFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHFAIL" target=_parent class=ISymbol>AUTHFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralB.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_BIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BIND" target=_parent class=ISymbol>BIND</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_BOSH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BOSH" target=_parent class=ISymbol>BOSH</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_Builder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.Strophe.Builder" target=_parent class=ISymbol>Builder</a>, <span class=IParent>Strophe.<wbr>Builder.<wbr>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralC.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_c><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.c" target=_parent class=ISymbol>c</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_CLIENT><div class=IEntry><a href="../files/core-js.html#Strophe.NS.CLIENT" target=_parent class=ISymbol>CLIENT</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_cnode><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.cnode" target=_parent class=ISymbol>cnode</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_connect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.connect" target=_parent class=ISymbol>connect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_CONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTED" target=_parent class=ISymbol>CONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_CONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTING" target=_parent class=ISymbol>CONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_Connection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.Strophe.Connection" target=_parent class=ISymbol>Connection</a>, <span class=IParent>Strophe.<wbr>Connection.<wbr>Strophe</span></div></div><div class=SRResult id=SR_Connection_spcStatus_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Connection_Status_Constants" target=_parent class=ISymbol>Connection Status Constants</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_CONNFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNFAIL" target=_parent class=ISymbol>CONNFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_Constants><div class=IEntry><a href="../files/core-js.html#Strophe.Constants" target=_parent class=ISymbol>Constants</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_copyElement><div class=IEntry><a href="../files/core-js.html#Strophe.copyElement" target=_parent class=ISymbol>copyElement</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralD.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_debug><div class=IEntry><a href="../files/core-js.html#Strophe.debug" target=_parent class=ISymbol>debug</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_DEBUG><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.DEBUG" target=_parent class=ISymbol>DEBUG</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_deleteHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteHandler" target=_parent class=ISymbol>deleteHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_deleteTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteTimedHandler" target=_parent class=ISymbol>deleteTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_DISCO_undINFO><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_INFO" target=_parent class=ISymbol>DISCO_INFO</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_DISCO_undITEMS><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_ITEMS" target=_parent class=ISymbol>DISCO_ITEMS</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_disconnect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.disconnect" target=_parent class=ISymbol>disconnect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_DISCONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTED" target=_parent class=ISymbol>DISCONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_DISCONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTING" target=_parent class=ISymbol>DISCONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralE.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_error><div class=IEntry><a href="../files/core-js.html#Strophe.error" target=_parent class=ISymbol>error</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_ERROR><div class=IEntry><a href="javascript:searchResults.Toggle('SR2_ERROR')" class=ISymbol>ERROR</a><div class=ISubIndex><a href="../files/core-js.html#Strophe.LogLevel.ERROR" target=_parent class=IParent>Strophe.<wbr>LogLevel</a><a href="../files/core-js.html#Strophe.Status.ERROR" target=_parent class=IParent>Strophe.<wbr>Status</a></div></div></div><div class=SRResult id=SR_escapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.escapeNode" target=_parent class=ISymbol>escapeNode</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralF.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_fatal><div class=IEntry><a href="../files/core-js.html#Strophe.fatal" target=_parent class=ISymbol>fatal</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_FATAL><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.FATAL" target=_parent class=ISymbol>FATAL</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_flush><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.flush" target=_parent class=ISymbol>flush</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_forEachChild><div class=IEntry><a href="../files/core-js.html#Strophe.forEachChild" target=_parent class=ISymbol>forEachChild</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_Functions><div class=IEntry><a href="javascript:searchResults.Toggle('SR_Functions')" class=ISymbol>Functions</a><div class=ISubIndex><a href="../files/core-js.html#Functions" target=_parent class=IParent>Global</a><a href="../files/core-js.html#Strophe.Functions" target=_parent class=IParent>Strophe</a><a href="../files/core-js.html#Strophe.Builder.Functions" target=_parent class=IParent>Strophe.<wbr>Builder</a><a href="../files/core-js.html#Strophe.Connection.Functions" target=_parent class=IParent>Strophe.<wbr>Connection</a></div></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralG.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_getBareJidFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getBareJidFromJid" target=_parent class=ISymbol>getBareJidFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getDomainFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getDomainFromJid" target=_parent class=ISymbol>getDomainFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getNodeFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getNodeFromJid" target=_parent class=ISymbol>getNodeFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getResourceFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getResourceFromJid" target=_parent class=ISymbol>getResourceFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getText><div class=IEntry><a href="../files/core-js.html#Strophe.getText" target=_parent class=ISymbol>getText</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getUniqueId><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.getUniqueId" target=_parent class=ISymbol>getUniqueId</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralH.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_HTTPBIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.HTTPBIND" target=_parent class=ISymbol>HTTPBIND</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralI.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_info><div class=IEntry><a href="../files/core-js.html#Strophe.info" target=_parent class=ISymbol>info</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_INFO><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.INFO" target=_parent class=ISymbol>INFO</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_isTagEqual><div class=IEntry><a href="../files/core-js.html#Strophe.isTagEqual" target=_parent class=ISymbol>isTagEqual</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralL.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_log><div class=IEntry><a href="../files/core-js.html#Strophe.log" target=_parent class=ISymbol>log</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_Log_spcLevel_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Log_Level_Constants" target=_parent class=ISymbol>Log Level Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralM.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_MUC><div class=IEntry><a href="../files/core-js.html#Strophe.NS.MUC" target=_parent class=ISymbol>MUC</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralP.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_pause><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.pause" target=_parent class=ISymbol>pause</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_PROFILE><div class=IEntry><a href="../files/core-js.html#Strophe.NS.PROFILE" target=_parent class=ISymbol>PROFILE</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralR.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_rawInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawInput" target=_parent class=ISymbol>rawInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_rawOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawOutput" target=_parent class=ISymbol>rawOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_reset><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.reset" target=_parent class=ISymbol>reset</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_resume><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.resume" target=_parent class=ISymbol>resume</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_ROSTER><div class=IEntry><a href="../files/core-js.html#Strophe.NS.ROSTER" target=_parent class=ISymbol>ROSTER</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralS.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_SASL><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SASL" target=_parent class=ISymbol>SASL</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_send><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.send" target=_parent class=ISymbol>send</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_sendIQ><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.sendIQ" target=_parent class=ISymbol>sendIQ</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_serialize><div class=IEntry><a href="../files/core-js.html#Strophe.serialize" target=_parent class=ISymbol>serialize</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_SESSION><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SESSION" target=_parent class=ISymbol>SESSION</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_STREAM><div class=IEntry><a href="../files/core-js.html#Strophe.NS.STREAM" target=_parent class=ISymbol>STREAM</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_Strophe><div class=IEntry><a href="../files/core-js.html#Strophe" target=_parent class=ISymbol>Strophe</a></div></div><div class=SRResult id=SR_Strophe_perBuilder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder" target=_parent class=ISymbol>Strophe.<wbr>Builder</a></div></div><div class=SRResult id=SR_Strophe_perConnection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection" target=_parent class=ISymbol>Strophe.<wbr>Connection</a></div></div><div class=SRResult id=SR_strophe_perjs><div class=IEntry><a href="../files/core-js.html#strophe.js" target=_parent class=ISymbol>strophe.js</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralSymbols.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR__dolbuild><div class=IEntry><a href="../files/core-js.html#$build" target=_parent class=ISymbol>$build</a></div></div><div class=SRResult id=SR__doliq><div class=IEntry><a href="../files/core-js.html#$iq" target=_parent class=ISymbol>$iq</a></div></div><div class=SRResult id=SR__dolmsg><div class=IEntry><a href="../files/core-js.html#$msg" target=_parent class=ISymbol>$msg</a></div></div><div class=SRResult id=SR__dolpres><div class=IEntry><a href="../files/core-js.html#$pres" target=_parent class=ISymbol>$pres</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralT.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_t><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.t" target=_parent class=ISymbol>t</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_toString><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.toString" target=_parent class=ISymbol>toString</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_tree><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.tree" target=_parent class=ISymbol>tree</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralU.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_unescapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.unescapeNode" target=_parent class=ISymbol>unescapeNode</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_up><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.up" target=_parent class=ISymbol>up</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralV.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_VERSION><div class=IEntry><a href="../files/core-js.html#Strophe.VERSION" target=_parent class=ISymbol>VERSION</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralW.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_warn><div class=IEntry><a href="../files/core-js.html#Strophe.warn" target=_parent class=ISymbol>warn</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_WARN><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.WARN" target=_parent class=ISymbol>WARN</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/GeneralX.html
@@ -1,20 +0,0 @@ | @@ -1,20 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_xmlElement><div class=IEntry><a href="../files/core-js.html#Strophe.xmlElement" target=_parent class=ISymbol>xmlElement</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlescape><div class=IEntry><a href="../files/core-js.html#Strophe.xmlescape" target=_parent class=ISymbol>xmlescape</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlInput" target=_parent class=ISymbol>xmlInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlOutput" target=_parent class=ISymbol>xmlOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlTextNode><div class=IEntry><a href="../files/core-js.html#Strophe.xmlTextNode" target=_parent class=ISymbol>xmlTextNode</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_XMPP_spcNamespace_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.XMPP_Namespace_Constants" target=_parent class=ISymbol>XMPP Namespace Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | ||
15 | -document.getElementById("Loading").style.display="none"; | ||
16 | -document.getElementById("NoMatches").style.display="none"; | ||
17 | -var searchResults = new SearchResults("searchResults", "HTML"); | ||
18 | -searchResults.Search(); | ||
19 | ---></script></div><script language=JavaScript><!-- | ||
20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
21 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/search/NoResults.html
@@ -1,15 +0,0 @@ | @@ -1,15 +0,0 @@ | ||
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
2 | - | ||
3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!-- | ||
4 | -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> | ||
5 | - | ||
6 | -<!-- Generated by Natural Docs, version 1.4 --> | ||
7 | -<!-- http://www.naturaldocs.org --> | ||
8 | - | ||
9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | -<div id=Index><div class=SRStatus id=NoMatches>No Matches</div></div><script language=JavaScript><!-- | ||
15 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | ||
16 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/doc/styles/main.css
@@ -1,767 +0,0 @@ | @@ -1,767 +0,0 @@ | ||
1 | -/* | ||
2 | - IMPORTANT: If you're editing this file in the output directory of one of | ||
3 | - your projects, your changes will be overwritten the next time you run | ||
4 | - Natural Docs. Instead, copy this file to your project directory, make your | ||
5 | - changes, and you can use it with -s. Even better would be to make a CSS | ||
6 | - file in your project directory with only your changes, which you can then | ||
7 | - use with -s [original style] [your changes]. | ||
8 | - | ||
9 | - On the other hand, if you're editing this file in the Natural Docs styles | ||
10 | - directory, the changes will automatically be applied to all your projects | ||
11 | - that use this style the next time Natural Docs is run on them. | ||
12 | - | ||
13 | - This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure | ||
14 | - Natural Docs is licensed under the GPL | ||
15 | -*/ | ||
16 | - | ||
17 | -body { | ||
18 | - font: 10pt Verdana, Arial, sans-serif; | ||
19 | - color: #000000; | ||
20 | - margin: 0; padding: 0; | ||
21 | - } | ||
22 | - | ||
23 | -.ContentPage, | ||
24 | -.IndexPage, | ||
25 | -.FramedMenuPage { | ||
26 | - background-color: #E8E8E8; | ||
27 | - } | ||
28 | -.FramedContentPage, | ||
29 | -.FramedIndexPage, | ||
30 | -.FramedSearchResultsPage, | ||
31 | -.PopupSearchResultsPage { | ||
32 | - background-color: #FFFFFF; | ||
33 | - } | ||
34 | - | ||
35 | - | ||
36 | -a:link, | ||
37 | -a:visited { color: #900000; text-decoration: none } | ||
38 | -a:hover { color: #900000; text-decoration: underline } | ||
39 | -a:active { color: #FF0000; text-decoration: underline } | ||
40 | - | ||
41 | -td { | ||
42 | - vertical-align: top } | ||
43 | - | ||
44 | -img { border: 0; } | ||
45 | - | ||
46 | - | ||
47 | -/* | ||
48 | - Comment out this line to use web-style paragraphs (blank line between | ||
49 | - paragraphs, no indent) instead of print-style paragraphs (no blank line, | ||
50 | - indented.) | ||
51 | -*/ | ||
52 | -p { | ||
53 | - text-indent: 5ex; margin: 0 } | ||
54 | - | ||
55 | - | ||
56 | -/* Opera doesn't break with just wbr, but will if you add this. */ | ||
57 | -.Opera wbr:after { | ||
58 | - content: "\00200B"; | ||
59 | - } | ||
60 | - | ||
61 | - | ||
62 | -/* Blockquotes are used as containers for things that may need to scroll. */ | ||
63 | -blockquote { | ||
64 | - padding: 0; | ||
65 | - margin: 0; | ||
66 | - overflow: auto; | ||
67 | - } | ||
68 | - | ||
69 | - | ||
70 | -.Firefox1 blockquote { | ||
71 | - padding-bottom: .5em; | ||
72 | - } | ||
73 | - | ||
74 | -/* Turn off scrolling when printing. */ | ||
75 | -@media print { | ||
76 | - blockquote { | ||
77 | - overflow: visible; | ||
78 | - } | ||
79 | - .IE blockquote { | ||
80 | - width: auto; | ||
81 | - } | ||
82 | - } | ||
83 | - | ||
84 | - | ||
85 | - | ||
86 | -#Menu { | ||
87 | - font-size: 9pt; | ||
88 | - padding: 10px 0 0 0; | ||
89 | - } | ||
90 | -.ContentPage #Menu, | ||
91 | -.IndexPage #Menu { | ||
92 | - position: absolute; | ||
93 | - top: 0; | ||
94 | - left: 0; | ||
95 | - width: 31ex; | ||
96 | - overflow: hidden; | ||
97 | - } | ||
98 | -.ContentPage .Firefox #Menu, | ||
99 | -.IndexPage .Firefox #Menu { | ||
100 | - width: 27ex; | ||
101 | - } | ||
102 | - | ||
103 | - | ||
104 | - .MTitle { | ||
105 | - font-size: 16pt; font-weight: bold; font-variant: small-caps; | ||
106 | - text-align: center; | ||
107 | - padding: 5px 10px 15px 10px; | ||
108 | - border-bottom: 1px dotted #000000; | ||
109 | - margin-bottom: 15px } | ||
110 | - | ||
111 | - .MSubTitle { | ||
112 | - font-size: 9pt; font-weight: normal; font-variant: normal; | ||
113 | - margin-top: 1ex; margin-bottom: 5px } | ||
114 | - | ||
115 | - | ||
116 | - .MEntry a:link, | ||
117 | - .MEntry a:hover, | ||
118 | - .MEntry a:visited { color: #606060; margin-right: 0 } | ||
119 | - .MEntry a:active { color: #A00000; margin-right: 0 } | ||
120 | - | ||
121 | - | ||
122 | - .MGroup { | ||
123 | - font-variant: small-caps; font-weight: bold; | ||
124 | - margin: 1em 0 1em 10px; | ||
125 | - } | ||
126 | - | ||
127 | - .MGroupContent { | ||
128 | - font-variant: normal; font-weight: normal } | ||
129 | - | ||
130 | - .MGroup a:link, | ||
131 | - .MGroup a:hover, | ||
132 | - .MGroup a:visited { color: #545454; margin-right: 10px } | ||
133 | - .MGroup a:active { color: #A00000; margin-right: 10px } | ||
134 | - | ||
135 | - | ||
136 | - .MFile, | ||
137 | - .MText, | ||
138 | - .MLink, | ||
139 | - .MIndex { | ||
140 | - padding: 1px 17px 2px 10px; | ||
141 | - margin: .25em 0 .25em 0; | ||
142 | - } | ||
143 | - | ||
144 | - .MText { | ||
145 | - font-size: 8pt; font-style: italic } | ||
146 | - | ||
147 | - .MLink { | ||
148 | - font-style: italic } | ||
149 | - | ||
150 | - #MSelected { | ||
151 | - color: #000000; background-color: #FFFFFF; | ||
152 | - /* Replace padding with border. */ | ||
153 | - padding: 0 10px 0 10px; | ||
154 | - border-width: 1px 2px 2px 0; border-style: solid; border-color: #000000; | ||
155 | - margin-right: 5px; | ||
156 | - } | ||
157 | - | ||
158 | - /* Close off the left side when its in a group. */ | ||
159 | - .MGroup #MSelected { | ||
160 | - padding-left: 9px; border-left-width: 1px } | ||
161 | - | ||
162 | - /* A treat for Mozilla users. Blatantly non-standard. Will be replaced with CSS 3 attributes when finalized/supported. */ | ||
163 | - .Firefox #MSelected { | ||
164 | - -moz-border-radius-topright: 10px; | ||
165 | - -moz-border-radius-bottomright: 10px } | ||
166 | - .Firefox .MGroup #MSelected { | ||
167 | - -moz-border-radius-topleft: 10px; | ||
168 | - -moz-border-radius-bottomleft: 10px } | ||
169 | - | ||
170 | - | ||
171 | - #MSearchPanel { | ||
172 | - padding: 0px 6px; | ||
173 | - margin: .25em 0; | ||
174 | - } | ||
175 | - | ||
176 | - | ||
177 | - #MSearchField { | ||
178 | - font: italic 9pt Verdana, sans-serif; | ||
179 | - color: #606060; | ||
180 | - background-color: #E8E8E8; | ||
181 | - border: none; | ||
182 | - padding: 2px 4px; | ||
183 | - width: 100%; | ||
184 | - } | ||
185 | - /* Only Opera gets it right. */ | ||
186 | - .Firefox #MSearchField, | ||
187 | - .IE #MSearchField, | ||
188 | - .Safari #MSearchField { | ||
189 | - width: 94%; | ||
190 | - } | ||
191 | - .Opera9 #MSearchField, | ||
192 | - .Konqueror #MSearchField { | ||
193 | - width: 97%; | ||
194 | - } | ||
195 | - .FramedMenuPage .Firefox #MSearchField, | ||
196 | - .FramedMenuPage .Safari #MSearchField, | ||
197 | - .FramedMenuPage .Konqueror #MSearchField { | ||
198 | - width: 98%; | ||
199 | - } | ||
200 | - | ||
201 | - /* Firefox doesn't do this right in frames without #MSearchPanel added on. | ||
202 | - It's presence doesn't hurt anything other browsers. */ | ||
203 | - #MSearchPanel.MSearchPanelInactive:hover #MSearchField { | ||
204 | - background-color: #FFFFFF; | ||
205 | - border: 1px solid #C0C0C0; | ||
206 | - padding: 1px 3px; | ||
207 | - } | ||
208 | - .MSearchPanelActive #MSearchField { | ||
209 | - background-color: #FFFFFF; | ||
210 | - border: 1px solid #C0C0C0; | ||
211 | - font-style: normal; | ||
212 | - padding: 1px 3px; | ||
213 | - } | ||
214 | - | ||
215 | - #MSearchType { | ||
216 | - visibility: hidden; | ||
217 | - font: 8pt Verdana, sans-serif; | ||
218 | - width: 98%; | ||
219 | - padding: 0; | ||
220 | - border: 1px solid #C0C0C0; | ||
221 | - } | ||
222 | - .MSearchPanelActive #MSearchType, | ||
223 | - /* As mentioned above, Firefox doesn't do this right in frames without #MSearchPanel added on. */ | ||
224 | - #MSearchPanel.MSearchPanelInactive:hover #MSearchType, | ||
225 | - #MSearchType:focus { | ||
226 | - visibility: visible; | ||
227 | - color: #606060; | ||
228 | - } | ||
229 | - #MSearchType option#MSearchEverything { | ||
230 | - font-weight: bold; | ||
231 | - } | ||
232 | - | ||
233 | - .Opera8 .MSearchPanelInactive:hover, | ||
234 | - .Opera8 .MSearchPanelActive { | ||
235 | - margin-left: -1px; | ||
236 | - } | ||
237 | - | ||
238 | - | ||
239 | - iframe#MSearchResults { | ||
240 | - width: 60ex; | ||
241 | - height: 15em; | ||
242 | - } | ||
243 | - #MSearchResultsWindow { | ||
244 | - display: none; | ||
245 | - position: absolute; | ||
246 | - left: 0; top: 0; | ||
247 | - border: 1px solid #000000; | ||
248 | - background-color: #E8E8E8; | ||
249 | - } | ||
250 | - #MSearchResultsWindowClose { | ||
251 | - font-weight: bold; | ||
252 | - font-size: 8pt; | ||
253 | - display: block; | ||
254 | - padding: 2px 5px; | ||
255 | - } | ||
256 | - #MSearchResultsWindowClose:link, | ||
257 | - #MSearchResultsWindowClose:visited { | ||
258 | - color: #000000; | ||
259 | - text-decoration: none; | ||
260 | - } | ||
261 | - #MSearchResultsWindowClose:active, | ||
262 | - #MSearchResultsWindowClose:hover { | ||
263 | - color: #800000; | ||
264 | - text-decoration: none; | ||
265 | - background-color: #F4F4F4; | ||
266 | - } | ||
267 | - | ||
268 | - | ||
269 | - | ||
270 | - | ||
271 | -#Content { | ||
272 | - padding-bottom: 15px; | ||
273 | - } | ||
274 | - | ||
275 | -.ContentPage #Content { | ||
276 | - border-width: 0 0 1px 1px; | ||
277 | - border-style: solid; | ||
278 | - border-color: #000000; | ||
279 | - background-color: #FFFFFF; | ||
280 | - font-size: 9pt; /* To make 31ex match the menu's 31ex. */ | ||
281 | - margin-left: 31ex; | ||
282 | - } | ||
283 | -.ContentPage .Firefox #Content { | ||
284 | - margin-left: 27ex; | ||
285 | - } | ||
286 | - | ||
287 | - | ||
288 | - | ||
289 | - .CTopic { | ||
290 | - font-size: 10pt; | ||
291 | - margin-bottom: 3em; | ||
292 | - } | ||
293 | - | ||
294 | - | ||
295 | - .CTitle { | ||
296 | - font-size: 12pt; font-weight: bold; | ||
297 | - border-width: 0 0 1px 0; border-style: solid; border-color: #A0A0A0; | ||
298 | - margin: 0 15px .5em 15px } | ||
299 | - | ||
300 | - .CGroup .CTitle { | ||
301 | - font-size: 16pt; font-variant: small-caps; | ||
302 | - padding-left: 15px; padding-right: 15px; | ||
303 | - border-width: 0 0 2px 0; border-color: #000000; | ||
304 | - margin-left: 0; margin-right: 0 } | ||
305 | - | ||
306 | - .CClass .CTitle, | ||
307 | - .CInterface .CTitle, | ||
308 | - .CDatabase .CTitle, | ||
309 | - .CDatabaseTable .CTitle, | ||
310 | - .CSection .CTitle { | ||
311 | - font-size: 18pt; | ||
312 | - color: #FFFFFF; background-color: #A0A0A0; | ||
313 | - padding: 10px 15px 10px 15px; | ||
314 | - border-width: 2px 0; border-color: #000000; | ||
315 | - margin-left: 0; margin-right: 0 } | ||
316 | - | ||
317 | - #MainTopic .CTitle { | ||
318 | - font-size: 20pt; | ||
319 | - color: #FFFFFF; background-color: #7070C0; | ||
320 | - padding: 10px 15px 10px 15px; | ||
321 | - border-width: 0 0 3px 0; border-color: #000000; | ||
322 | - margin-left: 0; margin-right: 0 } | ||
323 | - | ||
324 | - .CBody { | ||
325 | - margin-left: 15px; margin-right: 15px } | ||
326 | - | ||
327 | - | ||
328 | - .CToolTip { | ||
329 | - position: absolute; visibility: hidden; | ||
330 | - left: 0; top: 0; | ||
331 | - background-color: #FFFFE0; | ||
332 | - padding: 5px; | ||
333 | - border-width: 1px 2px 2px 1px; border-style: solid; border-color: #000000; | ||
334 | - font-size: 8pt; | ||
335 | - } | ||
336 | - | ||
337 | - .Opera .CToolTip { | ||
338 | - max-width: 98%; | ||
339 | - } | ||
340 | - | ||
341 | - /* Scrollbars would be useless. */ | ||
342 | - .CToolTip blockquote { | ||
343 | - overflow: hidden; | ||
344 | - } | ||
345 | - .IE6 .CToolTip blockquote { | ||
346 | - overflow: visible; | ||
347 | - } | ||
348 | - | ||
349 | - .CHeading { | ||
350 | - font-weight: bold; font-size: 10pt; | ||
351 | - margin: 1.5em 0 .5em 0; | ||
352 | - } | ||
353 | - | ||
354 | - .CBody pre { | ||
355 | - font: 10pt "Courier New", Courier, monospace; | ||
356 | - margin: 1em 0; | ||
357 | - } | ||
358 | - | ||
359 | - .CBody ul { | ||
360 | - /* I don't know why CBody's margin doesn't apply, but it's consistent across browsers so whatever. | ||
361 | - Reapply it here as padding. */ | ||
362 | - padding-left: 15px; padding-right: 15px; | ||
363 | - margin: .5em 5ex .5em 5ex; | ||
364 | - } | ||
365 | - | ||
366 | - .CDescriptionList { | ||
367 | - margin: .5em 5ex 0 5ex } | ||
368 | - | ||
369 | - .CDLEntry { | ||
370 | - font: 10pt "Courier New", Courier, monospace; color: #808080; | ||
371 | - padding-bottom: .25em; | ||
372 | - white-space: nowrap } | ||
373 | - | ||
374 | - .CDLDescription { | ||
375 | - font-size: 10pt; /* For browsers that don't inherit correctly, like Opera 5. */ | ||
376 | - padding-bottom: .5em; padding-left: 5ex } | ||
377 | - | ||
378 | - | ||
379 | - .CTopic img { | ||
380 | - text-align: center; | ||
381 | - display: block; | ||
382 | - margin: 1em auto; | ||
383 | - } | ||
384 | - .CImageCaption { | ||
385 | - font-variant: small-caps; | ||
386 | - font-size: 8pt; | ||
387 | - color: #808080; | ||
388 | - text-align: center; | ||
389 | - position: relative; | ||
390 | - top: 1em; | ||
391 | - } | ||
392 | - | ||
393 | - .CImageLink { | ||
394 | - color: #808080; | ||
395 | - font-style: italic; | ||
396 | - } | ||
397 | - a.CImageLink:link, | ||
398 | - a.CImageLink:visited, | ||
399 | - a.CImageLink:hover { color: #808080 } | ||
400 | - | ||
401 | - | ||
402 | - | ||
403 | - | ||
404 | - | ||
405 | -.Prototype { | ||
406 | - font: 10pt "Courier New", Courier, monospace; | ||
407 | - padding: 5px 3ex; | ||
408 | - border-width: 1px; border-style: solid; | ||
409 | - margin: 0 5ex 1.5em 5ex; | ||
410 | - } | ||
411 | - | ||
412 | - .Prototype td { | ||
413 | - font-size: 10pt; | ||
414 | - } | ||
415 | - | ||
416 | - .PDefaultValue, | ||
417 | - .PDefaultValuePrefix, | ||
418 | - .PTypePrefix { | ||
419 | - color: #8F8F8F; | ||
420 | - } | ||
421 | - .PTypePrefix { | ||
422 | - text-align: right; | ||
423 | - } | ||
424 | - .PAfterParameters { | ||
425 | - vertical-align: bottom; | ||
426 | - } | ||
427 | - | ||
428 | - .IE .Prototype table { | ||
429 | - padding: 0; | ||
430 | - } | ||
431 | - | ||
432 | - .CFunction .Prototype { | ||
433 | - background-color: #F4F4F4; border-color: #D0D0D0 } | ||
434 | - .CProperty .Prototype { | ||
435 | - background-color: #F4F4FF; border-color: #C0C0E8 } | ||
436 | - .CVariable .Prototype { | ||
437 | - background-color: #FFFFF0; border-color: #E0E0A0 } | ||
438 | - | ||
439 | - .CClass .Prototype { | ||
440 | - border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0A0; | ||
441 | - background-color: #F4F4F4; | ||
442 | - } | ||
443 | - .CInterface .Prototype { | ||
444 | - border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0D0; | ||
445 | - background-color: #F4F4FF; | ||
446 | - } | ||
447 | - | ||
448 | - .CDatabaseIndex .Prototype, | ||
449 | - .CConstant .Prototype { | ||
450 | - background-color: #D0D0D0; border-color: #000000 } | ||
451 | - .CType .Prototype, | ||
452 | - .CEnumeration .Prototype { | ||
453 | - background-color: #FAF0F0; border-color: #E0B0B0; | ||
454 | - } | ||
455 | - .CDatabaseTrigger .Prototype, | ||
456 | - .CEvent .Prototype, | ||
457 | - .CDelegate .Prototype { | ||
458 | - background-color: #F0FCF0; border-color: #B8E4B8 } | ||
459 | - | ||
460 | - .CToolTip .Prototype { | ||
461 | - margin: 0 0 .5em 0; | ||
462 | - white-space: nowrap; | ||
463 | - } | ||
464 | - | ||
465 | - | ||
466 | - | ||
467 | - | ||
468 | - | ||
469 | -.Summary { | ||
470 | - margin: 1.5em 5ex 0 5ex } | ||
471 | - | ||
472 | - .STitle { | ||
473 | - font-size: 12pt; font-weight: bold; | ||
474 | - margin-bottom: .5em } | ||
475 | - | ||
476 | - | ||
477 | - .SBorder { | ||
478 | - background-color: #FFFFF0; | ||
479 | - padding: 15px; | ||
480 | - border: 1px solid #C0C060 } | ||
481 | - | ||
482 | - /* In a frame IE 6 will make them too long unless you set the width to 100%. Without frames it will be correct without a width | ||
483 | - or slightly too long (but not enough to scroll) with a width. This arbitrary weirdness simply astounds me. IE 7 has the same | ||
484 | - problem with frames, haven't tested it without. */ | ||
485 | - .FramedContentPage .IE .SBorder { | ||
486 | - width: 100% } | ||
487 | - | ||
488 | - /* A treat for Mozilla users. Blatantly non-standard. Will be replaced with CSS 3 attributes when finalized/supported. */ | ||
489 | - .Firefox .SBorder { | ||
490 | - -moz-border-radius: 20px } | ||
491 | - | ||
492 | - | ||
493 | - .STable { | ||
494 | - font-size: 9pt; width: 100% } | ||
495 | - | ||
496 | - .SEntry { | ||
497 | - width: 30% } | ||
498 | - .SDescription { | ||
499 | - width: 70% } | ||
500 | - | ||
501 | - | ||
502 | - .SMarked { | ||
503 | - background-color: #F8F8D8 } | ||
504 | - | ||
505 | - .SDescription { padding-left: 2ex } | ||
506 | - .SIndent1 .SEntry { padding-left: 1.5ex } .SIndent1 .SDescription { padding-left: 3.5ex } | ||
507 | - .SIndent2 .SEntry { padding-left: 3.0ex } .SIndent2 .SDescription { padding-left: 5.0ex } | ||
508 | - .SIndent3 .SEntry { padding-left: 4.5ex } .SIndent3 .SDescription { padding-left: 6.5ex } | ||
509 | - .SIndent4 .SEntry { padding-left: 6.0ex } .SIndent4 .SDescription { padding-left: 8.0ex } | ||
510 | - .SIndent5 .SEntry { padding-left: 7.5ex } .SIndent5 .SDescription { padding-left: 9.5ex } | ||
511 | - | ||
512 | - .SDescription a { color: #800000} | ||
513 | - .SDescription a:active { color: #A00000 } | ||
514 | - | ||
515 | - .SGroup td { | ||
516 | - padding-top: .5em; padding-bottom: .25em } | ||
517 | - | ||
518 | - .SGroup .SEntry { | ||
519 | - font-weight: bold; font-variant: small-caps } | ||
520 | - | ||
521 | - .SGroup .SEntry a { color: #800000 } | ||
522 | - .SGroup .SEntry a:active { color: #F00000 } | ||
523 | - | ||
524 | - | ||
525 | - .SMain td, | ||
526 | - .SClass td, | ||
527 | - .SDatabase td, | ||
528 | - .SDatabaseTable td, | ||
529 | - .SSection td { | ||
530 | - font-size: 10pt; | ||
531 | - padding-bottom: .25em } | ||
532 | - | ||
533 | - .SClass td, | ||
534 | - .SDatabase td, | ||
535 | - .SDatabaseTable td, | ||
536 | - .SSection td { | ||
537 | - padding-top: 1em } | ||
538 | - | ||
539 | - .SMain .SEntry, | ||
540 | - .SClass .SEntry, | ||
541 | - .SDatabase .SEntry, | ||
542 | - .SDatabaseTable .SEntry, | ||
543 | - .SSection .SEntry { | ||
544 | - font-weight: bold; | ||
545 | - } | ||
546 | - | ||
547 | - .SMain .SEntry a, | ||
548 | - .SClass .SEntry a, | ||
549 | - .SDatabase .SEntry a, | ||
550 | - .SDatabaseTable .SEntry a, | ||
551 | - .SSection .SEntry a { color: #000000 } | ||
552 | - | ||
553 | - .SMain .SEntry a:active, | ||
554 | - .SClass .SEntry a:active, | ||
555 | - .SDatabase .SEntry a:active, | ||
556 | - .SDatabaseTable .SEntry a:active, | ||
557 | - .SSection .SEntry a:active { color: #A00000 } | ||
558 | - | ||
559 | - | ||
560 | - | ||
561 | - | ||
562 | - | ||
563 | -.ClassHierarchy { | ||
564 | - margin: 0 15px 1em 15px } | ||
565 | - | ||
566 | - .CHEntry { | ||
567 | - border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0A0; | ||
568 | - margin-bottom: 3px; | ||
569 | - padding: 2px 2ex; | ||
570 | - font-size: 10pt; | ||
571 | - background-color: #F4F4F4; color: #606060; | ||
572 | - } | ||
573 | - | ||
574 | - .Firefox .CHEntry { | ||
575 | - -moz-border-radius: 4px; | ||
576 | - } | ||
577 | - | ||
578 | - .CHCurrent .CHEntry { | ||
579 | - font-weight: bold; | ||
580 | - border-color: #000000; | ||
581 | - color: #000000; | ||
582 | - } | ||
583 | - | ||
584 | - .CHChildNote .CHEntry { | ||
585 | - font-style: italic; | ||
586 | - font-size: 8pt; | ||
587 | - } | ||
588 | - | ||
589 | - .CHIndent { | ||
590 | - margin-left: 3ex; | ||
591 | - } | ||
592 | - | ||
593 | - .CHEntry a:link, | ||
594 | - .CHEntry a:visited, | ||
595 | - .CHEntry a:hover { | ||
596 | - color: #606060; | ||
597 | - } | ||
598 | - .CHEntry a:active { | ||
599 | - color: #800000; | ||
600 | - } | ||
601 | - | ||
602 | - | ||
603 | - | ||
604 | - | ||
605 | - | ||
606 | -#Index { | ||
607 | - background-color: #FFFFFF; | ||
608 | - } | ||
609 | - | ||
610 | -/* As opposed to .PopupSearchResultsPage #Index */ | ||
611 | -.IndexPage #Index, | ||
612 | -.FramedIndexPage #Index, | ||
613 | -.FramedSearchResultsPage #Index { | ||
614 | - padding: 15px; | ||
615 | - } | ||
616 | - | ||
617 | -.IndexPage #Index { | ||
618 | - border-width: 0 0 1px 1px; | ||
619 | - border-style: solid; | ||
620 | - border-color: #000000; | ||
621 | - font-size: 9pt; /* To make 27ex match the menu's 27ex. */ | ||
622 | - margin-left: 27ex; | ||
623 | - } | ||
624 | - | ||
625 | - | ||
626 | - .IPageTitle { | ||
627 | - font-size: 20pt; font-weight: bold; | ||
628 | - color: #FFFFFF; background-color: #7070C0; | ||
629 | - padding: 10px 15px 10px 15px; | ||
630 | - border-width: 0 0 3px 0; border-color: #000000; border-style: solid; | ||
631 | - margin: -15px -15px 0 -15px } | ||
632 | - | ||
633 | - .FramedSearchResultsPage .IPageTitle { | ||
634 | - margin-bottom: 15px; | ||
635 | - } | ||
636 | - | ||
637 | - .INavigationBar { | ||
638 | - font-size: 10pt; | ||
639 | - text-align: center; | ||
640 | - background-color: #FFFFF0; | ||
641 | - padding: 5px; | ||
642 | - border-bottom: solid 1px black; | ||
643 | - margin: 0 -15px 15px -15px; | ||
644 | - } | ||
645 | - | ||
646 | - .INavigationBar a { | ||
647 | - font-weight: bold } | ||
648 | - | ||
649 | - .IHeading { | ||
650 | - font-size: 16pt; font-weight: bold; | ||
651 | - padding: 2.5em 0 .5em 0; | ||
652 | - text-align: center; | ||
653 | - width: 3.5ex; | ||
654 | - } | ||
655 | - #IFirstHeading { | ||
656 | - padding-top: 0; | ||
657 | - } | ||
658 | - | ||
659 | - .IEntry { | ||
660 | - font-size: 10pt; | ||
661 | - padding-left: 1ex; | ||
662 | - } | ||
663 | - .PopupSearchResultsPage .IEntry { | ||
664 | - font-size: 8pt; | ||
665 | - padding: 1px 5px; | ||
666 | - } | ||
667 | - .PopupSearchResultsPage .Opera9 .IEntry, | ||
668 | - .FramedSearchResultsPage .Opera9 .IEntry { | ||
669 | - text-align: left; | ||
670 | - } | ||
671 | - .FramedSearchResultsPage .IEntry { | ||
672 | - padding: 0; | ||
673 | - } | ||
674 | - | ||
675 | - .ISubIndex { | ||
676 | - padding-left: 3ex; padding-bottom: .5em } | ||
677 | - .PopupSearchResultsPage .ISubIndex { | ||
678 | - display: none; | ||
679 | - } | ||
680 | - | ||
681 | - /* While it may cause some entries to look like links when they aren't, I found it's much easier to read the | ||
682 | - index if everything's the same color. */ | ||
683 | - .ISymbol { | ||
684 | - font-weight: bold; color: #900000 } | ||
685 | - | ||
686 | - .IndexPage .ISymbolPrefix, | ||
687 | - .FramedIndexPage .ISymbolPrefix { | ||
688 | - font-size: 10pt; | ||
689 | - text-align: right; | ||
690 | - color: #C47C7C; | ||
691 | - background-color: #F8F8F8; | ||
692 | - border-right: 3px solid #E0E0E0; | ||
693 | - border-left: 1px solid #E0E0E0; | ||
694 | - padding: 0 1px 0 2px; | ||
695 | - } | ||
696 | - .PopupSearchResultsPage .ISymbolPrefix, | ||
697 | - .FramedSearchResultsPage .ISymbolPrefix { | ||
698 | - color: #900000; | ||
699 | - } | ||
700 | - .PopupSearchResultsPage .ISymbolPrefix { | ||
701 | - font-size: 8pt; | ||
702 | - } | ||
703 | - | ||
704 | - .IndexPage #IFirstSymbolPrefix, | ||
705 | - .FramedIndexPage #IFirstSymbolPrefix { | ||
706 | - border-top: 1px solid #E0E0E0; | ||
707 | - } | ||
708 | - .IndexPage #ILastSymbolPrefix, | ||
709 | - .FramedIndexPage #ILastSymbolPrefix { | ||
710 | - border-bottom: 1px solid #E0E0E0; | ||
711 | - } | ||
712 | - .IndexPage #IOnlySymbolPrefix, | ||
713 | - .FramedIndexPage #IOnlySymbolPrefix { | ||
714 | - border-top: 1px solid #E0E0E0; | ||
715 | - border-bottom: 1px solid #E0E0E0; | ||
716 | - } | ||
717 | - | ||
718 | - a.IParent, | ||
719 | - a.IFile { | ||
720 | - display: block; | ||
721 | - } | ||
722 | - | ||
723 | - .PopupSearchResultsPage .SRStatus { | ||
724 | - padding: 2px 5px; | ||
725 | - font-size: 8pt; | ||
726 | - font-style: italic; | ||
727 | - } | ||
728 | - .FramedSearchResultsPage .SRStatus { | ||
729 | - font-size: 10pt; | ||
730 | - font-style: italic; | ||
731 | - } | ||
732 | - | ||
733 | - .SRResult { | ||
734 | - display: none; | ||
735 | - } | ||
736 | - | ||
737 | - | ||
738 | - | ||
739 | -#Footer { | ||
740 | - font-size: 8pt; | ||
741 | - color: #989898; | ||
742 | - text-align: right; | ||
743 | - } | ||
744 | - | ||
745 | -#Footer p { | ||
746 | - text-indent: 0; | ||
747 | - margin-bottom: .5em; | ||
748 | - } | ||
749 | - | ||
750 | -.ContentPage #Footer, | ||
751 | -.IndexPage #Footer { | ||
752 | - text-align: right; | ||
753 | - margin: 2px; | ||
754 | - } | ||
755 | - | ||
756 | -.FramedMenuPage #Footer { | ||
757 | - text-align: center; | ||
758 | - margin: 5em 10px 10px 10px; | ||
759 | - padding-top: 1em; | ||
760 | - border-top: 1px solid #C8C8C8; | ||
761 | - } | ||
762 | - | ||
763 | - #Footer a:link, | ||
764 | - #Footer a:hover, | ||
765 | - #Footer a:visited { color: #989898 } | ||
766 | - #Footer a:active { color: #A00000 } | ||
767 | - |
public/javascripts/strophejs-1.0.1/examples/attach/README
@@ -1,37 +0,0 @@ | @@ -1,37 +0,0 @@ | ||
1 | -This is an example of Strophe attaching to a pre-existing BOSH session | ||
2 | -that is created externally. This example requires a bit more than | ||
3 | -HTML and JavaScript. Specifically it contains a very simple Web | ||
4 | -application written in Django which creates a BOSH session before | ||
5 | -rendering the page. | ||
6 | - | ||
7 | -Requirements: | ||
8 | - | ||
9 | -* Django 1.0 (http://www.djangoproject.com) | ||
10 | -* Twisted 8.1.x (http://twistedmatrix.com) | ||
11 | -* Punjab 0.3 (http://code.stanziq.com/punjab) | ||
12 | - | ||
13 | -Note that Twisted and Punjab are only used for small functions related | ||
14 | -to JID and BOSH parsing. | ||
15 | - | ||
16 | -How It Works: | ||
17 | - | ||
18 | -The Django app contains one view which is tied to the root URL. This | ||
19 | -view uses the BOSHClient class to start a BOSH session using the | ||
20 | -settings from settings.py. | ||
21 | - | ||
22 | -Once the connection is established, Django passes the JID, SID, and | ||
23 | -RID for the BOSH session into the template engine and renders the | ||
24 | -page. | ||
25 | - | ||
26 | -The template assigns the JID, SID, and RID to global vars like so: | ||
27 | - | ||
28 | - var BOSH_JID = {{ jid }}; | ||
29 | - var BOSH_SID = {{ sid }}; | ||
30 | - var BOSH_RID = {{ rid }}; | ||
31 | - | ||
32 | -The connection is attached to Strophe by calling | ||
33 | -Strophe.Connection.attach() with this data and a connection callback | ||
34 | -handler. | ||
35 | - | ||
36 | -To show that the session is attached and works, a disco info ping is | ||
37 | -done to jabber.org. |
public/javascripts/strophejs-1.0.1/examples/attach/__init__.py
public/javascripts/strophejs-1.0.1/examples/attach/attacher/__init__.py
public/javascripts/strophejs-1.0.1/examples/attach/attacher/views.py
@@ -1,18 +0,0 @@ | @@ -1,18 +0,0 @@ | ||
1 | -from django.http import HttpResponse | ||
2 | -from django.template import Context, loader | ||
3 | - | ||
4 | -from attach.settings import BOSH_SERVICE, JABBERID, PASSWORD | ||
5 | -from attach.boshclient import BOSHClient | ||
6 | - | ||
7 | -def index(request): | ||
8 | - bc = BOSHClient(JABBERID, PASSWORD, BOSH_SERVICE) | ||
9 | - bc.startSessionAndAuth() | ||
10 | - | ||
11 | - t = loader.get_template("attacher/index.html") | ||
12 | - c = Context({ | ||
13 | - 'jid': bc.jabberid.full(), | ||
14 | - 'sid': bc.sid, | ||
15 | - 'rid': bc.rid, | ||
16 | - }) | ||
17 | - | ||
18 | - return HttpResponse(t.render(c)) |
public/javascripts/strophejs-1.0.1/examples/attach/boshclient.py
@@ -1,152 +0,0 @@ | @@ -1,152 +0,0 @@ | ||
1 | -import sys, os | ||
2 | -import httplib, urllib | ||
3 | -import random, binascii | ||
4 | -from urlparse import urlparse | ||
5 | - | ||
6 | -from punjab.httpb import HttpbParse | ||
7 | - | ||
8 | -from twisted.words.xish import domish | ||
9 | -from twisted.words.protocols.jabber import jid | ||
10 | - | ||
11 | -TLS_XMLNS = 'urn:ietf:params:xml:ns:xmpp-tls' | ||
12 | -SASL_XMLNS = 'urn:ietf:params:xml:ns:xmpp-sasl' | ||
13 | -BIND_XMLNS = 'urn:ietf:params:xml:ns:xmpp-bind' | ||
14 | -SESSION_XMLNS = 'urn:ietf:params:xml:ns:xmpp-session' | ||
15 | - | ||
16 | - | ||
17 | -class BOSHClient: | ||
18 | - def __init__(self, jabberid, password, bosh_service): | ||
19 | - self.rid = random.randint(0, 10000000) | ||
20 | - self.jabberid = jid.internJID(jabberid) | ||
21 | - self.password = password | ||
22 | - | ||
23 | - self.authid = None | ||
24 | - self.sid = None | ||
25 | - self.logged_in = False | ||
26 | - self.headers = {"Content-type": "text/xml", | ||
27 | - "Accept": "text/xml"} | ||
28 | - | ||
29 | - self.bosh_service = urlparse(bosh_service) | ||
30 | - | ||
31 | - def buildBody(self, child=None): | ||
32 | - """Build a BOSH body. | ||
33 | - """ | ||
34 | - | ||
35 | - body = domish.Element(("http://jabber.org/protocol/httpbind", "body")) | ||
36 | - body['content'] = 'text/xml; charset=utf-8' | ||
37 | - self.rid = self.rid + 1 | ||
38 | - body['rid'] = str(self.rid) | ||
39 | - body['sid'] = str(self.sid) | ||
40 | - body['xml:lang'] = 'en' | ||
41 | - | ||
42 | - if child is not None: | ||
43 | - body.addChild(child) | ||
44 | - | ||
45 | - return body | ||
46 | - | ||
47 | - def sendBody(self, body): | ||
48 | - """Send the body. | ||
49 | - """ | ||
50 | - | ||
51 | - parser = HttpbParse(True) | ||
52 | - | ||
53 | - # start new session | ||
54 | - conn = httplib.HTTPConnection(self.bosh_service.netloc) | ||
55 | - conn.request("POST", self.bosh_service.path, | ||
56 | - body.toXml(), self.headers) | ||
57 | - | ||
58 | - response = conn.getresponse() | ||
59 | - data = '' | ||
60 | - if response.status == 200: | ||
61 | - data = response.read() | ||
62 | - conn.close() | ||
63 | - | ||
64 | - return parser.parse(data) | ||
65 | - | ||
66 | - def startSessionAndAuth(self, hold='1', wait='70'): | ||
67 | - # Create a session | ||
68 | - # create body | ||
69 | - body = domish.Element(("http://jabber.org/protocol/httpbind", "body")) | ||
70 | - | ||
71 | - body['content'] = 'text/xml; charset=utf-8' | ||
72 | - body['hold'] = hold | ||
73 | - body['rid'] = str(self.rid) | ||
74 | - body['to'] = self.jabberid.host | ||
75 | - body['wait'] = wait | ||
76 | - body['window'] = '5' | ||
77 | - body['xml:lang'] = 'en' | ||
78 | - | ||
79 | - | ||
80 | - retb, elems = self.sendBody(body) | ||
81 | - if type(retb) != str and retb.hasAttribute('authid') and \ | ||
82 | - retb.hasAttribute('sid'): | ||
83 | - self.authid = retb['authid'] | ||
84 | - self.sid = retb['sid'] | ||
85 | - | ||
86 | - # go ahead and auth | ||
87 | - auth = domish.Element((SASL_XMLNS, 'auth')) | ||
88 | - auth['mechanism'] = 'PLAIN' | ||
89 | - | ||
90 | - # TODO: add authzid | ||
91 | - if auth['mechanism'] == 'PLAIN': | ||
92 | - auth_str = "" | ||
93 | - auth_str += "\000" | ||
94 | - auth_str += self.jabberid.user.encode('utf-8') | ||
95 | - auth_str += "\000" | ||
96 | - try: | ||
97 | - auth_str += self.password.encode('utf-8').strip() | ||
98 | - except UnicodeDecodeError: | ||
99 | - auth_str += self.password.decode('latin1') \ | ||
100 | - .encode('utf-8').strip() | ||
101 | - | ||
102 | - auth.addContent(binascii.b2a_base64(auth_str)) | ||
103 | - | ||
104 | - retb, elems = self.sendBody(self.buildBody(auth)) | ||
105 | - if len(elems) == 0: | ||
106 | - # poll for data | ||
107 | - retb, elems = self.sendBody(self.buildBody()) | ||
108 | - | ||
109 | - if len(elems) > 0: | ||
110 | - if elems[0].name == 'success': | ||
111 | - retb, elems = self.sendBody(self.buildBody()) | ||
112 | - | ||
113 | - if elems[0].firstChildElement().name == 'bind': | ||
114 | - iq = domish.Element(('jabber:client', 'iq')) | ||
115 | - iq['type'] = 'set' | ||
116 | - iq.addUniqueId() | ||
117 | - iq.addElement('bind') | ||
118 | - iq.bind['xmlns'] = BIND_XMLNS | ||
119 | - if self.jabberid.resource: | ||
120 | - iq.bind.addElement('resource') | ||
121 | - iq.bind.resource.addContent( | ||
122 | - self.jabberid.resource) | ||
123 | - | ||
124 | - retb, elems = self.sendBody(self.buildBody(iq)) | ||
125 | - if type(retb) != str and retb.name == 'body': | ||
126 | - # send session | ||
127 | - iq = domish.Element(('jabber:client', 'iq')) | ||
128 | - iq['type'] = 'set' | ||
129 | - iq.addUniqueId() | ||
130 | - iq.addElement('session') | ||
131 | - iq.session['xmlns'] = SESSION_XMLNS | ||
132 | - | ||
133 | - retb, elems = self.sendBody(self.buildBody(iq)) | ||
134 | - | ||
135 | - # did not bind, TODO - add a retry? | ||
136 | - if type(retb) != str and retb.name == 'body': | ||
137 | - self.logged_in = True | ||
138 | - # bump up the rid, punjab already | ||
139 | - # received self.rid | ||
140 | - self.rid += 1 | ||
141 | - | ||
142 | - | ||
143 | -if __name__ == '__main__': | ||
144 | - USERNAME = sys.argv[1] | ||
145 | - PASSWORD = sys.argv[2] | ||
146 | - SERVICE = sys.argv[3] | ||
147 | - | ||
148 | - c = BOSHClient(USERNAME, PASSWORD, SERVICE) | ||
149 | - c.startSessionAndAuth() | ||
150 | - | ||
151 | - print c.logged_in | ||
152 | - |
public/javascripts/strophejs-1.0.1/examples/attach/manage.py
@@ -1,11 +0,0 @@ | @@ -1,11 +0,0 @@ | ||
1 | -#!/usr/bin/env python | ||
2 | -from django.core.management import execute_manager | ||
3 | -try: | ||
4 | - import settings # Assumed to be in the same directory. | ||
5 | -except ImportError: | ||
6 | - import sys | ||
7 | - sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) | ||
8 | - sys.exit(1) | ||
9 | - | ||
10 | -if __name__ == "__main__": | ||
11 | - execute_manager(settings) |
public/javascripts/strophejs-1.0.1/examples/attach/settings.py
@@ -1,85 +0,0 @@ | @@ -1,85 +0,0 @@ | ||
1 | -# Django settings for attach project. | ||
2 | - | ||
3 | -DEBUG = True | ||
4 | -TEMPLATE_DEBUG = DEBUG | ||
5 | - | ||
6 | -ADMINS = ( | ||
7 | - ('Some Body', 'romeo@example.com'), | ||
8 | -) | ||
9 | - | ||
10 | -MANAGERS = ADMINS | ||
11 | - | ||
12 | -DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. | ||
13 | -DATABASE_NAME = '/path/to/attach.db' # Or path to database file if using sqlite3. | ||
14 | -DATABASE_USER = '' # Not used with sqlite3. | ||
15 | -DATABASE_PASSWORD = '' # Not used with sqlite3. | ||
16 | -DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. | ||
17 | -DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. | ||
18 | - | ||
19 | -# Local time zone for this installation. Choices can be found here: | ||
20 | -# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name | ||
21 | -# although not all choices may be available on all operating systems. | ||
22 | -# If running in a Windows environment this must be set to the same as your | ||
23 | -# system time zone. | ||
24 | -TIME_ZONE = 'America/Denver' | ||
25 | - | ||
26 | -# Language code for this installation. All choices can be found here: | ||
27 | -# http://www.i18nguy.com/unicode/language-identifiers.html | ||
28 | -LANGUAGE_CODE = 'en-us' | ||
29 | - | ||
30 | -SITE_ID = 1 | ||
31 | - | ||
32 | -# If you set this to False, Django will make some optimizations so as not | ||
33 | -# to load the internationalization machinery. | ||
34 | -USE_I18N = True | ||
35 | - | ||
36 | -# Absolute path to the directory that holds media. | ||
37 | -# Example: "/home/media/media.lawrence.com/" | ||
38 | -MEDIA_ROOT = '' | ||
39 | - | ||
40 | -# URL that handles the media served from MEDIA_ROOT. Make sure to use a | ||
41 | -# trailing slash if there is a path component (optional in other cases). | ||
42 | -# Examples: "http://media.lawrence.com", "http://example.com/media/" | ||
43 | -MEDIA_URL = '' | ||
44 | - | ||
45 | -# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a | ||
46 | -# trailing slash. | ||
47 | -# Examples: "http://foo.com/media/", "/media/". | ||
48 | -ADMIN_MEDIA_PREFIX = '/media/' | ||
49 | - | ||
50 | -# Make this unique, and don't share it with anybody. | ||
51 | -SECRET_KEY = 'asdf' | ||
52 | - | ||
53 | -# List of callables that know how to import templates from various sources. | ||
54 | -TEMPLATE_LOADERS = ( | ||
55 | - 'django.template.loaders.filesystem.load_template_source', | ||
56 | - 'django.template.loaders.app_directories.load_template_source', | ||
57 | -# 'django.template.loaders.eggs.load_template_source', | ||
58 | -) | ||
59 | - | ||
60 | -MIDDLEWARE_CLASSES = ( | ||
61 | - 'django.middleware.common.CommonMiddleware', | ||
62 | - 'django.contrib.sessions.middleware.SessionMiddleware', | ||
63 | - 'django.contrib.auth.middleware.AuthenticationMiddleware', | ||
64 | -) | ||
65 | - | ||
66 | -ROOT_URLCONF = 'attach.urls' | ||
67 | - | ||
68 | -TEMPLATE_DIRS = ( | ||
69 | - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". | ||
70 | - # Always use forward slashes, even on Windows. | ||
71 | - # Don't forget to use absolute paths, not relative paths. | ||
72 | - '/path/to/attach/templates', | ||
73 | -) | ||
74 | - | ||
75 | -INSTALLED_APPS = ( | ||
76 | - 'django.contrib.auth', | ||
77 | - 'django.contrib.contenttypes', | ||
78 | - 'django.contrib.sessions', | ||
79 | - 'django.contrib.sites', | ||
80 | - 'attach.attacher', | ||
81 | -) | ||
82 | - | ||
83 | -BOSH_SERVICE = 'http://example.com/xmpp-httpbind' | ||
84 | -JABBERID = 'romeo@example.com/bosh' | ||
85 | -PASSWORD = 'juliet.is.hawt' |
public/javascripts/strophejs-1.0.1/examples/attach/templates/attacher/index.html
@@ -1,88 +0,0 @@ | @@ -1,88 +0,0 @@ | ||
1 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
2 | -<html xmlns='http://www.w3.org/1999/xhtml'> | ||
3 | - <head> | ||
4 | - <title>Strophe Attach Example</title> | ||
5 | - <script language='javascript' | ||
6 | - type='text/javascript' | ||
7 | - src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script> | ||
8 | - <script language='javascript' | ||
9 | - type='text/javascript' | ||
10 | - src='http://code.stanziq.com/svn/strophe/trunk/strophejs/b64.js'></script> | ||
11 | - <script language='javascript' | ||
12 | - type='text/javascript' | ||
13 | - src='http://code.stanziq.com/svn/strophe/trunk/strophejs/md5.js'></script> | ||
14 | - <script language='javascript' | ||
15 | - type='text/javascript' | ||
16 | - src='http://code.stanziq.com/svn/strophe/trunk/strophejs/sha1.js'></script> | ||
17 | - <script language='javascript' | ||
18 | - type='text/javascript' | ||
19 | - src='http://code.stanziq.com/svn/strophe/trunk/strophejs/strophe.js'></script> | ||
20 | - <script language='javascript' | ||
21 | - type='text/javascript'> | ||
22 | - <!-- | ||
23 | - var ATTACH_SID = "{{ sid }}"; | ||
24 | - var ATTACH_RID = "{{ rid }}"; | ||
25 | - var ATTACH_JID = "{{ jid }}"; | ||
26 | - var BOSH_SERVICE = '/xmpp-httpbind'; | ||
27 | - var connection = null; | ||
28 | - var startTime = null; | ||
29 | - | ||
30 | - function log(msg) | ||
31 | - { | ||
32 | - $('#log').append('<div></div>').append( | ||
33 | - document.createTextNode(msg)); | ||
34 | - } | ||
35 | - | ||
36 | - function onConnect(status) | ||
37 | - { | ||
38 | - if (status == Strophe.Status.DISCONNECTED) | ||
39 | - log('Disconnected.'); | ||
40 | - } | ||
41 | - | ||
42 | - function onResult(iq) { | ||
43 | - var elapsed = (new Date()) - startTime; | ||
44 | - log('Response from jabber.org took ' + elapsed + 'ms.'); | ||
45 | - } | ||
46 | - | ||
47 | - $(document).ready(function () { | ||
48 | - // create the connection and attach it | ||
49 | - connection = new Strophe.Connection(BOSH_SERVICE); | ||
50 | - connection.rawInput = function (data) { | ||
51 | - log('RECV: ' + data); | ||
52 | - }; | ||
53 | - connection.rawOutput = function (data) { | ||
54 | - log('SENT: ' + data); | ||
55 | - }; | ||
56 | - // uncomment for extra debugging | ||
57 | - // Strophe.log = function (lvl, msg) { log(msg); }; | ||
58 | - connection.attach(ATTACH_JID, ATTACH_SID, ATTACH_RID, | ||
59 | - onConnect); | ||
60 | - | ||
61 | - // set up handler | ||
62 | - connection.addHandler(onResult, null, 'iq', | ||
63 | - 'result', 'disco-1', null); | ||
64 | - | ||
65 | - log('Strophe is attached.'); | ||
66 | - | ||
67 | - // send disco#info to jabber.org | ||
68 | - var iq = $iq({to: 'jabber.org', | ||
69 | - type: 'get', | ||
70 | - id: 'disco-1'}) | ||
71 | - .c('query', {xmlns: Strophe.NS.DISCO_INFO}) | ||
72 | - .tree() | ||
73 | - | ||
74 | - startTime = new Date(); | ||
75 | - connection.send(iq); | ||
76 | - }); | ||
77 | - // --> | ||
78 | - </script> | ||
79 | - </head> | ||
80 | - <body> | ||
81 | - <h1>Strophe Attach Example</h1> | ||
82 | - <p>This example shows how to attach to an existing BOSH session with | ||
83 | - Strophe.</p> | ||
84 | - <h2>Log</h2> | ||
85 | - <div id='log'> | ||
86 | - </div> | ||
87 | - </body> | ||
88 | -</html> | ||
89 | \ No newline at end of file | 0 | \ No newline at end of file |
public/javascripts/strophejs-1.0.1/examples/attach/urls.py
@@ -1,19 +0,0 @@ | @@ -1,19 +0,0 @@ | ||
1 | -from django.conf.urls.defaults import * | ||
2 | - | ||
3 | -# Uncomment the next two lines to enable the admin: | ||
4 | -# from django.contrib import admin | ||
5 | -# admin.autodiscover() | ||
6 | - | ||
7 | -urlpatterns = patterns('', | ||
8 | - # Example: | ||
9 | - # (r'^attach/', include('attach.foo.urls')), | ||
10 | - | ||
11 | - # Uncomment the admin/doc line below and add 'django.contrib.admindocs' | ||
12 | - # to INSTALLED_APPS to enable admin documentation: | ||
13 | - # (r'^admin/doc/', include('django.contrib.admindocs.urls')), | ||
14 | - | ||
15 | - # Uncomment the next line to enable the admin: | ||
16 | - # (r'^admin/(.*)', admin.site.root), | ||
17 | - | ||
18 | - (r'^$', 'attach.attacher.views.index'), | ||
19 | -) |
public/javascripts/strophejs-1.0.1/examples/basic.html
@@ -1,25 +0,0 @@ | @@ -1,25 +0,0 @@ | ||
1 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
2 | -<html xmlns="http://www.w3.org/1999/xhtml"> | ||
3 | -<head> | ||
4 | - <title>Strophe.js Basic Example</title> | ||
5 | - <script type='text/javascript' | ||
6 | - src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script> | ||
7 | - <script type='text/javascript' | ||
8 | - src='../strophe.js'></script> | ||
9 | - <script type='text/javascript' | ||
10 | - src='basic.js'></script> | ||
11 | -</head> | ||
12 | -<body> | ||
13 | - <div id='login' style='text-align: center'> | ||
14 | - <form name='cred'> | ||
15 | - <label for='jid'>JID:</label> | ||
16 | - <input type='text' id='jid' /> | ||
17 | - <label for='pass'>Password:</label> | ||
18 | - <input type='password' id='pass' /> | ||
19 | - <input type='button' id='connect' value='connect' /> | ||
20 | - </form> | ||
21 | - </div> | ||
22 | - <hr /> | ||
23 | - <div id='log'></div> | ||
24 | -</body> | ||
25 | -</html> |
public/javascripts/strophejs-1.0.1/examples/basic.js
@@ -1,55 +0,0 @@ | @@ -1,55 +0,0 @@ | ||
1 | -var BOSH_SERVICE = '/xmpp-httpbind' | ||
2 | -var connection = null; | ||
3 | - | ||
4 | -function log(msg) | ||
5 | -{ | ||
6 | - $('#log').append('<div></div>').append(document.createTextNode(msg)); | ||
7 | -} | ||
8 | - | ||
9 | -function rawInput(data) | ||
10 | -{ | ||
11 | - log('RECV: ' + data); | ||
12 | -} | ||
13 | - | ||
14 | -function rawOutput(data) | ||
15 | -{ | ||
16 | - log('SENT: ' + data); | ||
17 | -} | ||
18 | - | ||
19 | -function onConnect(status) | ||
20 | -{ | ||
21 | - if (status == Strophe.Status.CONNECTING) { | ||
22 | - log('Strophe is connecting.'); | ||
23 | - } else if (status == Strophe.Status.CONNFAIL) { | ||
24 | - log('Strophe failed to connect.'); | ||
25 | - $('#connect').get(0).value = 'connect'; | ||
26 | - } else if (status == Strophe.Status.DISCONNECTING) { | ||
27 | - log('Strophe is disconnecting.'); | ||
28 | - } else if (status == Strophe.Status.DISCONNECTED) { | ||
29 | - log('Strophe is disconnected.'); | ||
30 | - $('#connect').get(0).value = 'connect'; | ||
31 | - } else if (status == Strophe.Status.CONNECTED) { | ||
32 | - log('Strophe is connected.'); | ||
33 | - connection.disconnect(); | ||
34 | - } | ||
35 | -} | ||
36 | - | ||
37 | -$(document).ready(function () { | ||
38 | - connection = new Strophe.Connection(BOSH_SERVICE); | ||
39 | - connection.rawInput = rawInput; | ||
40 | - connection.rawOutput = rawOutput; | ||
41 | - | ||
42 | - $('#connect').bind('click', function () { | ||
43 | - var button = $('#connect').get(0); | ||
44 | - if (button.value == 'connect') { | ||
45 | - button.value = 'disconnect'; | ||
46 | - | ||
47 | - connection.connect($('#jid').get(0).value, | ||
48 | - $('#pass').get(0).value, | ||
49 | - onConnect); | ||
50 | - } else { | ||
51 | - button.value = 'connect'; | ||
52 | - connection.disconnect(); | ||
53 | - } | ||
54 | - }); | ||
55 | -}); | ||
56 | \ No newline at end of file | 0 | \ No newline at end of file |