formstone
Version:
Library of modular front end components.
77 lines (66 loc) • 2.28 kB
HTML
<h3>Basic</h3>
<!-- START: FIRSTDEMO -->
<style>
.viewer {
width: 100%;
/*height: 300px;*/
margin: 0 0 20px;
}
@media screen and (min-width: 740px) {
.viewer {
/*height: 500px;*/
}
}
</style>
<div class="demo_container">
<div class="demo_example">
<div class="viewer js-viewer" data-viewer-options='{}'>
<img src="https://spacehold.it/900x1600/1.jpg" alt="">
</div>
</div>
<div class="demo_code">
<pre><code class="language-html"><div class="viewer">
	<img src="thumbnail.jpg" alt="">
</div></code></pre>
<pre><code class="language-javascript">$(".viewer").viewer();</code></pre>
</div>
</div>
<!-- END: FIRSTDEMO -->
<h3>Gallery</h3>
<div class="demo_container">
<div class="demo_example">
<div class="viewer js-viewer" data-viewer-options='{}'>
<img src="https://spacehold.it/1600x900/1.jpg" alt="">
<img src="https://spacehold.it/900x1600/2.jpg" alt="">
<img src="https://spacehold.it/1000x1000/3.jpg" alt="">
</div>
</div>
<div class="demo_code">
<pre><code class="language-html"><div class="viewer">
	<img src="thumbnail_1.jpg" alt="">
	<img src="thumbnail_2.jpg" alt="">
	<img src="thumbnail_3.jpg" alt="">
</div></code></pre>
<pre><code class="language-javascript">$(".viewer").viewer();</code></pre>
</div>
</div>
<h3>No Theme</h3>
<div class="demo_container">
<div class="demo_example">
<div class="viewer js-viewer" data-viewer-options='{"theme":""}'>
<img src="https://spacehold.it/1600x900/1.jpg" alt="">
<img src="https://spacehold.it/900x1600/2.jpg" alt="">
<img src="https://spacehold.it/1000x1000/3.jpg" alt="">
</div>
</div>
<div class="demo_code">
<pre><code class="language-html"><div class="viewer">
	<img src="thumbnail_1.jpg" alt="">
	<img src="thumbnail_2.jpg" alt="">
	<img src="thumbnail_3.jpg" alt="">
</div></code></pre>
<pre><code class="language-javascript">$(".viewer").viewer({
theme: "",
});</code></pre>
</div>
</div>