You are browsing as a guest. Sign up (or log in) to start making projects!

40m 53s logged

So I started the third tutorial.I am at the part where you should be able to drag your window.The code is from the tutorial ,so it should work but I think that I have done something wrong because as you can see nothing happens.I am on the go right now and maybe I can squeze some time for programming in later.I have my code updated in my github thing ( it is linked in the project I think) .Could someone help me please.I am really new with JS and I do not have enough time right now to start from the starting point.Because I am in a rush I do not have time to correct this text .I am really sorry for my grammar and all this stuff.

0
36

Comments 6

@nokira

Hi! I took a look at your code and found a bunch of issues:

dragElement(document.getElementById(“window”)); There is no element with id “window” inside your HTML file, it should be changed with “welcome”

margin-top: 20px; margin-left:auto; margin-right:auto; these properties should be removed as they force a margin to the window even when it’s being dragged

If you fix these problems the window should move!

If you need any help or don’t understand what mentioned before, message me on Slack @nokira !

@nokira

Oh, and also, i forgot to mention that you should remove the script tag from the script.js file!

@253_Mathilde_IYKYK

Hi thanks for your help.You saved me.I do not know what I would have done without your help.Thanks for looking in my Code and everything I am trying it tomorrow because my laptop is still in my suitcase. @nokira ❤️❤️❤️❤️

@nokira

@253_Mathilde_IYKYK No problem! If tomorrow you need any help just message me! I’ll try to help with anything :)

@253_Mathilde_IYKYK

@nokira Are you on Slack ?if not it is no problem and I ask you with a comment!

@nokira

@253_Mathilde_IYKYK Yes! On slack my user is @nokira