mirror of
https://github.com/gamaio/lobli.git
synced 2024-12-22 11:42:40 +00:00
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:
parent
c1f5a2eee8
commit
e52c236e47
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user