合肥生活安徽新闻合肥交通合肥房产生活服务合肥教育合肥招聘合肥旅游文化艺术合肥美食合肥地图合肥社保合肥医院企业服务合肥法律

ITS290F 代写、代做 java,c++编程
ITS290F 代写、代做 java,c++编程

时间:2025-01-31  来源:合肥网hfw.cc  作者:hfw.cc 我要纠错



ITS290F Human Computer Interaction & User Experience Design
Lab 1. Introduction to CodePen
 
 
What you’ll learn in this lab:
 
• Understanding CodePen
• Creating a front-end page
• Using Google form to submit your lab work
 
 
CodePen is a cloud-based integrated development environment (IDE) for writing and sharing front-end code. It would be useful for us to try out our code in certain lab practices. 
 
 
1. Sign up CodePen  
 
Sign up a CodePen free account
 
1. Visit http://codepen.io .
 
2. Sign up with email or your preferred methods, as shown in Figure 1. 
 
3. Check your mailbox to activate your account, if applicable.
 
4. Login CodePen with your login credentials.
 

FIGURE 1
CodePen sign up page.
 
2. Understanding the CodePen Editor
 
Figure 2 shows the user interface of the CodePen Editor. It consists of 3 editor panels for HTML, CSS and JS that you can edit your code and scripts, and a live preview panel that shows the resulting webpage of your code. 
 

FIGURE 2
CodePen Editor.
 
 
 
TRY IT YOURSELF
 
Taking an Editor Tour
 
CodePen provides an online tutorial for you to get familiar with the user interface of the CodePen editor:
 
1. Go to https://codepen.io/pen/tour/welcome/start .
 
2. Follow the instructions and try it out.
 
 
3. Lab Exercises
 
On your own, spend time becoming familiar with the CodePen interface. For this part, practice creating a Pen and attempting to finish the exercises.
 
You need to answer the follow-up questions and submit your answers (see submission section).
 
 
Exercise 1
 
Create buttons that change the color of an HTML paragraph.
 
1. Create a new Pen.
 
2. Put the following code into the HTML window
 
<p id='hello'>Hello, World!</p>
<button onclick=changeColor('red')>Red</button>
 
3. Put the following code into the JS window
function changeColor(color) {
 document.getElementById('hello').style.color=color;
}
 
4. Save and try clicking the “Red” button.
 
5. Add two buttons for changing color of “Hello, World” to green and blue.
 
6. Save and try clicking the new buttons.
 
 
Follow-up Questions
 
Q1. How many buttons you see on the screen?
 
Q2. A function is called when you click on the button. What is the name of the function?
 
Q3. The function uses a reference ID to lookup for the HTML <p> element. What is the ID?
 
Exercise 2
 
Learn reading JS reference from w3schools and create buttons that change the font style and weight of an HTML paragraph.
 
1. Continue to work on the code of Exercise 1. Add two buttons for changing the font style of “Hello, World” with Normal and Italic styles.
 
2. Create a new JS function with a parameter called changeFontStyle(style) .
 
3. Study the fontStyle property of JS on w3schools JSreference(https://www.w3schools.com/jsref/prop_style_fontstyle.asp) and complete the function.
 
4. Associate the new function with the corresponding parameters to the onClick event of the new buttons. Save and try clicking the new buttons.
 
5. Add three buttons for changing the font size of “Hello, World” with size “x-large”, “250%”, and “100px”. The outcome of the page should look like the follows:
 

 
6. Create a new JS function with a parameter called changeFontSize(size) . 
 
7. Study the fontSize property of JS on w3schools JS reference /prop_sand complete the function.
 
8. Associate the new function with the corresponding parameters to the onClick event of the new buttons. Save and try clicking the new buttons.
 
 
Follow-up Questions
 
Q4. On the page, which font size property value produces largest font size?
 
Q5. Submit your solution HTML code of Exercise 2. The first line is given to you.
<p id='hello'>Hello, World!</p>
...
 
Q6. Submit your solution JS code of Exercise 2. The first function is given to you.
function changeColor(color) {
 document.getElementById('hello').style.color=color;
}
 
...

请加QQ:99515681  邮箱:99515681@qq.com   WX:codinghelp




 

扫一扫在手机打开当前页
  • 上一篇:代写 COMP S368、代做 java 程序语言
  • 下一篇:代写指标 通达信【备战龙妖】副图指标
  • ·代做 2025 MCM、代写 java/c++编程语言
  • ·ELE000042C代写、代做C/C++编程语言
  • ·COMP2046代做、代写C/C++编程设计
  • ·URBA6006代写、Java/c++编程语言代做
  • ·COMP1038 代写、C++编程设计代做
  • ·CS-453程序代做、代写C++编程语言
  • ·CS-350代写、C++编程语言代做
  • ·CSE2425代写、C++编程语言代做
  • ·CS 0447代做、代写c/c++编程设计
  • ·PROG2004代做、代写C/C++编程设计
  • 合肥生活资讯

    合肥图文信息
    流体仿真外包多少钱_专业CFD分析代做_友商科技CAE仿真
    流体仿真外包多少钱_专业CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流体仿真服务 管路流场仿真外包
    CAE仿真分析代做公司 CFD流体仿真服务 管路
    流体CFD仿真分析_代做咨询服务_Fluent 仿真技术服务
    流体CFD仿真分析_代做咨询服务_Fluent 仿真
    结构仿真分析服务_CAE代做咨询外包_刚强度疲劳振动
    结构仿真分析服务_CAE代做咨询外包_刚强度疲
    流体cfd仿真分析服务 7类仿真分析代做服务40个行业
    流体cfd仿真分析服务 7类仿真分析代做服务4
    超全面的拼多多电商运营技巧,多多开团助手,多多出评软件徽y1698861
    超全面的拼多多电商运营技巧,多多开团助手
    CAE有限元仿真分析团队,2026仿真代做咨询服务平台
    CAE有限元仿真分析团队,2026仿真代做咨询服
    钉钉签到打卡位置修改神器,2026怎么修改定位在范围内
    钉钉签到打卡位置修改神器,2026怎么修改定
  • 短信验证码 豆包网页版入口 破天一剑 目录网 排行网

    关于我们 | 打赏支持 | 广告服务 | 联系我们 | 网站地图 | 免责声明 | 帮助中心 | 友情链接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥网 版权所有
    ICP备06013414号-3 公安备 42010502001045