| Name | Size | Mode | Actions |
|---|---|---|---|
| assets/ | - | 0755 | rm |
| json/ | - | 0755 | rm |
| autoHeight.html | 12664 | 0644 | editdlrm |
| click.html | 13422 | 0644 | editdlrm |
| custom.html | 14856 | 0644 | editdlrm |
| customJson.html | 11748 | 0644 | editdlrm |
| full.html | 11663 | 0644 | editdlrm |
| images.html | 11928 | 0644 | editdlrm |
| itemsCustom.html | 13885 | 0644 | editdlrm |
| json.html | 12178 | 0644 | editdlrm |
| lazyLoad.html | 14305 | 0644 | editdlrm |
| manipulations.html | 15951 | 0644 | editdlrm |
| navOnTop.html | 13740 | 0644 | editdlrm |
| navOnTop2.html | 11907 | 0644 | editdlrm |
| one.html | 11375 | 0644 | editdlrm |
| owlStatus.html | 15792 | 0644 | editdlrm |
| progressBar.html | 14865 | 0644 | editdlrm |
| randomOrder.html | 14583 | 0644 | editdlrm |
| scaleup.html | 11776 | 0644 | editdlrm |
| sync.html | 20101 | 0644 | editdlrm |
| transitions.html | 13016 | 0644 | editdlrm |
/var/www/clients/client1/web2/web/latynfusion/js/owl.carousel/demos/json.html (12178B)
With this setup, all content is coming from external file data.json. To get this stuff working prepare JSON file with proper structure (see JSON below).
{
"owl" : [
{"item" : "your html content..."},
{"item" : "your html content..."},
...
]
}
$(document).ready(function() {
$("#owl-demo").owlCarousel({
jsonPath : "json/data.json"
});
});
<div id="owl-demo" class="owl-carousel owl-theme"> </div>
#owl-demo .item{
background: #a1def8;
padding: 30px 0px;
display: block;
margin: 5px;
color: #FFF;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
text-align: center;
}
{
"owl" : [
{"item" : "<span class='item'><h1>1</h1></span>"},
{"item" : "<span class='item'><h1>2</h1></span>"},
{"item" : "<span class='item'><h1>3</h1></span>"},
{"item" : "<span class='item'><h1>4</h1></span>"},
{"item" : "<span class='item'><h1>5</h1></span>"},
{"item" : "<span class='item'><h1>6</h1></span>"},
{"item" : "<span class='item'><h1>7</h1></span>"},
{"item" : "<span class='item'><h1>8</h1></span>"},
{"item" : "<span class='item'><h1>9</h1></span>"},
{"item" : "<span class='item'><h1>10</h1></span>"},
{"item" : "<span class='item'><h1>11</h1></span>"},
{"item" : "<span class='item'><h1>12</h1></span>"},
{"item" : "<span class='item'><h1>13</h1></span>"},
{"item" : "<span class='item'><h1>14</h1></span>"}
]
}