This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:3:bafyreibixj5x3now662kuo2agzwt4zfcsv45fix5pkorc5by3boyuxz66m ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var websocket_stream = require('websocket-stream'); | |
var inject = require('reconnect-core'); | |
var PassThrough = require('stream').PassThrough; | |
var Duplex = require('stream').Duplex; | |
var reconnect = inject(function (_url) { | |
return websocket_stream(_url); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
````js | |
var dnode = require('dnode'); | |
var PassThrough = require('stream').PassThrough; | |
var inject = require('reconnect-core'); | |
var reconnect = inject(function (_url) { | |
return websocket_stream(_url); | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var el = document.body; // any parent html element | |
var iframe = document.createElement('iframe'); | |
el.appendChild(iframe); | |
var doc = (iframe.contentWindow.document || iframe.contentDocument); | |
(iframe.frameElement || iframe).style.cssText = "width: 100%; height: 100%; border:0"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ie6 maxHeight shim | |
.maxHeight { | |
max-hegiht: 182px; | |
_height: expression(this.scrollHeight > 182 ? '182' : this.scrollHeight); | |
} | |
ie6 maxWidth shim | |
.maxWidth { | |
max-width: 396px; | |
_width: ~"expression(this.scrollWidth > 396 ? '396' : this.scrollWidth)"; |