Files
pfostendynamics.com/js/addToURL.js
T

21 lines
646 B
JavaScript

function addHTML() {
if (window.location.protocol == 'file:' || window.location.hostname == '127.0.0.1') {
var filename = document.getElementById("addhtml")
filename += ".html"
document.getElementById("addhtml").href = filename;
console.log(filename);
return false;
}
}
function addIndex() {
if (window.location.protocol == 'file:' || window.location.hostname == '127.0.0.1') {
var filename = document.getElementById("addindex")
filename += "index.html"
document.getElementById("addindex").href = filename;
console.log(filename);
return false;
}
}