Skip to content

Commit 4ba5e42

Browse files
authored
Merge pull request #45 from VinayApposite/Apposite_20480C_Mod10_LAK
Apposite 20480 c mod10 lak
2 parents e84633b + 6cd4791 commit 4ba5e42

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

Instructions/20480C_MOD10_LAK.md

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
# Module 10: Implementing an Adaptive User Interface.
1+
# Module 10: Implementing an Adaptive User Interface
22

3-
# Lab: Implementing an Adaptive User Interface.
3+
# Lab: Implementing an Adaptive User Interface
44

55
### Lab Setup
66

77
### Preparation Steps
88

9-
1. Ensure that you have cloned the 20480C directory from GitHub. It contains the code segments for this course's labs and demos. https://github.com/MicrosoftLearning/20480-Programming-in-HTML5-with-JavaScript-and-CSS3/tree/master/Allfiles.
10-
2. Before you start this exercise, make sure that you have disabled caching in Microsoft Edge, as follows:
11-
- Open **Microsoft Edge**.
12-
- Press **F12**.
9+
1. Ensure that you have cloned the 20480C directory from GitHub (**https://github.com/MicrosoftLearning/20480-Programming-in-HTML5-with-JavaScript-and-CSS3/tree/master/Allfiles**). It contains the code segments for the labs and demos in this course.
10+
2. Before you start this exercise, make sure that you have disabled caching in Microsoft Edge. To do this:
11+
- Open Microsoft Edge.
12+
- Press F12.
1313
- Click the **Network** tab.
14-
- Click **Allways refresh from server**
14+
- Click **Always refresh from server**.
1515

16-
### Exercise 1: Creating a Print-Friendly Style Sheet.
16+
### Exercise 1: Creating a Print-Friendly Style Sheet
1717

18-
#### Task 1: Review the existing application.
18+
#### Task 1: Review the existing application
1919

20-
1. Open **Visual Studio 2017**.
21-
2. In Visual Studio, on the **File** menu, point to **Open**, and then click **Project/Solution**.
20+
1. Open Microsoft Visual Studio 2017.
21+
2. In Visual Studio, on the **File** menu, point to **Open**, and then select **Project/Solution**.
2222
3. In the **Open Project** dialog box, browse to **Allfiles\Mod10\Labfiles\Starter\Exercise 1**, click **ContosoConf.sln**, and then click **Open**.
23-
4. In Visual Studio, in Solution Explorer, expand the **ContosoConf** project, and then double-click **about.htm**.
23+
4. In Visual Studio, in **Solution Explorer**, expand the **ContosoConf** project, and then double-click **about.htm**.
2424
5. On the **Debug** menu, click **Start Without Debugging**.
25-
6. In Microsoft Edge, if the message **Intranet settings are turned off by default** appears, click **Don’t show this message again**.
26-
7. Press F10 to display the menu bar
25+
6. In Microsoft Edge, if the **Intranet settings are turned off by default** message appears, click **Don’t show this message again**.
26+
7. To display the menu bar, press F10.
2727
8. On the **File** menu, click **Print preview**.
2828
9. In the **Print Preview** window, verify that the preview looks like the following image:
2929

3030
![alt text](./Images/20480B_10_Print-Preview.png "The About page in Print Preview mode")
3131

3232
10. Close the **Print Preview** window.
3333
11. Close Microsoft Edge.
34-
12. In Visual Studio, in the Solution Explorer window, double-click **about.htm**.
34+
12. In Visual Studio, in **Solution Explorer**, double-click **about.htm**.
3535
13. Verify that the file contains the following HTML markup:
3636
```html
3737
<nav class="page-nav">
@@ -41,15 +41,15 @@
4141
<footer class="page-footer">
4242
```
4343

44-
#### Task 2: Create a style sheet for printing web pages.
44+
#### Task 2: Create a style sheet for printing web pages
4545

46-
1. In Visual Studio, in Solution Explorer, click the **styles** folder.
46+
1. In Visual Studio, in **Solution Explorer**, click the **styles** folder.
4747
2. On the **Project** menu, click **Add New Item**.
4848
3. In the **Add New Item - ContosoConf** dialog box, in the left pane, expand the **Visual C#** node, and then click **Web**.
4949
4. In the middle pane, click **Style Sheet**.
5050
5. In the **Name** box, type **print.css**.
5151
6. Click **Add**.
52-
7. In **print.css**, delete the existing file contents.
52+
7. In **print.css**, delete the existing file content.
5353
8. Add the following CSS:
5454
```css
5555
nav.page-nav,
@@ -63,16 +63,16 @@
6363
max-width: none;
6464
}
6565
```
66-
9. In **print.css**, at the end of the file, add the following CSS:
66+
9. In **print.css**, at the end of the file, add the following CSS:
6767
```css
6868
.about > article > section {
6969
column-count: 1;
7070
}
7171
```
7272

73-
#### Task 3: Link the print style sheet to the About page.
73+
#### Task 3: Link the print style sheet to the About page
7474

75-
1. In Solution Explorer, double-click **about.htm**.
75+
1. In **Solution Explorer**, double-click **about.htm**.
7676
2. Find the following comment:
7777
```html
7878
<!-- TODO: Add print.css <link> here -->
@@ -82,11 +82,11 @@
8282
<link href="/styles/print.css" media="print" rel="stylesheet" type="text/css" />
8383
```
8484

85-
#### Task 4: Test the application.
85+
#### Task 4: Test the application
8686

8787
1. On the **Debug** menu, click **Start Without Debugging**.
88-
2. In Microsoft Edge, press F5 to refresh the page.
89-
3. Press F10 to display the menu bar.
88+
2. To refresh the page, in Microsoft Edge, press F5.
89+
3. To display the menu bar, press F10.
9090
4. On the **File** menu, click **Print preview**.
9191
5. Verify that the **Print Preview** window displays the following image:
9292

@@ -95,28 +95,28 @@
9595
6. Close the **Print Preview** window.
9696
7. Close Microsoft Edge.
9797

98-
>**Results:** After completing this exercise, you will have added a style sheet that implements a print-friendly format for web pages.
98+
>**Results**: After completing this exercise, you will have added a style sheet that implements a print-friendly format for web pages.
9999
100-
### Exercise 2: Adapting Page Layout to Fit Different Form Factors.
100+
### Exercise 2: Adapting Page Layout to Fit Different Form Factors
101101

102-
#### Task 1: Simulate the web application running on a small device.
102+
#### Task 1: Simulate the web application running on a small device
103103

104-
1. In Visual Studio, on the **File** menu, point to **Open**, and then click **Project/Solution**.
104+
1. In Visual Studio, on the **File** menu, point to **Open**, and then select **Project/Solution**.
105105
2. In the **Open Project** dialog box, browse to **Allfiles\Mod10\Labfiles\Starter\Exercise 2**, click **ContosoConf.sln**, and then click **Open**.
106-
3. In Solution Explorer, expand the **ContosoConf** project, and then double-click **index.htm**.
106+
3. In **Solution Explorer**, expand the **ContosoConf** project, and then double-click **index.htm**.
107107
4. On the **Debug** menu, click **Start Without Debugging**.
108108
5. In Microsoft Edge, press F12.
109-
6. In the **ContosoConf – F12** window, on the **Tools** menu, point to **Resize**, and then click **480x800**.
109+
6. In the **ContosoConf – F12** window, on the **Tools** menu, point to **Resize**, and then select **480x800**.
110110
7. Press F12.
111111
8. Verify that the **Home** page looks similar to the following image:
112112

113113
![alt text](./Images/20480B_10_Home-Narrow.png "The Home page")
114114

115-
9. Close Microsoft Edge.
115+
9. Close Microsoft Edge.
116116

117-
#### Task 2: Implement styles for hand-held devices and smartphones.
117+
#### Task 2: Implement styles for hand-held devices and smartphones
118118

119-
1. In Solution Explorer, expand the **styles** folder, and then double-click **mobile.css**.
119+
1. In **Solution Explorer**, expand the **styles** folder, and then double-click **mobile.css**.
120120
2. Add the following CSS to the file:
121121
```css
122122
@media screen and (max-width: 480px) {
@@ -142,7 +142,7 @@
142142
}
143143
}
144144
```
145-
4. Add the following CSS to the end of the file:
145+
4. Add the following CSS to the end of the file:
146146
```css
147147
@media screen and (max-width: 720px) {
148148
header.page-header {
@@ -159,27 +159,27 @@
159159
}
160160
```
161161

162-
#### Task 3: Test the application.
162+
#### Task 3: Test the application
163163

164-
1. In Solution Explorer, double-click **index.htm**.
164+
1. In **Solution Explorer**, double-click **index.htm**.
165165
2. On the **Debug** menu, click **Start Without Debugging**.
166166
3. In Microsoft Edge, press F12.
167-
4. In the **ContosoConf – F12** window, on the **Tools** menu, point to **Resize**, and then click **1280×1024**.
167+
4. In the **ContosoConf – F12** window, on the **Tools** menu, point to **Resize**, and then select **1280×1024**.
168168
5. Press F12.
169169
6. Verify that the **Home** page is displayed correctly on the desktop.
170170

171171
![alt text](./Images/20480B_10_Home-Desktop.png "The Home page displayed on the desktop")
172172

173-
7. Press F12.
174-
8. In the **ContosoConf – F12** window, on the **Tools** menu, point to **Resize**, and then click **480×800**.
173+
7. Press F12.
174+
8. In the **ContosoConf – F12** window, on the **Tools** menu, point to **Resize**, and then select **480×800**.
175175
9. Press F12.
176176
10. Verify that the navigation bar is displayed correctly in the reduced form factor (it wraps), and that the **Register** link does not appear in the header of the web page.
177177

178178
![alt text](./Images/20480B_10_Home-Small.png "The Home page displayed in a reduced size widow")
179179

180-
11. Close Microsoft Edge.
180+
11. Close Microsoft Edge.
181181

182-
>**Results:** After completing this exercise, you will have a website that adapts to different screen sizes.
182+
>**Results**: After completing this exercise, you will have a website that adapts to different screen sizes.
183183
184184
©2018 Microsoft Corporation. All rights reserved.
185185

0 commit comments

Comments
 (0)