/var/www/clients/client1/web2/web/latynflexOLD/js/owl.carousel/demos
NameSizeModeActions
assets/-0755rm
json/-0755rm
autoHeight.html126640644editdlrm
click.html134220644editdlrm
custom.html148560644editdlrm
customJson.html117480644editdlrm
full.html116630644editdlrm
images.html119280644editdlrm
itemsCustom.html138850644editdlrm
json.html121780644editdlrm
lazyLoad.html143050644editdlrm
manipulations.html159510644editdlrm
navOnTop.html137400644editdlrm
navOnTop2.html119070644editdlrm
one.html113750644editdlrm
owlStatus.html157920644editdlrm
progressBar.html148650644editdlrm
randomOrder.html145830644editdlrm
scaleup.html117760644editdlrm
sync.html201010644editdlrm
transitions.html130160644editdlrm
Edit: /var/www/clients/client1/web2/web/latynflexOLD/js/owl.carousel/demos/json.html (12178B)
Owl Carousel - Dynamic content via JSON

Dynamic content via JSON

Setup

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>"}
  ]
}