_includes/encrypted.html in no-style-please2-0.5.2 vs _includes/encrypted.html in no-style-please2-0.5.3
- old
+ new
@@ -3,20 +3,21 @@
<h3> {{ site.theme_config.encrypt_title | default : 'Content is Encrypted'}} </h3>
<input style="width:100%; " type="password" id="passwordinput" placeholder="输入密码"></input>
<p>
<input type="button" value= "{{ site.theme_config.decrypt_btn | default : 'Decrypt' }}" id="DecryptBtn"/>
+ <input type="button" value= "{{ site.theme_config.encrypt_clear_btn | default: 'Clear password cache' }}" id="ClearBtn1"/>
</div>
<div id="decrypted" style = "display:none">
<p>
<div>
<input type="button" value= "{{ site.theme_config.encrypt_btn | default: 'Encrypt' }}" id="EncryptBtn"/>
- <input type="button" value= "{{ site.theme_config.encrypt_clear_btn | default: 'Clear password cache' }}" id="ClearBtn"/>
+ <input type="button" value= "{{ site.theme_config.encrypt_clear_btn | default: 'Clear password cache' }}" id="ClearBtn2"/>
</div>
<div id = 'decryptContent'>
</div>
</div>
@@ -92,10 +93,13 @@
document.getElementById("decrypted").style.display = "none"
clearKey()
}
- document.getElementById("ClearBtn").onclick = function(){
+ document.getElementById("ClearBtn1").onclick = function(){
+ localStorage.clear();
+ }
+ document.getElementById("ClearBtn2").onclick = function(){
localStorage.clear();
}
\ No newline at end of file