Skeleton clicky

This commit is contained in:
Julian
2022-02-05 15:42:59 +01:00
parent 80e999c142
commit f8f88d6fc2
3 changed files with 41 additions and 17 deletions

View File

@@ -182,6 +182,33 @@
};
var addField = function() {
$('.js-addField').on('click', function(event){
event.preventDefault();
// Container <div> where dynamic content will be placed
var container = document.getElementById("attentants");
// Clear previous contents of the container
// while (container.hasChildNodes()) {
// container.removeChild(container.lastChild);
// }
//container.appendChild()
// Append a node with a random text
container.appendChild(document.createTextNode("Member"));
// // Create an <input> element, set its type and name attributes
// var input = document.createElement("input");
// input.type = "text";
// input.name = "member" + i;
// container.appendChild(input);
// // Append a line break
// container.appendChild(document.createElement("br"));
return false;
});
}
// Loading page
var loaderPage = function() {
$(".fh5co-loader").fadeOut("slow");
@@ -209,7 +236,7 @@
// Parallax
var parallax = function() {
$(window).stellar();
$(window).stellar({ horizontalScrolling: false });
};
@@ -225,9 +252,8 @@
loaderPage();
counter();
counterWayPoint();
addField();
});
}());
$(window).stellar({ horizontalScrolling: false });
}());