cochranblock 1.0.3

Zero-cloud website in a single Rust binary. 13MB on x86, 8.9MB on ARM. $10/month infrastructure. cargo install and run.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/** Unlicense — public domain — cochranblock.org */
document.querySelectorAll('form').forEach(function(f){
  f.addEventListener('submit',function(){
    var btn=f.querySelector('button[type=submit],input[type=submit]');
    if(btn){btn.disabled=true;btn.textContent='Submitting...'}
  });
});
document.querySelectorAll('.toggle-password').forEach(function(t){
  t.addEventListener('click',function(){
    var i=document.getElementById(t.dataset.target);
    if(i){i.type=i.type==='password'?'text':'password'}
  });
});