1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
| <!DOCTYPE html>
<html>
<head>
{% block headermeta %}{% endblock %}
{% block metadata %}{% endblock %}">
<title>Lomé Business School | {% block title %}{% endblock %}</title>
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('bundles/lbsecole/css/styles.css')}}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{ asset('bundles/lbsecole/css/style.css')}}" type="text/css" media="screen" />
{% endblock %}
<style type="text/css" >
#featured .ui-tabs-panel .info {
display:none;
}
</style>
</head>
<body id="home" class="index"> <!--<![endif]-->
<div id="wrapper"><!--Stard #wrapper-->
<div id="header"><!--Stard .header-->
<div id="banner">
<div id="logo">
<img src="{{asset('bundles/lbsecole/images/logo.png')}}" alt="LBS logo"/>
</div>
<div id="logo-next">
<img src="{{asset('bundles/lbsecole/images/logo-next.png')}}" alt="LBS definition"/>
</div>
<img src="{{asset('bundles/lbsecole/images/logo-down.png')}}" style="margin: 49px 0pt 0pt 194px;" alt="LBS slogan"/>
</div>
<div id="menu">
{% include 'LbsEcoleBundle::menu.html.twig' %}
</div><!--End .header-->
</div>
<div id="content">
{% block content %}
{% endblock %}
</div>
<div class="clear"></div>
<div id="footer"><!--start .footer-->
{% include 'LbsEcoleBundle::footer.html.twig' %}
</div><!--End .footer-->
</div><!--END #wrapper-->
{% block javascripts %}
<script type="text/javascript" src="{{ asset('bundles/lbsecole/js/jquery.min.js')}}"></script>
<script type="text/javascript" src="{{ asset('bundles/lbsecole/js/jquery-ui-1.7.2.custom.min.js')}}"></script>
<script type="text/javascript" src="{{ asset('bundles/lbsecole/js/jquery.hoverIntent.minified.js')}}"></script>
{% endblock %}
{% block javascript %}
{% endblock %}
<script type="text/javascript">
$(document).ready(function() {
$("#featured").tabs({fx:[{opacity: "toggle", duration: 'slow'}, {opacity: "toggle", duration: 'normal'}],
show: function(event, ui){
$('#featured .ui-tabs-panel .info').hide();
var infoheight=$('.info', ui.panel).height();
$('.info', ui.panel).css('height', '0px').animate({ 'height': infoheight }, 500);
}
}).tabs("rotate", 5000, true);
$('#featured').hover(
function(){ $('#featured').tabs('rotate', 0, true); },
function(){ $('#featured').tabs('rotate', 5000, true); }
);
$('#featured .ui-tabs-panel a.hideshow').click(function(){
if($(this).text()=='Hide'){
$(this).parent('.info').animate({ 'height': '0px' }, 500);
$(this).text('Show');
}
else{
$(this).parent('.info').animate({ 'height': '70px' }, 500);
$(this).text('Hide');
}
return false;
});
function megaHoverOver(){
$(this).find(".sub").stop().fadeTo('fast', 1).show();
//Calculate width of all ul's
(function($) {
jQuery.fn.calcSubWidth = function() {
rowWidth = 0;
//Calculate row
$(this).find("ul").each(function() {
rowWidth += $(this).width();
});
};
})(jQuery);
if ( $(this).find(".row").length > 0 ) { //If row exists...
var biggestRow = 0;
//Calculate each row
$(this).find(".row").each(function() {
$(this).calcSubWidth();
//Find biggest row
if(rowWidth > biggestRow) {
biggestRow = rowWidth;
}
});
//Set width
$(this).find(".sub").css({'width' :biggestRow});
$(this).find(".row:last").css({'margin':'0'});
} else { //If row does not exist...
$(this).calcSubWidth();
//Set Width
$(this).find(".sub").css({'width' : rowWidth});
}
}
function megaHoverOut(){
$(this).find(".sub").stop().fadeTo('fast', 0,
function() {
$(this).hide();
});
}
var config = {
sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
interval: 100, // number = milliseconds for onMouseOver polling interval
over: megaHoverOver, // function = onMouseOver callback (REQUIRED)
timeout: 500, // number = milliseconds delay before onMouseOut
out: megaHoverOut // function = onMouseOut callback (REQUIRED)
};
$("ul#topnav li .sub").css({'opacity':'0'});
$("ul#topnav li").hoverIntent(config);
{% block document_ready %}
{% endblock %}
});
</script>
</body>
</html> |
Partager