File: hotspot_subpage.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 (67 lines) | stat: -rw-r--r-- 2,217 bytes parent folder | download | duplicates (6)
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
<style include="settings-shared">
  .separator-line {
    border-top: var(--cr-separator-line);
    padding: 0;
  }

  #hotspotToggleText {
    font-weight: 500;
  }

  #hotspotToggleText[on] {
    color: var(--cros-text-color-prominent);
  }

  #hotspotToggleText:not([on]) {
    color: var(--cros-text-color-secondary);
  }
</style>
<div class="settings-box first">
  <div id="hotspotToggleText" class="start" on$="[[isHotspotToggleOn_]]">
     [[getOnOffString_(hotspotInfo.state)]]
  </div>
  <cr-toggle id="enableHotspotToggle"
      checked="{{isHotspotToggleOn_}}"
      disabled="[[isToggleDisabled_(hotspotInfo.allowStatus,
          hotspotInfo.state)]]"
      on-change="onHotspotToggleChange_"
      aria-label="$i18n{hotspotToggleA11yLabel}"
      deep-link-focus-id$="[[Setting.kHotspotOnOff]]">
  </cr-toggle>
</div>
<div id="hotspotConfigurationRow" class="settings-box two-line">
  <div class="link-wrapper">
    <div id="hotspotSSIDLabel" class="settings-box-text">
        $i18n{hotspotNameLabel}
      <div id="hotspotSSID" class="secondary">
          [[getHotspotConfigSsid_(hotspotInfo.config.ssid)]]
      </div>
    </div>
  </div>
  <cr-button id="configureButton"
      hidden$="[[!showHotspotAutoDisableToggle_(hotspotInfo)]]"
      on-click="onHotspotConfigureClick_">
    $i18n{hotspotConfigureButton}
  </cr-button>
</div>
<template is="dom-if" if="[[showHotspotAutoDisableToggle_(hotspotInfo)]]"
    restamp>
  <settings-toggle-button id="hotspotAutoDisableToggle" class="hr"
      label="$i18n{hotspotAutoDisableLabel}"
      sub-label="$i18n{hotspotAutoDisableSublabel}"
      pref="{{autoDisableVirtualPref_}}"
      on-change="onAutoDisableChange_"
      deep-link-focus-id$="[[Setting.kHotspotAutoDisabled]]">
  </settings-toggle-button>
</template>
<div id="connectedDeviceCountRow"
    class="settings-box settings-box-text two-line single-column stretch"
    hidden$="[[hideConnectedDeviceCount_(hotspotInfo)]]">
  <div id="connectedDeviceCountLabel">
      $i18n{hotspotConnectedDeviceCountLabel}
  </div>
  <div id="connectedDeviceCount" class="secondary">
      [[getHotspotConnectedDeviceCount_(hotspotInfo.clientCount)]]
  </div>
</div>
<div class="separator-line"></div>