Financial Glossary Converter

Size
2,663 Kb
Views
10,120

How do I make an financial glossary converter?

What is a financial glossary converter? How do you make a financial glossary converter? This script and codes were developed by Gyula Szathmary on 02 November 2022, Wednesday.

Financial Glossary Converter Previews

Financial Glossary Converter - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Financial Glossary Converter</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!--
1. Paste raw HTML from the Content Variation tool into section#rawHTML
2. The script will look through the raw HTML and select all the links
3. It removes duplicates, ".aspx" and "/Pages" from the code
-->
<!-- Paste Raw HTML into section -->
<div id="input"> <textarea id="htmlInput"></textarea> <button onclick="parseHtml()">Convert</button> <button onclick="resetAll()">Reset all</button>
</div>
<textarea id="hrefResult"></textarea>
<div class="clear"></div>
<section id="rawHTML"></section>
<!-- Results will be shown here, dont edit --> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Financial Glossary Converter - Script Codes CSS Codes

* { -webkit-transition: all 300ms ease; transition: all 300ms ease;
}
p { margin: 0;
}
#hrefResult { position: absolute; top:10px; left: 490px; width: 600px; display: inline-block; background: #333; color: #fff; padding: 25px; min-height: 500px;
}
#rawHTML { display: none
}
#input { width: 450px; display: inline-block; padding-right: 15px; position: fixed; top: 10px; left: 20px;
}
#input textarea { min-height: 500px; width: 100%; height: 100%;
}
.clear { clear: both;
}
button { padding: 10px 45px;
}

Financial Glossary Converter - Script Codes JS Codes

function resetAll() { $("#htmlInput").val(''); $("#hrefResult").empty(); $("#rawHTML").empty();
}
function parseHtml() { $("#hrefResult").empty(); var htmlInput = document.getElementById("htmlInput").value; $('#hrefResult').append(htmlInput); var str = document.getElementById("hrefResult").innerHTML; var a = new RegExp(/<div class="accordionHeadline">\s<h3><p>/g); var a2 = '<h2 class="heading--2">'; var b = new RegExp(/<\/p><\/h3>\s<\/div>/g); var b2 = '</h2>'; var c = new RegExp(/<div class="accordionItemContent"><p>/g); var c2 = '<p class="text--body">'; var d = new RegExp(/<\/p><\/div>\s<\/div>/g); var d2 = '</p>'; var e = new RegExp(/<div class="accordionItem" data-state="collapsed">/g); var f = new RegExp(/<p><\/p>/g); var f2 = new RegExp(/<p>\s<\/p>/g); var g = new RegExp(/<\/div>/g); var h = new RegExp(/<div class="accordionContainer">/g); var i = new RegExp(/<div data-state="expanded" class="accordionItem show">/g); var j = new RegExp(/<p>/g); var j2 = '<p class="text--body">'; var k = new RegExp(/<div data-state="inactive" class="accordionItem inactive">/g); var l = new RegExp(/<div class="accordionItemContent">/g); var m = new RegExp(/<div class="accordionHeadline">/g); var n = new RegExp(/<h3>/g); var o = new RegExp(/<\/h3>/g); var empty = ''; var res = str.replace(a, a2) .replace(b, b2) .replace(c, c2) .replace(d, d2) .replace(e, empty) .replace(f, empty) .replace(f2, empty) .replace(g, empty) .replace(h, empty) .replace(i, empty) .replace(j, j2) .replace(k, empty) .replace(l, empty) .replace(m, empty) .replace(n, a2) .replace(o, b2) ; document.getElementById("hrefResult").innerHTML = res; var seen = {}; $('p').each(function() { var txt = $(this).text(); if (seen[txt]) $(this).remove(); else seen[txt] = true; });
}
Financial Glossary Converter - Script Codes
Financial Glossary Converter - Script Codes
Home Page Home
Developer Gyula Szathmary
Username gyusza
Uploaded November 02, 2022
Rating 3
Size 2,663 Kb
Views 10,120
Do you need developer help for Financial Glossary Converter?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Gyula Szathmary (gyusza) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!