-2

I just uploaded my website on a free host server but it doesn't work properly. I don't know why...

can you help me please ?

see the link : https://electrophotonique.000webhostapp.com/

Haox
  • 576
  • 6
  • 21
  • because you read the element before it exists on the page.... – epascarello Oct 16 '18 at 15:36
  • And you have tons of 404 errors – epascarello Oct 16 '18 at 15:36
  • sorry but I don't understand. I'm not a webmaster... – Haox Oct 16 '18 at 15:37
  • Questions seeking code help must include the shortest code necessary to reproduce it **in the question itself** preferably in a **Stack Snippet**. Although you have provided a link, if it was to become invalid, your question would be of no value to other future SO users with the same problem. See [**Something in my website/demo doesn't work can I just paste a link**](http://meta.stackoverflow.com/questions/254428/something-in-my-web-site-or-project-doesnt-work-can-i-just-paste-a-link-to-it). – Paulie_D Oct 16 '18 at 15:38
  • https://stackoverflow.com/questions/14028959/why-does-jquery-or-a-dom-method-such-as-getelementbyid-not-find-the-element – epascarello Oct 16 '18 at 15:43

1 Answers1

1

Your code is fine but you just need to put your scripts at the end of your code before the </body> tag Like this :

<html>
   <head>
      <link rel="stylesheet" href="CSS/style2.css">
      <link rel="shortcut icon" href="IMAGES/PNG/favicon.png">
      <meta charset="utf-8">
      <title>Electrophotonique Ingenierie</title>
      <meta name="viewport" content="width=device-width, initial-scale=1">
   </head>
   <body>

       <!-- YOUR CODE - START -->

         .....

       <!-- YOUR CODE - END -->


      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script type="text/javascript" src="JS/sticky_navbar.js"></script>
      <script src="js/button.js"></script>
      <script src="js/index.js"></script>

   </body>
</html>
Djamel Kr
  • 659
  • 1
  • 4
  • 12