Permalink
Browse files

Great googly moogly it's all gone to shit

  • Loading branch information...
Ceekyew committed Apr 2, 2018
1 parent 9f398ab commit ec2f378f80ba257b6045b13edad60439d50c821e
Showing with 66 additions and 0 deletions.
  1. +2 −0 index.html
  2. +64 −0 tags.js
@@ -8,6 +8,8 @@
</style>
</head>
<body>
<div id="info"></div>
<div id="info2"></div>
<div id="tags1">
<strong>Personal Tags</strong>
<ul>
64 tags.js
@@ -1 +1,65 @@
var getLists = document.getElementsByTagName('ul');
var getListsNum = document.getElementsByTagName('ul').length;
var x = getListsNum;
//var getListChilds = getLists.childNodes;
var showListNumber = document.getElementById("info");
var showListNumber2 = document.getElementById("info2");
function displayInfo(){
showListNumber.innerHTML = "There are " + getListsNum +" tag lists on this page.";
}
function createArr(){
var tagGenres = []; //Create parent array to contain other arrays
var fetchList;
for(i = 0; i < x; i++){
//tagGenres[i] = [];
alert(i); //Should detect 5 UL tags
fetchList = getLists.item([i]);
//var getChildren = fetchList.childNodes;
showListNumber2.innerHTML = getChildren[i];
//if(fetchList.hasChildNodes === true)
}
return tagGenres;
}
//function accessArr(tagGenres){
//}
function runAll(){
displayInfo();
createArr();
accessArr();
}
window.onload = runAll;

1 comment on commit ec2f378

@robertoost

This comment has been minimized.

robertoost commented on ec2f378 Apr 6, 2018

Best commit message 2k18 by far

Please sign in to comment.