-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage1.html
More file actions
124 lines (109 loc) Β· 5.71 KB
/
page1.html
File metadata and controls
124 lines (109 loc) Β· 5.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Exercise 1: Inspector & Source Tab</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header class="exercise-header">
<h1>Exercise 1: Opening the Inspector & Source Tab</h1>
<p>Learn to navigate the Developer Tools and understand the Source tab structure</p>
</header>
<main class="exercise-content">
<div class="progress-indicator">
<h3>Progress</h3>
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
</div>
<p id="progressText">Step 1 of 3</p>
</div>
<div class="instruction-box">
<h3>π― Your Mission</h3>
<p>Open the Developer Tools and navigate to the Sources tab to explore its structure.</p>
</div>
<div id="step1" class="step-content">
<h2>Step 1: Open Developer Tools</h2>
<div class="warning-box">
<strong>π Your Task:</strong>
<ul>
<li><strong>Windows/Linux:</strong> Press <code>F12</code> or <code>Ctrl + Shift + I</code></li>
<li><strong>Mac:</strong> Press <code>Cmd + Opt + I</code></li>
<li><strong>Right-click:</strong> Right-click on this page and select "Inspect"</li>
</ul>
</div>
<div class="warning-box">
<strong>π Detection:</strong> We're monitoring for DevTools opening. Open them now to continue!
</div>
</div>
<div id="step2" class="step-content" style="display: none;">
<h2>Step 2: Navigate to Sources Tab</h2>
<p>Great! The Developer Tools are open. Now:</p>
<div class="warning-box">
<strong>π Your Task:</strong>
<ol>
<li>Look for the <strong>Sources</strong> tab in the Developer Tools</li>
<li>Click on it to open the Sources panel</li>
<li>Click on <code>page1.js</code> in the file tree</li>
<li>Follow the instruction in the comment on the top of page1.js that should show in the editor to continue</li>
</ol>
</div>
<div class="instruction-box">
<strong>π What you should see:</strong>
<p>The Sources tab typically appears at the top of the Developer Tools, next to Elements, Console, etc.</p>
</div>
</div>
<div id="step3" class="step-content" style="display: none;">
<h2>Step 3: Explore the Sources Tab Structure</h2>
<p>Perfect! You're now in the Sources tab. Let me explain what you're seeing:</p>
<div class="instruction-box">
<h4>π Page Tab (File Tree)</h4>
<p>On the left side, you'll see a file tree showing all files that this page requests:</p>
<ul>
<li><strong>HTML files</strong> - The webpage structure</li>
<li><strong>CSS files</strong> - Stylesheets for appearance</li>
<li><strong>JavaScript files</strong> - Scripts that make the page interactive</li>
<li><strong>Images and other assets</strong> - Resources loaded by the page</li>
</ul>
</div>
<div class="instruction-box">
<h4>π Code Editor Section</h4>
<p>In the center, you'll see the code editor:</p>
<ul>
<li>Click on any file in the file tree to view its contents here</li>
<li>Line numbers are shown on the left</li>
<li>You can click on line numbers to set breakpoints</li>
</ul>
</div>
<div class="instruction-box">
<h4>π Debugger Section</h4>
<p>On the right side, you'll find various debugging tools:</p>
<ul>
<li><strong>Scope</strong> - Shows local and global variables</li>
<li><strong>Watch</strong> - Monitor specific expressions</li>
<li><strong>Call Stack</strong> - Shows function call hierarchy</li>
<li><strong>Breakpoints</strong> - Lists all your breakpoints</li>
</ul>
</div>
</div>
<div class="success-box" id="successBox">
<h3>π Congratulations!</h3>
<p>You've successfully completed Exercise 1! You now understand:</p>
<ul>
<li>How to open Developer Tools</li>
<li>How to navigate to the Sources tab</li>
<li>The three main sections of the Sources tab</li>
</ul>
<p>Ready for the next challenge? Let's learn about breakpoints!</p>
</div>
<div class="nav-buttons">
<a href="index.html" class="nav-btn prev">β Back to Menu</a>
<a href="page2.html" class="nav-btn next" id="nextBtn" style="opacity: 0.5; pointer-events: none;">Next: Breakpoints β</a>
</div>
</main>
</div>
<script src="page1.js"></script>
</body>
</html>