Compare commits
No commits in common. "89a44377c9bf95c0892915378bb465c9a930dd99" and "3253f276f6dd8b6cfaea58282a5b4506bf24926f" have entirely different histories.
89a44377c9
...
3253f276f6
@ -14,7 +14,7 @@ import setPassword, {
|
||||
} from "./scripts.js";
|
||||
import parseFormOnSubmit from "./parseForm.js";
|
||||
import { createStorageObj, storeSettings } from "./storage.js";
|
||||
import { loadNavBar, initTextBlocks, loadNewTemplate } from "./web.js";
|
||||
import { loadNavBar, initTextBlocks } from "./web.js";
|
||||
|
||||
window.activeState = {
|
||||
userId: "",
|
||||
@ -145,22 +145,6 @@ function eventListeners() {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//add url listener
|
||||
window.addEventListener("hashchange", (e) => {
|
||||
|
||||
let newURLArr = e.newURL.split("/");
|
||||
let template;
|
||||
if (newURLArr != undefined) {
|
||||
template = newURLArr[newURLArr.length -1];
|
||||
if (template != undefined) {
|
||||
template = template.split("=")[1];
|
||||
}
|
||||
}
|
||||
|
||||
console.log(template);
|
||||
//loadNewTemplate(template);
|
||||
});
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
@ -48,6 +48,7 @@ function loadTemplate(template, newFlag = false, loadOnly = false) {
|
||||
} else {
|
||||
cdata = retrieveData("userInputForce");
|
||||
}
|
||||
console.log(cdata);
|
||||
if (cdata != "") {
|
||||
if (cdata != null) {
|
||||
retrieveForm(cdata);
|
||||
@ -135,7 +136,6 @@ function loadNavBar() {
|
||||
|
||||
divMob.addEventListener("click", (e) => {
|
||||
if (e.target && e.target.matches("a.w3-bar-item")) {
|
||||
e.preventDefault;
|
||||
let template = e.target.dataset.template;
|
||||
if (template == "!createNew") {
|
||||
createTemplate();
|
||||
@ -324,7 +324,6 @@ function retrieveForm(arr) {
|
||||
case "TEXTAREA":
|
||||
if (e.parentElement != undefined) {
|
||||
if (e.parentElement.getElementsByClassName("pell-content")[0] != undefined) {
|
||||
e.innerHTML = arr[i].value;
|
||||
e = e.parentElement.getElementsByClassName("pell-content")[0];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user