Fixing frontend/backend again

This commit is contained in:
ludger 2018-10-11 12:12:42 +02:00
parent a2b47ef068
commit 108034f1d2
7 changed files with 39 additions and 3 deletions

View File

@ -99,5 +99,11 @@ $(function(){
((''+month).length<2 ? '0' : '') + month + '/' +
d.getFullYear();
$(".date").append(output);
if ($('.landingpage').length > 0) {
$("body").addClass("box");
}else if ($('.results').length > 0) {
$("body").addClass("box3");
}else if ($('.entity').length > 0) {
$("body").addClass("box2");
}
});

View File

@ -33,11 +33,11 @@
</div>
</nav>
<div id="content">
{% block content %}
{# Fill in this block in child pages to display content for the page. #}
{% endblock %}
</div>
{# Javascript dependencies #}
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>

View File

@ -8,6 +8,7 @@
{% endblock %}
{% block content %}
<div class="container entity">
<div class="row">
<div class="col-sm-6">
<h1 class="muted text-center">{{ entity.name }} {{ entity.average }}</h1>
@ -92,6 +93,7 @@
</div>
</div>
{% endblock %}
{% block extra_js %}

View File

@ -6,6 +6,8 @@
{% endblock %}
{% block content %}
<div class="fullcontainer landingpage">
<div class="container vertical center horizontal center">
<h1>Find rated courses</h1>
<h3>The best course reviews by your fellow students!</h3>
@ -20,4 +22,7 @@
</form>
</div>
</div>
</div>
{% endblock %}

View File

@ -5,6 +5,7 @@
{% endblock %}
{% block content %}
<div class="fullcontainer container bootstrap snippet results">
<div class="row">
<div class="col-lg-12">
<div class="ibox float-e-margins ">
@ -42,4 +43,8 @@
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -100,4 +100,13 @@ $(function(){
d.getFullYear();
$(".date").append(output);
if ($('.fullcontainer .landingpage')[0]) {
alert("yihaa");
}else{
alert("noo");
}
if ($('.fullcontainer landingpage')[0]) {
alert("yihaa2");
}
});

View File

@ -100,4 +100,13 @@ $(function(){
d.getFullYear();
$(".date").append(output);
if ($('.fullcontainer .landingpage')[0]) {
alert("yihaa");
}else{
alert("noo");
}
if ($('.fullcontainer landingpage')[0]) {
alert("yihaa2");
}
});