]> git.babelmonkeys.de Git - xmppchat.git/commitdiff
Separate config
authorFlorian Zeitz <florob@babelmonkeys.de>
Sat, 28 Nov 2009 21:26:01 +0000 (22:26 +0100)
committerFlorian Zeitz <florob@babelmonkeys.de>
Sat, 28 Nov 2009 21:26:01 +0000 (22:26 +0100)
 * Config in a separate file
 * Default is now SASL ANONYMOUS
 * use compiled strophe.js

index.html
js/config.js [new file with mode: 0644]
js/main.js

index 57da6a7dfffd646aebe75636bf742402c2903681..25d86c58052a6dcaeb238237afd2757b3af4c060 100644 (file)
@@ -7,10 +7,8 @@
 <link rel="stylesheet" type="text/css" href="style.css" />
 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
 <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
-<script type="text/javascript" src="js/strophejs/src/b64.js"></script>
-<script type="text/javascript" src="js/strophejs/src/md5.js"></script>
-<script type="text/javascript" src="js/strophejs/src/sha1.js"></script>
-<script type="text/javascript" src="js/strophejs/src/strophe.js"></script>
+<script type="text/javascript" src="js/strophejs/strophe.js"></script>
+<script type="text/javascript" src="js/config.js"></script>
 <script type="text/javascript" src="js/main.js"></script>
 </head>
 <body>
diff --git a/js/config.js b/js/config.js
new file mode 100644 (file)
index 0000000..aa44de0
--- /dev/null
@@ -0,0 +1,5 @@
+var BOSH_LOCATION = '/http-bind/';
+var room = 'test@conference.localhost';
+var jid = 'anon.localhost'
+var password = '';
+
index 5329f8bf20cd9937775812d38eb5884f838f3357..c64776da37ac3b9bcffbce38cf17703797323adb 100644 (file)
@@ -1,7 +1,3 @@
-var BOSH_LOCATION = '/http-bind/';
-var room = 'guests@conference.babelmonkeys.de';
-var jid = 'muckl@babelmonkeys.de'
-var password = 'ooje0OjuJeekaek6';
 var connection = null;
 var nickname;