Commit 3ee6da21 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Blade Template für Ergebnisseite eingefügt

parent 97457d54
......@@ -78,6 +78,8 @@ class MetaGerSearch extends Controller
$searchengines = Search::loadSearchEngines($request);
$results = new Results($searchengines);
return view('results');
return print_r($results->results, TRUE);
}
......
*{
font-family: Liberation Sans, sans-serif;
}
.row {
margin: 10px 15px;
margin-top: 0;
}
header * {
}
#foki li {
/* background-color: rgba(255, 255, 255, 0.93); */
/* border-top-right-radius: 5px; */
}
.nav-tabs > li.active {
}
nav-tabs > li.active {
border-bottom: 0;
}
.tab-pane.active {
/* -webkit-box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.55); */
-moz-box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.55);
/* box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.55); */
padding: 10px 0;
padding-top: 0;
}
/* Hier der Style für unsere Suchleiste */
#researchBar
{
}
.alert{
margin: 10px 0;
padding: 5px 15px;
}
.alert ul{
list-style-type:none;
padding-left: 49px;
}
/* Logo */
.logo
{
height: 35px;
padding: 5px 0;
}
.logo > a
{
line-height: 100%;
height: 100%;
display: block;
}
#research *{
}
#research ul.list-inline {
margin-left: 0;
width: 100%;
}
@media (max-width: 767px){
#research .visible-xs {
display: inline-block!important;
}
#research nav ul li + li + li{
}
}
.input-group-addon {
padding: 0;
}
input#eingabeTop {
height: 35px;
}
nav .input-group {
height: 35px;
padding: 5px 0;
}
header nav {
height: 100%;
/* margin-left: 15px; */
}
header ul {
height: 100%;
vertical-align: middle;
}
#research nav ul > li {
width: 20%;
height: 45px;
vertical-align: middle;
padding-left: 15px;
padding-right: 15px;
}
#research nav ul > li.visible-xs {
width: 10%;
padding-left: 15px;
padding-right: 15px;
}
#research nav ul li + li + li {
width: 80%;
}
#research {
background-color: white;
position: fixed;
top: 0;
width: 100%;
height: 45px;
z-index: 500;
width: 80%;
left: 50%;
margin-left: -40%;
}
.logo h1
{
font-family: Liberation Sans, sans-serif;
font-style: italic;
margin: 0;
font-weight: bold;
line-height:1;
white-space:nowrap;
/* padding: 5px 0; */
}
#search
{
background-color: inherit;
border:0;
width: 50px;
height: 100%;
}
#reSearch
{
}
#reSearch a
{
color: black;
}
.content-wrapper
{
width: 80%;
margin: 0 auto;
padding-top: 60px;
/* padding: 10px; */
background-color: white;
-webkit-box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.3); -moz-box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.3); box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.3);
}
#helpButton
{
color:black;
}
body
{
height: 100%;
background-image: inherit;
/* background-attachment: fixed; */
background-color: rgba(2,93,140,.03);
}
a:link
{
color:#0000FF;
}
a#donation:hover {}
a#donation,a#donation:visited {
color: inherit;
}
a#donation:hover {
color: red;
}
a:visited
{
color: #7676FF;
}
a:hover
{
text-decoration:none;
color:red;
}
/* Hier der Style für unsere Tabliste */
#foki{
background-color: white;
}
#foki a{
color: grey;
}
#foki li.active a{
color: black;
background-color: white;
}
#foki li.active span + span{
display:inline!important;
}
/* Hier der Style für unseren Spruch */
#spruch
{
padding: 10px;
/* margin-top: 10px; */
margin-bottom: 0;
padding-bottom: 10px;
padding-left: 65px;
color:green;
font-weight:bold;
}
#spenden{
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
#spruch .author{
font-size:80%;
font-weight:normal;
font-style:italic;
color:#333333;
}
#spruch > p
{
margin-bottom:0;
}
#spruch > p + p
{
margin-top:4px;
}
/* Hier der Style für die einzelnen Ergebnisboxen */
.result
{
margin-bottom:20px;
/* padding:0 50px; */
width:100%
}
.result > .number
{
float: left;
font-size: 15px;
line-height:1;
}
.result > .resultInformation
{
margin-left: 40px;
padding-left: 10px;
border-radius: 5px;
}
.result .title
{
color: black;
text-decoration: none;
font-size: 15px;
font-weight: bold;
margin-bottom:0;
white-space:nowrap;
line-height:1.1;
max-width:115ch;
overflow:hidden;
text-overflow:ellipsis;
}
.result.ad .title {
color: green;
}
.result .link
{
font-size: 13px;
margin: 0;
line-height:1.5;
}
.result .link-link{
white-space:nowrap;
max-width:60%;
overflow:hidden;
text-overflow:ellipsis;
float:left;
}
.result:not(.ad) .link > div{
white-space:nowrap;
}
.result:not(.ad) .link > span{
white-space:nowrap;
}
.result:not(.ad) .link .options{
color: #333;
float:left;
}
.result:not(.ad) .link:hover{
cursor:pointer;
}
.result:not(.ad) .link .options > a{
color: #333;
display:block;
padding-left:5px;
padding-right:10px;
}
.result:not(.ad) .link .options > a > span{
font-size:10px;
}
.result .description
{
margin-bottom: 3px;
color: black;
font-size: 14px;
white-space:pre-wrap;
line-height: 1.3;
clear: both;
}
.result.ad .description {
color: green;
max-width: 115ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.result:not(.ad) .hoster
{
font-size: 13px;
margin: 0;
color:#777;
margin-right:10px;
white-space:nowrap;
}
.result:not(.ad) .hoster a{
color:#333;
}
.result .result-image > img{
height:100px;
padding:10px;
}
.result .proxy{
font-size:13px;
margin-top:0;
white-space:nowrap;
}
.result .partnershop-info{
font-size:13px;
margin-top:0;
margin-left:10px;
}
.result .proxy img{
margin-bottom:0px;
margin-right:2px
}
.popover-content{
/*padding-left: 0;
padding-right:0;*/
}
.options-list > li{
}
.options-list > li:hover{
background-color:lightgrey;
}
.options-list > li > a{
color: #333;
white-space:nowrap;
display:block;
padding:5px 14px;
}
.options-list > li input[type=submit]{
width:100%;
background-color:transparent;
border:0;
margin:5px 0;
}
.container-fluid {
padding-top: 15px;
padding-bottom: 15px;
background-color: white;
}
#quicktips iframe{
width:100%;
height: 1000px;
background-color: transparent;
border: 0px none transparent;
padding: 0px;
overflow: hidden;
}
/* Hier der Style für die Bilder */
#fit-width .masonry {
margin: 0 auto;
}
.item{
width: 150px;
text-align:center;
margin-bottom:10px;
}
#container{
margin: 10px auto;
}
/* Hier der Style für die Werbeboxen */
.result.ad{
}
.result.ad .link a{
}
.result.ad .description{
}
.result.ad .hoster{
color:green;
}
/* Style für den Footer */
.footer{
padding: 15px 0;
margin-top:50px;
margin-bottom: 0;
}
.footer a{
color:black;
}
.footer li{
width:49%;
padding:0;
margin:0;
text-align:center;
}
.footer .left{
text-align:right;
padding-right:20px;
}
.footer .right{
text-align:left;
padding-left:20px;
}
/* Ein resetter für Floats */
.clearfix{
clear:both;
}
/* Placeholder für ladende Tabs */
.loader{
text-align:center;
margin-top:20px;
}
.loader > img{
width:30px;
}
.pager{
text-align:center;
}
\ No newline at end of file
/*!
* imagesLoaded PACKAGED v3.1.8
* JavaScript is all like "You images are done yet or what?"
* MIT License
*/
(function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,s=r.length;s>o;o++){var f=r[o];this.addImage(f)}}},s.prototype.addImage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},c.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},c.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},c.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},c.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});
\ No newline at end of file
This diff is collapsed.
$(document).ready(function(){
if( top != self ){
postSize($(document).height());
}
getDocumentReadyForUse();
});
function postSize(height){
var target = parent.postMessage ? parent : (parent.document.postMessage ? parent.document : undefined);
if(typeof target != "undefined" && document.body.scrollHeight){
target.postMessage(height, "*");
}
}
function tabs(){
$("#foki a").each(function(){
$(this).attr("href", "#"+$(this).attr("aria-controls"));
$(this).attr("role","tab");
$(this).attr("data-toggle","tab");
});
$("#foki a").off();
$("#foki a").on("show.bs.tab", function(e){
var fokus = $(this).attr("aria-controls");
var link = $("#"+fokus+"TabSelector a").attr("data-href");
if($("#"+fokus+"TabSelector").attr("data-loaded") != "1"){
$.get(link, function(data){
$("#"+fokus+"TabSelector").attr("data-loaded", "1");
$("#"+fokus).html(data);
$("input[name=focus]").val($("#foki li.active a").attr("aria-controls"));
getDocumentReadyForUse();
});
}
getDocumentReadyForUse();
});
}
function getDocumentReadyForUse(){
clickLog();
popovers();
imageLoader();
pagination();
tabs();
theme();
fokiChanger();
}
function theme(){
if(localStorage){
var theme = localStorage.getItem("theme");
if(theme != null){
if((theme.match(/,/g) || []).length != 3){
localStorage.removeItem("theme");
}else{
theme = theme.split(",");
$($("head link")[2]).attr("href", "/css/theme.css.php?r=" + theme[0] + "&g=" + theme[1] + "&b=" + theme[2] + "&a=" + theme[3]);
}
}
}
}
function clickLog(){
$(".result .link a, .result .title a").off();
$(".result .link a, .result .title a").click(function(){
$.get("/meta/clickstats.pl", {i:$("meta[name=p]").attr("content"), s:$(this).attr("data-hoster"), q:$("meta[name=q]").attr("content"), p:$(this).attr("data-count"), url:$(this).attr("href")});
});
}
function popovers(){
$("[data-toggle=popover]").each(function(e){
$(this).popover("destroy");
$(this).popover({
//html : true,
//title : "<span class='glyphicon glyphicon-cog'></span> Optionen",
content : $(this).parent().find(".content").html()
});
});
}
function pagination(){
$(".pagination li:not(.active) > a").attr("href", "#");
$(".pagination li.disabled > a").removeAttr("href");
$(".pagination li:not(.active) > a").off();
$(".pagination li:not(.active) > a").click(paginationHandler);
}
function paginationHandler(){
var link = $(this).attr("data-href");
if(link.length == 0){return;}
var tabPane = $(".tab-pane.active");
$(tabPane).html("<div class=\"loader\"><img src=\"/img/ajax-loader.gif\" alt=\"\" /></div>");
$.get(link, function(data){
$(tabPane).html(data);
$(".pagination li:not(.active) > a").attr("href