BrU32

jsbin stuffs

Oct 30th, 2016
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.09 KB | None | 0 0
  1.  
  2. <script>
  3. var c=b.createElement("iframe");return c.setAttribute("sandbox","deny-modals deny-forms deny-pointer-lock deny-popups deny-same-origin deny-scripts")
  4.  
  5. document.write(c)
  6. var file = null
  7. $(function() {
  8. $('#ulbutton').hide().click(function() {
  9. if (!dataurl) return alert('Choose image');
  10. $(this).hide();
  11. var fd = new FormData();
  12. fd.append('ufile',file);
  13. $('#imageinfo ul').append('<li>Uploading...</li>');
  14. $.ajax({
  15. type: "POST",
  16. url: '/u',
  17. processData: false,
  18. contentType: false,
  19. data: fd,
  20. success: function(o) {
  21. $('#ufile')[0].value="";
  22. dataurl = null;
  23. file = null;
  24. $('#imageinfo ul').append('<li>Uploaded '+o.width+'x'+
  25. o.height+' '+o.type+'</li>');
  26. $('#imageinfo ul').append('<li><a href="/o/'+o.id+'">Direct Link</a></li>');
  27. $('#imageinfo ul').append('<li><a href="https://www.google-analytics.com/collect?v=1&_v=j47&a=1163448360&t=event&_s=12&dl=https%3A%2F%2Fjsbin.com%2Fnotocexufo%2Fedit%3Fhtml%2Coutputs%253Aj%253A%257B%2522version%2522%253A%25223.40.0%2522%252C%2522_csrf%2522%253A%2522iSimPBRnQmxFoto7YjYwdxxf%2522%252C%2522flashCache%2522%253A%257B%257D%257D.gYOFIuSTua3y1TsFdjIWi14m%252FjphRqbFT5qkpyFFhU&ul=en-us&de=UTF-8&dt=JS%20Bin%20-%20Collaborative%20JavaScript%20Debugging&sd=24-bit&sr=1366x768&vp=808x655&je=0&fl=23.0%20r0&ec=button&ea=run%20with%20js&_u=CCCAgEAj~&jid=&cid=1041746741.1477883726&tid=UA-1656750-13&z=20761663'+o.id+'">Image Info</a></li>');
  28.  
  29. }
  30. });
  31. });
  32. $('#ufile').change(function(e) {
  33. file = e.target.files[0]
  34. var imageType = /.png/;
  35.  
  36. if (!file.type.match(imageType))
  37. return;
  38. $('#ulbutton').show();
  39. console.dir(file);
  40. $('#imageinfo').html('<ul><li>Size: '+file.size+'</li><li>Type: '+file.type+'</li></ul>');
  41. var reader = new FileReader();
  42. reader.onload = fileOnload;
  43. reader.readAsDataURL(file);
  44. });
  45.  
  46.  
  47. dataurl = e.target.result;
  48. alert( e.target.result);
  49. var $img = $('<img>', {
  50. src : e.target.result
  51. });
  52. var canvas = $('#canvas')[0];
  53. var context = canvas.getContext('2d');
  54.  
  55. this.click(function() {
  56. context.drawImage(this, 1, 1);
  57. });
  58.  
  59. });
  60. </script>
  61. </body>
  62. </html>
  63. ​
  64. <script>
  65. var c=b.createElement("iframe");return c.setAttribute("sandbox","deny-modals deny-forms deny-pointer-lock deny-popups deny-same-origin deny-scripts")
  66. ​
  67. document.write(c)
  68. var file = null
  69. $(function() {
  70. $('#ulbutton').hide().click(function() {
  71. if (!dataurl) return alert('Choose image');
  72. $(this).hide();
  73. var fd = new FormData();
  74. fd.append('ufile',file);
  75. $('#imageinfo ul').append('<li>Uploading...</li>');
  76. $.ajax({
  77. type: "POST",
  78. url: '/u',
  79. processData: false,
  80. contentType: false,
  81. data: fd,
  82. success: function(o) {
  83. $('#ufile')[0].value="";
  84. dataurl = null;
  85. file = null;
  86. $('#imageinfo ul').append('<li>Uploaded '+o.width+'x'+
  87. o.height+' '+o.type+'</li>');
  88. $('#imageinfo ul').append('<li><a href="/o/'+o.id+'">Direct Link</a></li>');
  89. $('#imageinfo ul').append('<li><a href="https://www.google-analytics.com/collect?v=1&_v=j47&a=1163448360&t=event&_s=12&dl=https%3A%2F%2Fjsbin.com%2Fnotocexufo%2Fedit%3Fhtml%2Coutputs%253Aj%253A%257B%2522version%2522%253A%25223.40.0%2522%252C%2522_csrf%2522%253A%2522iSimPBRnQmxFoto7YjYwdxxf%2522%252C%2522flashCache%2522%253A%257B%257D%257D.gYOFIuSTua3y1TsFdjIWi14m%252FjphRqbFT5qkpyFFhU&ul=en-us&de=UTF-8&dt=JS%20Bin%20-%20Collaborative%20JavaScript%20Debugging&sd=24-bit&sr=1366x768&vp=808x655&je=0&fl=23.0%20r0&ec=button&ea=run%20with%20js&_u=CCCAgEAj~&jid=&cid=1041746741.1477883726&tid=UA-1656750-13&z=20761663'+o.id+'">Image Info</a></li>');
  90.  
  91. }
  92. });
  93. });
  94. Console Clear
  95. oj0bnglm2t3o
  96. "oj0bnglm2t3o is not defined"
  97. this
  98. [object Window] {
  99. 0: undefined,
  100. 1: function (){},
  101. 2: function (){},
  102. 3: function (){},
  103. 4: function (){},
  104. addEventListener: function addEventListener() { [native code] },
  105. alert: function alert() { [native code] },
  106. applicationCache: [object ApplicationCache] {
  107. abort: function abort() { [native code] },
  108. addEventListener: function addEventListener() { [native code] },
  109. CHECKING: 2,
  110. dispatchEvent: function dispatchEvent() { [native code] },
  111. DOWNLOADING: 3,
  112. IDLE: 1,
  113. OBSOLETE: 5,
  114. oncached: null,
  115. onchecking: null,
  116. ondownloading: null,
  117. onerror: null,
  118. onnoupdate: null,
  119. onobsolete: null,
  120. onprogress: null,
  121. onupdateready: null,
  122. removeEventListener: function removeEventListener() { [native code] },
  123. status: 0,
  124. swapCache: function swapCache() { [native code] },
  125. UNCACHED: 0,
  126. update: function update() { [native code] },
  127. UPDATEREADY: 4
  128. },
  129. atob: function atob() { [native code] },
  130. blur: function () { [native code] },
  131. btoa: function btoa() { [native code] },
  132. caches: [object CacheStorage] {
  133. delete: function delete() { [native code] },
  134. has: function has() { [native code] },
  135. keys: function keys() { [native code] },
  136. match: function match() { [native code] },
  137. open: function open() { [native code] }
  138. },
  139. cancelAnimationFrame: function cancelAnimationFrame() { [native code] },
  140. cancelIdleCallback: function cancelIdleCallback() { [native code] },
  141. captureEvents: function captureEvents() { [native code] },
  142. chrome: [object Object] {
  143. app: [object Object] { ... },
  144. csi: function () { [native code] },
  145. loadTimes: function () { [native code] },
  146. runtime: [object Object] { ... },
  147. webstore: [object Object] { ... }
  148. },
  149. clearInterval: function clearInterval() { [native code] },
  150. clearTimeout: function clearTimeout() { [native code] },
  151. clientInformation: [object Navigator] {
  152. appCodeName: "Mozilla",
  153. appName: "Netscape",
  154. appVersion: "5.0 (X11; CrOS x86_64 8743.76.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.79 Safari/537.36",
  155. connection: [object NetworkInformation] { ... },
  156. cookieEnabled: true,
  157. credentials: [object CredentialsContainer] { ... },
  158. doNotTrack: "1",
  159. geolocation: [object Geolocation] { ... },
  160. getBattery: function getBattery() { [native code] },
  161. getGamepads: function getGamepads() { [native code] },
  162. getUserMedia: function getUserMedia() { [native code] },
  163. hardwareConcurrency: 2,
  164. javaEnabled: function javaEnabled() { [native code] },
  165. language: "en-US",
  166. languages: ["en-US", "en"],
  167. maxTouchPoints: 0,
  168. mediaDevices: [object MediaDevices] { ... },
  169. mimeTypes: [object MimeTypeArray],
  170. onLine: true,
  171. permissions: [object Permissions] { ... },
  172. platform: "Linux x86_64",
  173. plugins: [object PluginArray],
  174. presentation: [object Presentation] { ... },
  175. product: "Gecko",
  176. productSub: "20030107",
  177. registerProtocolHandler: function registerProtocolHandler() { [native code] },
  178. requestMediaKeySystemAccess: function requestMediaKeySystemAccess() { [native code] },
  179. requestMIDIAccess: function requestMIDIAccess() { [native code] },
  180. sendBeacon: function sendBeacon() { [native code] },
  181. serviceWorker: [object ServiceWorkerContainer] { ... },
  182. unregisterProtocolHandler: function unregisterProtocolHandler() { [native code] },
  183. userAgent: "Mozilla/5.0 (X11; CrOS x86_64 8743.76.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.79 Safari/537.36",
  184. vendor: "Google Inc.",
  185. vendorSub: "",
  186. vibrate: function vibrate() { [native code] },
  187. webkitGetUserMedia: function webkitGetUserMedia() { [native code] },
  188. webkitPersistentStorage: [object DeprecatedStorageQuota] { ... },
  189. webkitTemporaryStorage: [object DeprecatedStorageQuota] { ... }
  190. },
  191. close: function () { [native code] },
  192. closed: false,
  193. confirm: function confirm() { [native code] },
  194. console: [object Object] {
  195. _raw: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  196. assert: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  197. clear: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  198. count: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  199. debug: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  200. dir: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  201. dirxml: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  202. error: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  203. group: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  204. groupCollapsed: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  205. groupEnd: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  206. info: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  207. log: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  208. markTimeline: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  209. methods: ["debug", "clear", "error", "info", "log", "warn", "dir", "props", "_raw", "group", "groupEnd", "dirxml", "table", "trace", "assert", "count", "markTimeline", "profile", "profileEnd", "time", "timeEnd", "timeStamp", "groupCollapsed"],
  210. profile: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  211. profileEnd: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  212. props: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  213. table: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  214. time: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  215. timeEnd: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  216. timeStamp: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  217. trace: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))},
  218. warn: function (){var c=[].slice.call(arguments),d=f(c);k.postMessage("console",{method:"_raw"===b?c.shift():b,args:"_raw"===b?d.slice(1):d}),a.console&&(console[b]||(b="log"),a.console&&"_raw"!==b&&("clear"!==b||"clear"===b&&console.clear)&&console[b].apply(console,c))}
  219. },
  220. createImageBitmap: function createImageBitmap() { [native code] },
  221. crypto: [object Crypto] {
  222. getRandomValues: function getRandomValues() { [native code] },
  223. subtle: [object SubtleCrypto] { ... }
  224. },
  225. customElements: [object CustomElementRegistry] {
  226. define: function define() { [native code] },
  227. get: function get() { [native code] },
  228. whenDefined: function whenDefined() { [native code] }
  229. },
  230. defaultstatus: "",
  231. defaultStatus: "",
  232. devicePixelRatio: 1,
  233. dispatchEvent: function dispatchEvent() { [native code] },
  234. document: [object HTMLDocument] {
  235. activeElement: [object HTMLBodyElement] { ... },
  236. addEventListener: function addEventListener() { [native code] },
  237. adoptNode: function adoptNode() { [native code] },
  238. alinkColor: "",
  239. all: undefined,
  240. anchors: [object HTMLCollection] { ... },
  241. append: function append() { [native code] },
  242. appendChild: function appendChild() { [native code] },
  243. applets: [object HTMLCollection] { ... },
  244. ATTRIBUTE_NODE: 2,
  245. baseURI: "https://null.jsbin.com/runner",
  246. bgColor: "",
  247. body: [circular object HTMLBodyElement] :
  248. <body>
  249. <style id="jsbin-css">
  250.  
  251. </style>
  252.  
  253. <!--jsbin live harness--><script>(function(){for(var m in __blocked.methods){try{window[m]=__blocked.old[m];delete __blocked;}catch(e){}};})()</script></body>,
  254. captureEvents: function captureEvents() { [native code] },
  255. caretRangeFromPoint: function caretRangeFromPoint() { [native code] },
  256. CDATA_SECTION_NODE: 4,
  257. characterSet: "UTF-8",
  258. charset: "UTF-8",
  259. childElementCount: 1,
  260. childNodes: [object NodeList] { ... },
  261. children: [object HTMLCollection] { ... },
  262. clear: function clear() { [native code] },
  263. cloneNode: function cloneNode() { [native code] },
  264. close: function close() { [native code] },
  265. COMMENT_NODE: 8,
  266. compareDocumentPosition: function compareDocumentPosition() { [native code] },
  267. compatMode: "BackCompat",
  268. contains: function contains() { [native code] },
  269. contentType: "text/html",
  270. cookie: "_gat=1; _ga=GA1.2.1041746741.1477883726",
  271. createAttribute: function createAttribute() { [native code] },
  272. createAttributeNS: function createAttributeNS() { [native code] },
  273. createCDATASection: function createCDATASection() { [native code] },
  274. createComment: function createComment() { [native code] },
  275. createDocumentFragment: function createDocumentFragment() { [native code] },
  276. createElement: function createElement() { [native code] },
  277. createElementNS: function createElementNS() { [native code] },
  278. createEvent: function createEvent() { [native code] },
  279. createExpression: function createExpression() { [native code] },
  280. createNodeIterator: function createNodeIterator() { [native code] },
  281. createNSResolver: function createNSResolver() { [native code] },
  282. createProcessingInstruction: function createProcessingInstruction() { [native code] },
  283. createRange: function createRange() { [native code] },
  284. createTextNode: function createTextNode() { [native code] },
  285. createTreeWalker: function createTreeWalker() { [native code] },
  286. currentScript: null,
  287. defaultView: [circular object Window],
  288. designMode: "off",
  289. dir: "",
  290. dispatchEvent: function dispatchEvent() { [native code] },
  291. doctype: null,
  292. DOCUMENT_FRAGMENT_NODE: 11,
  293. DOCUMENT_NODE: 9,
  294. DOCUMENT_POSITION_CONTAINED_BY: 16,
  295. DOCUMENT_POSITION_CONTAINS: 8,
  296. DOCUMENT_POSITION_DISCONNECTED: 1,
  297. DOCUMENT_POSITION_FOLLOWING: 4,
  298. DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32,
  299. DOCUMENT_POSITION_PRECEDING: 2,
  300. DOCUMENT_TYPE_NODE: 10,
  301. documentElement: [object HTMLHtmlElement] { ... },
  302. documentURI: "https://null.jsbin.com/runner",
  303. domain: "null.jsbin.com",
  304. ELEMENT_NODE: 1,
  305. elementFromPoint: function elementFromPoint() { [native code] },
  306. elementsFromPoint: function elementsFromPoint() { [native code] },
  307. embeds: [object HTMLCollection] { ... },
  308. ENTITY_NODE: 6,
  309. ENTITY_REFERENCE_NODE: 5,
  310. evaluate: function evaluate() { [native code] },
  311. execCommand: function execCommand() { [native code] },
  312. exitPointerLock: function exitPointerLock() { [native code] },
  313. fgColor: "",
  314. firstChild: [circular object HTMLHtmlElement] :
  315. <html><head><script>(function(){window.__blocked={methods:["open","print","alert","prompt","confirm"],old:{}};for(var m in __blocked.methods){try {__blocked.old[m]=window[m];window[m]=function(){};}catch(e){}}})()</script>
  316. <script>
  317. var c=b.createElement("iframe");return c.setAttribute("sandbox","deny-modals deny-forms deny-pointer-lock deny-popups deny-same-origin deny-scripts")
  318.  
  319. document.write(c)
  320. var file = null
  321. $(function() {
  322. $('#ulbutton').hide().click(function() {
  323. if (!dataurl) return alert('Choose image');
  324. $(this).hide();
  325. var fd = new FormData();
  326. fd.append('ufile',file);
  327. $('#imageinfo ul').append('<li>Uploading...</li>');
  328. $.ajax({
  329. type: "POST",
  330. url: '/u',
  331. processData: false,
  332. contentType: false,
  333. data: fd,
  334. success: function(o) {
  335. $('#ufile')[0].value="";
  336. dataurl = null;
  337. file = null;
  338. $('#imageinfo ul').append('<li>Uploaded '+o.width+'x'+
  339. o.height+' '+o.type+'</li>');
  340. $('#imageinfo ul').append('<li><a href="/o/'+o.id+'">Direct Link</a></li>');
  341. $('#imageinfo ul').append('<li><a href="https://www.google-analytics.com/collect?v=1&_v=j47&a=1163448360&t=event&_s=12&dl=https%3A%2F%2Fjsbin.com%2Fnotocexufo%2Fedit%3Fhtml%2Coutputs%253Aj%253A%257B%2522version%2522%253A%25223.40.0%2522%252C%2522_csrf%2522%253A%2522iSimPBRnQmxFoto7YjYwdxxf%2522%252C%2522flashCache%2522%253A%257B%257D%257D.gYOFIuSTua3y1TsFdjIWi14m%252FjphRqbFT5qkpyFFhU&ul=en-us&de=UTF-8&dt=JS%20Bin%20-%20Collaborative%20JavaScript%20Debugging&sd=24-bit&sr=1366x768&vp=808x655&je=0&fl=23.0%20r0&ec=button&ea=run%20with%20js&_u=CCCAgEAj~&jid=&cid=1041746741.1477883726&tid=UA-1656750-13&z=20761663'+o.id+'">Image Info</a></li>');
  342.  
  343. }
  344. });
  345. });
  346. $('#ufile').change(function(e) {
  347. file = e.target.files[0]
  348. var imageType = /.png/;
  349.  
  350. if (!file.type.match(imageType))
  351. return;
  352. $('#ulbutton').show();
  353. window.runnerWindow.proxyConsole.dir(file);
  354. $('#imageinfo').html('<ul><li>Size: '+file.size+'</li><li>Type: '+file.type+'</li></ul>');
  355. var reader = new FileReader();
  356. reader.onload = fileOnload;
  357. reader.readAsDataURL(file);
  358. });
  359.  
  360.  
  361. dataurl = e.target.result;
  362. alert( e.target.result);
  363. var $img = $('<img>', {
  364. src : e.target.result
  365. });
  366. var canvas = $('#canvas')[0];
  367. var context = canvas.getContext('2d');
  368.  
  369. this.click(function() {
  370. context.drawImage(this, 1, 1);
  371. });
  372.  
  373. });
  374. </script>
  375. </head><body>
  376. <style id="jsbin-css">
  377.  
  378. </style>
  379.  
  380. <!--jsbin live harness--><script>(function(){for(var m in __blocked.methods){try{window[m]=__blocked.old[m];delete __blocked;}catch(e){}};})()</script></body></html>,
  381. firstElementChild: [circular object HTMLHtmlElement] :
  382. <html><head><script>(function(){window.__blocked={methods:["open","print","alert","prompt","confirm"],old:{}};for(var m in __blocked.methods){try {__blocked.old[m]=window[m];window[m]=function(){};}catch(e){}}})()</script>
  383. <script>
  384. var c=b.createElement("iframe");return c.setAttribute("sandbox","deny-modals deny-forms deny-pointer-lock deny-popups deny-same-origin deny-scripts")
  385.  
  386. document.write(c)
  387. var file = null
  388. $(function() {
  389. $('#ulbutton').hide().click(function() {
  390. if (!dataurl) return alert('Choose image');
  391. $(this).hide();
  392. var fd = new FormData();
  393. fd.append('ufile',file);
  394. $('#imageinfo ul').append('<li>Uploading...</li>');
  395. $.ajax({
  396. type: "POST",
  397. url: '/u',
  398. processData: false,
  399. contentType: false,
  400. data: fd,
  401. success: function(o) {
  402. $('#ufile')[0].value="";
  403. dataurl = null;
  404. file = null;
  405. $('#imageinfo ul').append('<li>Uploaded '+o.width+'x'+
  406. o.height+' '+o.type+'</li>');
  407. $('#imageinfo ul').append('<li><a href="/o/'+o.id+'">Direct Link</a></li>');
  408. $('#imageinfo ul').append('<li><a href="https://www.google-analytics.com/collect?v=1&_v=j47&a=1163448360&t=event&_s=12&dl=https%3A%2F%2Fjsbin.com%2Fnotocexufo%2Fedit%3Fhtml%2Coutputs%253Aj%253A%257B%2522version%2522%253A%25223.40.0%2522%252C%2522_csrf%2522%253A%2522iSimPBRnQmxFoto7YjYwdxxf%2522%252C%2522flashCache%2522%253A%257B%257D%257D.gYOFIuSTua3y1TsFdjIWi14m%252FjphRqbFT5qkpyFFhU&ul=en-us&de=UTF-8&dt=JS%20Bin%20-%20Collaborative%20JavaScript%20Debugging&sd=24-bit&sr=1366x768&vp=808x655&je=0&fl=23.0%20r0&ec=button&ea=run%20with%20js&_u=CCCAgEAj~&jid=&cid=1041746741.1477883726&tid=UA-1656750-13&z=20761663'+o.id+'">Image Info</a></li>');
  409.  
  410. }
  411. });
  412. });
  413. $('#ufile').change(function(e) {
  414. file = e.target.files[0]
  415. var imageType = /.png/;
  416.  
  417. if (!file.type.match(imageType))
  418. return;
  419. $('#ulbutton').show();
  420. window.runnerWindow.proxyConsole.dir(file);
  421. $('#imageinfo').html('<ul><li>Size: '+file.size+'</li><li>Type: '+file.type+'</li></ul>');
  422. var reader = new FileReader();
  423. reader.onload = fileOnload;
  424. reader.readAsDataURL(file);
  425. });
  426.  
  427.  
  428. dataurl = e.target.result;
  429. alert( e.target.result);
  430. var $img = $('<img>', {
  431. src : e.target.result
  432. });
  433. var canvas = $('#canvas')[0];
  434. var context = canvas.getContext('2d');
  435.  
  436. this.click(function() {
  437. context.drawImage(this, 1, 1);
  438. });
  439.  
  440. });
  441. </script>
  442. </head><body>
  443. <style id="jsbin-css">
  444.  
  445. </style>
  446.  
  447. <!--jsbin live harness--><script>(function(){for(var m in __blocked.methods){try{window[m]=__blocked.old[m];delete __blocked;}catch(e){}};})()</script></body></html>,
  448. fonts: [object FontFaceSet] { ... },
  449. forms: [object HTMLCollection] { ... },
  450. getElementById: function getElementById() { [native code] },
  451. getElementsByClassName: function getElementsByClassName() { [native code] },
  452. getElementsByName: function getElementsByName() { [native code] },
  453. getElementsByTagName: function getElementsByTagName() { [native code] },
  454. getElementsByTagNameNS: function getElementsByTagNameNS() { [native code] },
  455. getRootNode: function getRootNode() { [native code] },
  456. getSelection: function getSelection() { [native code] },
  457. hasChildNodes: function hasChildNodes() { [native code] },
  458. hasFocus: function hasFocus() { [native code] },
  459. head: [object HTMLHeadElement] { ... },
  460. hidden: false,
  461. images: [object HTMLCollection] { ... },
  462. implementation: [object DOMImplementation] { ... },
  463. importNode: function importNode() { [native code] },
  464. inputEncoding: "UTF-8",
  465. insertBefore: function insertBefore() { [native code] },
  466. isConnected: true,
  467. isDefaultNamespace: function isDefaultNamespace() { [native code] },
  468. isEqualNode: function isEqualNode() { [native code] },
  469. isSameNode: function isSameNode() { [native code] },
  470. lastChild: [circular object HTMLHtmlElement] :
  471. <html><head><script>(function(){window.__blocked={methods:["open","print","alert","prompt","confirm"],old:{}};for(var m in __blocked.methods){try {__blocked.old[m]=window[m];window[m]=function(){};}catch(e){}}})()</script>
  472. <script>
  473. var c=b.createElement("iframe");return c.setAttribute("sandbox","deny-modals deny-forms deny-pointer-lock deny-popups deny-same-origin deny-scripts")
  474.  
  475. document.write(c)
  476. var file = null
  477. $(function() {
  478. $('#ulbutton').hide().click(function() {
  479. if (!dataurl) return alert('Choose image');
  480. $(this).hide();
  481. var fd = new FormData();
  482. fd.append('ufile',file);
  483. $('#imageinfo ul').append('<li>Uploading...</li>');
  484. $.ajax({
  485. type: "POST",
  486. url: '/u',
  487. processData: false,
  488. contentType: false,
  489. data: fd,
  490. success: function(o) {
  491. $('#ufile')[0].value="";
  492. dataurl = null;
  493. file = null;
  494. $('#imageinfo ul').append('<li>Uploaded '+o.width+'x'+
  495. o.height+' '+o.type+'</li>');
  496. $('#imageinfo ul').append('<li><a href="/o/'+o.id+'">Direct Link</a></li>');
  497. $('#imageinfo ul').append('<li><a href="https://www.google-analytics.com/collect?v=1&_v=j47&a=1163448360&t=event&_s=12&dl=https%3A%2F%2Fjsbin.com%2Fnotocexufo%2Fedit%3Fhtml%2Coutputs%253Aj%253A%257B%2522version%2522%253A%25223.40.0%2522%252C%2522_csrf%2522%253A%2522iSimPBRnQmxFoto7YjYwdxxf%2522%252C%2522flashCache%2522%253A%257B%257D%257D.gYOFIuSTua3y1TsFdjIWi14m%252FjphRqbFT5qkpyFFhU&ul=en-us&de=UTF-8&dt=JS%20Bin%20-%20Collaborative%20JavaScript%20Debugging&sd=24-bit&sr=1366x768&vp=808x655&je=0&fl=23.0%20r0&ec=button&ea=run%20with%20js&_u=CCCAgEAj~&jid=&cid=1041746741.1477883726&tid=UA-1656750-13&z=20761663'+o.id+'">Image Info</a></li>');
  498.  
  499. }
  500. });
  501. });
  502. $('#ufile').change(function(e) {
  503. file = e.target.files[0]
  504. var imageType = /.png/;
  505.  
  506. if (!file.type.match(imageType))
  507. return;
  508. $('#ulbutton').show();
  509. window.runnerWindow.proxyConsole.dir(file);
  510. $('#imageinfo').html('<ul><li>Size: '+file.size+'</li><li>Type: '+file.type+'</li></ul>');
  511. var reader = new FileReader();
  512. reader.onload = fileOnload;
  513. reader.readAsDataURL(file);
  514. });
  515.  
  516.  
  517. dataurl = e.target.result;
  518. alert( e.target.result);
  519. var $img = $('<img>', {
  520. src : e.target.result
  521. });
  522. var canvas = $('#canvas')[0];
  523. var context = canvas.getContext('2d');
  524.  
  525. this.click(function() {
  526. context.drawImage(this, 1, 1);
  527. });
  528.  
  529. });
  530. </script>
  531. </head><body>
  532. <style id="jsbin-css">
  533.  
  534. </style>
  535.  
  536. <!--jsbin live harness--><script>(function(){for(var m in __blocked.methods){try{window[m]=__blocked.old[m];delete __blocked;}catch(e){}};})()</script></body></html>,
  537. lastElementChild: [circular object HTMLHtmlElement] :
  538. <html><head><script>(function(){window.__blocked={methods:["open","print","alert","prompt","confirm"],old:{}};for(var m in __blocked.methods){try {__blocked.old[m]=window[m];window[m]=function(){};}catch(e){}}})()</script>
  539. <script>
  540. var c=b.createElement("iframe");return c.setAttribute("sandbox","deny-modals deny-forms deny-pointer-lock deny-popups deny-same-origin deny-scripts")
  541.  
  542. document.write(c)
  543. var file = null
  544. $(function() {
  545. $('#ulbutton').hide().click(function() {
  546. if (!dataurl) return alert('Choose image');
  547. $(this).hide();
  548. var fd = new FormData();
  549. fd.append('ufile',file);
  550. $('#imageinfo ul').append('<li>Uploading...</li>');
  551. $.ajax({
  552. type: "POST",
  553. url: '/u',
  554. processData: false,
  555. contentType: false,
  556. data: fd,
  557. success: function(o) {
  558. $('#ufile')[0].value="";
  559. dataurl = null;
  560. file = null;
  561. $('#imageinfo ul').append('<li>Uploaded '+o.width+'x'+
  562. o.height+' '+o.type+'</li>');
  563. $('#imageinfo ul').append('<li><a href="/o/'+o.id+'">Direct Link</a></li>');
  564. $('#imageinfo ul').append('<li><a href="https://www.google-analytics.com/collect?v=1&_v=j47&a=1163448360&t=event&_s=12&dl=https%3A%2F%2Fjsbin.com%2Fnotocexufo%2Fedit%3Fhtml%2Coutputs%253Aj%253A%257B%2522version%2522%253A%25223.40.0%2522%252C%2522_csrf%2522%253A%2522iSimPBRnQmxFoto7YjYwdxxf%2522%252C%2522flashCache%2522%253A%257B%257D%257D.gYOFIuSTua3y1TsFdjIWi14m%252FjphRqbFT5qkpyFFhU&ul=en-us&de=UTF-8&dt=JS%20Bin%20-%20Collaborative%20JavaScript%20Debugging&sd=24-bit&sr=1366x768&vp=808x655&je=0&fl=23.0%20r0&ec=button&ea=run%20with%20js&_u=CCCAgEAj~&jid=&cid=1041746741.1477883726&tid=UA-1656750-13&z=20761663'+o.id+'">Image Info</a></li>');
  565.  
  566. }
  567. });
  568. });
  569. $('#ufile').change(function(e) {
  570. file = e.target.files[0]
  571. var imageType = /.png/;
  572.  
  573. if (!file.type.match(imageType))
  574. return;
  575. $('#ulbutton').show();
  576. window.runnerWindow.proxyConsole.dir(file);
  577. $('#imageinfo').html('<ul><li>Size: '+file.size+'</li><li>Type: '+file.type+'</li></ul>');
  578. var reader = new FileReader();
  579. reader.onload = fileOnload;
  580. reader.readAsDataURL(file);
  581. });
  582.  
  583.  
  584. dataurl = e.target.result;
  585. alert( e.target.result);
  586. var $img = $('<img>', {
  587. src : e.target.result
  588. });
  589. var canvas = $('#canvas')[0];
  590. var context = canvas.getContext('2d');
  591.  
  592. this.click(function() {
  593. context.drawImage(this, 1, 1);
  594. });
  595.  
  596. });
  597. </script>
  598. </head><body>
  599. <style id="jsbin-css">
  600.  
  601. </style>
  602.  
  603. <!--jsbin live harness--><script>(function(){for(var m in __blocked.methods){try{window[m]=__blocked.old[m];delete __blocked;}catch(e){}};})()</script></body></html>,
  604. lastModified: "10/30/2016 20:35:05",
  605. linkColor: "",
  606. links: [object HTMLCollection] { ... },
  607. location: [object Location] { ... },
  608. lookupNamespaceURI: function lookupNamespaceURI() { [native code] },
  609. lookupPrefix: function lookupPrefix() { [native code] },
  610. nextSibling: null,
  611. nodeName: "#document",
  612. nodeType: 9,
  613. nodeValue: null,
  614. normalize: function normalize() { [native code] },
  615. NOTATION_NODE: 12,
  616. onabort: null,
  617. onbeforecopy: null,
  618. onbeforecut: null,
  619. onbeforepaste: null,
  620. onblur: null,
  621. oncancel: null,
  622. oncanplay: null,
  623. oncanplaythrough: null,
  624. onchange: null,
  625. onclick: null,
  626. onclose: null,
  627. oncontextmenu: null,
  628. oncopy: null,
  629. oncuechange: null,
  630. oncut: null,
  631. ondblclick: null,
  632. ondrag: null,
  633. ondragend: null,
  634. ondragenter: null,
  635. ondragleave: null,
  636. ondragover: null,
  637. ondragstart: null,
  638. ondrop: null,
  639. ondurationchange: null,
  640. onemptied: null,
  641. onended: null,
  642. onerror: null,
  643. onfocus: null,
  644. oninput: null,
  645. oninvalid: null,
  646. onkeydown: null,
  647. onkeypress: null,
  648. onkeyup: null,
  649. onload: null,
  650. onloadeddata: null,
  651. onloadedmetadata: null,
  652. onloadstart: null,
  653. onmousedown: null,
  654. onmouseenter: null,
  655. onmouseleave: null,
  656. onmousemove: null,
  657. onmouseout: null,
  658. onmouseover: null,
  659. onmouseup: null,
  660. onmousewheel: null,
  661. onpaste: null,
  662. onpause: null,
  663. onplay: null,
  664. onplaying: null,
  665. onpointerlockchange: null,
  666. onpointerlockerror: null,
  667. onprogress: null,
  668. onratechange: null,
  669. onreadystatechange: null,
  670. onreset: null,
  671. onresize: null,
  672. onscroll: null,
  673. onsearch: null,
  674. onseeked: null,
  675. onseeking: null,
  676. onselect: null,
  677. onselectionchange: null,
  678. onselectstart: null,
  679. onshow: null,
  680. onstalled: null,
  681. onsubmit: null,
  682. onsuspend: null,
  683. ontimeupdate: null,
  684. ontoggle: null,
  685. onvolumechange: null,
  686. onwaiting: null,
  687. onwebkitfullscreenchange: null,
  688. onwebkitfullscreenerror: null,
  689. onwheel: null,
  690. open: function open() { [native code] },
  691. origin: "https://null.jsbin.com",
  692. ownerDocument: null,
  693. parentElement: null,
  694. parentNode: null,
  695. plugins: [circular object HTMLCollection],
  696. pointerLockElement: null,
  697. preferredStylesheetSet: null,
  698. prepend: function prepend() { [native code] },
  699. previousSibling: null,
  700. PROCESSING_INSTRUCTION_NODE: 7,
  701. queryCommandEnabled: function queryCommandEnabled() { [native code] },
  702. queryCommandIndeterm: function queryCommandIndeterm() { [native code] },
  703. queryCommandState: function queryCommandState() { [native code] },
  704. queryCommandSupported: function queryCommandSupported() { [native code] },
  705. queryCommandValue: function queryCommandValue() { [native code] },
  706. querySelector: function querySelector() { [native code] },
  707. querySelectorAll: function querySelectorAll() { [native code] },
  708. readyState: "complete",
  709. referrer: "",
  710. registerElement: function registerElement() { [native code] },
  711. releaseEvents: function releaseEvents() { [native code] },
  712. removeChild: function removeChild() { [native code] },
  713. removeEventListener: function removeEventListener() { [native code] },
  714. replaceChild: function replaceChild() { [native code] },
  715. rootElement: null,
  716. scripts: [object HTMLCollection] { ... },
  717. scrollingElement: [circular object HTMLBodyElement] :
  718. <body>
  719. <style id="jsbin-css">
  720.  
  721. </style>
  722.  
  723. <!--jsbin live harness--><script>(function(){for(var m in __blocked.methods){try{window[m]=__blocked.old[m];delete __blocked;}catch(e){}};})()</script></body>,
  724. selectedStylesheetSet: null,
  725. styleSheets: [object StyleSheetList] { ... },
  726. TEXT_NODE: 3,
  727. textContent: null,
  728. title: "",
  729. URL: "https://null.jsbin.com/runner",
  730. visibilityState: "visible",
  731. vlinkColor: "",
  732. webkitCancelFullScreen: function webkitCancelFullScreen() { [native code] },
  733. webkitCurrentFullScreenElement: null,
  734. webkitExitFullscreen: function webkitExitFullscreen() { [native code] },
  735. webkitFullscreenElement: null,
  736. webkitFullscreenEnabled: false,
  737. webkitHidden: false,
  738. webkitIsFullScreen: false,
  739. webkitVisibilityState: "visible",
  740. write: function write() { [native code] },
  741. writeln: function writeln() { [native code] },
  742. xmlEncoding: null,
  743. xmlStandalone: false,
  744. xmlVersion: null
  745. },
  746. external: [object External] {
  747. AddSearchProvider: function AddSearchProvider() { [native code] },
  748. IsSearchProviderInstalled: function IsSearchProviderInstalled() { [native code] }
  749. },
  750. fetch: function fetch() { [native code] },
  751. find: function find() { [native code] },
  752. focus: function () { [native code] },
  753. frameElement: [object HTMLIFrameElement] {
  754. accessKey: "",
  755. addEventListener: function addEventListener() { [native code] },
  756. after: function after() { [native code] },
  757. align: "",
  758. allowFullscreen: false,
  759. animate: function animate() { [native code] },
  760. append: function append() { [native code] },
  761. appendChild: function appendChild() { [native code] },
  762. assignedSlot: null,
  763. attachShadow: function attachShadow() { [native code] },
  764. ATTRIBUTE_NODE: 2,
  765. attributes: [object NamedNodeMap] { ... },
  766. baseURI: "https://null.jsbin.com/runner",
  767. before: function before() { [native code] },
  768. blur: function blur() { [native code] },
  769. CDATA_SECTION_NODE: 4,
  770. childElementCount: 0,
  771. childNodes: [object NodeList] { ... },
  772. children: [object HTMLCollection] { ... },
  773. classList: [object DOMTokenList] { ... },
  774. className: "",
  775. click: function click() { [native code] },
  776. clientHeight: 352,
  777. clientLeft: 0,
  778. clientTop: 0,
  779. clientWidth: 270,
  780. cloneNode: function cloneNode() { [native code] },
  781. closest: function closest() { [native code] },
  782. COMMENT_NODE: 8,
  783. compareDocumentPosition: function compareDocumentPosition() { [native code] },
  784. contains: function contains() { [native code] },
  785. contentDocument: [circular object HTMLDocument],
  786. contentEditable: "inherit",
  787. contentWindow: [circular object Window],
  788. createShadowRoot: function createShadowRoot() { [native code] },
  789. dataset: [object DOMStringMap] { ... },
  790. dir: "",
  791. dispatchEvent: function dispatchEvent() { [native code] },
  792. DOCUMENT_FRAGMENT_NODE: 11,
  793. DOCUMENT_NODE: 9,
  794. DOCUMENT_POSITION_CONTAINED_BY: 16,
  795. DOCUMENT_POSITION_CONTAINS: 8,
  796. DOCUMENT_POSITION_DISCONNECTED: 1,
  797. DOCUMENT_POSITION_FOLLOWING: 4,
  798. DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32,
  799. DOCUMENT_POSITION_PRECEDING: 2,
  800. DOCUMENT_TYPE_NODE: 10,
  801. draggable: false,
  802. ELEMENT_NODE: 1,
  803. ENTITY_NODE: 6,
  804. ENTITY_REFERENCE_NODE: 5,
  805. firstChild: null,
  806. firstElementChild: null,
  807. focus: function focus() { [native code] },
  808. frameBorder: "0",
  809. getAttribute: function getAttribute() { [native code] },
  810. getAttributeNode: function getAttributeNode() { [native code] },
  811. getAttributeNodeNS: function getAttributeNodeNS() { [native code] },
  812. getAttributeNS: function getAttributeNS() { [native code] },
  813. getBoundingClientRect: function getBoundingClientRect() { [native code] },
  814. getClientRects: function getClientRects() { [native code] },
  815. getDestinationInsertionPoints: function getDestinationInsertionPoints() { [native code] },
  816. getElementsByClassName: function getElementsByClassName() { [native code] },
  817. getElementsByTagName: function getElementsByTagName() { [native code] },
  818. getElementsByTagNameNS: function getElementsByTagNameNS() { [native code] },
  819. getRootNode: function getRootNode() { [native code] },
  820. getSVGDocument: function getSVGDocument() { [native code] },
  821. hasAttribute: function hasAttribute() { [native code] },
  822. hasAttributeNS: function hasAttributeNS() { [native code] },
  823. hasAttributes: function hasAttributes() { [native code] },
  824. hasChildNodes: function hasChildNodes() { [native code] },
  825. height: "",
  826. hidden: false,
  827. id: "1477884867510",
  828. innerHTML: "",
  829. innerText: "",
  830. insertAdjacentElement: function insertAdjacentElement() { [native code] },
  831. insertAdjacentHTML: function insertAdjacentHTML() { [native code] },
  832. insertAdjacentText: function insertAdjacentText() { [native code] },
  833. insertBefore: function insertBefore() { [native code] },
  834. isConnected: true,
  835. isContentEditable: false,
  836. isDefaultNamespace: function isDefaultNamespace() { [native code] },
  837. isEqualNode: function isEqualNode() { [native code] },
  838. isSameNode: function isSameNode() { [native code] },
  839. lang: "",
  840. lastChild: null,
  841. lastElementChild: null,
  842. localName: "iframe",
  843. longDesc: "",
  844. lookupNamespaceURI: function lookupNamespaceURI() { [native code] },
  845. lookupPrefix: function lookupPrefix() { [native code] },
  846. marginHeight: "",
  847. marginWidth: "",
  848. matches: function matches() { [native code] },
  849. name: "JS Bin Output ",
  850. namespaceURI: "http://www.w3.org/1999/xhtml",
  851. nextElementSibling: null,
  852. nextSibling: null,
  853. nodeName: "IFRAME",
  854. nodeType: 1,
  855. nodeValue: null,
  856. normalize: function normalize() { [native code] },
  857. NOTATION_NODE: 12,
  858. offsetHeight: 352,
  859. offsetLeft: 0,
  860. offsetParent: [object HTMLBodyElement] { ... },
  861. offsetTop: 0,
  862. offsetWidth: 270,
  863. onabort: null,
  864. onbeforecopy: null,
  865. onbeforecut: null,
  866. onbeforepaste: null,
  867. onblur: null,
  868. oncancel: null,
  869. oncanplay: null,
  870. oncanplaythrough: null,
  871. onchange: null,
  872. onclick: null,
  873. onclose: null,
  874. oncontextmenu: null,
  875. oncopy: null,
  876. oncuechange: null,
  877. oncut: null,
  878. ondblclick: null,
  879. ondrag: null,
  880. ondragend: null,
  881. ondragenter: null,
  882. ondragleave: null,
  883. ondragover: null,
  884. ondragstart: null,
  885. ondrop: null,
  886. ondurationchange: null,
  887. onemptied: null,
  888. onended: null,
  889. onerror: null,
  890. onfocus: null,
  891. oninput: null,
  892. oninvalid: null,
  893. onkeydown: null,
  894. onkeypress: null,
  895. onkeyup: null,
  896. onload: null,
  897. onloadeddata: null,
  898. onloadedmetadata: null,
  899. onloadstart: null,
  900. onmousedown: null,
  901. onmouseenter: null,
  902. onmouseleave: null,
  903. onmousemove: null,
  904. onmouseout: null,
  905. onmouseover: null,
  906. onmouseup: null,
  907. onmousewheel: null,
  908. onpaste: null,
  909. onpause: null,
  910. onplay: null,
  911. onplaying: null,
  912. onprogress: null,
  913. onratechange: null,
  914. onreset: null,
  915. onresize: null,
  916. onscroll: null,
  917. onsearch: null,
  918. onseeked: null,
  919. onseeking: null,
  920. onselect: null,
  921. onselectstart: null,
  922. onshow: null,
  923. onstalled: null,
  924. onsubmit: null,
  925. onsuspend: null,
  926. ontimeupdate: null,
  927. ontoggle: null,
  928. onvolumechange: null,
  929. onwaiting: null,
  930. onwebkitfullscreenchange: null,
  931. onwebkitfullscreenerror: null,
  932. onwheel: null,
  933. outerHTML: "<iframe sandbox=\"allow-modals allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts\" frameborder=\"0\" name=\"JS Bin Output \" id=\"1477884867510\"></iframe>",
  934. outerText: "",
  935. ownerDocument: [object HTMLDocument] { ... },
  936. parentElement: [object HTMLDivElement] { ... },
  937. parentNode: [circular object HTMLDivElement] :
  938. <div id="sandbox-wrapper"><iframe sandbox="allow-modals allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts" frameborder="0" name="JS Bin Output " id="1477884867510"></iframe></div>,
  939. prefix: null,
  940. prepend: function prepend() { [native code] },
  941. previousElementSibling: null,
  942. previousSibling: null,
  943. PROCESSING_INSTRUCTION_NODE: 7,
  944. querySelector: function querySelector() { [native code] },
  945. querySelectorAll: function querySelectorAll() { [native code] },
  946. referrerPolicy: "",
  947. remove: function remove() { [native code] },
  948. removeAttribute: function removeAttribute() { [native code] },
  949. removeAttributeNode: function removeAttributeNode() { [native code] },
  950. removeAttributeNS: function removeAttributeNS() { [native code] },
  951. removeChild: function removeChild() { [native code] },
  952. removeEventListener: function removeEventListener() { [native code] },
  953. replaceChild: function replaceChild() { [native code] },
  954. replaceWith: function replaceWith() { [native code] },
  955. requestPointerLock: function requestPointerLock() { [native code] },
  956. sandbox: [object DOMTokenList] { ... },
  957. scrollHeight: 352,
  958. scrolling: "",
  959. scrollIntoView: function scrollIntoView() { [native code] },
  960. scrollIntoViewIfNeeded: function scrollIntoViewIfNeeded() { [native code] },
  961. scrollLeft: 0,
  962. scrollTop: 0,
  963. scrollWidth: 270,
  964. setAttribute: function setAttribute() { [native code] },
  965. setAttributeNode: function setAttributeNode() { [native code] },
  966. setAttributeNodeNS: function setAttributeNodeNS() { [native code] },
  967. setAttributeNS: function setAttributeNS() { [native code] },
  968. shadowRoot: null,
  969. slot: "",
  970. spellcheck: true,
  971. src: "",
  972. srcdoc: "",
  973. style: [object CSSStyleDeclaration] { ... },
  974. tabIndex: 0,
  975. tagName: "IFRAME",
  976. TEXT_NODE: 3,
  977. textContent: "",
  978. title: "",
  979. translate: true,
  980. webkitdropzone: "",
  981. webkitMatchesSelector: function webkitMatchesSelector() { [native code] },
  982. webkitRequestFullScreen: function webkitRequestFullScreen() { [native code] },
  983. webkitRequestFullscreen: function webkitRequestFullscreen() { [native code] },
  984. width: ""
  985. },
  986. frames: [circular object Window],
  987. getComputedStyle: function getComputedStyle() { [native code] },
  988. getMatchedCSSRules: function getMatchedCSSRules() { [native code] },
  989. getSelection: function getSelection() { [native code] },
  990. history: [object History] {
  991. back: function back() { [native code] },
  992. forward: function forward() { [native code] },
  993. go: function go() { [native code] },
  994. length: 5,
  995. pushState: function pushState() { [native code] },
  996. replaceState: function replaceState() { [native code] },
  997. scrollRestoration: "auto",
  998. state: null
  999. },
  1000. indexedDB: [object IDBFactory] {
  1001. cmp: function cmp() { [native code] },
  1002. deleteDatabase: function deleteDatabase() { [native code] },
  1003. open: function open() { [native code] },
  1004. webkitGetDatabaseNames: function webkitGetDatabaseNames() { [native code] }
  1005. },
  1006. innerHeight: 352,
  1007. innerWidth: 270,
  1008. isSecureContext: true,
  1009. length: 0,
  1010. localStorage: [object Storage] { ... },
  1011. location: [circular object Location],
  1012. locationbar: [object BarProp] {
  1013. visible: true
  1014. },
  1015. matchMedia: function matchMedia() { [native code] },
  1016. menubar: [object BarProp] {
  1017. visible: true
  1018. },
  1019. moveBy: function moveBy() { [native code] },
  1020. moveTo: function moveTo() { [native code] },
  1021. name: "JS Bin Output ",
  1022. navigator: [circular object Navigator],
  1023. onabort: null,
  1024. onanimationend: null,
  1025. onanimationiteration: null,
  1026. onanimationstart: null,
  1027. onbeforeunload: null,
  1028. onblur: null,
  1029. oncancel: null,
  1030. oncanplay: null,
  1031. oncanplaythrough: null,
  1032. onchange: null,
  1033. onclick: null,
  1034. onclose: null,
  1035. oncontextmenu: null,
  1036. oncuechange: null,
  1037. ondblclick: null,
  1038. ondevicemotion: null,
  1039. ondeviceorientation: null,
  1040. ondeviceorientationabsolute: null,
  1041. ondrag: null,
  1042. ondragend: null,
  1043. ondragenter: null,
  1044. ondragleave: null,
  1045. ondragover: null,
  1046. ondragstart: null,
  1047. ondrop: null,
  1048. ondurationchange: null,
  1049. onemptied: null,
  1050. onended: null,
  1051. onerror: function (a,b,c,d,e){h._raw("error",e&&e.stack?e.stack:a+" (line "+c+")")},
  1052. onfocus: null,
  1053. onhashchange: null,
  1054. oninput: null,
  1055. oninvalid: null,
  1056. onkeydown: null,
  1057. onkeypress: null,
  1058. onkeyup: null,
  1059. onlanguagechange: null,
  1060. onload: null,
  1061. onloadeddata: null,
  1062. onloadedmetadata: null,
  1063. onloadstart: null,
  1064. onmessage: null,
  1065. onmousedown: null,
  1066. onmouseenter: null,
  1067. onmouseleave: null,
  1068. onmousemove: null,
  1069. onmouseout: null,
  1070. onmouseover: null,
  1071. onmouseup: null,
  1072. onmousewheel: null,
  1073. onoffline: null,
  1074. ononline: null,
  1075. onpagehide: null,
  1076. onpageshow: null,
  1077. onpause: null,
  1078. onplay: null,
  1079. onplaying: null,
  1080. onpopstate: null,
  1081. onprogress: null,
  1082. onratechange: null,
  1083. onrejectionhandled: null,
  1084. onreset: null,
  1085. onresize: null,
  1086. onscroll: null,
  1087. onsearch: null,
  1088. onseeked: null,
  1089. onseeking: null,
  1090. onselect: null,
  1091. onshow: null,
  1092. onstalled: null,
  1093. onstorage: null,
  1094. onsubmit: null,
  1095. onsuspend: null,
  1096. ontimeupdate: null,
  1097. ontoggle: null,
  1098. ontransitionend: null,
  1099. onunhandledrejection: null,
  1100. onunload: null,
  1101. onvolumechange: null,
  1102. onwaiting: null,
  1103. onwebkitanimationend: null,
  1104. onwebkitanimationiteration: null,
  1105. onwebkitanimationstart: null,
  1106. onwebkittransitionend: null,
  1107. onwheel: null,
  1108. open: function open() { [native code] },
  1109. openDatabase: function openDatabase() { [native code] },
  1110. opener: null,
  1111. outerHeight: 721,
  1112. outerWidth: 1366,
  1113. pageXOffset: 0,
  1114. pageYOffset: 0,
  1115. parent: [object Window] {
  1116. addEventListener: function addEventListener() { [native code] },
  1117. alert: function alert() { [native code] },
  1118. applicationCache: [object ApplicationCache] { ... },
  1119. atob: function atob() { [native code] },
  1120. blur: function () { [native code] },
  1121. btoa: function btoa() { [native code] },
  1122. caches: [object CacheStorage] { ... },
  1123. cancelAnimationFrame: function cancelAnimationFrame() { [native code] },
  1124. cancelIdleCallback: function cancelIdleCallback() { [native code] },
  1125. captureEvents: function captureEvents() { [native code] },
  1126. chrome: [object Object] { ... },
  1127. clearInterval: function clearInterval() { [native code] },
  1128. clearTimeout: function clearTimeout() { [native code] },
  1129. clientInformation: [object Navigator] { ... },
  1130. close: function () { [native code] },
  1131. closed: false,
  1132. confirm: function confirm() { [native code] },
  1133. console: [object Object] { ... },
  1134. createImageBitmap: function createImageBitmap() { [native code] },
  1135. crypto: [object Crypto] { ... },
  1136. customElements: [object CustomElementRegistry] { ... },
  1137. defaultstatus: "",
  1138. defaultStatus: "",
  1139. devicePixelRatio: 1,
  1140. dispatchEvent: function dispatchEvent() { [native code] },
  1141. document: [circular object HTMLDocument],
  1142. external: [circular object External],
  1143. fetch: function fetch() { [native code] },
  1144. find: function find() { [native code] },
  1145. focus: function () { [native code] },
  1146. frameElement: null,
  1147. frames: [circular object Window],
  1148. getComputedStyle: function getComputedStyle() { [native code] },
  1149. getMatchedCSSRules: function getMatchedCSSRules() { [native code] },
  1150. getSelection: function getSelection() { [native code] },
  1151. history: [object History] { ... },
  1152. indexedDB: [object IDBFactory] { ... },
  1153. innerHeight: 352,
  1154. innerWidth: 270,
  1155. isSecureContext: true,
  1156. length: 1,
  1157. localStorage: [object Storage] { ... },
  1158. location: [object Location] { ... },
  1159. locationbar: [object BarProp] { ... },
  1160. loopProtect: function e(a,e){function f(a,b,c){return b.slice(0,c)+"{;"+m+"({ line: "+a+", reset: true }); "+b.slice(c)}var h=[],j=a.split("\n"),l=!1,m=k.alias+".protect",n={},o={},p=null;return e||(e=0),j.forEach(function(a,k){if(g.lastIndex=0,i.lastIndex=0,!l){-1!==a.toLowerCase().indexOf("noprotect")&&(l=!0);var q=-1,r=-1,s=k,t=k-e+1,u="",v=!1,w=!1,x=!1,y=a.match(g)||[],z=y.length?y[0]:"",A=a.match(i)||[],B=0,C=0,D=!1;if(A.length&&(q=a.indexOf(A[1]),c(q,a)||b(k,j)||d(q,k,j)&&(p=k)),!n[k]){if(o[k])return void h.push(a);if(z&&1===y.length&&-1===a.indexOf("jsbin")){if(v="do"===z,r=q=a.indexOf(z),c(q,a))return void h.push(a);if(b(k,j))return void h.push(a);for(q=a.indexOf(z)+z.length,q===a.length&&q===a.length&&k=a.length&&(h.push(a),n[k]=!0,k++,a=j[k],q=0)}return}q++,q===a.length&&k=a.length&&(h.push(a),n[k]=!0,k++,a=j[k],q=0)}return}q++,q===a.length&&k
Advertisement
Add Comment
Please, Sign In to add comment