|
225 | 225 | // @description:zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
|
226 | 226 | // @author Adam Lui
|
227 | 227 | // @namespace https://github.com/adamlui
|
228 |
| -// @version 2025.1.30.3 |
| 228 | +// @version 2025.1.30.4 |
229 | 229 | // @license MIT
|
230 | 230 | // @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
|
231 | 231 | // @icon64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
|
|
782 | 782 | }
|
783 | 783 |
|
784 | 784 | // Update scheme/state
|
785 |
| - this.update.scheme() ; this.update.state() // to opposite init state for animation on 1st load |
| 785 | + this.update.scheme() ; this.update.state() |
786 | 786 |
|
787 | 787 | // Add hover/click listeners
|
788 | 788 | this.div.onmouseover = this.div.onmouseout = event => // trigger OpenAI hover overlay
|
|
814 | 814 | + `.${this.class} > input { display: none }` // hide checkbox
|
815 | 815 | + `.${this.class} > span {` // switch span
|
816 | 816 | + 'position: relative ; width: 30px ; height: 15px ; border-radius: 28px ;'
|
817 |
| - + `background-color: var(--switch-${ // init opposite final color |
818 |
| - !config.autoTalkDisabled ? 'disabled' : 'enabled' }-bg-color) ;` |
| 817 | + + 'background-color: var(--switch-disabled-bg-color) ;' |
819 | 818 | + `bottom: ${ env.ui.firstLink ? 0 : -0.15 }em ;`
|
820 | 819 | + `left: ${ env.browser.isMobile ? 169 : env.ui.firstLink ? 154 : 160 }px ;`
|
821 | 820 | + 'transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;'
|
|
833 | 832 | + 'position: absolute ; width: 12px ; height: 12px ; content: "" ; border-radius: 28px ;'
|
834 | 833 | + 'background-color: white ; left: 3px ; bottom: 1.25px ;'
|
835 | 834 | + 'box-shadow: var(--knob-box-shadow) ;' // make 3D
|
836 |
| - + `transform: translateX(${ !config.autoTalkDisabled ? 0 : 13 }px) ;` // init opposite final pos |
837 | 835 | + 'transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;'
|
838 | 836 | + '-o-transition: 0.4s ; -ms-transition: 0.4s }'
|
839 | 837 | + `.${this.class} > label {` // toggle label
|
|
0 commit comments