JSFiddle - React, Tailwind, and code Playground
by Luke Arrington
HTML
<div style="background-color: #faebd7; width: 55%; float:left; border:3px solid grey;"">
<h3 style="color:blue">1) Convert fund list between NF & NMF <br/> 2) between PROD & STAGING for all.. <br/>NF (fund profiles)<br/>NMF (fund profiles) <br/>NW (ALL .com)</h3>
<div id="demo" style="background-color: white;">
<p contenteditable="true" style="border:2px solid; width: 99%;">
ENTER URL(s) HERE<br/>
<br/>
<br/>
<br/>
</p>
</div>
<h2>1. Convert between NF and NMF <em>fund profile</em> production links</h2>
<button style="font-size: 16px;" onclick="myFunctionConvert()">NF PROD to NMF PROD</button>
<script>
function myFunctionConvert() {
for (i=0;i<400;i++){
var strCon = document.getElementById("demo").innerHTML;
var resCon = strCon.replace("https://nationwidefinancial.com/#!/products/mutual-funds/fund-list/fund-details?ticker=", "https://mutualfunds.nationwide.com/mutualfunds/#!/fundprofile/");
document.getElementById("demo").innerHTML = resCon;
var strConv = document.getElementById("demo").innerHTML;
var resConv = strConv.replace("&tabView", "?tabView");
document.getElementById("demo").innerHTML = resConv;
}
}
</script>
<button style="font-size: 16px;" onclick="myFunctionConvert1()">NMF PROD to NF PROD</button>
<script>
function myFunctionConvert1() {
for (i=0;i<400;i++){
var strCon1 = document.getElementById("demo").innerHTML;
var resCon1 = strCon1.replace("https://mutualfunds.nationwide.com/mutualfunds/#!/fundprofile/", "https://nationwidefinancial.com/#!/products/mutual-funds/fund-list/fund-details?ticker=");
document.getElementById("demo").innerHTML = resCon1;
var strConv1 = document.getElementById("demo").innerHTML;
var resConv1 = strConv1.replace("?tabView", "&tabView");
document.getElementById("demo").innerHTML = resConv1;
}
}
</script>
<br/>
<br/>
<h2>2. Convert <em>NW</em> or <em>NF</em>(including mutual fund subdomain) links into STG links:</h2>
<button style="font-size:...