Created
September 26, 2014 17:26
-
-
Save omegdadi/75395ba234f03c97967c to your computer and use it in GitHub Desktop.
[add dfd bin description] // source http://jsbin.com/yeked/1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="[add dfd bin description]" /> | |
| <meta charset=utf-8 /> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <!-- Ad Tags for Condé - Allure Slide Show (Content Stream) --> | |
| <!-- Base size of ad: 1100x560 --> | |
| <!-- Placements: 1 --> | |
| <!-- Placement: Condé - Allure Slide Show (Content Stream) #1 --> | |
| <!-- Placement ID: ab43c49c-a3f8-4fd9-8727-74581fa607ca --> | |
| <!-- Placement Size: 1100x560 --> | |
| <!-- Ad Server: NONE --> | |
| <script> | |
| (function() { | |
| var guid = "ab43c49c-a3f8-4fd9-8727-74581fa607ca", o = window, r = "", m, s = "http:", e = encodeURIComponent, x = 0, f = document.createElement("script"); | |
| o.FLITE=o.FLITE || {}; | |
| o.FLITE.config = o.FLITE.config || {}; | |
| o.FLITE.config[guid] = o.FLITE.config[guid] || {}; | |
| o.FLITE.config[guid].cb = Math.random(); | |
| o.FLITE.config[guid].ts = (+ new Date()); | |
| try{ r = (top===self && top.location) ? top.location.href : document.referrer || (top.location && top.location.href) || "";}catch(er){x=1} | |
| try{ s = o.location && o.location.protocol === "https:"? o.location.protocol : s;}catch(er){x+=2} | |
| try{ m = r.match(new RegExp("[A-Za-z]+:[/][/][A-Za-z0-9.-]+")); } catch(er) {x+=4} | |
| f.src = [s,"//r.flite.com/syndication/uscript.js?i=",e(guid),"&v=3","&x=us",x,"&cb=",o.FLITE.config[guid].cb,"&d=",e((m && m[0]) || r)].join(""); | |
| document.write(f.outerHTML); | |
| })(); | |
| </script> | |
| <noscript> | |
| <a style="text-decoration:none;display:block;border:0;" href="http://r.flite.com/syndication/backuplink/i/ab43c49c-a3f8-4fd9-8727-74581fa607ca?ct=" target="_blank"> | |
| <img border="0" src="http://r.flite.com/syndication/backupimage/i/ab43c49c-a3f8-4fd9-8727-74581fa607ca?at="/> | |
| </a> | |
| </noscript> | |
| <script id="jsbin-javascript"> | |
| var inTag = "<\!-- Placement: New Blank Ad #1 -->\n<\!-- Placement ID: 7d67b157-8274-438b-b18c-a3af8e9d6d57 -->\n<\!-- Ad Server: DFA -->\n<\!-- HTTPS support: true; Format: uScript v2-->\n\n<div style=\"display:none !important;\" id=\"flite-click-macro-7d67b157-8274-438b-b18c-a3af8e9d6d57\">%c</div>\n\n<scr" + "ipt>\n (function() {\n var guid = \"7d67b157-8274-438b-b18c-a3af8e9d6d57\", o = window, r = \"\", m, s = \"http:\", e = encodeURIComponent, x = 0, f = document.createElement(\"script\");\n o.FLITE=o.FLITE || {};\n o.FLITE.config = o.FLITE.config || {};\n o.FLITE.config[guid] = o.FLITE.config[guid] || {};\n o.FLITE.config[guid].cb = Math.random();\n o.FLITE.config[guid].ts = (+ new Date());\n try{ r = (top===self && top.location) ? top.location.href : document.referrer || (top.location && top.location.href) || \"\";}catch(er){x=1}\n try{ s = o.location && o.location.protocol === \"https:\"? o.location.protocol : s;}catch(er){x+=2}\n try{ m = r.match(new RegExp(\"[A-Za-z]+:[/][/][A-Za-z0-9.-]+\")); } catch(er) {x+=4}\n try{ var fm = document.getElementById(\"flite-click-macro-\" + guid); var c = (fm && (fm.innerText || fm.textContent || fm.innerHTML)) || \"\"; c = c.replace(/^\s+|\s+$/g, \"\"); o.FLITE.config[guid].ct = c; } catch(err) {x+=8}\n f.src = [s,\"//localhost:8080/syndication/uscript.js?i=\",e(guid),\"&v=3\",\"&x=us\",x,\"&cb=\",o.FLITE.config[guid].cb,\"&d=\",e((m && m[0]) || r)].join(\"\");\n document.write(f.outerHTML);\n })();\n</scr" +"ipt>\n\n<noscript>\n <a style=\"text-decoration:none;display:block;border:0;\" href=\"//localhost:8080/syndication/backuplink/i/7d67b157-8274-438b-b18c-a3af8e9d6d57?ct=%c\" target=\"_blank\">\n <img border=\"0\" src=\"//localhost:8080/syndication/backupimage/i/7d67b157-8274-438b-b18c-a3af8e9d6d57?at=\"/>\n </a>\n</noscript>"; | |
| function convertToRawJavascript(str) { | |
| var out = ""; | |
| var codeParts = str.split(/<\/?script[^>]*>/g); | |
| for (var i = 0; i < codeParts.length; i++) { | |
| var isScript = i%2; | |
| var part = codeParts[i]; | |
| if (isScript) { | |
| out += part; | |
| } else { | |
| out += "document.write('"; | |
| out += part.replace(/\n/g,'\\n').replace(/'/g,'\\\''); | |
| out += "');"; | |
| } | |
| } | |
| return out; | |
| } | |
| function convert(){ | |
| var inTag = document.getElementById('inTag').value; | |
| var outTag = convertToRawJavascript(inTag); | |
| var div = document.getElementById('outTag') || document.createElement('div'); | |
| div.id = 'outTag'; | |
| div.innerHTML = "<textarea rows='20' cols='100'>" + outTag.replace(/</g,"<").replace(/>/g,">") + "</textarea>"; | |
| document.body.appendChild(div); | |
| } | |
| </script> | |
| <script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="[add dfd bin description]" /> | |
| <meta charset=utf-8 /> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <\!-- Ad Tags for Condé - Allure Slide Show (Content Stream) --> | |
| <\!-- Base size of ad: 1100x560 --> | |
| <\!-- Placements: 1 --> | |
| <\!-- Placement: Condé - Allure Slide Show (Content Stream) #1 --> | |
| <\!-- Placement ID: ab43c49c-a3f8-4fd9-8727-74581fa607ca --> | |
| <\!-- Placement Size: 1100x560 --> | |
| <\!-- Ad Server: NONE --> | |
| <script> | |
| (function() { | |
| var guid = "ab43c49c-a3f8-4fd9-8727-74581fa607ca", o = window, r = "", m, s = "http:", e = encodeURIComponent, x = 0, f = document.createElement("script"); | |
| o.FLITE=o.FLITE || {}; | |
| o.FLITE.config = o.FLITE.config || {}; | |
| o.FLITE.config[guid] = o.FLITE.config[guid] || {}; | |
| o.FLITE.config[guid].cb = Math.random(); | |
| o.FLITE.config[guid].ts = (+ new Date()); | |
| try{ r = (top===self && top.location) ? top.location.href : document.referrer || (top.location && top.location.href) || "";}catch(er){x=1} | |
| try{ s = o.location && o.location.protocol === "https:"? o.location.protocol : s;}catch(er){x+=2} | |
| try{ m = r.match(new RegExp("[A-Za-z]+:[/][/][A-Za-z0-9.-]+")); } catch(er) {x+=4} | |
| f.src = [s,"//r.flite.com/syndication/uscript.js?i=",e(guid),"&v=3","&x=us",x,"&cb=",o.FLITE.config[guid].cb,"&d=",e((m && m[0]) || r)].join(""); | |
| document.write(f.outerHTML); | |
| })(); | |
| <\/script> | |
| <noscript> | |
| <a style="text-decoration:none;display:block;border:0;" href="//r.flite.com/syndication/backuplink/i/ab43c49c-a3f8-4fd9-8727-74581fa607ca?ct=" target="_blank"> | |
| <img border="0" src="//r.flite.com/syndication/backupimage/i/ab43c49c-a3f8-4fd9-8727-74581fa607ca?at="/> | |
| </a> | |
| </noscript> | |
| </body> | |
| </html></script> | |
| <script id="jsbin-source-javascript" type="text/javascript">var inTag = "<\!-- Placement: New Blank Ad #1 -->\n<\!-- Placement ID: 7d67b157-8274-438b-b18c-a3af8e9d6d57 -->\n<\!-- Ad Server: DFA -->\n<\!-- HTTPS support: true; Format: uScript v2-->\n\n<div style=\"display:none !important;\" id=\"flite-click-macro-7d67b157-8274-438b-b18c-a3af8e9d6d57\">%c</div>\n\n<scr" + "ipt>\n (function() {\n var guid = \"7d67b157-8274-438b-b18c-a3af8e9d6d57\", o = window, r = \"\", m, s = \"http:\", e = encodeURIComponent, x = 0, f = document.createElement(\"script\");\n o.FLITE=o.FLITE || {};\n o.FLITE.config = o.FLITE.config || {};\n o.FLITE.config[guid] = o.FLITE.config[guid] || {};\n o.FLITE.config[guid].cb = Math.random();\n o.FLITE.config[guid].ts = (+ new Date());\n try{ r = (top===self && top.location) ? top.location.href : document.referrer || (top.location && top.location.href) || \"\";}catch(er){x=1}\n try{ s = o.location && o.location.protocol === \"https:\"? o.location.protocol : s;}catch(er){x+=2}\n try{ m = r.match(new RegExp(\"[A-Za-z]+:[/][/][A-Za-z0-9.-]+\")); } catch(er) {x+=4}\n try{ var fm = document.getElementById(\"flite-click-macro-\" + guid); var c = (fm && (fm.innerText || fm.textContent || fm.innerHTML)) || \"\"; c = c.replace(/^\s+|\s+$/g, \"\"); o.FLITE.config[guid].ct = c; } catch(err) {x+=8}\n f.src = [s,\"//localhost:8080/syndication/uscript.js?i=\",e(guid),\"&v=3\",\"&x=us\",x,\"&cb=\",o.FLITE.config[guid].cb,\"&d=\",e((m && m[0]) || r)].join(\"\");\n document.write(f.outerHTML);\n })();\n</scr" +"ipt>\n\n<noscript>\n <a style=\"text-decoration:none;display:block;border:0;\" href=\"//localhost:8080/syndication/backuplink/i/7d67b157-8274-438b-b18c-a3af8e9d6d57?ct=%c\" target=\"_blank\">\n <img border=\"0\" src=\"//localhost:8080/syndication/backupimage/i/7d67b157-8274-438b-b18c-a3af8e9d6d57?at=\"/>\n </a>\n</noscript>"; | |
| function convertToRawJavascript(str) { | |
| var out = ""; | |
| var codeParts = str.split(/<\/?script[^>]*>/g); | |
| for (var i = 0; i < codeParts.length; i++) { | |
| var isScript = i%2; | |
| var part = codeParts[i]; | |
| if (isScript) { | |
| out += part; | |
| } else { | |
| out += "document.write('"; | |
| out += part.replace(/\n/g,'\\n').replace(/'/g,'\\\''); | |
| out += "');"; | |
| } | |
| } | |
| return out; | |
| } | |
| function convert(){ | |
| var inTag = document.getElementById('inTag').value; | |
| var outTag = convertToRawJavascript(inTag); | |
| var div = document.getElementById('outTag') || document.createElement('div'); | |
| div.id = 'outTag'; | |
| div.innerHTML = "<textarea rows='20' cols='100'>" + outTag.replace(/</g,"<").replace(/>/g,">") + "</textarea>"; | |
| document.body.appendChild(div); | |
| }</script></body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var inTag = "<!-- Placement: New Blank Ad #1 -->\n<!-- Placement ID: 7d67b157-8274-438b-b18c-a3af8e9d6d57 -->\n<!-- Ad Server: DFA -->\n<!-- HTTPS support: true; Format: uScript v2-->\n\n<div style=\"display:none !important;\" id=\"flite-click-macro-7d67b157-8274-438b-b18c-a3af8e9d6d57\">%c</div>\n\n<scr" + "ipt>\n (function() {\n var guid = \"7d67b157-8274-438b-b18c-a3af8e9d6d57\", o = window, r = \"\", m, s = \"http:\", e = encodeURIComponent, x = 0, f = document.createElement(\"script\");\n o.FLITE=o.FLITE || {};\n o.FLITE.config = o.FLITE.config || {};\n o.FLITE.config[guid] = o.FLITE.config[guid] || {};\n o.FLITE.config[guid].cb = Math.random();\n o.FLITE.config[guid].ts = (+ new Date());\n try{ r = (top===self && top.location) ? top.location.href : document.referrer || (top.location && top.location.href) || \"\";}catch(er){x=1}\n try{ s = o.location && o.location.protocol === \"https:\"? o.location.protocol : s;}catch(er){x+=2}\n try{ m = r.match(new RegExp(\"[A-Za-z]+:[/][/][A-Za-z0-9.-]+\")); } catch(er) {x+=4}\n try{ var fm = document.getElementById(\"flite-click-macro-\" + guid); var c = (fm && (fm.innerText || fm.textContent || fm.innerHTML)) || \"\"; c = c.replace(/^\s+|\s+$/g, \"\"); o.FLITE.config[guid].ct = c; } catch(err) {x+=8}\n f.src = [s,\"//localhost:8080/syndication/uscript.js?i=\",e(guid),\"&v=3\",\"&x=us\",x,\"&cb=\",o.FLITE.config[guid].cb,\"&d=\",e((m && m[0]) || r)].join(\"\");\n document.write(f.outerHTML);\n })();\n</scr" +"ipt>\n\n<noscript>\n <a style=\"text-decoration:none;display:block;border:0;\" href=\"//localhost:8080/syndication/backuplink/i/7d67b157-8274-438b-b18c-a3af8e9d6d57?ct=%c\" target=\"_blank\">\n <img border=\"0\" src=\"//localhost:8080/syndication/backupimage/i/7d67b157-8274-438b-b18c-a3af8e9d6d57?at=\"/>\n </a>\n</noscript>"; | |
| function convertToRawJavascript(str) { | |
| var out = ""; | |
| var codeParts = str.split(/<\/?script[^>]*>/g); | |
| for (var i = 0; i < codeParts.length; i++) { | |
| var isScript = i%2; | |
| var part = codeParts[i]; | |
| if (isScript) { | |
| out += part; | |
| } else { | |
| out += "document.write('"; | |
| out += part.replace(/\n/g,'\\n').replace(/'/g,'\\\''); | |
| out += "');"; | |
| } | |
| } | |
| return out; | |
| } | |
| function convert(){ | |
| var inTag = document.getElementById('inTag').value; | |
| var outTag = convertToRawJavascript(inTag); | |
| var div = document.getElementById('outTag') || document.createElement('div'); | |
| div.id = 'outTag'; | |
| div.innerHTML = "<textarea rows='20' cols='100'>" + outTag.replace(/</g,"<").replace(/>/g,">") + "</textarea>"; | |
| document.body.appendChild(div); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment