aboutsummaryrefslogtreecommitdiffhomepage
path: root/popup.html
blob: ac89c9b5b98885a36faf8c28e9f20cbfa4691052 (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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<html>
  <head>
    <title>__MSG_openPopup__</title>
    <link id="sponorBlockPopupFont" rel="stylesheet" type="text/css" href="/libs/Source+Sans+Pro.css"/>
    <link id="sponorBlockStyleSheet" rel="stylesheet" type="text/css" href="popup.css"/>
  </head>

  <body class="popupBody">
    <center>
      <div id="app" class="popupBody">
          <img src="icons/LogoSponsorBlocker256px.png" height="64px" id="sponsorBlockPopupLogo"/>

          <h1 class="popupElement">__MSG_Name__</h1>

          <!-- Loading text -->
          <p id="loadingIndicator" class="popupElement">__MSG_Loading__</p>

          <!-- Hidden until loading complete -->
          <div id="mainControls" class="main popupElement" style="display: none">
            <!-- If the video was found in the database -->
            <div id="videoFound">
                
            </div>

            <div id="downloadedSponsorMessageTimes" class="popupElement">

            </div>
            
            <br/>

            <div>
              <button id="whitelistChannel" class="whitelistButton popupElement">__MSG_whitelistChannel__</button>
              <button id="unwhitelistChannel" class="whitelistButton popupElement" style="display: none">__MSG_removeFromWhitelist__</button>
            </div>
            <sub class="popupElement">
              __MSG_whitelistDescription__
            </sub>

            <br/>
            <br/>

            <button id="reportAnIssue" class="dangerButton popupElement">__MSG_voteOnTime__</button>

            <div id="issueReporterContainer"  class="popupElement" style="display: none">

              <h3 style="margin-top: 0px" class="popupElement">__MSG_voteOnTime__</h3>

              <div id="issueReporterTimeButtons" class="popupElement">

              </div>

            </div>

            <h2 class="recordingSubtitle popupElement">__MSG_recordTimes__</h2>

            <p class="popupElement">
              <span id=sponsorTimesContributionsContainer  class="popupElement" style="display: none">
                  __MSG_soFarUHSubmited__
                  <span id="sponsorTimesContributionsDisplay" class="popupElement">
                    0
                  </span>
                  <span id="sponsorTimesContributionsDisplayEndWord" class="popupElement">
                    __MSG_Sponsors__.
                  </span>
              </span>

              <span id=sponsorTimesViewsContainer  class="popupElement" style="display: none">
                  __MSG_savedPeopleFrom__
                  <span id="sponsorTimesViewsDisplay" class="popupElement">
                    0
                  </span>
                  <span id="sponsorTimesViewsDisplayEndWord" class="popupElement">
                     __MSG_Segments__.
                     __MSG_savedPeopleFrom__
                  </span>
              </span>

              <div class="popupElement">
                __MSG_viewLeaderboard__ <a class="popupElement discreteLink" href="https://sponsor.ajay.app/stats" target="_blank">__MSG_here__</a>.
              </div>
            </p>

            <p class="popupElement"> 
              __MSG_recordTimesDescription__
            </p>
    
            <div>
              <button id="sponsorStart" class="greenButton popupElement">__MSG_sponsorStart__</button>
            </div>

            <sub class="popupElement">__MSG_popupHint__</sub>
    
            <div id="submissionSection"  class="popupElement" style="display: none">
              <h3 class="popupElement">__MSG_lastTimes__</h3>
              <b>
                <div id="sponsorMessageTimes" class="popupElement">
        
                </div>
              </b>

              <br/>
      
              <button id="clearTimes" class="smallButton popupElement">__MSG_clearTimesButton__</button>
      
              <br/>
              <br/>

              <div id="submitTimesContainer" class="popupElement" style="display: none">
                <button id="submitTimes" class="smallButton popupElement">__MSG_submitTimesButton__</button>

                <div id="submitTimesInfoMessageContainer" class="popupElement" style="display: none">
                  <h3 id="submitTimesInfoMessage" class="popupElement">

                  </h3>
                </div>

              </div>
      
            </div>

            <div id="setUsernameContainer" class="popupElement">
              <br/>
              <br/>
    
              <button id="setUsernameButton" class="warningButton popupElement">__MSG_setUsername__</button>
              <br/>
              <sub class="popupElement">
                __MSG_publicStats__ <a class="popupElement discreteLink" href="https://sponsor.ajay.app/stats" target="_blank">__MSG_here__</a>.
              </sub>
            </div>

            <div id="setUsername" class="popupElement" style="display: none">
                <br/>

                <h3>__MSG_setUsername__</h3>

                <div id="setUsernameStatusContainer" style="display: none">
                    <h2 id="setUsernameStatus"></h2>
                </div>


                <input id="usernameInput" hint="Username"></input>

                <br/>
                <br/>

                <button id="submitUsername" class="warningButton popupElement">Submit Username</button>
            </div>

            <div id="discordButtonContainer" class="popupElement" style="display: none">
              <br/>

              <a href="https://discord.gg/QnmVMpU" class="popupElement" target="_blank"><img src="https://www.logolynx.com/images/logolynx/1b/1bcc0f0aefe71b2c8ce66ffe8645d365.png" height="32px"/></a>

              <br/>

                __MSG_discordAdvert__

              <br/>

              <span id="hideDiscordButton" class="smallLink popupElement">__MSG_hideThis__</span>
            </div>

            <div id="optionsButtonContainer" class="popupElement">
                <br/>
                <br/>
      
                <button id="optionsButton" class="dangerButton popupElement">__MSG_Options__</button>
            </div>

            <div id="options" class="popupElement" style="display: none">
                <br/>

                <h3>__MSG_Options__</h3>
      
                <button id="hideVideoPlayerControls" class="warningButton popupElement">__MSG_hideButtons__</button>
                <button id="showVideoPlayerControls" style="display: none" class="warningButton popupElement">__MSG_showButtons__</button>
                <br/>
                <sub class="popupElement">
                  __MSG_hideButtonsDescription__
                </sub>

                <br/>
                <br/>

                <button id="hideInfoButtonPlayerControls" class="warningButton popupElement">__MSG_hideInfoButton__</button>
                <button id="showInfoButtonPlayerControls" style="display: none" class="warningButton popupElement">__MSG_showInfoButton__</button>
                <br/>
                <sub class="popupElement">
                  __MSG_whatInfoButton__
                </sub>

                <br/>
                <br/>

                <button id="hideDeleteButtonPlayerControls" class="warningButton popupElement">__MSG_hideDeleteButton__</button>
                <button id="showDeleteButtonPlayerControls" style="display: none" class="warningButton popupElement">__MSG_showDeleteButton__</button>
                <br/>
                <sub class="popupElement">
                  __MSG_whatDeleteButton__
                </sub>

                <br/>
                <br/>

                <button id="disableSponsorViewTracking" class="warningButton popupElement">__MSG_disableViewTracking__</button>
                <button id="enableSponsorViewTracking" style="display: none" class="warningButton popupElement">__MSG_enableViewTracking__</button>
                <br/>
                <sub class="popupElement">
                  __MSG_whatViewTracking__
                </sub>
      
                <br/>
                <br/>

                <button id="showNoticeAgain" style="display: none" class="dangerButton popupElement">__MSG_showNotice__</button>
            </div>
          </div>
        </div>
    </center>
  </body>

  <!-- Scripts that need to load after the html -->
  <script src="config.js"></script>
  <script src="utils.js"></script>
  <script src="popup.js"></script>
</html>