Skip to content

Commit 67dec12

Browse files
updated function names
1 parent d8e28f1 commit 67dec12

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

spriteAnimate/testAnimation/js/Updated JS/blast_all.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020

2121
// blastWebpage_Words_Divs(globalPositionAll);
2222

23-
blastWebpage_Chars_Divs(globalPositionAll);
23+
// blastWebpage_Chars_Divs(globalPositionAll);
2424
// deleteEveryOtherChar();
2525

26+
function blastWebpage(){ // choose which mode you want
27+
blastWebpage_Chars_Divs(globalPositionAll);
28+
}
29+
2630

2731

2832
function blastWebpage_Words_Divs(callback){
@@ -105,7 +109,7 @@ function globalPositionAll(x, divPositions){
105109

106110
if(testdiv.childElementCount > 0){
107111
var children = testdiv.children;
108-
testdiv.remove(); // Can improve this later. Removes troublesome chars
112+
deleteElem(testdiv); // Can improve this later. Removes troublesome chars
109113
}
110114
// DUPLICATE DETECTION
111115
// for(var j = x.length-1; j > i; j--){
@@ -145,7 +149,7 @@ function deleteEveryOtherChar(){
145149
}
146150

147151

148-
function deleteDivElem(element){
152+
function deleteElem(element){
149153
element.remove();
150154
}
151155

0 commit comments

Comments
 (0)