File: tutorial_lesson.html

package info (click to toggle)
chromium 138.0.7204.183-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,080,960 kB
  • sloc: cpp: 34,937,079; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,954; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,811; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (135 lines) | stat: -rw-r--r-- 2,648 bytes parent folder | download | duplicates (7)
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
125
126
127
128
129
130
131
132
133
134
135
<!--
Copyright 2020 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<style include="md-select cr-shared-style">
:host {
  --cr-dialog-width: 704px;
}

/** Font styling */
p,
cr-button,
a {
  font-family: 'Roboto';
}

#title {
  font-family: 'Google Sans', 'Roboto';
}

#title,
#practiceTitle {
  font-size: 32px;
  font-weight: medium;
  line-height: 40px;
  margin-bottom: 16px;
}

#content {
  display: block;
  margin: auto;
  max-height: 400px;
  overflow: scroll;
  text-align: start
}

#content a,
#content p,
#practiceInstructions,
#practiceBody {
  font-size: 22px;
  font-weight: normal;
  line-height: 28px;
  margin-bottom: 16px;
  margin-top: 0;
  text-align: start
}

#content p,
#practiceInstructions,
#practiceBody {
  color: black;
}

/* Practice area */

#practiceTitle {
  font-family: 'Google Sans', 'Roboto';
}

#practiceInstructions {
  color: black;
}

#practiceBody {
  display: flex;
  flex-direction: column;
  max-height: 400px;
  overflow: auto;
}

#practiceContent * {
  display: block;
  margin-bottom: 8px;
  margin-top: 8px;
  text-align: start;
}

#practiceContent a {
  color: rgb(26, 115, 232);
}

#startPractice {
  margin-bottom: 32px;
  margin-inline-start: 0;
  margin-top: 16px;
}

#closePractice,
#startPractice {
  font-size: 16px;
  font-style: normal;
  font-weight: medium;
  line-height: 24px;
}

</style>

<div id="container" hidden>
  <template is="dom-if" if="[[ title ]]">
    <h1 id="title" tabindex="-1" aria-describedby="titleHint">
      [[ getMsg(title) ]]
    </h1>
    <div id="titleHint" hidden>
      [[ computeTitleDescription_() ]]
    </div>
  </template>
  <div id="content">
    <template id="contentTemplate" is="dom-repeat" items="[[ content ]]"
        as="text">
      <p tabindex="-1">[[ getMsg(text) ]]</p>
    </template>
  </div>
  <cr-dialog id="practice">
    <div id="practiceTitle" class="title" slot="title" tabindex="-1">
      [[ getMsg(practiceTitle) ]]
    </div>
    <div id="practiceBody" class="body" slot="body" tabindex="-1">
      <p id="practiceInstructions" tabindex="-1">
        [[ getMsg(practiceInstructions) ]]
      </p>
      <div id="practiceContent"></div>
    </div>
    <div class="button-container" slot="button-container">
      <cr-button id="closePractice" on-click="endPractice">
        [[ getMsg('tutorial_practice_area_close_button') ]]
      </cr-button>
    </div>
  </cr-dialog>
  <cr-button id="startPractice" on-click="startPractice"
      hidden$="[[ shouldHidePracticeButton() ]]">
    [[ getMsg('tutorial_practice_area_open_button') ]]
  </cr-button>
</div>