NOTE: Our December 1st meeting will be held at the St. Charles Public Library. We will meet at the usual time 5:45PM to 7:45PM
- Fix the Jelly Wobbly Gravity game! With the book’s original code, the character won’t move…the jellies are all dropping in the same line and splattering before hitting the floor…the character isn’t able to get sick from the jellies because the “collisions” have no effect. Let’s help The Dude enjoy (or not) his fill of jellies!
- Make your own changes to any part of the game and/or to your site’s home page
- We can do some changes as a group if there are suggestions and desire to do that
- We can help each other with updates to individual pages
- Click the “Raw” button when viewing the file
- Right-click and select “save as” to save it to your machine
Detailed notes for the debugging exercise and concepts:
A working version of the game: Jelly Gravity
Dissect the Typography Game
We are looking forward to tonight’s meeting at 25N where we will be taking a deeper dive into the inner workings of the typography game.
Explore the answers to these questions and more:
- How does clicking a button or pressing a key cause something to happen on the Web page? The keydown and click events! What is an event listener? What is an event handler? What is a keycode? Reference: Keycode lookup
- How do we define a single object that can represent either the player or the “bad guy” in the game? Define a function that is used as an object constructor; within the function define methods such as “move” and “setSpeed”. Use the keyword “new” to create named instances of the class – “hero” and “enemy”. Use those named instances to control the players. Examples: hero.move() or enemy.setSpeed(speed * 23)
Document: Notes for today’s activities
In case anyone missed a meeting or needs catching up, here are some technical notes on what we have done so far in our Web Development meetings. The documents also include more details on some of the concepts we are covering:
Week 1: Getting set up with Cloud9 and GitHub; cloning the code from a repository
Intro To Web With Cloud9/GitHub Notes
Week 2: Adding and editing files in a Cloud9 workspace; Git commands; pushing your Cloud9 code up to your GitHub Repository; publishing your site on GitHub
Web Week 2 Notes
Web Week 3 Notes
We are looking forward to another fun meeting full of discoveries! Here’s some of what we are planning:
- Help anyone get up to speed who hasn’t completed the GitHub and Cloud9 setup and basic Web pages from the previous 2 weeks; don’t worry if you weren’t able to attend those meetings
- Notes about the Book and the source code
- Sample code in our Repo has different chapter numbers than the chapters in the actual book, i.e., Chapter 3 code directory = Chapter 2 of book
- the book focuses on on what the HTML5 specification adds to the “older” specifications of HTML, CSS, and JS and assumes knowledge of basic HTML, CSS, JS, so we will review the basics of these 3 Web languages
- Three Languages of the Web:
- HTML: HyperText Markup Language – determines structure of the page content -> the SKELETON
- CSS: Cascading StyleSheets – determines appearance of the page, the presentation (colors, fonts, and much more) -> the SKIN
- Remember that the W3 Schools Tutorials are an excellent resource for learning these languages and many other Web Development skills
- Typical Web directory structure
- Explore the folders for css, img, fonts, and js as in the Chapter 4 code folder
- Look at the index.html page for Chapter 4’s code to see how the css and js files are linked to it
- Group exercise: Separate out the CSS and JS from Chapter3/index.html into separate files and link them in the index.html page. It will help to have the code folding setting turned on in Cloud9 to make copying easier. Menu Cloud9 –> Preferences –> User Settings –> Code Editor
- Debugging tools are used not only to find “bugs” in the code but to analyze running code to understand what is going on
- Chrome Debugging Tutorial
- For the Typography Game, let’s run through a brief debugging session to see what the code is doing, how to step through it, how to change a variable, as well as inspecting the HTML/CSS. Analyze how the game works and find something you would like to change
- Small teams or individuals can work on each making a change to the code, change something in the CSS or the JS or the HTML, then look at it in the debugger
Welcome Back! Let’s get down to it!
This week we are going to:
- Quickly introduce and catch up anyone who is new this week – WELCOME!
- Make sure everyone has the following:
- GitHub Account
- Cloud9 Account with our team
- Forked the HTML5, CSS and JS book repo at github
- Created a new workspace with the github repo in Cloud9
- Let’s add a home page for our site – kind of like this: https://youtu.be/ent9dh0dRJg
- Add “index.html” in cloud 9 and type in a bit of html (we will talk about this in a bit)
- git add .
- git commit -m “added index.html”
- git push
- Enable GitHub Pages in settings (it is probably turned off by default)
- Copy the URL in your GitHub settings for your website, once you push your changes, your site is published there! Whoot!
- Now let’s add
- A title for our index page <title>This is my really great page</title>
- A header <H1>This is my really great header</H1>
- An image <img src=”myImage.jpeg” alt”really great image”/>
- Make a new folder called “images”
- Find a great image online somewhere and save as to your desktop
- File -> upload local files in Cloud9
- push again to git
- git commit -a -m “my note”
- git push
- What happened? Didn’t work quite right? Let’s TROUBLESHOOT!
- Can we see what is going on by using F12 developer tools in Chrome?
- Can we see if everything got up to git the way we wanted? Check out our git hub repo online.
- Use Ctrl+F5 to do a forced refresh of your browser
- BONUS: If we have time, check out https://www.favicon-generator.org/
- Make a favicon
- Add it to the root of your website
- Add two lines to your header
- Commit, push and check out your site!
- Awesome! Share your site URL on Slack so we can all see it!
Welcome to a new year of Fox Valley Girls Coding Club!
We will meet in the Board Room of 25N at 5:45pm, October 13, 2017.
- High level review of all that we have planned and are considering for the year
- Mobile – Thunkable
- 3D Gaming – Unity
- Huskie Hackathon at NIU November 4-5
- NCWIT Aspirations Awards
- Set up
Excited to meet our new members and catch up with our returning members! It is going to be a great year! 🙂
What is Bootstrap?
Why Use It?
- Responsive Web Design: lots of built-in (“out of the box”) features to ensure that your site looks good across all types/sizes of devices
- NavBar: Beautiful menus!
- Consistent look and feel: buttons, menus, headings, lists, and many other Web page components
- Themes: Many lovely themes available to change the colors and other aspects of appearance just by swapping out a file! See Bootswatch for a nice selection of free downloadable themes
How Do I Get Bootstrap Into My Project?
- Open your Web project in Atom: make sure you are in your site’s main Project Folder (FilmFestivalSite in below example).
- Add project folders: right-click on your project folder in Atom and choose “New Folder” to create folders named css, fonts, images, and scripts.
- Get Bootstrap
- Download: Go to http://getbootstrap.com/getting-started/#download. Click the Download Bootstrap button. That will download a file named bootstrap-3.3.6-dist.zip to your computer.
- Unzip the files: On Windows machines you will find the zip in your Downloads directory, right-click and choose “Extract All”. You can change the destination folder if you like before hitting the “Extract” button, but be sure you know where the files are.
- Copy the files to the folders in your Web project: the extracted files are organized into css, fonts, and js folders below the bootstrap-3.3.6-dist folder. Copy to the matching folders in your Web project: css to css, fonts to fonts, and “js” to “scripts”. Hint: In Atom you can right-click on a folder and select “Show in Explorer” (Windows) or “Show in Finder” (Mac) to open your destination folder to set up the copy with side-by-side windows.
- Get JQuery:
- Note: Version as of this writing is 1.12.3; get the latest 1.x.x version
- Download JQuery: https://jquery.com/download/. Under the JQuery 1.x section right-click on “Download the uncompressed development jQuery 1.12.3” and choose “save link as”. Save the file as jquery-1.12.3.js
- Copy the JQuery file to your project: copy jquery-1.12.3.js to the “scripts” folder of your project
Our First Bootstrap Page:
- Add a new HTML file named “BootstrapSample.html” to your Web site’s main folder.
- Copy content from our “Bootstrap Sample Page” to experience the power of Bootstrap right away. Once everyone has it running in your environment we can explain some of the opportunities for you to customize it and make it your own. This one is put together from combining elements of sample templates on the Bootstrap site
- The one change you will need to make is highlighted: that is the anchor <a> tag for one of the menu links; in my example it links to a page named “FilmDetails.html”. Change it to link to your own page.
Once you have your page working in your own environment if you want to upload it to your Web site on the server you need to ensure that the folder structure and files needed for Bootstrap and JQuery are uploaded as well. In ATOM you can select your css folder for upload to copy the folder and its contents; do the same with your scripts, fonts, and images folders.