diff --git a/src/app/not-found/not-found.component.css b/src/app/not-found/not-found.component.css
index cfcda26dbc..9eee4e3f24 100644
--- a/src/app/not-found/not-found.component.css
+++ b/src/app/not-found/not-found.component.css
@@ -17,38 +17,3 @@
font-size: 22px;
letter-spacing: 10px;
}
-
-#search-bar {
- position: absolute;
- left: 27%;
-}
-
-@media screen and (min-width: 1920px) {
- #search-bar{
- left: 28%;
- }
-}
-
-@media screen and (max-width: 991px) {
- #search-bar{
- left: 20%;
- }
-}
-
-@media screen and (max-width: 767px) {
- #search-bar{
- left: 6%;
- }
-}
-
-@media screen and (max-width: 479px) {
- #search-bar{
- left: 5%;
- }
-}
-
-@media screen and (max-width: 359px) {
- #search-bar{
- left: 4%;
- }
-}
diff --git a/src/app/not-found/not-found.component.html b/src/app/not-found/not-found.component.html
index fadc63e546..ec4cbab19c 100644
--- a/src/app/not-found/not-found.component.html
+++ b/src/app/not-found/not-found.component.html
@@ -5,7 +5,3 @@
{{errorNumber}}
{{errorMsg}}
-
-
diff --git a/src/app/not-found/not-found.component.spec.ts b/src/app/not-found/not-found.component.spec.ts
index 333495dc5f..d7616b86a9 100644
--- a/src/app/not-found/not-found.component.spec.ts
+++ b/src/app/not-found/not-found.component.spec.ts
@@ -6,11 +6,7 @@ import { CommonModule } from '@angular/common';
import { HttpModule, JsonpModule } from '@angular/http';
import { StoreModule } from '@ngrx/store';
import { reducer } from '../reducers/index';
-import { SearchBarComponent } from '../search-bar/search-bar.component';
import { FormsModule } from '@angular/forms';
-import { AutoCompleteComponent } from '../auto-complete/auto-complete.component';
-import { SpeechService } from '../services/speech.service';
-import { AutocompleteService } from '../services/autocomplete.service';
import { ThemeService } from '../services/theme.service';
describe('NotFoundComponent', () => {
@@ -28,13 +24,9 @@ describe('NotFoundComponent', () => {
StoreModule.provideStore(reducer),
],
declarations: [
- NotFoundComponent,
- SearchBarComponent,
- AutoCompleteComponent
+ NotFoundComponent
],
providers: [
- SpeechService,
- AutocompleteService,
ThemeService
]
})
@@ -57,11 +49,4 @@ describe('NotFoundComponent', () => {
expect(image).toBeTruthy();
expect(image.alt).toBe('YaCy');
});
-
- it('should have an app-search-bar element', () => {
- let compiled = fixture.debugElement.nativeElement;
-
- expect(compiled.querySelector('app-search-bar')).toBeTruthy();
- });
-
});
diff --git a/src/app/not-found/not-found.component.ts b/src/app/not-found/not-found.component.ts
index 2e1c78b595..6c04057367 100644
--- a/src/app/not-found/not-found.component.ts
+++ b/src/app/not-found/not-found.component.ts
@@ -1,5 +1,4 @@
import { Component, OnInit } from '@angular/core';
-import {Router, ActivatedRoute} from '@angular/router';
import { ThemeService } from '../services/theme.service';
@Component({
@@ -8,36 +7,15 @@ import { ThemeService } from '../services/theme.service';
styleUrls: ['./not-found.component.css']
})
export class NotFoundComponent implements OnInit {
- searchdata = {
- query : '',
- verify: false,
- nav: 'filetype,protocol,hosts,authors,collections,namespace,topics,date',
- startRecord: 0,
- indexof: 'off',
- meanCount: '5',
- resource: 'global',
- prefermaskfilter: '',
- maximumRecords: 10,
- timezoneOffset: 0,
- };
-
errorNumber: any;
errorMsg: any;
constructor(
- private route: ActivatedRoute,
- private router: Router,
public themeService: ThemeService
) { }
ngOnInit() {
- this.searchdata.timezoneOffset = new Date().getTimezoneOffset();
this.errorNumber = '404';
this.errorMsg = 'Page not found';
}
-
- submit() {
- this.router.navigate(['/search', this.searchdata]);
- }
-
}