6-12
templates/op_snews_list.tpl
background-color: rgba(0,0,0,0.5); |
#carousel-example-generic{ |
< div id = "carousel-example-generic" class = "carousel slide" data-ride = "carousel" > |
< div class = "carousel-inner" role = "listbox" > |
<{foreach from=$all_focus key=i item=focus}> |
< div class="item <{if $i==0}>active<{/if}>"> |
< a href="index.php?sn=<{$focus.sn}>"> |
< img src="<{$focus.cover}>" alt="<{$focus.title}>" class="slide-img"> |
< div class = "carousel-caption" > |
< h2 ><{$focus.title}></ h2 > |
< a class = "left carousel-control" href = "#carousel-example-generic" role = "button" data-slide = "prev" > |
< span class = "glyphicon glyphicon-chevron-left" aria-hidden = "true" ></ span > |
< span class = "sr-only" >Previous</ span > |
< a class = "right carousel-control" href = "#carousel-example-generic" role = "button" data-slide = "next" > |
< span class = "glyphicon glyphicon-chevron-right" aria-hidden = "true" ></ span > |
< span class = "sr-only" >Next</ span > |
<{foreach from=$all key=i item=snews}> |
< a href="index.php?sn=<{$snews.sn}>"> |
< img src="<{$snews.cover}>" alt="<{$snews.title}>" class="cover img-thumbnail"> |
< div class = "alert alert-danger" > |
< script type = "text/javascript" > |
$(document).ready(function () { |
$(".slide-img").css('height', $(window).height()-$('.navbar').height()); |
$(window).resize(function () { |
$(".slide-img").css('height', $(window).height()-$('.navbar').height()); |