jedahan / pucd2035d

2 stars 2 forks source link

A Non Issue #11

Closed ghost closed 9 years ago

ghost commented 10 years ago

So I don't really have an issue with the class, so far so good. With regards the reading, it was actually interesting to begin to learn Ruby like that. Although I did find myself forgetting what some of the terms were (but somehow still remembering what they do, ex. knowing that .each was a method but not remembering the fact that it's called a method). I'll get the hang of it...

In other news I defaced zara.com, which is now KateMara.com....except it has a huge Miley pic just because:

screen shot 2014-09-07 at 11 43 57 pm

capre733 commented 10 years ago

I don't understand how to put a different picture into a website.. helpful tips?

jedahan commented 10 years ago

@capre733 so first you need to find an image on the page, then a way to select it. if the image has a class attribute, for example one called 'slide-1', you can select it with $('.slide-1') then you can change the src attribute of that element like so: $('.slide-1').attr('src','http://link.to/new/image.jpg')

I can show this in more detail in class tomorrow

jedahan commented 9 years ago

:+1: full credit for this assignment