Widget:Slides: Difference between revisions

From Elwiki
mNo edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><!--{if !isset($wgSlideshow) || !$wgSlideshow}-->
<!--{if !isset($wgInfobox) || !$wgInfobox}-->
     <!--{assign var="wgSlideshow" value=true scope="global"}-->
     <!--{assign var="wgInfobox" value=true scope="global"}-->
<style type="text/css">
<style type="text/css">
.slideshow {
.slideshow {
Line 10: Line 9:


.slideshow .ss_nav {
.slideshow .ss_nav {
    position: absolute;
     width: 100%;
     width: 100%;
     height: 100%;
     height: 50px;
}
}


.slideshow .ss_nav span {
.slideshow .ss_nav span {
    position: absolute;
     width: 50%;
     width: 50px;
     height: 50px;
     height: 50px;
     line-height: 50px;
     line-height: 50px;
     font-size: 50px;
     font-size: 50px;
     text-align: center;
     text-align: center;
    top: 50%;
    margin-top: -25px;
    z-index: 2;
}
}


Line 43: Line 37:
     position: relative;
     position: relative;
     float: left;
     float: left;
    width: 100%;
}
}
</style>
</style>
Line 55: Line 50:
         }
         }
         else if(loop){
         else if(loop){
             current.hide().siblings('.ss_content:last-child').fadeIn(500);
             current.hide().siblings('.ss_content:last').fadeIn(500);
         }
         }
     });
     });
Line 66: Line 61:
         }
         }
         else if(loop){
         else if(loop){
             current.hide().siblings('.ss_content:first-child').fadeIn(500);
             current.hide().siblings('.ss_content:first').fadeIn(500);
         }
         }
     });
     });
     $('.ss_contents .ss_content:first-child').siblings().hide();
     $('.ss_contents .ss_content:first').siblings('.ss_content').hide();
});
});
</script>
</script>
<!--{/if}--><includeonly>
<!--{/if}--><includeonly>

Latest revision as of 04:55, 25 September 2015