Fixing frontend/backend again #12

Merged
andrewlalis merged 1 commits from serve-frontend into al/vote_api 2018-10-11 10:17:32 +00:00
7 changed files with 39 additions and 3 deletions
Showing only changes of commit 108034f1d2 - Show all commits

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");
}
});