This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by TuffHedeman
about 8 years

Huge jump from static site to interactive site. Assistance needed.

I just completed the lesson of building a static site and everything went great, I felt like I absorbed a lot of what was thrown my way and at the end of the lesson was able to complete the tasks with little to no help other than a few typos. However; when I switched to building an interactive site lesson I began getting held up at the beginning. I don’t understand the functions or how they work, or how to select them or what the special characters do and how to use them. Can someone point me in the direction of a tutorial or a different lesson plan that outlines this?

Answer 55a1b7e4d3292f68ed00019b

2 votes

Permalink

I have no help for you. But I agree with you. I do not feel as if there is nearly as much guidance as need in this section. I feel like they kinda just expect me to know all of this. The first part where you are making the menu come out I don’t know how we are expected to just know where all of the symbols go, what position to put them in. That section let me go on even though my menu does not even open as it should!

points
Submitted by Timothy
about 8 years

Answer 55a1c2b39113cbbb8000067a

0 votes

Permalink

I’m glad I’m not the only one with this issue but one thing I found that may or may not help in the long run. I took a step back and went to programming languages on the main page and started with HTML & CSS, it is delving much deeper into the syntax of the language. After I’ve completed the HTML & CSS course I’m going to move onto JS and JQ.

points
Submitted by TuffHedeman
about 8 years

Answer 55a350219113cb1deb0005ae

0 votes

Permalink

This is quite a leap from HTML and CSS, I’m struggling to understand where all the syntax goes.

I think that this lesson could definitely be explained in further depth. i have the same issue from part 5/8 it allows me to proceed without my Menu appearing, I even tried copying and pasting their “Get a Hint” and it still did not appear.

Some further clarification is definitely needed with this lesson, however, for free I’m not complaining.

points
Submitted by baca5ate
about 8 years

Answer 55a368ba9113cb1f7500079b

0 votes

Permalink

@baca5ate,

+++++ DOM representation of push menu

If your HTML-page is loaded into memory by the Browser the memory-layout will be build using the rules, as defined in the Document Object Model in short the DOM

The DOM representation of the index.html file would look like:

               html
                |
         |------+---------|
         |                |
        head             body
         |                |
    |----+----|      |----+-----------|
    |    |    |      |                |
   link link link  10div(.menu)     27div(.jumbotron)
                    |                 |
     |--------------+----|          29div(.icon-menu)
     |                   |             |
   13div(.icon-close)  18ul          30i (.fa
     |                   |             |  and .fa-bars)
    img       |-----|----+|-----|    text  
              |     |     |     |    node
             19li  20li  21li  22li
              |     |     |     |
              a     a     a     a
              |     |     |     |
            text   text  text  text
            node   node  node  node

Now if you look at the DOM representation the body-Tag is parent to a 10div Element’s Tree ( with class-attribute with class-name “menu” ) and a 27div Element’s Tree ( with class-attr. with class-name “jumbotron” set )

Now if you look in the style.css file, with which you manage the Display of your Elements, you will find that the body object has the property left: 0; being set ( the body-Tree has a start-Display at position left-0 )

but the .menu object has the property left: -285px; being set and therefor the 10div-Tree is outside of Display.

In your ‘app.js’ file you are CREATING a VARIABLE main to which you assign a so-called anonymous Function and in the FUNCTION-BODY of this anonymous Function we are attaching our click Event-handlers to the HTML-Elements which are -1 carrying the “icon-menu” class-name as class-attribute -2 carrying the “icon-close” class-name as class-attribute ( during the assignment the function is NOT executed )

You will have to add the code-line $(document).ready( main ); which will result in the =main= Function to be executed AFTER the Browser has set the ready Event-flag.

Reference::

google search class site:jquery.com https://api.jquery.com/category/selectors/ http://api.jquery.com/class-selector/ https://api.jquery.com/element-selector/

what is CSS explained site:developer.mozilla.org https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/What_is_CSS https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity

http://stackoverflow.com/questions/1795438/load-and-execution-sequence-of-a-web-page

points
Submitted by Leon
about 8 years

Answer 55a368efd3292f9044000716

0 votes

Permalink

@baca5ate, ++++++++++ structure P u s h M e n u function The structure of your =main= Function should look like….

  var main= function() {
     $('.icon-menu').click( function() {
           //Your animation
     });

     $('.icon-close').click( function() {
           //Your animation
      });
   };
 $(document).ready(main);
points
Submitted by Leon
about 8 years

Answer 55a3cd049113cb37eb0008f0

0 votes

Permalink

Thank you, Leon! Your last post helped me to fix my problem. Although I agree it’s a huge leap from HTML and CSS. I will probably do the same as a user above that after I’ve completed the HTML & CSS course I’m going to move onto JS and JQ.

points
Submitted by itiarmpalu
about 8 years

Answer 55a3ceaae39efee3e900043a

0 votes

Permalink

@itiarmpalu, Did you try… http://www.codecademy.com/guidance/choose

points
Submitted by Leon
about 8 years

Answer 55a53c4f76b8fe8a5e000492

0 votes

Permalink

That was exactly what I was looking for Thank you Leon. I have finished the HTML/CSS course and the javascript course on codecademy but the jQuery really threw me for a loop. I am going to take the full stack dev path since that is what most employers are looking for these days. I was also wondering if you know of a good way to implement python into your websites? I am fond of Python in comparison to javascript and I am having a hard time finding a practical application use for Python. It seems like kind of a waste of time to learn an entire programming language, become proficient then have no way to use it -_-. Tnx for your time

points
Submitted by Tyasu
about 8 years

Answer 55a55c4be39efeb88000031a

0 votes

Permalink

In this link you will find some entries to Python playgrounds…. http://stackoverflow.com/questions/25952/best-programming-based-games

points
Submitted by Leon
about 8 years

Answer 55a55cded3292fb5d40003ca

0 votes

Permalink

points
Submitted by Leon
about 8 years

Answer 55a68b0f937676ae8d000245

0 votes

Permalink

I agree - this course isn’t as well-written as the basic HTML course. In particular, 5/8 asks you to program things that you’ve not been told about before.

points
Submitted by David Bodycombe
about 8 years

Answer 55a6a785e39efe5853000484

0 votes

Permalink

google search == the Book == jquery [your question] site:developer.mozilla.org CSS [your question] site:developer.mozilla.org javascript [your question] site:developer.mozilla.org [your question] site:jquery.com [your question] site:getbootstrap.com

== discussions / opinions == jquery [your question] site:stackoverflow.com CSS [your question] site:stackoverflow.com javascript [your question] site:stackoverflow.com

== guidance == www.crockford.com [your question] site:crockford.com

points
Submitted by Leon
about 8 years