Posts

Lab 23

Image
During Lab 23 we had to create a list that also incorporated a check box. The check box had to also work with the shift key if you wanted to check all the boxes at once. In order to create the list I added a div and an input tag under it with a p tag. This using css to make it look nice created the list that is above. The input was for the check box in each list. Then after this in order to make the list work with the shift key I had to insert javascript code. This code was a function using an if statement to see if the shift was being held while clicking the check boxes. This is very important and useful to a web designer because if you want a survey or the using to check multiple boxes at once using this code would help create a more efficient way for the user to check all of them. When creating list I would use this code because it makes the site more user friendly and faster to go through the list.

Lab 22

Image
 During lab22 we had to write a simple text on the screen that would be clickable but change into a different text. This lab was fairly easy because all i had to do was edit the javascript code into changing the innerHtml to a different sentence. The point of the lab was also to check the console log and see different tabs that you can open and see age, dog age and name. Doing this by calling the console log in javascript so when it opens up on the site you can view it using developer tools. This lab is useful to a web designer because practicing how to use the console log allows them to see if there is a problem they can fix or allow people debug their code. I will try to use console log on my sites to help create a more efficient website and see if there are any issues with it.

Lab 21

Image
During lab 21 we had to create a canvas for the viewer to draw on. Lab 21 was possibly the funnest lab because you got to draw after you were done knowing you used code to create this. First I added the canvas tag that created the white blank space to draw on. Next after this of course we had to add javascript in order to allow the viewer to draw. Had to code in functions and variables and eventListeners to make sure when the mouse was clicked it would begin drawing. This was a very interesting lab and as a web designer it can be useful in a site. It can be useful because it gives the viewer of the site interaction and can be used various ways not just a big canvas page.

Lab9

Image
During lab 9 it consisted of another downloaded file we had to retrieve off of Jupiter Ed. The point of the lab was to take the images at the bottom of the page and code them into a carousel that sorts through the pictures by itself or using the next and back buttons.  In order to do this the carousel used javascript to cycle through the images. As a web designer this is very important to know because instead of have the complete images throughout the page taking up space, each can be cycled through as a carousel and linked to the article making the page cleaner looking and easier for the readers to go through.

Lab20

Image
During lab 20 we had to create a flex panel gallery. The point of this lab was to create 5 different panels with text but when clicked it would enlarge and show the rest of the text hidden. I used 5 pictures that I had to insert. The flex gallery used javascript in order to create the opening and closing of all the flex panels using evenListeners and functions.  As a web designer this can be very useful to create unique and creative ways of portraying an heading image that is in the home page of the site and making it clickable allows for more user interactivity with the site.

Lab16

Image
Lab 17 was about taking css vairables and updating on the site using a simple scroll bar to change the blur of the image or the spacing of the image and base color. First to do this t here was javascript included so that there was an event listener for scrolling the bar and as you scroll the properties are changed. This lab came with a template for java30 which really helped with the javascript and i learned in this lab to change a css variables using code. As a web desinger this can be useful if you're  making a site that lets people change how something looks to accommodate  their taste and how they want it. A store or something online can use this to help change css variables so the customer can view different options themselves

Lab 17

Image
In lab 17 we had to create a very famous game that settles everything, its rock, paper and scissors. In order to first start the lab i created 3 buttons on top for each representing entity in the game, the rock, the paper and the scissors. After this I used to css to make them look nice and pretty by giving them background images and text on top to know which is which. After this i added 3 lines of text. One that says "your throw", another that says "cpu throw" and finally the "winner". These 3 lines of code is what will change every time you throw a rock, paper or scissors. Each line will change corresponding to who wins and what beats what. The code for this used javascript to create the game.  Entirely it was a function with a bunch of if codes and  document . getElementById because it was a repeated set of commands to see if your throw would win or not. As a web designer i wouldnt use this in a site unless you want to make a quick game but it is...