c3d2-web/content/static/candy/index.html

78 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Candy - Chats are not dead yet</title>
<link rel="shortcut icon" href="res/img/favicon.png" type="image/gif" />
<link rel="stylesheet" type="text/css" href="res/default.css" />
<script type="text/javascript" src="jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="libs.min.js"></script>
<script type="text/javascript" src="candy.min.js"></script>
<script type="text/javascript" src="plugins/timeago/candy.js"></script>
<link rel="stylesheet" type="text/css" href="plugins/timeago/candy.css" />
<script type="text/javascript" src="plugins/inline-images/candy.js"></script>
<link rel="stylesheet" type="text/css" href="plugins/inline-images/candy.css" />
<script type="text/javascript" src="plugins/inline-videos/candy.js"></script>
<script type="text/javascript" src="plugins/typingnotifications/typingnotifications.js"></script>
<link rel="stylesheet" type="text/css" href="plugins/typingnotifications/typingnotifications.css" />
<script type="text/javascript" src="plugins/namecomplete/candy.js"></script>
<link rel="stylesheet" type="text/css" href="plugins/namecomplete/candy.css" />
<script type="text/javascript" src="plugins/notifications/candy.js"></script>
<script type="text/javascript" src="plugins/notifyme/candy.js"></script>
<link rel="stylesheet" type="text/css" href="plugins/notifyme/candy.css" />
<script type="text/javascript" src="plugins/me-does/candy.js"></script>
<script type="text/javascript">
$(document).ready(function() {
function rid() {
return "" + Math.ceil(99999999 * Math.random());
}
var nick = "Candy-" + rid();
var m;
if ((m = window.location.search.match(/nick=([^\&]+)/))) {
nick = decodeURIComponent(m[1]);
}
Candy.init('https://jabber.c3d2.de/http-bind/', {
core: {
// only set this to true if developing / debugging errors
debug: false,
// autojoin is a *required* parameter if you don't have a plugin (e.g. roomPanel) for it
// true
// -> fetch info from server (NOTE: does only work with openfire server)
// ['test@conference.example.com']
// -> array of rooms to join after connecting
resource: rid(),
autojoin: ["c3d2@chat.c3d2.de"]
},
view: { assets: 'res/' }
});
CandyShop.Timeago.init();
CandyShop.NotifyMe.init();
CandyShop.InlineImages.init();
CandyShop.InlineVideos.init();
CandyShop.TypingNotifications.init();
CandyShop.NameComplete.init();
CandyShop.Notifications.init();
CandyShop.NotifyMe.init();
CandyShop.MeDoes.init();
Candy.Core.connect("anon.jabber.c3d2.de", null, nick);
});
</script>
</head>
<body>
<div id="candy"></div>
</body>
</html>