blob: 91bb6cb872190c54da0fdf925bc27bc2551e901c [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>');
Wentao Shangf405a682012-11-17 13:39:41 -080018document.write('<script type="text/javascript" src="' + path + 'util/CCNProtocolDTags.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080019document.write('<script type="text/javascript" src="' + path + 'util/CCNTime.js"></script>');
Jeff Thompson65a11e42013-02-18 17:47:59 -080020document.write('<script type="text/javascript" src="' + path + 'util/ExponentialReExpressClosure.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080021document.write('<script type="text/javascript" src="' + path + 'Name.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080022document.write('<script type="text/javascript" src="' + path + 'ContentObject.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080023document.write('<script type="text/javascript" src="' + path + 'encoding/DateFormat.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080024document.write('<script type="text/javascript" src="' + path + 'Interest.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080025document.write('<script type="text/javascript" src="' + path + 'Key.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080026document.write('<script type="text/javascript" src="' + path + 'PublisherID.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080027document.write('<script type="text/javascript" src="' + path + 'PublisherPublicKeyDigest.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080028document.write('<script type="text/javascript" src="' + path + 'FaceInstance.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080029document.write('<script type="text/javascript" src="' + path + 'ForwardingEntry.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080030document.write('<script type="text/javascript" src="' + path + 'Closure.js"></script>');
Jeff Thompson768870c2012-12-29 21:56:41 -080031document.write('<script type="text/javascript" src="' + path + 'encoding/DynamicUint8Array.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080032document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLEncoder.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080033document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLDecoder.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080034document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLStructureDecoder.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080035document.write('<script type="text/javascript" src="' + path + 'encoding/DataUtils.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080036document.write('<script type="text/javascript" src="' + path + 'encoding/EncodingUtils.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080037document.write('<script type="text/javascript" src="' + path + 'security/KeyManager.js"></script>');
Jeff Thompson25cb56f2013-01-20 21:20:38 -080038document.write('<script type="text/javascript" src="' + path + 'NDN.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080039document.write('<script type="text/javascript" src="' + path + 'securityLib/jsbn.js"></script>');
40document.write('<script type="text/javascript" src="' + path + 'securityLib/jsbn2.js"></script>');
41document.write('<script type="text/javascript" src="' + path + 'securityLib/rsa.js"></script>');
42document.write('<script type="text/javascript" src="' + path + 'securityLib/rsa2.js"></script>');
Wentao Shang0e291c82012-12-02 23:36:29 -080043//document.write('<script type="text/javascript" src="' + path + 'securityLib/sha1.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080044document.write('<script type="text/javascript" src="' + path + 'securityLib/sha256.js"></script>');
Wentao Shang0e291c82012-12-02 23:36:29 -080045//document.write('<script type="text/javascript" src="' + path + 'securityLib/sha512.js"></script>');
46//document.write('<script type="text/javascript" src="' + path + 'securityLib/md5.js"></script>');
47//document.write('<script type="text/javascript" src="' + path + 'securityLib/ripemd160.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080048document.write('<script type="text/javascript" src="' + path + 'securityLib/base64.js"></script>');
Wentao Shangf405a682012-11-17 13:39:41 -080049document.write('<script type="text/javascript" src="' + path + 'securityLib/rsapem-1.1.js"></script>');
50document.write('<script type="text/javascript" src="' + path + 'securityLib/rsasign-1.2.js"></script>');
51document.write('<script type="text/javascript" src="' + path + 'securityLib/asn1hex-1.1.js"></script>');
Jeff Thompson1e4c1832012-12-29 17:05:57 -080052document.write('<script type="text/javascript" src="' + path + 'securityLib/x509-1.1.js"></script>');