summaryrefslogtreecommitdiff
path: root/popup/popup.html
blob: 9d8d042b4eab4e7fc6f300e3bd7bd4817ae67dfb (plain)
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
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="../theme.css">
  <link rel="stylesheet" href="popup.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>

<body>
  <div class="container">
    <header class="app-header">
      <div id="header-container">
        <div class="logo-container">
          <img src="../assets/images/logo_48.png" alt="ZenInternet Logo" class="logo-img">
          <h1 class="app-title">Zen Internet</h1>
        </div>
        <div class="miniheader">
          <div id="addon-version" class="addon-version"></div>
          <div class="author">by <a href="https://www.sameerasw.com/" target="_blank">@sameerasw</a></div>
        </div>
      </div>
      <button id="whats-new" class="whats-new-button" title="What's New">✨</button>
    </header>

    <main class="app-content">
      <div class="toggle-container features-container">
        <label class="toggle-switch">
          <input type="checkbox" id="enable-styling">
          <span class="slider round"></span>
        </label>
        <span class="toggle-label">Enable Styling</span>
      </div>

      <!-- Current Site Features Section -->
      <div id="current-site-features" class="features-container">
        <button class="collapsible-button" id="toggle-features">
          <span>Current Site Features</span>
          <i class="fas fa-chevron-down"></i>
        </button>
        <div id="current-site-toggles" class="features-list collapsed"></div>
        <div class="actions" id="current-site-actions">
          <!-- reload botton -->
          <button id="reload" class="action-button secondary">
            Reload to apply <i class="fas fa-sync-alt"></i>
          </button>
        </div>
      </div>

      <div class="actions">
        <button id="refetch-css" class="action-button primary">
          <i class="fas fa-sync-alt"></i> Refetch latest styles
        </button>
      </div>

      <div class="toggle-container">
        <label class="toggle-switch">
          <input type="checkbox" id="auto-update">
          <span class="slider round"></span>
        </label>
        <span class="toggle-label">Auto Update Styles</span>
      </div>
      <div id="last-fetched-time" class="last-fetched-time"></div>
      <div class="forcing-container">
        <div class="toggle-container">
          <label class="toggle-switch">
            <input type="checkbox" id="force-styling">
            <span class="slider round"></span>
          </label>
          <span class="toggle-label">Force Styling</span>
        </div>
        <div class="toggle-container">
          <label class="toggle-switch">
            <input type="checkbox" id="whitelist-mode">
            <span class="slider round"></span>
          </label>
          <span id="whitelist-mode-label" class="toggle-label">Blacklist Mode</span>
        </div>
        <div class="toggle-container">
          <label class="toggle-switch">
            <input type="checkbox" id="skip-force-theming">
            <span class="slider round"></span>
          </label>
          <span id="site-toggle-label" class="toggle-label">Skip Forcing for this Site</span>
        </div>
      </div>

      <div class="actions">
        <button id="view-data" class="action-button secondary">
          <i class="fa-solid fa-gear"></i>
          Advanced Settings
        </button>
      </div>

    </main>


    <footer class="app-footer">
      <a href="https://sameerasw.github.io/my-internet/" class="footer-link" target="_blank">
        <i class="fas fa-book"></i> Styles
      </a>
      <div class="footer-divider"></div>
      <a href="https://github.com/sameerasw/my-internet/issues/new/choose" class="footer-link" target="_blank">
        <i class="fa-brands fa-github"></i> Bug?
      </a>
    </footer>
  </div>
  <script src="popup.js"></script>
</body>

</html>