Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. O

    JavaScript getting concatenated values not the sum

    To always insure you have a number and not a string use Number(). initialRadius = Number(radiusIncrement) + Number(oldRadius);
  2. O

    JavaScript How to remove duplicate records from string array

    I think splice() is the fastest way of doing this, but here's another way of doing it: <script> let myArray = [10132,'Computer', 10132,'Windows Server','Computer','10A8001HUS','Computer','10A8001HUS','Computer']; let newArry = [...new Set(myArray)]; alert(newArry); </script>Note the quotes!
  3. O

    Error but I have no idea where

    Only sheep follow a sheperd
  4. O

    JavaScript Why will the if condition be executed in this recursive snake game?

    The loop causes problems. If commented out the variables change values so I changed the loop content to return main, and it worked the same way it did when commented out - by that, I watched the variables change and insured the loop worked. Know nothing about the gameEngine function so don't...
  5. O

    JavaScript What is wrong in this code?

    So you want this var name = prompt("What is your name?"); if (name == "Alesya" ) { alert("Good day " + name); } else { alert(name + " not correct"); }
  6. O

    Asking for assistance with CSS Menu for mobile for existing site

    I am sorry, I don't know what you're talking about. You should post code to explain.
  7. O

    Asking for assistance with CSS Menu for mobile for existing site

    sacdman I did not ask anything. I told you what to do and it looks like you didn't do it. So again That looks like this: <!DOCTYPE html> <html> <head> <title>Menucool Css Menu</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <base...
  8. O

    Asking for assistance with CSS Menu for mobile for existing site

    Line 21, <div class="menu-icon" onclick="toggleCssMenu(this)"> does not pass anything. Change the "this" to what you want to pass. FYI: "this" is a JS thing, not an HTML thing. And I would add this to the head: <base href="http://bennysplace.ml/"> before the link to your css file
  9. O

    JavaScript A transfer of control problem

    Two ways: window.location.href ="URL OF PAGE"; and the ever most popular: window.location.replace("SAME URL AS ABOVE";
  10. O

    JavaScript Need your help 🤗 : How do I remove hand (pointer) cursor

    I see nothing in what you gave us to do this. Maybe inline styling is the culprit. Look in the html.
  11. O

    Where to start my programming journey?

    Python 3.14 Will be Faster than C++take your pick.
  12. O

    JavaScript How do I loop through an array and display each item in the HTML page on a new line?

    pc510, if things do not work out for you, post your code so we can see what you're doing wrong.
  13. O

    Making a card disappear

    You're right. Oh well, an excellent practice session anyway.
  14. O

    Making a card disappear

    This hack (using a checkbox to simulate 'onclick') has been around for a while. I modified it to make the checkbox 'disappear' by making the item shrink to oblivion. If the card is left at its original dimension the user could click in the empty space and bring it back. <style> div { width...
  15. O

    JavaScript How do I track item lists for future IF statement

    How do you determine what of the 30+array are required? How is the item made "Submitted" or "Not Submitted"? Is the "Submitted" or "Not Submitted" determined from the 30+array or on the "Submitted" items?
  16. O

    JavaScript How do I loop through an array and display each item in the HTML page on a new line?

    Without the function and the missing html code - which you forgot. <body> <div id="h3textItems"></div> <script> let toDoList = ['help', 'end', ' let toDoList = ['help', 'end', 'poverty'] '] for ( item of toDoList) { h3textItems.innerHTML += item + "<br>"; }...
  17. O

    Making a card disappear

    See if this helps: <style> div { width: 100px; height: 100px; background: red; transition-property: opacity; transition-duration: 5s; } div:hover { opacity: 0; } </style> </head> <body> <div></div> </body>
  18. O

    HTML

    Please - All code. What html element are you styling? I did a simple table and got all kinds of rowspace.
  19. O

    CSS Left border on table column group

    Please post the entire table code. Does this work for you? <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Table Colgroup</title> <style> table { border-collapse: collapse; } th, td { border-bottom: 1px solid black; } colgroup...
  20. O

    JavaScript How to update slider position via dynamic variable

    document.getElementById("temp_input").value = 475; will control the slider. If done before assigning the output variable then the 'Temp_Value' will display the setting. To do this from "receive.message" you need to write something that will do that, either polling the websocket event at...
Back
Top Bottom