2011-11-05 02:25:17 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<title>No Chicks Allowed: Image Repository</title>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<link rel="stylesheet" type="text/css" media="all" href="/css/html5reset-1.6.1.css" />
|
|
|
|
<link rel="stylesheet" type="text/css" media="all" href="/css/style.css" />
|
2011-11-10 00:06:36 -05:00
|
|
|
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/smoothness/jquery-ui.css" type="text/css" />
|
2011-11-05 02:25:17 -04:00
|
|
|
|
2011-11-08 15:04:25 -05:00
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
|
|
|
|
|
2011-11-05 02:25:17 -04:00
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
|
|
<![endif]-->
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<header>
|
2011-11-07 23:22:35 -05:00
|
|
|
<div id="title"><h1><a href="http://www.nca-guild.com">No Chicks Allowed</a></h1></div>
|
|
|
|
<div id="links">
|
2011-11-08 15:04:25 -05:00
|
|
|
<a href="/upload" id="upload"><span class="underline">U</span>pload</a> |
|
|
|
|
<a href="/gallery" id="gallery"><span class="underline">G</span>allery</a> |
|
|
|
|
<a href="/latest" id="latest"><span class="underline">L</span>atest</a> |
|
|
|
|
<a href="/random" id="random"><span class="underline">R</span>andom</a>
|
2011-11-07 23:22:35 -05:00
|
|
|
</div>
|
2011-11-05 02:25:17 -04:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<?php echo $contents; ?>
|
2011-11-08 15:04:25 -05:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).keydown(function(e) {
|
|
|
|
var key = e.keyCode || e.which;
|
2011-11-05 02:25:17 -04:00
|
|
|
|
2011-11-08 15:04:25 -05:00
|
|
|
switch(key) {
|
|
|
|
case 82:
|
|
|
|
document.location.href = $('#random').attr('href');
|
|
|
|
break;
|
|
|
|
case 71:
|
|
|
|
document.location.href = $('#gallery').attr('href');
|
|
|
|
break;
|
|
|
|
case 76:
|
|
|
|
document.location.href = $('#latest').attr('href');
|
|
|
|
break;
|
|
|
|
case 85:
|
|
|
|
document.location.href = $('#upload').attr('href');
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
});
|
2011-11-10 00:06:36 -05:00
|
|
|
$(function () {
|
|
|
|
$.altAlert({
|
|
|
|
resizable: false,
|
|
|
|
});
|
|
|
|
});
|
2011-11-08 15:04:25 -05:00
|
|
|
</script>
|
2011-11-10 00:06:36 -05:00
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
|
|
|
|
<script src="/js/jquery.altAlert.js"></script>
|
|
|
|
<script src="/js/jquery.filedrop.js"></script>
|
|
|
|
<script src="/js/upload.js"></script>
|
2011-11-20 23:53:17 -05:00
|
|
|
<script src="/js/jquery.upload-1.0.2.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
$('#single_upload').change(function() {
|
|
|
|
$(this).upload('/upload/process/', function(response) {
|
|
|
|
|
|
|
|
if(response.type == 'error') {
|
|
|
|
alert('There was an error: ' + response.status);
|
|
|
|
|
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
// $.data(file).addClass('done');
|
|
|
|
// $.data(file).find('.linkBox').val(response.file);
|
|
|
|
// $.data(file).find('.linkBox').click(function() {
|
|
|
|
// this.focus();
|
|
|
|
// this.select();
|
|
|
|
// });
|
|
|
|
$('#dropbox').append($('<div>')
|
|
|
|
.append($('<input>')
|
|
|
|
.attr('type', 'text')
|
|
|
|
.val(response.file)
|
|
|
|
.addClass('linkBox')
|
|
|
|
)
|
|
|
|
);
|
|
|
|
$('#dropbox').find('.linkBox:last').click(function() {
|
|
|
|
this.focus();
|
|
|
|
this.select();
|
|
|
|
});
|
|
|
|
alert('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
}, 'json');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2011-11-05 02:25:17 -04:00
|
|
|
</body>
|
|
|
|
</html>
|