|
|
Line 71: |
Line 71: |
| | | |
| | | |
− | /*function generate_bubble(size_px, left, speed_percentage){
| |
− | var div = document.createElement("div");
| |
− | var animTime = 10*speed_percentage/100;
| |
− | div.style.width = size_px.toString() + "px";
| |
− | div.style.height = size_px.toString() + "px";
| |
− | div.style.position = "absolute";
| |
− | div.style.border = "10px solid #45ACFF";
| |
− | div.style.borderRadius = "100%";
| |
− | div.style.left = left.toString() + "%";
| |
− | div.style.animationDuration = animTime.toString() +"s";
| |
− | div.style.animationName = "rise_up";
| |
− | div.style.animationIterationCount = "infinite";
| |
− | document.getElementsByClassName('bubbles_window')[0].appendChild(div);
| |
− | }
| |
− |
| |
− | function generateRandomNumber(min, max){
| |
− | console.log("random number func instantiated");
| |
− | return Math.floor(Math.random() * (max - min) + min);
| |
− | }*/
| |
| | | |
| function person_data(name, description, i){ | | function person_data(name, description, i){ |