Permalink
Browse files

recompiling js

  • Loading branch information...
geremy
geremy committed Apr 15, 2013
1 parent f686e52 commit 33653102fcee8c4169c5b64453afd2b24c0aaae8
Showing with 878 additions and 925 deletions.
  1. +2 −0 .gitignore
  2. +9 −9 core/crypto/gibberish-aes.js
  3. +8 −8 core/pubnub-common.js
  4. +1 −1 core/websocket.js
  5. +1 −1 examples/ascii-player/ascii-player.html
  6. +5 −5 examples/audio-mosaic/audio-mosaic.html
  7. +3 −3 examples/audio-mosaic/audio-mosaic.js
  8. +5 −5 examples/chat-with-sounds/chat.html
  9. +6 −6 examples/crypto/index.html
  10. +11 −11 examples/dev-console-3.4/dev-console.html
  11. +1 −1 examples/dot-moving-on-screen/dot-on-screen.html
  12. +3 −3 examples/facebook-notification/bootstrap-modal.js
  13. +5 −5 examples/keystroke-chat/keystroke-chat.html
  14. +1 −1 examples/keystroke-chat/keystroke-chat.js
  15. +5 −5 examples/latency-check/latency.html
  16. +1 −1 examples/mobile-chat/mobile-chat.html
  17. +4 −4 examples/mouse-speak-1.1/mouse-speak.js
  18. +3 −3 examples/mouse-speak/mouse-speak.js
  19. +6 −6 examples/performance-meter/index.html
  20. +12 −12 examples/server-monitor/monitor.html
  21. +6 −6 examples/stalker/stalker.js
  22. +23 −23 examples/walkie-talkie/iuppiter.js
  23. +1 −1 examples/walkie-talkie/sound.js
  24. +20 −20 modern/pubnub-crypto.min.js
  25. +14 −14 modern/pubnub.js
  26. +19 −40 modern/pubnub.min.js
  27. +1 −1 modern/tests/example.html
  28. +2 −2 modern/tests/unit-test.html
  29. +1 −1 modern/tests/webworker.html
  30. +7 −7 modern/tests/webworker.js
  31. +5 −5 modern/unassembled/platform.js
  32. +1 −1 nodejs/examples/keystroke.js
  33. +35 −35 nodejs/examples/listener.js
  34. +14 −14 nodejs/pubnub.js
  35. +140 −140 nodejs/tests/test.js
  36. +6 −6 nodejs/unassembled/platform.js
  37. +3 −3 phonegap/index.html
  38. +20 −20 phonegap/pubnub-crypto.min.js
  39. +14 −14 phonegap/pubnub.js
  40. +20 −20 phonegap/pubnub.min.js
  41. +1 −1 sencha/examples/here_now/app.js
  42. +2 −2 sencha/examples/history/app.js
  43. +1 −1 sencha/examples/subscribe/app.js
  44. +20 −20 sencha/pubnub-crypto.min.js
  45. +14 −14 sencha/pubnub.js
  46. +20 −20 sencha/pubnub.min.js
  47. +1 −1 socket.io/bootstrap-mobile/index.html
  48. +1 −1 socket.io/non-socket-io-communication/index.html
  49. +1 −1 socket.io/public-private-communication/public-private-communication.html
  50. +1 −1 socket.io/simple-button/app.js
  51. +1 −1 socket.io/simple-button/index.html
  52. +7 −7 socket.io/socket.io-base.js
  53. +40 −40 socket.io/socket.io.min.js
  54. +1 −1 socket.io/unit-test/unit-test.html
  55. +15 −15 titanium/examples/desktop/app.js
  56. +24 −24 titanium/examples/desktop/pubnub.js
  57. +3 −3 titanium/examples/mobile/chat-example-app/Resources/pubnub-chat.js
  58. +24 −24 titanium/examples/mobile/chat-example-app/Resources/pubnub.js
  59. +11 −11 titanium/examples/mobile/detailed-history-example-app/Resources/pubnub-detailed-history.js
  60. +24 −24 titanium/examples/mobile/detailed-history-example-app/Resources/pubnub.js
  61. +1 −1 titanium/examples/mobile/here-now-example-app/Resources/pubnub-here-now.js
  62. +24 −24 titanium/examples/mobile/here-now-example-app/Resources/pubnub.js
  63. +24 −24 titanium/pubnub.js
  64. +16 −16 titanium/unassembled/platform.js
  65. +2 −2 web/examples/advanced.html
  66. +6 −6 web/examples/presence/index.html
  67. +12 −12 web/examples/presence/js/pubnub-3.1.js
  68. +1 −1 web/examples/simple-chat.js
  69. +4 −4 web/examples/simple.html
  70. +20 −20 web/pubnub-crypto.min.js
  71. +15 −15 web/pubnub.js
  72. +28 −56 web/pubnub.min.js
  73. +6 −6 web/tests/crypto.html
  74. +2 −2 web/tests/multiplexing.html
  75. +6 −6 web/unassembled/platform.js
  76. +1 −1 webos/index.html
  77. +20 −20 webos/pubnub-crypto.min.js
  78. +14 −14 webos/pubnub.js
  79. +20 −20 webos/pubnub.min.js
