Merge branch 'virusdefender-dev' of git.coding.net:virusdefender/qduoj into dev-s
This commit is contained in:
@@ -8,9 +8,10 @@ demo: https://qduoj.com
|
|||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
|
|
||||||
|
- 将判题服务器改为 rpc 通信
|
||||||
|
- 重构消息队列
|
||||||
- 完善测试
|
- 完善测试
|
||||||
- 完善小组功能
|
- 完善小组功能
|
||||||
- 后台重构
|
|
||||||
|
|
||||||
![oj_previewindex.png][1]
|
![oj_previewindex.png][1]
|
||||||
|
|
||||||
|
|||||||
@@ -62,10 +62,9 @@ def index_page(request):
|
|||||||
if not request.user.is_authenticated():
|
if not request.user.is_authenticated():
|
||||||
return render(request, "oj/index.html")
|
return render(request, "oj/index.html")
|
||||||
|
|
||||||
try:
|
if request.META.get('HTTP_REFERER') or request.GET.get("index"):
|
||||||
if request.META['HTTP_REFERER']:
|
|
||||||
return render(request, "oj/index.html")
|
return render(request, "oj/index.html")
|
||||||
except KeyError:
|
else:
|
||||||
return http.HttpResponseRedirect('/problems/')
|
return http.HttpResponseRedirect('/problems/')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
static/src/img/index/bg/bg0.jpg
Normal file
BIN
static/src/img/index/bg/bg0.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
BIN
static/src/img/index/bg/bg1.jpg
Normal file
BIN
static/src/img/index/bg/bg1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 530 KiB |
BIN
static/src/img/index/bg/bg2.jpg
Normal file
BIN
static/src/img/index/bg/bg2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
BIN
static/src/img/index/bg/bg3.jpg
Normal file
BIN
static/src/img/index/bg/bg3.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
@@ -100,6 +100,15 @@
|
|||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section{
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
#section0{
|
||||||
|
background-image: url(/static/img/index/bg/bg3.jpg);
|
||||||
|
padding: 0 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/css/animate/animate.css">
|
<link rel="stylesheet" href="/static/css/animate/animate.css">
|
||||||
|
|
||||||
@@ -110,12 +119,21 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('#fullpage').fullpage({
|
$('#fullpage').fullpage({
|
||||||
sectionsColor: ['#28ac72', '#2f7ddb', '#FAC832', '#B01414'],
|
sectionsColor: ['#ffffff', '#2f7ddb', '#FAC832', '#B01414'],
|
||||||
css3: true,
|
css3: true,
|
||||||
navigation: true,
|
navigation: true,
|
||||||
loopBottom: true
|
loopBottom: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
var c = 0;
|
||||||
|
|
||||||
|
setInterval(function(){
|
||||||
|
//alert(1);
|
||||||
|
$("#section0").css("background-image", "url(/static/img/index/bg/bg" + (c++ % 4).toString() + ".jpg)")
|
||||||
|
}, 1000)
|
||||||
|
*/
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@@ -172,7 +190,7 @@
|
|||||||
<div class="section-text">
|
<div class="section-text">
|
||||||
<img class="icon" id="img3" src="/static/img/index/m.png">
|
<img class="icon" id="img3" src="/static/img/index/m.png">
|
||||||
|
|
||||||
<h1>自由举办小组赛(10月上线)</h1>
|
<h1>自由举办小组赛(12月上线)</h1>
|
||||||
|
|
||||||
<h3>内部比赛,日常作业,期末考试,通通搞定</h3>
|
<h3>内部比赛,日常作业,期末考试,通通搞定</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user