Add link age select box.

The vast majority of short links are only used once and forgotten about.
This gives people a choice to have links that expire (default 24 hours after creation).
This is also the first time that we use either coloumn other than the center one.
This commit is contained in:
alopexc0de 2014-07-24 21:30:01 -04:00
parent c1f5a2eee8
commit e52c236e47
No known key found for this signature in database
GPG Key ID: 48E847F18074C953
1 changed files with 15 additions and 1 deletions

View File

@ -115,11 +115,21 @@
<?php include('Include/HTML/navbar.htm') ?>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-3">
<div class="linkage">How long should I keep your link?</div>
</div>
<div class="col-md-6">
<h2 class="form-shorten-heading">Please give me a link to shorten...</h2>
<form class="form-shorten form-inline" id="form-shorten" role="form">
<div class="input-group">
<span class="input-group-addon lexp">
<select name="linkage" id="linkage">
<option selected="selected">24hrs</option>
<option>1 Week</option>
<option>1 Month</option>
<option>Forever</option>
</select>
</span>
<input type="text" class="form-control input-lg" id="link" name="link" placeholder="http://" required autofocus>
<input type="hidden" name="<?php echo $catchid; ?>" value="<?php echo $catchVal; ?>"/>
<span class="input-group-btn">
@ -162,6 +172,10 @@
$('#homelink').addClass('active');
});
$(function () {
$("[rel='tooltip']").tooltip();
});
function copyToClipboard(text){
window.prompt ("Copy to clipboard: Ctrl+C, Enter (when closed I will open your link in a new tab)", text);
}