Sitemap generator for Sharepoint
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 - 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](http://shots.codepen.io/gyusza/pen/adYrgN-512.jpg)
Developer | Gyula Szathmary |
Username | gyusza |
Uploaded | October 21, 2022 |
Rating | 3 |
Size | 2,518 Kb |
Views | 14,168 |
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!
Name | Size |
Simple Tabs | 5,071 Kb |
Saxo Tools Collection | 1,993 Kb |
Monthly Product Update v2 | 5,799 Kb |
Pricing widget generator project | 4,409 Kb |
Financial Glossary Converter | 2,663 Kb |
A Pen by Gyula Szathmary | 5,177 Kb |
Slimscroll | 4,090 Kb |
Navigate to coordinates from link in google maps | 1,805 Kb |
Modular LP Test | 8,437 Kb |
Get 23 thumbnail | 2,148 Kb |
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!
Name | Username | Size |
To Do List with Delete | Mattlbrody | 2,068 Kb |
A Pen by Anoop | Anoopjohn | 330,760 Kb |
Playing with FlexBox | _Billy_Brown | 3,162 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 Kb |
A bit of elegance | Hackthevoid | 9,095 Kb |
Z-index demo | Kblh | 1,534 Kb |
Simple Weather App | Cmwebby | 0 Kb |
Glitchy Text Effect | Kescoe | 2,208 Kb |
Table border-collapse property | Maxds | 1,672 Kb |
Next Word Predictor | Rfalor | 2,776 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!