blob: 02e33fc1f34bea4081bad9aabe434b5240d0c8d3 [file] [log] [blame]
Jeff Thompson336fcb92012-11-11 19:23:34 -08001// Including js files to be used in the web pages
2// Add your js source code reference here, rather than in the HTML files
3
Wentao Shangf405a682012-11-17 13:39:41 -08004// Find path to Helper.js
5var scripts = document.getElementsByTagName('SCRIPT');
6var path = '';
Jeff Thompson336fcb92012-11-11 19:23:34 -08007
Wentao Shangf405a682012-11-17 13:39:41 -08008if(scripts && scripts.length>0) {
9 for(var i in scripts) {
10 if(scripts[i].src && scripts[i].src.match(/Helper\.js$/)) {
11 path = scripts[i].src.replace(/(.*)Helper\.js$/, '$1');
12 }
13 }
14}
15console.log(path);
Jeff Thompson5b265a72012-11-12 01:13:08 -080016
Wentao Shangf405a682012-11-17 13:39:41 -080017document.write('<script type="text/javascript" src="' + path + 'WebSocketTransport.js"></script>');
18
19document.write('<script type="text/javascript" src="' + path + 'util/CCNProtocolDTags.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080020
Wentao Shangf405a682012-11-17 13:39:41 -080021document.write('<script type="text/javascript" src="' + path + 'util/CCNTime.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080022
Wentao Shangf405a682012-11-17 13:39:41 -080023document.write('<script type="text/javascript" src="' + path + 'Name.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080024
Wentao Shangf405a682012-11-17 13:39:41 -080025document.write('<script type="text/javascript" src="' + path + 'ContentObject.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080026
Wentao Shangf405a682012-11-17 13:39:41 -080027document.write('<script type="text/javascript" src="' + path + 'encoding/DateFormat.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080028
Wentao Shangf405a682012-11-17 13:39:41 -080029document.write('<script type="text/javascript" src="' + path + 'Interest.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080030
Wentao Shangf405a682012-11-17 13:39:41 -080031document.write('<script type="text/javascript" src="' + path + 'Key.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080032
Wentao Shangf405a682012-11-17 13:39:41 -080033document.write('<script type="text/javascript" src="' + path + 'PublisherID.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080034
Wentao Shangf405a682012-11-17 13:39:41 -080035document.write('<script type="text/javascript" src="' + path + 'PublisherPublicKeyDigest.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080036
Wentao Shangf405a682012-11-17 13:39:41 -080037document.write('<script type="text/javascript" src="' + path + 'FaceInstance.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080038
Wentao Shangf405a682012-11-17 13:39:41 -080039document.write('<script type="text/javascript" src="' + path + 'ForwardingEntry.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080040
Wentao Shangf405a682012-11-17 13:39:41 -080041document.write('<script type="text/javascript" src="' + path + 'Closure.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080042
Jeff Thompson768870c2012-12-29 21:56:41 -080043document.write('<script type="text/javascript" src="' + path + 'encoding/DynamicUint8Array.js"></script>');
44
Wentao Shangf405a682012-11-17 13:39:41 -080045document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLEncoder.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080046
Wentao Shangf405a682012-11-17 13:39:41 -080047document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLDecoder.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080048
Wentao Shangf405a682012-11-17 13:39:41 -080049document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLStructureDecoder.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080050
Wentao Shangf405a682012-11-17 13:39:41 -080051document.write('<script type="text/javascript" src="' + path + 'encoding/DataUtils.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080052
Wentao Shangf405a682012-11-17 13:39:41 -080053document.write('<script type="text/javascript" src="' + path + 'encoding/EncodingUtils.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080054
Wentao Shangf405a682012-11-17 13:39:41 -080055document.write('<script type="text/javascript" src="' + path + 'security/KeyManager.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080056
Jeff Thompson25cb56f2013-01-20 21:20:38 -080057document.write('<script type="text/javascript" src="' + path + 'NDN.js"></script>');
58
Wentao Shangf405a682012-11-17 13:39:41 -080059document.write('<script type="text/javascript" src="' + path + 'securityLib/jsbn.js"></script>');
60document.write('<script type="text/javascript" src="' + path + 'securityLib/jsbn2.js"></script>');
61document.write('<script type="text/javascript" src="' + path + 'securityLib/rsa.js"></script>');
62document.write('<script type="text/javascript" src="' + path + 'securityLib/rsa2.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080063
Wentao Shang0e291c82012-12-02 23:36:29 -080064//document.write('<script type="text/javascript" src="' + path + 'securityLib/sha1.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080065document.write('<script type="text/javascript" src="' + path + 'securityLib/sha256.js"></script>');
Wentao Shang0e291c82012-12-02 23:36:29 -080066//document.write('<script type="text/javascript" src="' + path + 'securityLib/sha512.js"></script>');
67//document.write('<script type="text/javascript" src="' + path + 'securityLib/md5.js"></script>');
68//document.write('<script type="text/javascript" src="' + path + 'securityLib/ripemd160.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080069document.write('<script type="text/javascript" src="' + path + 'securityLib/base64.js"></script>');
Jeff Thompson336fcb92012-11-11 19:23:34 -080070
Wentao Shangf405a682012-11-17 13:39:41 -080071document.write('<script type="text/javascript" src="' + path + 'securityLib/rsapem-1.1.js"></script>');
72document.write('<script type="text/javascript" src="' + path + 'securityLib/rsasign-1.2.js"></script>');
73document.write('<script type="text/javascript" src="' + path + 'securityLib/asn1hex-1.1.js"></script>');
Jeff Thompson1e4c1832012-12-29 17:05:57 -080074document.write('<script type="text/javascript" src="' + path + 'securityLib/x509-1.1.js"></script>');