File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 5858 <i class =" fas fa-trash" ></i >
5959 </button >
6060 </div >
61+
62+ <div class =" alert alert-dismissible alert-danger mt-3 d-none" id =" token-gone-warning" >
63+ <button type =" button" class =" close" data-dismiss =" alert" >× ; </button >
64+ <h4 class =" alert-heading" >Do not loose access to your mytoken!</h4 >
65+ <p >To keep access to your mytoken you <strong >must</strong > copy it to a safe location, as
66+ you will not be able to retrieve it again from this website.</p >
67+ </div >
6168 </div >
6269
6370 <div class =" card-header mt-3" >
Original file line number Diff line number Diff line change @@ -12,16 +12,23 @@ const $tokeninfoBadgeIat = $('#tokeninfo-token-iat');
1212const $tokeninfoBadgeExp = $ ( '#tokeninfo-token-exp' ) ;
1313const $tokeninfoBadgeIatDate = $ ( '#tokeninfo-token-iat-date' ) ;
1414const $tokeninfoBadgeExpDate = $ ( '#tokeninfo-token-exp-date' ) ;
15-
1615const $tokeninfoTypeBadges = $ ( '.tokeninfo-token-type' ) ;
16+ const $tokeninfoTokenGoneWarningMsg = $ ( '#token-gone-warning' ) ;
1717
18+ $ ( '#tokeninfo-token-copy' ) . on ( 'click' , function ( ) {
19+ if ( ! $tokeninfoTokenGoneWarningMsg . hasClass ( 'd-none' ) ) {
20+ $tokeninfoTokenGoneWarningMsg . alert ( 'close' ) ;
21+ }
22+ } ) ;
1823
1924async function update_tokeninfo ( ) {
2025 let token = storagePop ( 'tokeninfo_token' , true ) ;
2126 if ( token === "" ) {
2227 token = $tokenInput . val ( ) ;
28+ $tokeninfoTokenGoneWarningMsg . hideB ( ) ;
2329 } else {
2430 $tokenInput . val ( token ) ;
31+ $tokeninfoTokenGoneWarningMsg . showB ( ) ;
2532 }
2633 let payload = { } ;
2734 if ( token === "" ) {
You can’t perform that action at this time.
0 commit comments