This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<!--[if lt IE 9]><html xmlns="http://www.w3.org/1999/xhtml" class="ie8"><![endif]--> | |
<!--[if IE 9]><html xmlns="http://www.w3.org/1999/xhtml" class="ie9"><![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html xmlns="http://www.w3.org/1999/xhtml" class="other"> <!--<![endif]--> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title></title> | |
<style> | |
.container0 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _connect = function(jid, password) { | |
var connection = new Strophe.Connection('http://localhost:5280/http-bind'); | |
connection.connect(jid, password, function(status) | |
{ | |
if (status == Strophe.Status.CONNECTING) { | |
console.log('Strophe is connecting.'); | |
} else if (status == Strophe.Status.CONNFAIL) { | |
console.log('Strophe failed to connect.'); | |
} else if (status == Strophe.Status.AUTHFAIL) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$cacheBuster = "t26"; | |
$possibleLangValues = array( | |
@$_REQUEST[ 'lang' ], | |
@$_SERVER[ 'HTTP_X_FACEBOOK_LOCALE' ], | |
@$_REQUEST[ 'fb_locale' ], | |
@$_REQUEST[ 'fb_ref' ], | |
@$_REQUEST[ 'locale' ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
jQuery templates use constructs like: | |
{{if condition}} print something{{/if}} | |
This, of course, completely screws up Django templates, | |
because Django thinks {{ and }} mean something. | |
Wrap {% verbatim %} and {% endverbatim %} around those | |
blocks of jQuery templates and this will try its best |