Skip to content

Instantly share code, notes, and snippets.

@Henner
Created April 3, 2013 05:56
Show Gist options
  • Save Henner/5298774 to your computer and use it in GitHub Desktop.
Save Henner/5298774 to your computer and use it in GitHub Desktop.
candy init file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Chat</title>
<meta charset="utf-8">
<link rel="shortcut icon" href="../res/img/favicon.png" type="image/gif" />
<link rel="stylesheet" type="text/css" href="/publish/js/lib/candy/res/default.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript" src="/publish/js/lib/candy/libs/libs.min.js"></script>
<script type="text/javascript" src="/publish/js/lib/candy/candy.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
Candy.init('/http-bind/', {
core: { debug: false, autojoin: ['room@conference.mydom.net'] },
view: { language: 'de', resources: '/publish/js/lib/candy/res/' }
});
Candy.Core.connect('jabber.miadi.net', null, 'my.username');
});
</script>
</head>
<body leftmargin="0" topmargin="0" style="overflow: hidden;">
<div id="candy"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment