Projects STRLCPY link-lock Commits cbb3c113
🤬
  • ■ ■ ■ ■ ■ ■
    create/create.js
    skipped 143 lines
    144 144   
    145 145   // Adjust "Open in New Tab" link
    146 146   document.querySelector("#open").href = output;
     147 + 
     148 + // Adjust "Get TinyURL" button
     149 + document.querySelector("#tinyurl").value = output;
    147 150  }
    148 151   
    149 152   
    skipped 31 lines
  • ■ ■ ■ ■ ■ ■
    create/index.html
    skipped 125 lines
    126 126   <input type="text" id="output" readonly/>
    127 127   <button id="copy" onclick="onCopy('output')">Copy</button>
    128 128   <a href="" id="open" target="_blank"><button>Open in New Tab</button></a>
     129 + <!-- Special incantation to make TinyURL work -->
     130 + <form action="http://tinyurl.com/create.php" method="get" target="_blank" style="display: inline;">
     131 + <input type="hidden" id="source" name="source" value="indexpage" />
     132 + <input type="hidden" id="tinyurl" name="url" value = "" />
     133 + <button>Get Shortened Link</button>
     134 + </form>
    129 135   <p class="alert">Copied</p>
    130 136   </div>
    131 137   
    skipped 9 lines
Please wait...
Page is in error, reload to recover