Advertisement
BrU32

jsbin stuffs

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