�PNG
IHDR � � ;�� �IDATx��ܻn�0���K��
�)(�pA������7�LeG{�� �§㻢|��ذaÆ
6lذaÆ
6lذaÆ
6lom��$^�y���ذag�5 bÆ
6lذaÆ
6lذa{����
6lذaÆ
�`����}H�Fkm�,�m����Ӫ���ô�ô!��x�|'ܢ˟;�E:���9�&ᶒ�}�{�v]�n&�6�
�h��_��t�ڠ͵-ҫ���Z;��Z$�.�P���k�ž)�!��o���>}l�eQfJ�T��u і���چ��\��X=8��Rن4`Vw�l�>����n�G�^��i�s��"ms�$�u��i��?w�bs[m�6�K4���O���.�4��%����/����b�C%��t��M�ז� �-l�G6�mrz2���s�%�9��s@���-�k�9�=���)������k�B5����\��+͂�Zsٲ��Rn��~G���R���C������wIcI��n7jJ���hۛNCS|���j0��8y�iHKֶۛ�k�Ɉ+;Sz������L /��F�*\��Ԕ�#"5��m�2��[S��������=�g��n�a�P�e�ғ�L��
lذaÆ
6l�^k��̱aÆ
6lذaÆ
6lذa;����
�_��ذaÆ
6lذaÆ
6lذaÆ
���R��� IEND�B`
// Generated by CoffeeScript 1.12.7
(function() {
var HtmlFileReceiver, iframe_template, transport, utils,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
utils = require('./utils');
transport = require('./transport');
iframe_template = "\n
\n \n \nDon't panic!
\n ";
iframe_template += Array(1024 - iframe_template.length + 14).join(' ');
iframe_template += '\r\n\r\n';
HtmlFileReceiver = (function(superClass) {
extend(HtmlFileReceiver, superClass);
function HtmlFileReceiver() {
return HtmlFileReceiver.__super__.constructor.apply(this, arguments);
}
HtmlFileReceiver.prototype.protocol = "htmlfile";
HtmlFileReceiver.prototype.doSendFrame = function(payload) {
return HtmlFileReceiver.__super__.doSendFrame.call(this, '\r\n');
};
return HtmlFileReceiver;
})(transport.ResponseReceiver);
exports.app = {
htmlfile: function(req, res) {
var callback;
if (!('c' in req.query || 'callback' in req.query)) {
throw {
status: 500,
message: '"callback" parameter required'
};
}
callback = 'c' in req.query ? req.query['c'] : req.query['callback'];
if (/[^a-zA-Z0-9-_.]/.test(callback)) {
throw {
status: 500,
message: 'invalid "callback" parameter'
};
}
res.setHeader('Content-Type', 'text/html; charset=UTF-8');
res.writeHead(200);
res.write(iframe_template.replace(/{{ callback }}/g, callback));
transport.register(req, this, new HtmlFileReceiver(req, res, this.options));
return true;
}
};
}).call(this);