This file contains hidden or 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
| function dump(context, options) { | |
| function type(value){ | |
| var type = ''; | |
| if( Object.prototype.toString.call( value ) === '[object Array]' ){ | |
| type = 'array'; | |
| } else if(typeof value == 'object' ) { | |
| type = 'object'; | |
| } else { | |
| type = 'primitive'; |
This file contains hidden or 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 r = /\<script[\w\s\W]+?(\[CDATA\[)([\w\s\W]+?)(\]\]\>([\w\n]|)\<\/script\>)/ |
This file contains hidden or 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
| function makeChromeSmoothReplaceImage(img, maximumSize){ | |
| var canvas = document.createElement('canvas'); | |
| var ctx = canvas.getContext('2d'); | |
| var newImg = new Image(); | |
| newImg.onload = function(){ | |
| var width = parseInt(this.width), | |
| height = parseInt(this.height); |
NewerOlder