Tommyrpg1010 (Talk | contribs) |
Tommyrpg1010 (Talk | contribs) |
||
Line 346: | Line 346: | ||
<script> | <script> | ||
function onAnchorChange() { | function onAnchorChange() { | ||
− | var side1 = document.getElementById("mySide_1"); | + | var side[4]; |
− | var side2 = document.getElementById(" | + | for (let i = 0; i < 4; i++) { |
− | var side3 = document.getElementById(" | + | let string = "mySide_" + i; |
− | var side4 = document.getElementById(" | + | side[i] = document.getElementById(string); |
− | + | } | |
− | + | // var side1 = document.getElementById("mySide_1"); | |
+ | // var side2 = document.getElementById("mySide_2"); | ||
+ | // var side3 = document.getElementById("mySide_3"); | ||
+ | // var side4 = document.getElementById("mySide_4"); | ||
+ | side[0].classList.remove(side1.classList.item(2)); | ||
+ | side[0].classList.add("instagram"); | ||
//element.classList.remove("mystyle"); | //element.classList.remove("mystyle"); | ||
} | } |
Revision as of 04:39, 10 October 2018
Interactive Cell
Human Practices
Human Practices