View
@@ -1 +1,3 @@
node_modules
+javascript.iml
+.idea
@@ -192,7 +192,7 @@ PUBNUB['crypto'] = (function(){
string += block2s(plainBlocks[i]);
}
string += block2s(plainBlocks[i], true);
- return binary ? string : dec_utf8(string);
+ return binary ? string : dec_utf8(string);
},
encryptBlock = function(block, words) {
@@ -267,7 +267,7 @@ PUBNUB['crypto'] = (function(){
t[3+c*4] = GBX[state[c*4]] ^ GDX[state[1+c*4]] ^ G9X[state[2+c*4]] ^ GEX[state[3+c*4]];
}
}
-
+
return t;
},
@@ -610,7 +610,7 @@ PUBNUB['crypto'] = (function(){
string = rawDecrypt(cryptArr, key, iv, binary);
return string;
},
-
+
MD5 = function(numArr) {
function rotateLeft(lValue, iShiftBits) {
@@ -873,7 +873,7 @@ PUBNUB['crypto'] = (function(){
// Takes a Nx16x1 byte array and converts it to Base64
var _chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
chars = _chars.split(''),
-
+
encode = function(b, withBreaks) {
var flatArr = [],
b64 = '',
@@ -904,7 +904,7 @@ PUBNUB['crypto'] = (function(){
}
return broken_b64;
},
-
+
decode = function(string) {
string = string.replace(/\n/g, '');
var flatArr = [],
@@ -925,12 +925,12 @@ PUBNUB['crypto'] = (function(){
flatArr = flatArr.slice(0, flatArr.length - (flatArr.length % 16));
return flatArr;
};
-
+
//internet explorer
if(typeof Array.indexOf === "function") {
_chars = chars;
}
-
+
/*
//other way to solve internet explorer problem
if(!Array.indexOf){
@@ -944,8 +944,8 @@ PUBNUB['crypto'] = (function(){
}
}
*/
-
-
+
+
return {
"encode": encode,
"decode": decode
View
@@ -39,7 +39,7 @@ var nextorigin = (function() {
/**
* Build Url
* =======
- *
+ *
*/
function build_url(url_components, url_params) {
var url = url_components.join(URLBIT);
@@ -52,7 +52,7 @@ function build_url(url_components, url_params) {
}
url += params.join(PARAMSBIT);
}
- return url;
+ return url;
}
/**
@@ -237,7 +237,7 @@ function PN_API(setup) {
if (jsonp != '0') data['callback'] = jsonp;
-
+
xdr({
blocking : blocking || SSL,
timeout : 2000,
@@ -257,7 +257,7 @@ function PN_API(setup) {
});
*/
'history' : function( args, callback ) {
- var callback = args['callback'] || callback
+ var callback = args['callback'] || callback
, count = args['count'] || args['limit'] || 100
, reverse = args['reverse'] || "false"
, err = args['error'] || function(){}
@@ -568,7 +568,7 @@ function PN_API(setup) {
SUB_RESTORE &&
db['get'](SUBSCRIBE_KEY) || messages[1];
-
+
if (backfill) {
Timetoken = 10000;
backfill = 0;
@@ -621,7 +621,7 @@ function PN_API(setup) {
},
'here_now' : function( args, callback ) {
- var callback = args['callback'] || callback
+ var callback = args['callback'] || callback
, err = args['error'] || function(){}
, channel = args['channel']
, jsonp = jsonp_cb()
@@ -631,7 +631,7 @@ function PN_API(setup) {
if (!channel) return error('Missing Channel');
if (!callback) return error('Missing Callback');
if (!SUBSCRIBE_KEY) return error('Missing Subscribe Key');
-
+
if (jsonp != '0') {
data = {};
data['callback'] = jsonp;
@@ -644,7 +644,7 @@ function PN_API(setup) {
fail : err,
url : [
STD_ORIGIN, 'v2', 'presence',
- 'sub_key', SUBSCRIBE_KEY,
+ 'sub_key', SUBSCRIBE_KEY,
'channel', encode(channel)
]
});
View
@@ -34,7 +34,7 @@ var WS = PUBNUB['ws'] = function( url, protocols ) {
self['CLOSE_ABNORMAL'] = 1006; // Abnormal Disconnect.
// Events Default
- self['onclose'] = self['onerror'] =
+ self['onclose'] = self['onerror'] =
self['onmessage'] = self['onopen'] =
self['onsend'] = function(){};
@@ -66,7 +66,7 @@
function parse(data) { return data }
-
+
})();</script>
</body>
</html>
@@ -1,14 +1,14 @@
-<!doctype html>
-<html>
-<head>
- <title>PubNub Audio Mosaic</title>
+<!doctype html>
+<html>
+<head>
+ <title>PubNub Audio Mosaic</title>
<link href=audio-mosaic.css rel=stylesheet type=text/css >
<link
href=http://fonts.googleapis.com/css?family=Bowlby+One+SC|Didact+Gothic&v2
rel=stylesheet
type=text/css
>
-</head>
+</head>
<body><div class=stage>
<audio id=audio preload >
@@ -1,5 +1,5 @@
(function(){
-
+
var p = PUBNUB
, now = function() { return+new Date }
, start = now()
@@ -245,7 +245,7 @@
}
// ======================================================================
- // EVENT: ROTATE AUDIO
+ // EVENT: ROTATE AUDIO
// ======================================================================
p.events.bind( 'rotate-audio', function(data) {
if (userid === data.userid) return audio.stop();
@@ -259,7 +259,7 @@
, diff = current - start_timer
, mill = (''+diff).split('').slice(-3).join('')
, sec = Math.floor(diff / 1000) % 60
- , min = Math.floor(diff / 60000);
+ , min = Math.floor(diff / 60000);
sec < 10 && (sec = "0" + sec);
min < 10 && (min = "0" + min);
@@ -12,22 +12,22 @@
var box = PUBNUB.$('box'), input = PUBNUB.$('input'), channel = 'chatlllll';
PUBNUB.subscribe({
channel : channel,
- callback : function(text) {
+ callback : function(text) {
// PLAY SOUND HERE
sounds.play('chat');
// UPDATE TEXT OUTPUT HERE
- box.innerHTML =
+ box.innerHTML =
(''+text).replace( /[<>]/g, '' ) +
'<br>' +
- box.innerHTML;
+ box.innerHTML;
}
});
PUBNUB.bind( 'keyup', input, function(e) {
(e.keyCode || e.charCode) === 13 && PUBNUB.publish({
- channel : channel,
- message : input.value,
+ channel : channel,
+ message : input.value,
x : (input.value='')
});
});
View
@@ -1,7 +1,7 @@
-<!doctype html>
-<html>
-<head>
- <title>PubNub Crypto</title>
+<!doctype html>
+<html>
+<head>
+ <title>PubNub Crypto</title>
<link href="bootstrap.min.css" rel="stylesheet">
<style>body {padding-top:60px}</style>
<link href="bootstrap-responsive.min.css" rel="stylesheet">
@@ -24,7 +24,7 @@
height: 80px;
}
</style>
-</head>
+</head>
<body>
<div class="navbar navbar-fixed-top">
@@ -103,7 +103,7 @@ <h4>Secure Message</h4>
<h4>Encrypted Traffic</h4>
<p>
- View the Source Code of <code>index.html</code> to see how Encryption is handled.
+ View the Source Code of <code>index.html</code> to see how Encryption is handled.
See the <code>encrypt-pubnub.js</code> file to learn more about the
implementation used by PubNub JavaScript client.
</p>
@@ -37,8 +37,8 @@
position: absolute;
top: 40px;
left: 460px;
- width: 0;
- height: 0;
+ width: 0;
+ height: 0;
border-top: 40px solid transparent;
border-left: 50px solid #ee432e;
border-bottom: 40px solid transparent;
@@ -121,19 +121,19 @@
-o-border-radius: 6px;
border-radius: 6px;
- -webkit-box-shadow:
+ -webkit-box-shadow:
inset 0px 0px 30px 1px rgba(120, 120, 120, 0.6),
0 0 5px rgba(0, 0, 0, 0.4);
- -moz-box-shadow:
+ -moz-box-shadow:
inset 0px 0px 30px 1px rgba(120, 120, 120, 0.6),
0 0 5px rgba(0, 0, 0, 0.4);
- -ms-box-shadow:
+ -ms-box-shadow:
inset 0px 0px 30px 1px rgba(120, 120, 120, 0.6),
0 0 5px rgba(0, 0, 0, 0.4);
- -o-box-shadow:
+ -o-box-shadow:
inset 0px 0px 30px 1px rgba(120, 120, 120, 0.6),
0 0 5px rgba(0, 0, 0, 0.4);
- box-shadow:
+ box-shadow:
inset 0px 0px 30px 1px rgba(120, 120, 120, 0.6),
0 0 5px rgba(0, 0, 0, 0.4);
}
@@ -388,25 +388,25 @@ <h1 class=console-title>Dev Console</h1>
<!-- EDIT SETTINGS AREA -->
<div id=console-edit-settings>
<div class=console-section-header>MODIFY YOUR SETTINGS</div>
-
+
</div>
<!-- DETAILS AREA -->
<div id=console-details-area>
<!-- LATENCY -->
<div id=console-latency>
-
+
</div>
<!-- OCCUPANCY -->
<div id=console-occupancy>
-
+
</div>
<!-- JOIN/LEAVE BLINKER -->
<div id=console-join-leave>
-
+
</div>
</div>
@@ -12,7 +12,7 @@
border-radius: 100px;
-webkit-perspective: 1000;
- -webkit-backface-visibility: hidden;
+ -webkit-backface-visibility: hidden;
-webkit-transition: all 1s;
-moz-transition: all 1s;
@@ -40,11 +40,11 @@
if ( $.support.transition ) {
transitionEnd = "TransitionEnd"
if ( $.browser.webkit ) {
- transitionEnd = "webkitTransitionEnd"
+ transitionEnd = "webkitTransitionEnd"
} else if ( $.browser.mozilla ) {
- transitionEnd = "transitionend"
+ transitionEnd = "transitionend"
} else if ( $.browser.opera ) {
- transitionEnd = "oTransitionEnd"
+ transitionEnd = "oTransitionEnd"
}
}
@@ -1,8 +1,8 @@
-<!doctype html>
-<html>
-<head>
- <title>PubNub Keystroke Chat</title>
-</head>
+<!doctype html>
+<html>
+<head>
+ <title>PubNub Keystroke Chat</title>
+</head>
<body>
<!-- BEGIN: Source Code for Chat :BEGIN -->
@@ -222,7 +222,7 @@ PUBNUB.bind( 'mousedown,touchstart', username_change, function() {
PUBNUB.bind( 'click', turn_off, function() {
var turn_it_off = confirm("Turn OFF?");
if (!turn_it_off) return;
-
+
PUBNUB.css( settings, { 'display' : 'none' } );
PUBNUB.unsubscribe({ 'channel' : channel });
} );
Oops, something went wrong.

0 comments on commit 3365310

Please sign in to comment.