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. EkBass

    Hello mini world

    Welcome
  2. EkBass

    Help adjusting CSS code (Ken Burns effect)

    This is something you could try out. See more at translate3d() - CSS: Cascading Style Sheets | MDN 95% { transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px + 50px * Math.random(), -120px + 50px * Math.random(), 0px); -webkit-transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px +...
  3. EkBass

    JavaScript Help with Javascript code on a if else condition

    When the code runs, it checks the first if statement, section.classList.contains('escolaprofiles'), and since its true, the code inside the if block is executed, and the subtitle is changed to 'Contemporâneo e Dança Inclusiva'. Code does not continue to else if because the first if statement...
  4. EkBass

    Are HTML & CSS necessary to learn?

    If you are interested about backend only, then its not relevant. But other than that, atleast basics of CSS should be good to know. In any mean CSS and/or HTML are not so hard that you cant get the basics pretty fast. W3Schools has pretty neat tutorials for both. Well explained and you can try...
  5. EkBass

    How do I learn programming?

    Do not think too much about some specific language. They all are just a tools to achive something. Concentrate for mathematical, logical and OOP thinking. "How i solve this problem with a code?" is the way to start.
  6. EkBass

    stuck with first c program

    Dividing with floats does not always produce accurate results. This is because at some point the division is rounded due the amount of decimals. I cant explain it better in english. Next code is not tested, but i think it gets you atleast closer to what you need. Hope it help. #include...
  7. EkBass

    Best Programming Language for a Project?

    Sounds like you HDD will love this project :P Basicly any modern language can do what you need it to do. I say, think the logic and then pick the language you know best. IMO: You dont get huge advantages from any language. Yes, some are better in file handling etc. but for this i would say use...
  8. EkBass

    What Linux-Distro Are You Using?

    Currently im Win 11 only. But i have used a lots of Ubuntu and OpenSuse. Tbh, i did not like OpenSuse. Main reason not to use anymore, is that when playing any instrument via linux, it gets hard. Good and lag free DAW's for linux are not done till this day.
  9. EkBass

    JavaScript Multiplayer JS card game – how do I create private spaces for individual hands?

    Basicly one of the players and his browser can be a server that does the job. Though, it will be the most easiest one to crack by the same player. Safest way is to use server script from third party server which sends necessary info to players via http or such.
  10. EkBass

    JavaScript How To Make a GIF Move with Arrow Keys?

    Hi. You need to store the x and y locations properly. After keypress, reveal only that image which should be pressed and hide rest of them.. If movement then solve direction where update x & y accordingly by direction, hide other images and only show the correct one End if
  11. EkBass

    JavaScript looking for a partner to help build a javascript app for mobile

    It is possible to use JS with HTML & CSS for mobile apps, at least for Android. For iPhone, im not sure. One common way is to use the Cordova WebView plugin. It is basically a Google Chrome highly stripped. Several games for example are written in javascript and then used in Android via...
  12. EkBass

    JavaScript JavaScript help

    Well, i tested your code and did some changes. With this code, Nav opens when scrolled up and closes when scrolled down. You can adjust this example to get the behavior you wanted for your page. // Need only to appear the overlay window, only when user scroll up...
  13. EkBass

    JavaScript JavaScript help

    Hi. You can use the wheel properties. https://www.w3schools.com/jsref/event_wheel_deltay.asp This example is not tested but should give you at least idea how to do it. window.addEventListener('wheel', function(event) { if (event.deltaY > 0) { console.log('You scrolled down'); } else...
  14. EkBass

    HTML & CSS HTML Video not working with media query

    Hi. Code itself seems fine to me. Cant test now, but looks like ok. What you browser console shows? Open dev.tools and from there a console. That can provide good data to solve the problem. Have you tested this with what browser(s)? Server configuration is ok? No log errors etc?
  15. EkBass

    JavaScript Little problem with my javascript code (rpg game)

    Hi. Great thing is, that you provided enough code to see to. Bad thing is im at work computer and cant try it out for now. However, i can suggest few things. Set parameters positionX, positionY for player. Then add also attributes newPosositionX and newPositionY. Once w, a, s or d is...
  16. EkBass

    Make color switching for cars when you click on

    Hi. First you should fix these problems to make things easier for yourself. Failed to load resource: the server responded with a status of 404 () 3test:179 Uncaught TypeError: Cannot read properties of undefined (reading '0') at changeSldPh (test:179:23) at...
  17. EkBass

    JavaScript code breaks when I use a variable

    https://validatejavascript.com/
  18. EkBass

    JavaScript code breaks when I use a variable

    I think you are missing at least one closing bracket there. A bracket that looks like is closing the function, is actually closing the IF statement. Function is not closed in your code at all. Make sure also, that you have declared properly whatever you are using in line l_LED_selected = 1;
  19. EkBass

    C++ How to calculate the greatest common divisor of two numbers in C++.

    I dont see anything wrong i your code, except if you try to find the greatest you should loop from top to down. Or im i too tired here to understand something? :D I think it was C++ 11 where was __gdc introduced. Then its basically like this: int a = 24, b = 36; int gcd = __gcd(a, b); cout <<...
  20. EkBass

    JavaScript if statements prompting a download

    You want this behaviour for webpage or console? Anyway, here is simple example. I cant test now, but its atleast close to something that works. // function comapres is parameter true or false // by that, one of two files is offered as download function downloadFile(isFile1) { const file1Url =...
Back
Top Bottom