Difference between revisions of "MediaWiki:Common.js"
From MakeICT Wiki
Jump to navigationJump to searchLine 2: | Line 2: | ||
(function () { | (function () { | ||
var todos = $(".makeict-todo"); | var todos = $(".makeict-todo"); | ||
− | var todoContainer = $("#makeict-decision-summary"); | + | var todoContainer = $("#makeict-decision-summary")[0]; |
console.log(todoContainer); | console.log(todoContainer); | ||
for(var i=0; i<todos.length; i++){ | for(var i=0; i<todos.length; i++){ |
Revision as of 11:45, 8 March 2015
/* Any JavaScript here will be loaded for all users on every page load. */
(function () {
var todos = $(".makeict-todo");
var todoContainer = $("#makeict-decision-summary")[0];
console.log(todoContainer);
for(var i=0; i<todos.length; i++){
var clone = todos[i].cloneNode(true);
console.log(clone);
todoContainer.appendChild(clone);
}
}());
/*
var todos = $(".makeict-todo");
var todoContainer = $("#makeict-decision-summary");
*/