summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorMax2019-05-20 16:03:20 +0200
committerMax2019-05-20 16:03:20 +0200
commit691d001c02747df6da6837dd2cf93e88a0f4f598 (patch)
tree9c3025baf97dbf8e6c9319755f8bf1b181e0740a /resources
parent95f37787bfe32eb5ce37afbee9c68bd233edffda (diff)
downloadkategorischeraperitif-691d001c02747df6da6837dd2cf93e88a0f4f598.tar.gz
Removes dead code.
Diffstat (limited to 'resources')
-rw-r--r--resources/views/search.blade.php27
1 files changed, 2 insertions, 25 deletions
diff --git a/resources/views/search.blade.php b/resources/views/search.blade.php
index a795003..ee31a95 100644
--- a/resources/views/search.blade.php
+++ b/resources/views/search.blade.php
@@ -60,18 +60,10 @@ if ( $data->count() ) {
@include('snippets.spirittypesbuttons')
- {{ $data->appends(Input::except('page'))->links('paginate') }}
-
-<?php
-if ( !$data->count() ) {
- /* Keine Angebote */
-?>
<?php
- /* Ende Keine Angebote */
-} else {
- /* Liste Angebote */
-
+if ( $data->count() ) {
?>
+ {{ $data->appends(Input::except('page'))->links('paginate') }}
@include('offers')
@@ -88,19 +80,4 @@ if ( !$data->count() ) {
@endsection
@section('scripts')
-<script>
-$(window).on("load", function(){
- $("img.card-img-top").each( function(k, v){
-
- // sets style like with Drankdozijn
- if ( (this.naturalWidth / this.naturalHeight) < 0.3 ) {
- console.log("debug: changing css for " + this.title);
- $(this).css("width", this.naturalWidth);
- $(this).css("onject-fit", "cover");
- $(this).css("margin-left", "auto");
- $(this).css("margin-right", "25px");
- }
- });
-});
-</script>
@endsection