Last active
August 29, 2015 14:03
-
-
Save sachatrauwaen/6a2f04cf7d257b35762b to your computer and use it in GitHub Desktop.
Open Block Templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits Satrabel.OpenBlocks.TemplateEngine.TemplateWebPage<Satrabel.OpenBlocks.DataSource.FilesModel> | |
<link rel="stylesheet" href="@(VirtualPath)/flexslider.css" type="text/css" media="screen" /> | |
<!-- Place somewhere in the <body> of your page --> | |
<div class="flexslider"> | |
<ul class="slides"> | |
@foreach(var item in Model.Items){ | |
<li> | |
<img src="@item" /> | |
</li> | |
} | |
</ul> | |
</div> | |
<!-- FlexSlider --> | |
<script defer src="@(VirtualPath)/jquery.flexslider.js"></script> | |
<script type="text/javascript"> | |
$(window).load(function(){ | |
$('.flexslider').flexslider({ | |
animation: "slide" | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment