Sitemap generator for Sharepoint

Size
2,518 Kb
Views
14,168

How do I make an sitemap generator for sharepoint?

What is a sitemap generator for sharepoint? How do you make a sitemap generator for sharepoint? This script and codes were developed by Gyula Szathmary on 21 October 2022, Friday.

Sitemap generator for Sharepoint Previews

Sitemap generator for Sharepoint - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sitemap generator for Sharepoint</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" placeholder="1. Copy the HTML content from 'Content Variation tool', 2. Paste it in here, 3. Press 'Get all URLs' button. When done, press reset to start again. "></textarea> <button onclick="parseHtml()">Get all URLs</button> <button onclick="resetAll()">Reset all</button>
</div>
<div id="hrefResult"></div>
<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>

Sitemap generator for Sharepoint - 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;
}

Sitemap generator for Sharepoint - Script Codes JS Codes

function resetAll() { $("#htmlInput").val(''); $("#hrefResult").empty(); $("#rawHTML").empty();
}
function parseHtml() { var htmlInput = document.getElementById("htmlInput").value; $('#rawHTML').append(htmlInput); $('#rawHTML').find('a').each(function() { $('#hrefResult').append('<p>' + $(this).attr('href') + '</p>'); }); var str = document.getElementById("hrefResult").innerHTML; var p = new RegExp(/javascript:[\s\S]........................................................................................................................................................................................................................................................................................\)\)/g); var q = new RegExp(/javascript:[\s\S].....................................................................................................................................................................................................................................................................................\)\)/g); var r = new RegExp(/javascript:[\s\S]..................................................................................................................................................................................................................................................................................\)\)/g); var res = str.replace(/http/g, "http").replace(/Pages\//g, "").replace(/.aspx/g, "").replace(p, "").replace(q, "").replace(r, "")/*.replace(/\/default/g, "")*/; document.getElementById("hrefResult").innerHTML = res; var seen = {}; $('p').each(function() { var txt = $(this).text(); if (seen[txt]) $(this).remove(); else seen[txt] = true; });
}
Sitemap generator for Sharepoint - Script Codes
Sitemap generator for Sharepoint - Script Codes
Home Page Home
Developer Gyula Szathmary
Username gyusza
Uploaded October 21, 2022
Rating 3
Size 2,518 Kb
Views 14,168
Do you need developer help for Sitemap generator for Sharepoint?

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!