Skeleton clicky
This commit is contained in:
34
js/main.js
34
js/main.js
@@ -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 });
|
||||
}());
|
||||
Reference in New Issue
Block a user