This repository was archived by the owner on Nov 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 <div class =" transports" >Supported transports:  ;
2424 <span class =" transportsValue" >None specified</span >
2525 </div >
26- <div class =" androidAttestationLabel" >Android Attestation<br /></div >
26+ <div class =" androidAttestationLabel" >Android Attestation < button class = " toggleAttestationButton " >show</ button > <br /></div >
2727 <div class =" androidAttestation" >
2828 <ul >
2929 <li ><span class =" label" >Keymaster Version: </span ><span class =" keymasterVersion" ></span ><br />
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ function tokenToDom(token) {
2828 }
2929 if ( token . android_attestation ) {
3030 card . querySelector ( '.androidAttestationLabel' ) . style . display = "inline" ;
31- card . querySelector ( '.androidAttestation' ) . style . display = "inline" ;
3231 card . querySelector ( '.keymasterVersion' ) . textContent
3332 = token . android_attestation . keymaster_version ;
3433 card . querySelector ( '.challenge' ) . textContent
@@ -53,6 +52,17 @@ function tokenToDom(token) {
5352 sendRemoveTokenRequest ( token . public_key ) ;
5453 } ) ;
5554
55+ $ ( card . querySelector ( '.toggleAttestationButton' ) )
56+ . click ( function ( ) {
57+ var currentText = $ ( "#" + token . public_key + " .toggleAttestationButton" ) . html ( ) ;
58+ if ( currentText == 'show' ) {
59+ $ ( "#" + token . public_key + " .toggleAttestationButton" ) . html ( 'hide' )
60+ } else {
61+ $ ( "#" + token . public_key + " .toggleAttestationButton" ) . html ( 'show' )
62+ }
63+ $ ( "#" + token . public_key + " .androidAttestation" ) . slideToggle ( 800 ) ;
64+ } ) ;
65+
5666 return card ;
5767}
5868
You can’t perform that action at this time.
0 commit comments