misc:ysturlconvert
YST URL Transformer
You need to translate an internal YST into the external reachable format? Then copy the internal link into here and press „Convert“
<html>
<input type=„text“ id=„in“> <button onclick=„myFunction()“>Convert</button>
<p id=„demo“></p>
<script> function myFunction() {
var inURL=document.getElementById("in").value; var oldURL=inURL.match(/https?:\/\/[\w\.]+\//i); var olddomain=oldURL[0].match(/[\w\.]+/g); var newURL=inURL.replace(oldURL,"https://portal.yazaki-systems.com/"); var lastLimiter = newURL.lastIndexOf("/"); newURL=newURL.substr(0,lastLimiter+1) + ",DanaInfo="+ olddomain[1] + "+" + newURL.substr(lastLimiter+1-newURL.length); document.getElementById("demo").innerHTML = '<a href="'+newURL+'">'+newURL+'</a>';
} </script>
</html>
misc/ysturlconvert.txt · Zuletzt geändert: 2015/05/07 15:54 von admin