progress
@@ -6,6 +6,8 @@ use App\Models\ItemToFetch;
|
|||||||
use App\Models\ItemToFetchJobs;
|
use App\Models\ItemToFetchJobs;
|
||||||
use App\Models\Movie;
|
use App\Models\Movie;
|
||||||
use App\Service\MediaProcessing\FactoryService;
|
use App\Service\MediaProcessing\FactoryService;
|
||||||
|
use App\Service\MediaProcessing\MovieProcessingService;
|
||||||
|
use App\Service\MediaProcessing\ShowProcessingService;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
class FetchItemDataCommand extends Command
|
class FetchItemDataCommand extends Command
|
||||||
@@ -15,7 +17,7 @@ class FetchItemDataCommand extends Command
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $signature = 'processing:fetch-item-data {type=movie} {batch=50} {job=Details}';
|
protected $signature = 'processing:fetch-item-data {type=movie} {batch=50} {job=Details} {tmdbId?}';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The console command description.
|
* The console command description.
|
||||||
@@ -36,42 +38,47 @@ class FetchItemDataCommand extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
$this->info("Start");
|
||||||
|
|
||||||
$type = $this->argument('type');
|
$type = $this->argument('type');
|
||||||
$batch = $this->argument('batch');
|
$batch = $this->argument('batch');
|
||||||
$job = $this->argument('job');
|
$job = $this->argument('job');
|
||||||
|
$tmdbId = $this->argument('tmdbId');
|
||||||
|
|
||||||
$items = $this->getBatch($type, $batch, $job);
|
$items = $this->getBatch($type, $batch, $job, $tmdbId);
|
||||||
|
|
||||||
$this->processItems($items, $job);
|
$this->info("Processing ".count($items)." items of type `{$type}`.");
|
||||||
|
|
||||||
|
$this->processItems($items, $job, $type);
|
||||||
|
|
||||||
|
$this->info("Fin.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getBatch(string $type, int $batch, string $job)
|
private function getBatch(string $type, int $batch, string $job, int $tmdbId = null)
|
||||||
{
|
{
|
||||||
// if job <> Details the movie in movie table should exist
|
switch ($type){
|
||||||
$query = ItemToFetch::whereHas('jobs', function($query) use ($job){
|
case ItemToFetch::TYPE_MOVIE:
|
||||||
return $query->where('jobs', '<>', null)->whereRaw('FIND_IN_SET(?, jobs)', [$job]);
|
return MovieProcessingService::getBatch($batch, $job);
|
||||||
})->with(['jobs']);
|
case ItemToFetch::TYPE_TV_SERIES:
|
||||||
|
return ShowProcessingService::getBatch($batch, $job, $tmdbId);
|
||||||
if ($job !== ItemToFetchJobs::JOB_DETAILS) {
|
}
|
||||||
$query = $query->join('movies', 'movies.tmdb_id', '=', 'items_to_fetch.tmdb_id');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $query
|
private function processItems(\Illuminate\Database\Eloquent\Collection $items, $job, $type)
|
||||||
->where('type', $type)
|
|
||||||
->take($batch)
|
|
||||||
->get();
|
|
||||||
}
|
|
||||||
|
|
||||||
private function processItems(\Illuminate\Database\Eloquent\Collection $items, $job)
|
|
||||||
{
|
{
|
||||||
|
$bar = $this->output->createProgressBar(count($items));
|
||||||
|
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
$this->processItem($item, $job);
|
$this->processItem($item, $job, $type);
|
||||||
}
|
$bar->advance();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function processItem($item, $job)
|
$bar->finish();
|
||||||
|
}
|
||||||
|
|
||||||
|
private function processItem($item, $job, $type)
|
||||||
{
|
{
|
||||||
$this->factoryService->process($item, $job);
|
$this->factoryService->process($item, $job, $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ class RegisterController extends Controller
|
|||||||
$this->createMediaList('Collection', $user);
|
$this->createMediaList('Collection', $user);
|
||||||
$this->createMediaList('Watched', $user);
|
$this->createMediaList('Watched', $user);
|
||||||
$this->createMediaList('Liked', $user);
|
$this->createMediaList('Liked', $user);
|
||||||
|
$this->createMediaList('Favourite', $user);
|
||||||
|
|
||||||
return $user;
|
return $user;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
|
|||||||
|
|
||||||
use App\Models\Person;
|
use App\Models\Person;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class CelebrityController extends Controller
|
class CelebrityController extends Controller
|
||||||
{
|
{
|
||||||
@@ -18,6 +19,32 @@ class CelebrityController extends Controller
|
|||||||
{
|
{
|
||||||
$celebrity = Person::where('slug', $slug)->first();
|
$celebrity = Person::where('slug', $slug)->first();
|
||||||
|
|
||||||
return view('celebrity.show', compact('celebrity'));
|
// movies by job
|
||||||
|
$movies = DB::table('movies')
|
||||||
|
->leftJoin('movie_cast', 'movie_cast.movie_id', '=', 'movies.id')
|
||||||
|
->where('movie_cast.person_id', '=', $celebrity->id)
|
||||||
|
->get();
|
||||||
|
|
||||||
|
// movies crew
|
||||||
|
|
||||||
|
$moviesByDepartments = [];
|
||||||
|
|
||||||
|
foreach ($movies as $movie) {
|
||||||
|
$moviesByDepartments[$movie->known_for_department][]= $movie;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$showsByDepartment = [];
|
||||||
|
|
||||||
|
$shows = DB::table('shows')
|
||||||
|
->leftJoin('show_cast', 'show_cast.show_id', '=', 'shows.id')
|
||||||
|
->where('show_cast.person_id', '=', $celebrity->id)
|
||||||
|
->get();
|
||||||
|
|
||||||
|
foreach ($shows as $show) {
|
||||||
|
$showsByDepartment[$show->known_for_department][]= $show;
|
||||||
|
}
|
||||||
|
|
||||||
|
return view('celebrity.show', compact('celebrity', 'moviesByDepartments', 'showsByDepartment'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,12 +3,22 @@
|
|||||||
namespace App\Http\Controllers\Forum;
|
namespace App\Http\Controllers\Forum;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Forum\Category;
|
||||||
|
use App\Models\Forum\Thread;
|
||||||
|
use App\Models\Forum\Topic;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class ThreadsController extends Controller
|
class ThreadsController extends Controller
|
||||||
{
|
{
|
||||||
public function show(string $threadSlug)
|
public function show(string $categorySlug, string $threadSlug)
|
||||||
{
|
{
|
||||||
|
$category = Category::where('slug', $categorySlug)->first();
|
||||||
|
$thread = Thread::where('slug', $threadSlug)->first();
|
||||||
|
|
||||||
|
$topics = Topic::where('category_id', $category->id)
|
||||||
|
->where('thread_id', $thread->id)
|
||||||
|
->paginate(15);
|
||||||
|
|
||||||
|
return view('forum.thread', compact('category', 'thread', 'topics'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,13 @@
|
|||||||
namespace App\Http\Controllers\Forum;
|
namespace App\Http\Controllers\Forum;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Http\Requests\Forum\TopicRequest;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class TopicsController extends Controller
|
class TopicsController extends Controller
|
||||||
{
|
{
|
||||||
//
|
public function create(TopicRequest $request)
|
||||||
|
{
|
||||||
|
return view('forum.topics.create');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Show;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class ShowController extends Controller
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$shows = Show::paginate(48);
|
||||||
|
|
||||||
|
return view('show.index', compact('shows'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function show(string $slug)
|
||||||
|
{
|
||||||
|
$show = Show::with('posters', 'backdrops', 'externalIds', 'networks', 'genres', 'productionCompanies')->where('slug', $slug)->first();
|
||||||
|
|
||||||
|
$comments = [];
|
||||||
|
|
||||||
|
return view('show.show', compact('show', 'comments'));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Requests\Forum;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
|
class TopicRequest extends FormRequest
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Determine if the user is authorized to make this request.
|
||||||
|
*/
|
||||||
|
public function authorize(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the validation rules that apply to the request.
|
||||||
|
*
|
||||||
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||||
|
*/
|
||||||
|
public function rules(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\ShowPage;
|
||||||
|
|
||||||
|
use App\Models\Show;
|
||||||
|
use App\Models\ShowRecommendation;
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Recommended extends Component
|
||||||
|
{
|
||||||
|
public $show;
|
||||||
|
public $recommendedShows;
|
||||||
|
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.show-page.recommended');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function mount()
|
||||||
|
{
|
||||||
|
$this->recommendedShows = Show::whereIn('id', ShowRecommendation::where('show_id', $this->show->id)->pluck('recommended_show_id'))
|
||||||
|
->get();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\ShowPage;
|
||||||
|
|
||||||
|
use App\Models\Show;
|
||||||
|
use App\Models\ShowSimilar;
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Similar extends Component
|
||||||
|
{
|
||||||
|
public $show;
|
||||||
|
public $similarShows;
|
||||||
|
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.show-page.similar');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function mount()
|
||||||
|
{
|
||||||
|
$this->similarShows = Show::whereIn('id', ShowSimilar::where('show_id', $this->show->id)->pluck('similar_show_id'))
|
||||||
|
->get();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\ShowPage\Tabs;
|
||||||
|
|
||||||
|
use App\Models\Person;
|
||||||
|
use App\Models\Show;
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Cast extends Component
|
||||||
|
{
|
||||||
|
public $show;
|
||||||
|
public $peopleByDepartment;
|
||||||
|
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.show-page.tabs.cast');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function mount()
|
||||||
|
{
|
||||||
|
$this->show = Show::with('castList')->where('id', $this->show->id)->first();
|
||||||
|
|
||||||
|
$peopleByDepartment = [];
|
||||||
|
|
||||||
|
foreach ($this->show->castList as $castMember) {
|
||||||
|
if (!isset($peopleByDepartment[$castMember->pivot->known_for_department])) {
|
||||||
|
$peopleByDepartment[$castMember->pivot->known_for_department] = [];
|
||||||
|
}
|
||||||
|
$peopleByDepartment[$castMember->pivot->known_for_department][] = [
|
||||||
|
Person::find($castMember->pivot->person_id),
|
||||||
|
$castMember->pivot->character,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
$this->peopleByDepartment = $peopleByDepartment;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\ShowPage\Tabs;
|
||||||
|
|
||||||
|
use App\Models\Person;
|
||||||
|
use App\Models\Show;
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Crew extends Component
|
||||||
|
{
|
||||||
|
public $show;
|
||||||
|
public $peopleByDepartment;
|
||||||
|
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.show-page.tabs.crew');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function mount()
|
||||||
|
{
|
||||||
|
$this->show = Show::with('castList')->where('id', $this->show->id)->first();
|
||||||
|
|
||||||
|
$peopleByDepartment = [];
|
||||||
|
|
||||||
|
foreach ($this->show->crewList as $castMember) {
|
||||||
|
|
||||||
|
if (!isset($peopleByDepartment[$castMember->pivot->department])) {
|
||||||
|
$peopleByDepartment[$castMember->pivot->department] = [];
|
||||||
|
}
|
||||||
|
$peopleByDepartment[$castMember->pivot->department][] = [
|
||||||
|
Person::find($castMember->pivot->person_id),
|
||||||
|
$castMember->pivot->job,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
$this->peopleByDepartment = $peopleByDepartment;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\ShowPage\Tabs;
|
||||||
|
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Details extends Component
|
||||||
|
{
|
||||||
|
public $show;
|
||||||
|
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.show-page.tabs.details');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\ShowPage\Tabs;
|
||||||
|
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Releases extends Component
|
||||||
|
{
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.show-page.tabs.releases');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,5 +6,14 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
|
|
||||||
class Topic extends Model
|
class Topic extends Model
|
||||||
{
|
{
|
||||||
//
|
protected $table = 'forum_topics';
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'name',
|
||||||
|
'slug',
|
||||||
|
'status',
|
||||||
|
'category_id',
|
||||||
|
'thread_id',
|
||||||
|
'user_id',
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
|
|
||||||
class Image extends Model
|
class Image extends Model
|
||||||
{
|
{
|
||||||
|
public const TYPE_POSTER = 'posters';
|
||||||
|
public const TYPE_BACKDROP = 'backdrops';
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'aspect_ratio',
|
'aspect_ratio',
|
||||||
'height',
|
'height',
|
||||||
|
|||||||
@@ -75,14 +75,6 @@ class ItemToFetchJobs extends Model
|
|||||||
'tmdb_id',
|
'tmdb_id',
|
||||||
'item_id',
|
'item_id',
|
||||||
'type',
|
'type',
|
||||||
'remaining_jobs',
|
|
||||||
'jobs',
|
'jobs',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected function casts(): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'remaining_jobs' => 'array',
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,44 @@ class Show extends Model
|
|||||||
'vote_count',
|
'vote_count',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
protected $casts = [
|
||||||
|
'first_air_date' => 'date',
|
||||||
|
'last_air_date' => 'date',
|
||||||
|
'languages' => 'array',
|
||||||
|
];
|
||||||
|
|
||||||
|
public function wasListedBy(string $listSlug, User $user)
|
||||||
|
{
|
||||||
|
$mediaList = MediaList::where('slug', $listSlug)->where('user_id', $user->id)->first();
|
||||||
|
|
||||||
|
if ($mediaList) {
|
||||||
|
$mediaListItem = MediaListItem::where('media_list_id', $mediaList->id)
|
||||||
|
->where('item_id', $this->id)
|
||||||
|
->where('item_type', 'show')
|
||||||
|
->first();
|
||||||
|
|
||||||
|
return !empty($mediaListItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function ratingBy(User $user)
|
||||||
|
{
|
||||||
|
$rating = Rate::where('user_id', $user->id)
|
||||||
|
->where('item_id', $this->id)
|
||||||
|
->where('item_type', 'show')
|
||||||
|
->first();
|
||||||
|
|
||||||
|
return $rating ? $rating->rate : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function externalIds()
|
||||||
|
{
|
||||||
|
return $this->hasOne(ExternalId::class, 'entity_id', 'id')
|
||||||
|
->where('external_ids.entity_type', 'show');
|
||||||
|
}
|
||||||
|
|
||||||
public function castList()
|
public function castList()
|
||||||
{
|
{
|
||||||
return $this->belongsToMany(Person::class, 'show_cast', 'show_id', 'person_id');
|
return $this->belongsToMany(Person::class, 'show_cast', 'show_id', 'person_id');
|
||||||
@@ -46,9 +84,27 @@ class Show extends Model
|
|||||||
return $this->belongsToMany(Person::class, 'show_crew', 'show_id', 'person_id');
|
return $this->belongsToMany(Person::class, 'show_crew', 'show_id', 'person_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function images()
|
public function images(string $type = 'posters')
|
||||||
{
|
{
|
||||||
return $this->belongsToMany(Image::class, 'show_images', 'show_id', 'image_id');
|
if ($type === Image::TYPE_POSTER) {
|
||||||
|
return $this->belongsToMany(Image::class, 'show_images', 'show_id', 'image_id')
|
||||||
|
->where('type', Image::TYPE_POSTER);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->belongsToMany(Image::class, 'show_images', 'show_id', 'image_id')
|
||||||
|
->where('type', '=', Image::TYPE_BACKDROP);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function posters()
|
||||||
|
{
|
||||||
|
return $this->belongsToMany(Image::class, 'show_images', 'show_id', 'image_id')
|
||||||
|
->where('type', Image::TYPE_POSTER);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function backdrops()
|
||||||
|
{
|
||||||
|
return $this->belongsToMany(Image::class, 'show_images', 'show_id', 'image_id')
|
||||||
|
->where('type', '=', Image::TYPE_BACKDROP);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function videos()
|
public function videos()
|
||||||
|
|||||||
@@ -17,9 +17,9 @@ class FactoryService
|
|||||||
$this->showProcessingService = $showProcessingService;
|
$this->showProcessingService = $showProcessingService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function process($item, string $job)
|
public function process($item, string $job, $type)
|
||||||
{
|
{
|
||||||
switch ($item->type) {
|
switch ($type) {
|
||||||
case ItemToFetch::TYPE_MOVIE:
|
case ItemToFetch::TYPE_MOVIE:
|
||||||
return $this->movieProcessingService->process($item, $job);
|
return $this->movieProcessingService->process($item, $job);
|
||||||
case ItemToFetch::TYPE_TV_SERIES:
|
case ItemToFetch::TYPE_TV_SERIES:
|
||||||
|
|||||||
@@ -46,6 +46,29 @@ class MovieProcessingService implements ProcessingInterface
|
|||||||
$this->listApi = $listApi;
|
$this->listApi = $listApi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getBatch(int $batch, string $job)
|
||||||
|
{
|
||||||
|
if ($job === ItemToFetchJobs::JOB_DETAILS) {
|
||||||
|
return ItemToFetchJobs::leftJoin('movies', function ($join) {
|
||||||
|
$join->on('movies.tmdb_id', '=', 'item_to_fetch_jobs.tmdb_id');
|
||||||
|
})
|
||||||
|
->whereRaw("FIND_IN_SET('".ItemToFetchJobs::JOB_DETAILS."', item_to_fetch_jobs.jobs)")
|
||||||
|
->where('item_to_fetch_jobs.type', 'movies')
|
||||||
|
->whereNull('movies.id')
|
||||||
|
->take($batch)
|
||||||
|
->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
return ItemToFetchJobs::leftJoin('movies', function ($join) {
|
||||||
|
$join->on('movies.tmdb_id', '=', 'item_to_fetch_jobs.tmdb_id');
|
||||||
|
})
|
||||||
|
->whereRaw("FIND_IN_SET('".$job."', item_to_fetch_jobs.jobs)")
|
||||||
|
->where('item_to_fetch_jobs.type', 'tv_series')
|
||||||
|
->whereNotNull('movies.id')
|
||||||
|
->take($batch)
|
||||||
|
->get();
|
||||||
|
}
|
||||||
|
|
||||||
public function process($item, $job)
|
public function process($item, $job)
|
||||||
{
|
{
|
||||||
$methodName = "get".ucfirst($job);
|
$methodName = "get".ucfirst($job);
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ use App\Models\Video;
|
|||||||
use App\Models\WatchProvider;
|
use App\Models\WatchProvider;
|
||||||
use App\Service\TMDBApi\PersonApi;
|
use App\Service\TMDBApi\PersonApi;
|
||||||
use App\Service\TMDBApi\ShowsApi;
|
use App\Service\TMDBApi\ShowsApi;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use function PHPUnit\Framework\containsIdentical;
|
use function PHPUnit\Framework\containsIdentical;
|
||||||
|
|
||||||
@@ -42,13 +43,40 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
$this->personApi = $personApi;
|
$this->personApi = $personApi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getBatch(int $batch, string $job, int $tmdbId = null)
|
||||||
|
{
|
||||||
|
$query = ItemToFetchJobs::leftJoin('shows', function ($join) {
|
||||||
|
$join->on('shows.tmdb_id', '=', 'item_to_fetch_jobs.tmdb_id');
|
||||||
|
})
|
||||||
|
->select('item_to_fetch_jobs.*');
|
||||||
|
|
||||||
|
if ($tmdbId) {
|
||||||
|
$query = $query->where('item_to_fetch_jobs.tmdb_id', $tmdbId);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($job === ItemToFetchJobs::JOB_DETAILS) {
|
||||||
|
return $query
|
||||||
|
->whereRaw("FIND_IN_SET('".ItemToFetchJobs::JOB_DETAILS."', item_to_fetch_jobs.jobs)")
|
||||||
|
->where('item_to_fetch_jobs.type', 'tv_series')
|
||||||
|
->whereNull('shows.id')
|
||||||
|
->take($batch)
|
||||||
|
->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
return $query
|
||||||
|
->whereRaw("FIND_IN_SET('".$job."', item_to_fetch_jobs.jobs)")
|
||||||
|
->where('item_to_fetch_jobs.type', 'tv_series')
|
||||||
|
->whereNotNull('shows.id')
|
||||||
|
->take($batch)
|
||||||
|
->get();
|
||||||
|
}
|
||||||
|
|
||||||
public function process($item, $job)
|
public function process($item, $job)
|
||||||
{
|
{
|
||||||
$methodName = "get".ucfirst($job);
|
$methodName = "get".ucfirst($job);
|
||||||
|
|
||||||
if (!method_exists($this, $methodName)) {
|
if (!method_exists($this, $methodName)) {
|
||||||
// @todo maybe raise an exception here
|
throw new \Exception("No method named $methodName\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->$methodName($item);
|
$this->$methodName($item);
|
||||||
@@ -62,10 +90,10 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
$show = Show::where('tmdb_id', $item->tmdb_id)->first();
|
$show = Show::where('tmdb_id', $item->tmdb_id)->first();
|
||||||
|
|
||||||
if ($show) {
|
if ($show) {
|
||||||
echo "+";
|
// echo "+";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
echo ".";
|
// echo ".";
|
||||||
$tmdbShow['slug'] = Str::slug($tmdbShow['name'].'-'.$tmdbShow['tmdb_id']);
|
$tmdbShow['slug'] = Str::slug($tmdbShow['name'].'-'.$tmdbShow['tmdb_id']);
|
||||||
$tmdbShow['first_air_date'] = $tmdbShow['first_air_date'] ? new \DateTime($tmdbShow['first_air_date']) : null;
|
$tmdbShow['first_air_date'] = $tmdbShow['first_air_date'] ? new \DateTime($tmdbShow['first_air_date']) : null;
|
||||||
$tmdbShow['last_air_date'] = $tmdbShow['last_air_date'] ? new \DateTime($tmdbShow['last_air_date']) : null;
|
$tmdbShow['last_air_date'] = $tmdbShow['last_air_date'] ? new \DateTime($tmdbShow['last_air_date']) : null;
|
||||||
@@ -140,11 +168,13 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
$tmdbCredits = $this->showsApi->getCredits($item->tmdb_id);
|
$tmdbCredits = $this->showsApi->getCredits($item->tmdb_id);
|
||||||
|
|
||||||
if (empty($tmdbCredits)) {
|
if (empty($tmdbCredits)) {
|
||||||
|
echo "no credits\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$show = Show::where('tmdb_id', $item->tmdb_id)->first();
|
$show = Show::where('tmdb_id', $item->tmdb_id)->first();
|
||||||
|
|
||||||
|
echo $item->tmdb_id."\n";
|
||||||
$this->processCast($show, $tmdbCredits['cast'] ?? []);
|
$this->processCast($show, $tmdbCredits['cast'] ?? []);
|
||||||
$this->processCrew($show, $tmdbCredits['crew'] ?? []);
|
$this->processCrew($show, $tmdbCredits['crew'] ?? []);
|
||||||
|
|
||||||
@@ -177,7 +207,27 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
$externalIds['entity_id'] = $show->id;
|
$externalIds['entity_id'] = $show->id;
|
||||||
$externalIds['entity_type'] = ExternalId::TYPE_SHOW;
|
$externalIds['entity_type'] = ExternalId::TYPE_SHOW;
|
||||||
|
|
||||||
|
$externalId['imdb_id'] = $tmdbExternalIds['imdb_id'] ?? null;
|
||||||
|
$externalId['wikidata_id'] = $tmdbExternalIds['wikidata_id'] ?? null;
|
||||||
|
$externalId['facebook_id'] = $tmdbExternalIds['facebook_id'] ?? null;
|
||||||
|
$externalId['instagram_id'] = $tmdbExternalIds['instagram_id'] ?? null;
|
||||||
|
$externalId['twitter_id'] = $tmdbExternalIds['twitter_id'] ?? null;
|
||||||
|
$externalId['tvdb_id'] = $tmdbExternalIds['tvdb_id'] ?? null;
|
||||||
|
$externalId['freebase_id'] = $tmdbExternalIds['freebase_id'] ?? null;
|
||||||
|
$externalId['tvrage_id'] = $tmdbExternalIds['tvrage_id'] ?? null;
|
||||||
|
|
||||||
ExternalId::create($externalIds);
|
ExternalId::create($externalIds);
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$externalId->imdb_id = $tmdbExternalIds['imdb_id'] ?? null;
|
||||||
|
$externalId->wikidata_id = $tmdbExternalIds['wikidata_id'] ?? null;
|
||||||
|
$externalId->facebook_id = $tmdbExternalIds['facebook_id'] ?? null;
|
||||||
|
$externalId->instagram_id = $tmdbExternalIds['instagram_id'] ?? null;
|
||||||
|
$externalId->twitter_id = $tmdbExternalIds['twitter_id'] ?? null;
|
||||||
|
$externalId->tvdb_id = $tmdbExternalIds['tvdb_id'] ?? null;
|
||||||
|
$externalId->freebase_id = $tmdbExternalIds['freebase_id'] ?? null;
|
||||||
|
$externalId->tvrage_id = $tmdbExternalIds['tvrage_id'] ?? null;
|
||||||
|
$externalId->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->removeElementFromRemainingJobs($item->tmdb_id, ItemToFetchJobs::JOB_EXTERNAL_IDS);
|
$this->removeElementFromRemainingJobs($item->tmdb_id, ItemToFetchJobs::JOB_EXTERNAL_IDS);
|
||||||
@@ -250,12 +300,17 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($show->whereHas('videos', function ($query) use ($show) {
|
$videoIsAttached = DB::table('show_videos')
|
||||||
$query->where('show_id', $show->id);
|
->where('show_id', $show->id)
|
||||||
})->exists()) {
|
->where('video_id', $videoExists->id)
|
||||||
return;
|
->first();
|
||||||
} else {
|
|
||||||
$show->videos()->attach($videoExists);
|
if (!$videoIsAttached) {
|
||||||
|
DB::table('show_videos')
|
||||||
|
->insert([
|
||||||
|
'show_id' => $show->id,
|
||||||
|
'video_id' => $videoExists->id
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -282,12 +337,17 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($show->whereHas('keywords', function ($query) use ($existingKeyword) {
|
$keywordIsAttached = DB::table('show_keywords')
|
||||||
$query->where('tmdb_id', $existingKeyword->tmdb_id);
|
->where('show_id', $show->id)
|
||||||
})->exists()) {
|
->where('keyword_id', $existingKeyword->id)
|
||||||
return;
|
->first();
|
||||||
} else {
|
|
||||||
$show->keywords()->attach($existingKeyword);
|
if (!$keywordIsAttached) {
|
||||||
|
DB::table('show_keywords')
|
||||||
|
->insert([
|
||||||
|
'show_id' => $show->id,
|
||||||
|
'keyword_id' => $existingKeyword->id,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -597,12 +657,25 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
|
|
||||||
private function removeElementFromRemainingJobs(int $tmdbId, string $job)
|
private function removeElementFromRemainingJobs(int $tmdbId, string $job)
|
||||||
{
|
{
|
||||||
$itemToFetchJobs = ItemToFetchJobs::where('tmdb_id', $tmdbId)->first();
|
$itemToFetchJobs = ItemToFetchJobs::where('tmdb_id', $tmdbId)
|
||||||
|
->where('type', 'tv_series')
|
||||||
|
->first();
|
||||||
|
|
||||||
$remainingJobs = $itemToFetchJobs->remaining_jobs;
|
if (!$itemToFetchJobs) {
|
||||||
|
echo "no job for ".$tmdbId."\n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$remainingJobs = $itemToFetchJobs->jobs;
|
||||||
|
|
||||||
if (is_string($remainingJobs)) {
|
if (is_string($remainingJobs)) {
|
||||||
$remainingJobs = json_decode($remainingJobs, true);
|
$remainingJobs = explode(',', $remainingJobs);
|
||||||
|
} else if ($itemToFetchJobs->jobs == null) {
|
||||||
|
$this->removeItemToFetch($tmdbId);
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
dd("Not string", $remainingJobs, $itemToFetchJobs);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$remainingJobKey = array_search($job, $remainingJobs);
|
$remainingJobKey = array_search($job, $remainingJobs);
|
||||||
@@ -610,20 +683,42 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
unset($remainingJobs[$remainingJobKey]);
|
unset($remainingJobs[$remainingJobKey]);
|
||||||
|
|
||||||
if (empty($remainingJobs)) {
|
if (empty($remainingJobs)) {
|
||||||
$itemToFetchJobs->delete();
|
$this->removeItemToFetch($tmdbId);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$itemToFetchJobs->remaining_jobs = $remainingJobs;
|
$itemToFetchJobs->jobs = implode(',', $remainingJobs);
|
||||||
$itemToFetchJobs->save();
|
$itemToFetchJobs->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function removeItemToFetch($tmdbId)
|
||||||
|
{
|
||||||
|
$itemToFetchJobs = ItemToFetchJobs::where('tmdb_id', $tmdbId)
|
||||||
|
->where('type', 'tv_series')
|
||||||
|
->first();
|
||||||
|
|
||||||
|
$itemToFetch = ItemToFetch::where('tmdb_id', $tmdbId)
|
||||||
|
->where('type', 'tv_series')
|
||||||
|
->first();
|
||||||
|
|
||||||
|
if ($itemToFetch) {
|
||||||
|
$itemToFetch->delete();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($itemToFetchJobs) {
|
||||||
|
$itemToFetchJobs->delete();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function processCast($show, array $credits)
|
private function processCast($show, array $credits)
|
||||||
{
|
{
|
||||||
if (empty($credits)) {
|
if (empty($credits) || $show === null) {
|
||||||
|
echo "+";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($credits as $castPerson) {
|
foreach ($credits as $castPerson) {
|
||||||
|
echo "Searching for person ".$castPerson['id']."\n";
|
||||||
$person = Person::where('tmdb_id', $castPerson['id'])->first();
|
$person = Person::where('tmdb_id', $castPerson['id'])->first();
|
||||||
|
|
||||||
if (!$person) {
|
if (!$person) {
|
||||||
@@ -652,18 +747,23 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "Creating person ".$castPerson['id']."\n";
|
||||||
$person = Person::create($personData);
|
$person = Person::create($personData);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($show->whereHas('castList', function ($query) use ($person) {
|
$castExists = DB::table('show_cast')
|
||||||
$query->where('tmdb_id', '=', $person->tmdb_id);
|
->where('show_id', $show->id)
|
||||||
})->exists()) {
|
->where('person_id', $person->id)
|
||||||
return;
|
->first();
|
||||||
} else {
|
|
||||||
$show->castList()->attach($person, [
|
if (!$castExists) {
|
||||||
'known_for_department' => $castPerson['known_for_department'],
|
DB::table('show_cast')
|
||||||
|
->insert([
|
||||||
|
'show_id' => $show->id,
|
||||||
|
'person_id' => $person->id,
|
||||||
|
'known_for_department' => trim($castPerson['known_for_department'], '"'),
|
||||||
'character' => $castPerson['character'],
|
'character' => $castPerson['character'],
|
||||||
'tmdb_cast_id' => $castPerson['cast_id'],
|
'tmdb_cast_id' => $castPerson['credit_id'],
|
||||||
'order' => $castPerson['order'],
|
'order' => $castPerson['order'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -672,7 +772,8 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
|
|
||||||
private function processCrew($show, array $credits)
|
private function processCrew($show, array $credits)
|
||||||
{
|
{
|
||||||
if (empty($credits)) {
|
if (empty($credits) || $show === null) {
|
||||||
|
echo "+";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -708,13 +809,17 @@ class ShowProcessingService implements ProcessingInterface
|
|||||||
$person = Person::create($personData);
|
$person = Person::create($personData);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($show->whereHas('crewList', function ($query) use ($person) {
|
$crewExists = DB::table('show_crew')
|
||||||
$query->where('tmdb_id', '=', $person->tmdb_id);
|
->where('show_id', $show->id)
|
||||||
})->exists()) {
|
->where('person_id', $person->id)
|
||||||
return;
|
->first();
|
||||||
} else {
|
|
||||||
$show->crewList()->attach($person, [
|
if (!$crewExists) {
|
||||||
'known_for_department' => json_encode($crewPerson['known_for_department']),
|
DB::table('show_crew')
|
||||||
|
->insert([
|
||||||
|
'show_id' => $show->id,
|
||||||
|
'person_id' => $person->id,
|
||||||
|
'known_for_department' => trim($crewPerson['known_for_department'], '"'),
|
||||||
'job' => $crewPerson['job'],
|
'job' => $crewPerson['job'],
|
||||||
'department' => $crewPerson['department'],
|
'department' => $crewPerson['department'],
|
||||||
'tmdb_cast_id' => $crewPerson['credit_id'],
|
'tmdb_cast_id' => $crewPerson['credit_id'],
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ return new class extends Migration
|
|||||||
$table->bigInteger('tmdb_id')->nullable(false);
|
$table->bigInteger('tmdb_id')->nullable(false);
|
||||||
$table->bigInteger('item_id')->nullable(true);
|
$table->bigInteger('item_id')->nullable(true);
|
||||||
$table->string('type')->nullable(false);
|
$table->string('type')->nullable(false);
|
||||||
$table->json('remaining_jobs')->default(null);
|
|
||||||
$table->set('jobs', \App\Models\ItemToFetchJobs::JOBS)->default(null);
|
$table->set('jobs', \App\Models\ItemToFetchJobs::JOBS)->default(null);
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ return new class extends Migration
|
|||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('slug');
|
$table->string('slug');
|
||||||
$table->enum('status', ['open', 'closed', 'sticky']);
|
$table->enum('status', ['open', 'closed', 'sticky']);
|
||||||
|
$table->unsignedBigInteger('category_id');
|
||||||
|
$table->unsignedBigInteger('thread_id');
|
||||||
$table->unsignedBigInteger('user_id');
|
$table->unsignedBigInteger('user_id');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,7 +5,9 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery": "^3.7.1"
|
"bs5-lightbox": "^1.8.3",
|
||||||
|
"jquery": "^3.7.1",
|
||||||
|
"owl-carousel": "^1.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@popperjs/core": "^2.11.6",
|
"@popperjs/core": "^2.11.6",
|
||||||
@@ -892,7 +894,6 @@
|
|||||||
"version": "2.11.8",
|
"version": "2.11.8",
|
||||||
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
|
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
|
||||||
"integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
|
"integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -1310,7 +1311,6 @@
|
|||||||
"version": "5.3.3",
|
"version": "5.3.3",
|
||||||
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz",
|
||||||
"integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==",
|
"integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==",
|
||||||
"dev": true,
|
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -1382,6 +1382,18 @@
|
|||||||
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/bs5-lightbox": {
|
||||||
|
"version": "1.8.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/bs5-lightbox/-/bs5-lightbox-1.8.3.tgz",
|
||||||
|
"integrity": "sha512-fEIjplDAtWw17vi6dFeu7+Td52sk3qQ9FbOOVSpWM3nqio502vZKIA0Q0De9D9ah44BGd+zOKUsikRPlKE2hFg==",
|
||||||
|
"license": "MIT",
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/trvswgnr"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"bootstrap": "^5.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/camelcase-css": {
|
"node_modules/camelcase-css": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
|
||||||
@@ -2287,6 +2299,12 @@
|
|||||||
"node": ">= 6"
|
"node": ">= 6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/owl-carousel": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/owl-carousel/-/owl-carousel-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-xgOxxUqpSPM0dopWkcMri9MoGv8TrEDAnsc+6OYuHhO2x3YpsEKDW2fJomPDOA6KkSTa3utLvgP+irVwAXSGog==",
|
||||||
|
"license": "ISC"
|
||||||
|
},
|
||||||
"node_modules/package-json-from-dist": {
|
"node_modules/package-json-from-dist": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
"vite": "^6.0"
|
"vite": "^6.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery": "^3.7.1"
|
"bs5-lightbox": "^1.8.3",
|
||||||
|
"jquery": "^3.7.1",
|
||||||
|
"owl-carousel": "^1.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,5 @@
|
|||||||
|
* text eol=lf
|
||||||
|
|
||||||
|
# Denote all files that are truly binary and should not be modified.
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
*.iml
|
||||||
|
.sass-cache
|
||||||
|
.bowerrc
|
||||||
|
.idea
|
||||||
|
/bower_components
|
||||||
|
/node_modules
|
||||||
|
*.sublime*
|
||||||
|
*.zip
|
||||||
|
/jscs.report.txt
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
*/.DS_Store
|
||||||
|
.DS_Store?
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
ehthumbs.db
|
||||||
|
Thumbs.db
|
||||||
|
.grunt
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
language: node_js
|
||||||
|
node_js:
|
||||||
|
- 'lts/*'
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- export DISPLAY=:99.0
|
||||||
|
- sh -e /etc/init.d/xvfb start
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- npm install -g bower grunt-cli
|
||||||
|
- bower install
|
||||||
|
|
||||||
|
script:
|
||||||
|
- grunt test
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
## Contributing
|
||||||
|
|
||||||
|
The [issue tracker](https://github.com/OwlCarousel2/OwlCarousel2/issues) is the preferred channel for bug reports, feature requests, and submitting pull requests.
|
||||||
|
|
||||||
|
**Please do not use the issue tracker for personal support requests. Stack Overflow ([`owl-carousel`](https://stackoverflow.com/questions/tagged/owl-carousel)) is a better place to get help.**
|
||||||
|
|
||||||
|
### Bug reports
|
||||||
|
|
||||||
|
A bug is a **demonstrable, reproducible problem** that is caused by the code in the repository. Good bug reports are extremely helpful, so thanks!
|
||||||
|
|
||||||
|
Guidelines for bug reports:
|
||||||
|
|
||||||
|
1. Use the GitHub issue search — check if the issue has already been reported.
|
||||||
|
|
||||||
|
2. Check if the issue has been fixed — try to reproduce it using the latest `develop` branch in the repository.
|
||||||
|
|
||||||
|
3. Isolate the problem - you NEED to provide a live example — ideally also create a reduced test case. This [CodePen](https://codepen.io/anon/pen/prvbMp), [JSFiddle](https://jsfiddle.net/h8x8bvn9/2/) and [JS Bin](https://jsbin.com/bojonaceve/2/edit?html,js,output) are helpful templates you can fork or clone.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
> Short and descriptive example bug report title
|
||||||
|
>
|
||||||
|
> A summary of the issue and the browser/OS environment in which it occurs. If suitable, include the steps required to reproduce the bug.
|
||||||
|
>
|
||||||
|
> 1. This is the first step
|
||||||
|
> 2. This is the second step
|
||||||
|
> 3. Further steps, etc.
|
||||||
|
>
|
||||||
|
> `<url>` - a link to the reduced test case
|
||||||
|
>
|
||||||
|
> Any other information you want to share that is relevant to the issue being reported. This might include the lines of code that you have identified as causing the bug, and potential solutions (and your opinions on their merits).
|
||||||
|
|
||||||
|
### Feature requests
|
||||||
|
|
||||||
|
Feature requests are welcome, but please take a moment to find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature.
|
||||||
|
|
||||||
|
To get approval for your feature request, please create an issue on the issue tracker with as much detail and context as possible. We'll take a look at it and then [hopefully] apply the "[approved for development](https://github.com/OwlCarousel2/OwlCarousel2/labels/approved%20for%20development)" tag so someone can get to work on it!
|
||||||
|
|
||||||
|
### Pull requests
|
||||||
|
|
||||||
|
Good pull requests are a fantastic help. They should remain focused in scope and avoid containing unrelated commits.
|
||||||
|
|
||||||
|
Adhering to the following process is the best way to get your work included in the project:
|
||||||
|
|
||||||
|
1. [Fork](https://help.github.com/fork-a-repo/) the project, clone your fork, and configure the remotes:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/<your-username>/OwlCarousel2.git
|
||||||
|
cd OwlCarousel2
|
||||||
|
git remote add upstream https://github.com/OwlCarousel2/OwlCarousel2.git
|
||||||
|
```
|
||||||
|
|
||||||
|
2. If you cloned a while ago, get the latest changes from upstream:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git checkout develop
|
||||||
|
git pull [--rebase] upstream develop
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Create a new topic branch (off the main project `develop` branch) to contain your feature, change, or fix:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git checkout -b <topic-branch-name>
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Build the distribution before committing to ensure your changes follow the coding standards and all build files are up to date.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
grunt dist
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Commit your changes in logical chunks. Please adhere to these [guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). Use Git's [interactive rebase](https://help.github.com/articles/interactive-rebase) feature to tidy up your commits before making them public.
|
||||||
|
|
||||||
|
6. Locally merge (or rebase) the upstream development branch into your topic branch:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git pull [--rebase] upstream develop
|
||||||
|
```
|
||||||
|
|
||||||
|
7. Push your topic branch up to your fork:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git push origin <topic-branch-name>
|
||||||
|
```
|
||||||
|
|
||||||
|
8. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) with a clear title and description against the `develop` branch.
|
||||||
|
|
||||||
|
**By submitting a patch, you agree to allow the project owner to license your work under the terms of the [MIT License](LICENSE).**
|
||||||
@@ -0,0 +1,320 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel
|
||||||
|
*
|
||||||
|
* Bartosz Wojciechowski
|
||||||
|
*
|
||||||
|
* Copyright (c) 2014
|
||||||
|
* Licensed under the MIT license.
|
||||||
|
*/
|
||||||
|
module.exports = function(grunt) {
|
||||||
|
|
||||||
|
require('load-grunt-tasks')(grunt);
|
||||||
|
|
||||||
|
grunt
|
||||||
|
.initConfig({
|
||||||
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
|
app: grunt.file.readJSON('_config.json'),
|
||||||
|
banner: '/**\n' + ' * Owl Carousel v<%= pkg.version %>\n'
|
||||||
|
+ ' * Copyright 2013-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n'
|
||||||
|
+ ' * Licensed under: <%= pkg.license %>\n' + ' */\n',
|
||||||
|
|
||||||
|
// assemble
|
||||||
|
assemble: {
|
||||||
|
options: {
|
||||||
|
flatten: false,
|
||||||
|
expand: true,
|
||||||
|
production: false,
|
||||||
|
assets: '<%= app.docs.dest %>/assets',
|
||||||
|
postprocess: require('pretty'),
|
||||||
|
|
||||||
|
// metadata
|
||||||
|
pkg: '<%= pkg %>',
|
||||||
|
app: '<%= app %>',
|
||||||
|
data: [ '<%= app.docs.src %>/data/*.{json,yml}' ],
|
||||||
|
|
||||||
|
// templates
|
||||||
|
partials: '<%= app.docs.templates %>/partials/*.hbs',
|
||||||
|
layoutdir: '<%= app.docs.layouts %>/',
|
||||||
|
|
||||||
|
// extensions
|
||||||
|
helpers: '<%= app.docs.src %>/helpers/*.js'
|
||||||
|
},
|
||||||
|
index: {
|
||||||
|
options: {
|
||||||
|
layout: 'home.hbs'
|
||||||
|
},
|
||||||
|
files: [ {
|
||||||
|
expand: true,
|
||||||
|
cwd: '<%= app.docs.pages %>/',
|
||||||
|
src: '*.hbs',
|
||||||
|
dest: '<%= app.docs.dest %>/'
|
||||||
|
} ]
|
||||||
|
},
|
||||||
|
demos: {
|
||||||
|
options: {
|
||||||
|
layout: 'demos.hbs'
|
||||||
|
},
|
||||||
|
files: [ {
|
||||||
|
expand: true,
|
||||||
|
cwd: '<%= app.docs.pages %>/demos/',
|
||||||
|
src: '*.hbs',
|
||||||
|
dest: '<%= app.docs.dest %>/demos'
|
||||||
|
} ]
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
options: {
|
||||||
|
layout: 'docs.hbs'
|
||||||
|
},
|
||||||
|
files: [ {
|
||||||
|
expand: true,
|
||||||
|
cwd: '<%= app.docs.pages %>/docs/',
|
||||||
|
src: '*.hbs',
|
||||||
|
dest: '<%= app.docs.dest %>/docs'
|
||||||
|
} ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// clean
|
||||||
|
clean: {
|
||||||
|
docs: [ '<%= app.docs.dest %>' ],
|
||||||
|
dist: [ 'dist' ]
|
||||||
|
},
|
||||||
|
|
||||||
|
// sass
|
||||||
|
sass: {
|
||||||
|
docs: {
|
||||||
|
options: {
|
||||||
|
outputStyle: 'compressed',
|
||||||
|
includePaths: [ '<%= app.docs.src %>/assets/scss/', 'node_modules/foundation-sites/scss' ]
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'<%= app.docs.dest %>/assets/css/docs.theme.min.css': '<%= app.docs.src %>/assets/scss/docs.theme.scss'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dist: {
|
||||||
|
options: {
|
||||||
|
outputStyle: 'nested'
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'dist/assets/<%= pkg.name %>.css': 'src/scss/<%= pkg.name %>.scss',
|
||||||
|
'dist/assets/owl.theme.default.css': 'src/scss/owl.theme.default.scss',
|
||||||
|
'dist/assets/owl.theme.green.css': 'src/scss/owl.theme.green.scss'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
autoprefixer: {
|
||||||
|
options: {
|
||||||
|
browsers: [ 'last 2 versions', 'ie 7', 'ie 8', 'ie 9', 'ie 10', 'ie 11' ]
|
||||||
|
},
|
||||||
|
dist: {
|
||||||
|
files: {
|
||||||
|
'dist/assets/<%= pkg.name %>.css': 'dist/assets/<%= pkg.name %>.css',
|
||||||
|
'dist/assets/owl.theme.default.css': 'dist/assets/owl.theme.default.css',
|
||||||
|
'dist/assets/owl.theme.green.css': 'dist/assets/owl.theme.green.css'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
concat: {
|
||||||
|
dist: {
|
||||||
|
files: {
|
||||||
|
'dist/<%= pkg.name %>.js': '<%= app.src.scripts %>'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
cssmin: {
|
||||||
|
dist: {
|
||||||
|
files: {
|
||||||
|
'dist/assets/<%= pkg.name %>.min.css': 'dist/assets/<%= pkg.name %>.css',
|
||||||
|
'dist/assets/owl.theme.default.min.css': 'dist/assets/owl.theme.default.css',
|
||||||
|
'dist/assets/owl.theme.green.min.css': 'dist/assets/owl.theme.green.css'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
jshint: {
|
||||||
|
options: {
|
||||||
|
jshintrc: 'src/js/.jshintrc'
|
||||||
|
},
|
||||||
|
dist: {
|
||||||
|
src: [ '<%= app.src.scripts %>', 'Gruntfile.js' ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
qunit: {
|
||||||
|
options: {
|
||||||
|
timeout: 10000
|
||||||
|
},
|
||||||
|
dist: [ 'test/index.html' ]
|
||||||
|
},
|
||||||
|
|
||||||
|
jscs: {
|
||||||
|
options: {
|
||||||
|
config: 'src/js/.jscsrc',
|
||||||
|
reporter: 'text.js',
|
||||||
|
reporterOutput: 'jscs.report.txt'
|
||||||
|
},
|
||||||
|
dist: {
|
||||||
|
src: [ '<%= app.src.scripts %>', 'Gruntfile.js' ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
usebanner: {
|
||||||
|
dist: {
|
||||||
|
options: {
|
||||||
|
banner: '<%= banner %>',
|
||||||
|
linebreak: false
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
src: [
|
||||||
|
'dist/<%= pkg.name %>.js',
|
||||||
|
'dist/assets/*.css'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
uglify: {
|
||||||
|
options: {
|
||||||
|
banner: '<%= banner %>'
|
||||||
|
},
|
||||||
|
dist: {
|
||||||
|
files: {
|
||||||
|
'dist/<%= pkg.name %>.min.js': 'dist/<%= pkg.name %>.js'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// copy
|
||||||
|
copy: {
|
||||||
|
distImages: {
|
||||||
|
expand: true,
|
||||||
|
flatten: true,
|
||||||
|
cwd: 'src/',
|
||||||
|
src: [ 'img/*.*' ],
|
||||||
|
dest: 'dist/assets'
|
||||||
|
},
|
||||||
|
|
||||||
|
distToDocs: {
|
||||||
|
expand: true,
|
||||||
|
cwd: 'dist/',
|
||||||
|
src: [ '**/*.*' ],
|
||||||
|
dest: '<%= app.docs.dest %>/assets/owlcarousel'
|
||||||
|
},
|
||||||
|
|
||||||
|
srcToDocs: {
|
||||||
|
expand: true,
|
||||||
|
cwd: 'src/js',
|
||||||
|
src: [ '**/*.js' ],
|
||||||
|
dest: '<%= app.docs.dest %>/assets/owlcarousel/src'
|
||||||
|
},
|
||||||
|
|
||||||
|
docsAssets: {
|
||||||
|
expand: true,
|
||||||
|
cwd: '<%= app.docs.src %>/assets/',
|
||||||
|
src: [ 'css/*.css', 'vendors/*.js', 'vendors/*.map', 'img/*.*', 'js/*.*' ],
|
||||||
|
dest: '<%= app.docs.dest %>/assets/'
|
||||||
|
},
|
||||||
|
|
||||||
|
readme: {
|
||||||
|
files: [ {
|
||||||
|
'dist/LICENSE': 'LICENSE',
|
||||||
|
'dist/README.md': 'README.md'
|
||||||
|
} ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// connect
|
||||||
|
connect: {
|
||||||
|
options: {
|
||||||
|
port: 9600,
|
||||||
|
open: true,
|
||||||
|
livereload: true,
|
||||||
|
hostname: 'localhost'
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
options: {
|
||||||
|
base: "<%= app.docs.dest %>"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// watch
|
||||||
|
watch: {
|
||||||
|
options: {
|
||||||
|
livereload: true
|
||||||
|
},
|
||||||
|
templatesDocs: {
|
||||||
|
files: [ '<%= app.docs.templates %>/**/*.hbs' ],
|
||||||
|
tasks: [ 'assemble' ]
|
||||||
|
},
|
||||||
|
sassDocs: {
|
||||||
|
files: [ '<%= app.docs.src %>/assets/**/*.scss' ],
|
||||||
|
tasks: [ 'sass:docs' ]
|
||||||
|
},
|
||||||
|
sass: {
|
||||||
|
files: [ 'src/**/*.scss' ],
|
||||||
|
tasks: [ 'sass:dist', 'cssmin:dist', 'usebanner:dist', 'copy:distToDocs' ]
|
||||||
|
},
|
||||||
|
jsDocs: {
|
||||||
|
files: [ '<%= app.docs.src %>/assets/**/*.js' ],
|
||||||
|
tasks: [ 'copy:docsAssets' ]
|
||||||
|
},
|
||||||
|
js: {
|
||||||
|
files: [ 'src/**/*.js' ],
|
||||||
|
tasks: [ 'jscs:dist', 'jshint:dist', 'qunit:dist', 'concat:dist', 'uglify:dist', 'usebanner:dist', 'copy:distToDocs', 'copy:srcToDocs' ]
|
||||||
|
},
|
||||||
|
helpersDocs: {
|
||||||
|
files: [ '<%= app.docs.src %>/helpers/*.js' ],
|
||||||
|
tasks: [ 'assemble' ]
|
||||||
|
},
|
||||||
|
test: {
|
||||||
|
files: [ 'test/*.html', 'test/unit/*.js' ],
|
||||||
|
tasks: [ 'qunit:dist' ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// compress zip
|
||||||
|
compress: {
|
||||||
|
zip: {
|
||||||
|
options: {
|
||||||
|
archive: 'docs/download/owl.carousel.<%= pkg.version %>.zip'
|
||||||
|
},
|
||||||
|
files: [ {
|
||||||
|
expand: true,
|
||||||
|
cwd: 'dist/',
|
||||||
|
src: [ '**' ],
|
||||||
|
dest: 'owl.carousel.<%= pkg.version %>'
|
||||||
|
} ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// publish to github pages
|
||||||
|
'gh-pages': {
|
||||||
|
options: {
|
||||||
|
base: 'docs'
|
||||||
|
},
|
||||||
|
src: '**/*'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('assemble');
|
||||||
|
|
||||||
|
// tasks
|
||||||
|
grunt.registerTask('dist', [ 'clean:dist', 'sass:dist', 'autoprefixer', 'concat:dist', 'cssmin:dist', 'copy:distImages', 'usebanner:dist', 'uglify:dist', 'copy:readme' ]);
|
||||||
|
|
||||||
|
grunt.registerTask('docs', [ 'dist', 'clean:docs', 'assemble', 'sass:docs', 'copy:docsAssets', 'copy:distToDocs', 'zip' ]);
|
||||||
|
|
||||||
|
grunt.registerTask('test', [ 'jshint:dist', 'qunit:dist', 'jscs:dist' ]);
|
||||||
|
|
||||||
|
grunt.registerTask('default', [ 'dist', 'docs', 'test' ]);
|
||||||
|
|
||||||
|
grunt.registerTask('serve', [ 'connect:docs', 'watch' ]);
|
||||||
|
|
||||||
|
grunt.registerTask('zip', [ 'compress' ]);
|
||||||
|
|
||||||
|
grunt.registerTask('deploy', [ 'docs', 'gh-pages' ]);
|
||||||
|
|
||||||
|
};
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
### A summary of the issue and the browser/OS environment in which it occurs. If suitable, include the steps required to reproduce the bug.>
|
||||||
|
1. This is the first step
|
||||||
|
2. This is the second step
|
||||||
|
3. Further steps, etc.
|
||||||
|
|
||||||
|
_____________
|
||||||
|
### `<url>` - a link to the reduced test case. You can use one of the following services:
|
||||||
|
- https://codepen.io/anon/pen/prvbMp
|
||||||
|
- https://jsfiddle.net/h8x8bvn9/2/)
|
||||||
|
- https://jsbin.com/bojonaceve/2/edit?html,js,output
|
||||||
|
|
||||||
|
_____________
|
||||||
|
### Any other information you want to share that is relevant to the issue being reported.
|
||||||
|
This might include the lines of code that you have identified as causing the bug, and potential solutions (and your opinions on their merits).
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
Copyright (c) 2014 Owl
|
||||||
|
Modified work Copyright 2016-2018 David Deutsch
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person
|
||||||
|
obtaining a copy of this software and associated documentation
|
||||||
|
files (the "Software"), to deal in the Software without
|
||||||
|
restriction, including without limitation the rights to use,
|
||||||
|
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the
|
||||||
|
Software is furnished to do so, subject to the following
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||||
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
# Owl Carousel 2
|
||||||
|
|
||||||
|
Touch enabled [jQuery](https://jquery.com/) plugin that lets you create a beautiful, responsive carousel slider. **To get started, check out https://owlcarousel2.github.io/OwlCarousel2/.**
|
||||||
|
|
||||||
|
**Notice:** The old Owl Carousel site (owlgraphic [dot] com) is no longer in use. Please delete all references to this in bookmarks and your own products' documentation as it's being used for malicious purposes.
|
||||||
|
|
||||||
|
## Quick start
|
||||||
|
|
||||||
|
### Install
|
||||||
|
|
||||||
|
This package can be installed with:
|
||||||
|
|
||||||
|
- [npm](https://www.npmjs.com/package/owl.carousel): `npm install --save owl.carousel` or `yarn add owl.carousel jquery`
|
||||||
|
- [bower](http://bower.io/search/?q=owl.carousel): `bower install --save owl.carousel`
|
||||||
|
|
||||||
|
Or download the [latest release](https://github.com/OwlCarousel2/OwlCarousel2/releases).
|
||||||
|
|
||||||
|
### Load
|
||||||
|
|
||||||
|
#### Webpack
|
||||||
|
|
||||||
|
Add jQuery via the "webpack.ProvidePlugin" to your webpack configuration:
|
||||||
|
|
||||||
|
const webpack = require('webpack');
|
||||||
|
|
||||||
|
//...
|
||||||
|
plugins: [
|
||||||
|
new webpack.ProvidePlugin({
|
||||||
|
$: 'jquery',
|
||||||
|
jQuery: 'jquery',
|
||||||
|
'window.jQuery': 'jquery'
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
//...
|
||||||
|
|
||||||
|
Load the required stylesheet and JS:
|
||||||
|
|
||||||
|
```js
|
||||||
|
import 'owl.carousel/dist/assets/owl.carousel.css';
|
||||||
|
import 'owl.carousel';
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Static HTML
|
||||||
|
|
||||||
|
Put the required stylesheet at the [top](https://developer.yahoo.com/performance/rules.html#css_top) of your markup:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<link rel="stylesheet" href="/node_modules/owl.carousel/dist/assets/owl.carousel.min.css" />
|
||||||
|
```
|
||||||
|
|
||||||
|
```html
|
||||||
|
<link rel="stylesheet" href="/bower_components/owl.carousel/dist/assets/owl.carousel.min.css" />
|
||||||
|
```
|
||||||
|
|
||||||
|
**NOTE:** If you want to use the default navigation styles, you will also need to include `owl.theme.default.css`.
|
||||||
|
|
||||||
|
|
||||||
|
Put the script at the [bottom](https://developer.yahoo.com/performance/rules.html#js_bottom) of your markup right after jQuery:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/node_modules/jquery/dist/jquery.js"></script>
|
||||||
|
<script src="/node_modules/owl.carousel/dist/owl.carousel.min.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/bower_components/jquery/dist/jquery.js"></script>
|
||||||
|
<script src="/bower_components/owl.carousel/dist/owl.carousel.min.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
Wrap your items (`div`, `a`, `img`, `span`, `li` etc.) with a container element (`div`, `ul` etc.). Only the class `owl-carousel` is mandatory to apply proper styles:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
**NOTE:** The `owl-theme` class is optional, but without it, you will need to style navigation features on your own.
|
||||||
|
|
||||||
|
|
||||||
|
Call the [plugin](https://learn.jquery.com/plugins/) function and your carousel is ready.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('.owl-carousel').owlCarousel();
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
The documentation, included in this repo in the root directory, is built with [Assemble](http://assemble.io/) and publicly available at https://owlcarousel2.github.io/OwlCarousel2/. The documentation may also be run locally.
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
This package comes with [Grunt](http://gruntjs.com/) and [Bower](http://bower.io/). The following tasks are available:
|
||||||
|
|
||||||
|
* `default` compiles the CSS and JS into `/dist` and builds the doc.
|
||||||
|
* `dist` compiles the CSS and JS into `/dist` only.
|
||||||
|
* `watch` watches source files and builds them automatically whenever you save.
|
||||||
|
* `test` runs [JSHint](http://www.jshint.com/) and [QUnit](http://qunitjs.com/) tests headlessly in [PhantomJS](http://phantomjs.org/).
|
||||||
|
|
||||||
|
To define which plugins are build into the distribution just edit `/_config.json` to fit your needs.
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Please read [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||||
|
|
||||||
|
## Roadmap
|
||||||
|
|
||||||
|
Please make sure to check out our [Roadmap Discussion](https://github.com/OwlCarousel2/OwlCarousel2/issues/1756).
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
The code and the documentation are released under the [MIT License](LICENSE).
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
# OwlCarousel 2 Roadmap
|
||||||
|
|
||||||
|
You can discuss the roadmap here: [#1756](https://github.com/OwlCarousel2/OwlCarousel2/issues/1756).
|
||||||
|
|
||||||
|
## 2.3 - bugfixes, repo migration, minor features - current version
|
||||||
|
|
||||||
|
- [x] clean up contributor guides
|
||||||
|
- [x] Work through a bunch of PRs
|
||||||
|
- [x] Various spelling and code style fixes: #1785, #1858, #1856, #1814, #1876, #1838, #1424
|
||||||
|
- [x] [#1883](https://github.com/OwlCarousel2/OwlCarousel2/pull/1883) Fix infinite loop
|
||||||
|
- [x] [#1900](https://github.com/OwlCarousel2/OwlCarousel2/pull/1900) Add repository info to package.json
|
||||||
|
- [x] [#1770](https://github.com/OwlCarousel2/OwlCarousel2/pull/1770) Allow package file to expose CSS
|
||||||
|
- [x] [#1077](https://github.com/OwlCarousel2/OwlCarousel2/pull/1077) .center class hangs around when responsive options
|
||||||
|
- [x] [#1978](https://github.com/OwlCarousel2/OwlCarousel2/pull/1978) - Fix empty child auto width
|
||||||
|
- [x] [#1942](https://github.com/OwlCarousel2/OwlCarousel2/pull/1942) - Improving autoplay behavior
|
||||||
|
- [x] [#1915](https://github.com/OwlCarousel2/OwlCarousel2/pull/1915) - Fixing: [#1750](https://github.com/OwlCarousel2/OwlCarousel2/issues/1750) Passive event listeners, chrome and touch events
|
||||||
|
- [x] [#1704](https://github.com/OwlCarousel2/OwlCarousel2/issues/1704) - viewport width detection
|
||||||
|
- [ ] [#1717](https://github.com/OwlCarousel2/OwlCarousel2/issues/1717) - keyboard control
|
||||||
|
- [ ] update progress in [#1538](https://github.com/OwlCarousel2/OwlCarousel2/issues/1538)
|
||||||
|
|
||||||
|
## 2.4 - finish up build pipeline, docs
|
||||||
|
|
||||||
|
- [ ] move repo to company account (https://github.com/medienpark)
|
||||||
|
- [ ] [#1330](https://github.com/OwlCarousel2/OwlCarousel2/issues/1330) - finish moving to gulp
|
||||||
|
- [ ] ditto for moving to assemble for docs
|
||||||
|
- [ ] [#1666](https://github.com/OwlCarousel2/OwlCarousel2/issues/1666) - RTL center mode
|
||||||
|
- [ ] [#1613](https://github.com/OwlCarousel2/OwlCarousel2/issues/1613) - generic plugin integration
|
||||||
|
- [ ] [#1602](https://github.com/OwlCarousel2/OwlCarousel2/issues/1602) - CSS transitions fail except for default
|
||||||
|
|
||||||
|
## 2.5 - cloning & worker cleanup
|
||||||
|
|
||||||
|
- [ ] worker cleanup
|
||||||
|
- [ ] clone computation fix (and provide consistent access to slides)
|
||||||
|
- [ ] [#1575](https://github.com/OwlCarousel2/OwlCarousel2/issues/1575) & [#1621](https://github.com/OwlCarousel2/OwlCarousel2/issues/1621) - AutoHeight fixes
|
||||||
|
- [ ] [#1511](https://github.com/OwlCarousel2/OwlCarousel2/issues/1511) - do not disable nav when center = true & length == items
|
||||||
|
|
||||||
|
## 2.6 - cleanup, code style, repo cleanup
|
||||||
|
|
||||||
|
- [ ] clean up code ToDos
|
||||||
|
- [ ] fix code style
|
||||||
|
- [ ] check whether we want to support velocity.js (at least optionally)
|
||||||
|
- [ ] close not-yet-tagged issues older than 8 month
|
||||||
|
- [ ] [#1518](https://github.com/OwlCarousel2/OwlCarousel2/issues/1518) - slide change event issues (not cancelling events etc.)
|
||||||
|
- [ ] [#1563](https://github.com/OwlCarousel2/OwlCarousel2/issues/1563) - slide offset on last if loop = false
|
||||||
|
- [ ] [#1633](https://github.com/OwlCarousel2/OwlCarousel2/issues/1633) & [#1627](https://github.com/OwlCarousel2/OwlCarousel2/issues/1627) - (merged items) swipe/autoplay (mostly testing whether the worker/clone fixes in 2.5 solved this)
|
||||||
|
|
||||||
|
## 2.7 - bugfixes & final, "LTS" 2.x release
|
||||||
|
|
||||||
|
- [ ] [#1647](https://github.com/OwlCarousel2/OwlCarousel2/issues/1647) - 1px from prev. slide on current
|
||||||
|
- [ ] [#1523](https://github.com/OwlCarousel2/OwlCarousel2/issues/1523) - autoplay vs. video autoplay issue
|
||||||
|
- [ ] [#1343](https://github.com/OwlCarousel2/OwlCarousel2/issues/1343) - timeout per slide
|
||||||
|
|
||||||
|
## 3.0 - Typescript, additional plugins, breaking changes
|
||||||
|
|
||||||
|
- [ ] TypeScript refactoring
|
||||||
|
- [ ] remove css-mimicking settings (such as margins) and use CSS instead
|
||||||
|
- [ ] overlay plugin (to support overlay transitions etc.)
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"docs":{
|
||||||
|
"src": "docs_src",
|
||||||
|
"dest": "docs",
|
||||||
|
"templates":"<%= app.docs.src %>/templates",
|
||||||
|
"pages": "<%= app.docs.templates %>/pages",
|
||||||
|
"layouts": "<%= app.docs.templates %>/layouts"
|
||||||
|
},
|
||||||
|
|
||||||
|
"src":{
|
||||||
|
"dist": "dist",
|
||||||
|
|
||||||
|
"scripts": [
|
||||||
|
"src/js/owl.carousel.js",
|
||||||
|
"src/js/owl.autorefresh.js",
|
||||||
|
"src/js/owl.lazyload.js",
|
||||||
|
"src/js/owl.autoheight.js",
|
||||||
|
"src/js/owl.video.js",
|
||||||
|
"src/js/owl.animate.js",
|
||||||
|
"src/js/owl.autoplay.js",
|
||||||
|
"src/js/owl.navigation.js",
|
||||||
|
"src/js/owl.hash.js",
|
||||||
|
"src/js/owl.support.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"title": "Owl Carousel",
|
||||||
|
"download": "https://github.com/OwlCarousel2/OwlCarousel2/archive/master.zip",
|
||||||
|
"donate": "https://www.paypal.com"
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"name": "owl.carousel",
|
||||||
|
"version": "2.3.4",
|
||||||
|
"main": [
|
||||||
|
"dist/owl.carousel.js",
|
||||||
|
"dist/assets/owl.carousel.css",
|
||||||
|
"dist/assets/owl.theme.default.css"
|
||||||
|
],
|
||||||
|
"ignore": [],
|
||||||
|
"dependencies": {
|
||||||
|
"jquery": ">= 1.8.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
Copyright (c) 2014 Owl
|
||||||
|
Modified work Copyright 2016-2018 David Deutsch
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person
|
||||||
|
obtaining a copy of this software and associated documentation
|
||||||
|
files (the "Software"), to deal in the Software without
|
||||||
|
restriction, including without limitation the rights to use,
|
||||||
|
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the
|
||||||
|
Software is furnished to do so, subject to the following
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||||
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
# Owl Carousel 2
|
||||||
|
|
||||||
|
Touch enabled [jQuery](https://jquery.com/) plugin that lets you create a beautiful, responsive carousel slider. **To get started, check out https://owlcarousel2.github.io/OwlCarousel2/.**
|
||||||
|
|
||||||
|
**Notice:** The old Owl Carousel site (owlgraphic [dot] com) is no longer in use. Please delete all references to this in bookmarks and your own products' documentation as it's being used for malicious purposes.
|
||||||
|
|
||||||
|
## Quick start
|
||||||
|
|
||||||
|
### Install
|
||||||
|
|
||||||
|
This package can be installed with:
|
||||||
|
|
||||||
|
- [npm](https://www.npmjs.com/package/owl.carousel): `npm install --save owl.carousel` or `yarn add owl.carousel jquery`
|
||||||
|
- [bower](http://bower.io/search/?q=owl.carousel): `bower install --save owl.carousel`
|
||||||
|
|
||||||
|
Or download the [latest release](https://github.com/OwlCarousel2/OwlCarousel2/releases).
|
||||||
|
|
||||||
|
### Load
|
||||||
|
|
||||||
|
#### Webpack
|
||||||
|
|
||||||
|
Add jQuery via the "webpack.ProvidePlugin" to your webpack configuration:
|
||||||
|
|
||||||
|
const webpack = require('webpack');
|
||||||
|
|
||||||
|
//...
|
||||||
|
plugins: [
|
||||||
|
new webpack.ProvidePlugin({
|
||||||
|
$: 'jquery',
|
||||||
|
jQuery: 'jquery',
|
||||||
|
'window.jQuery': 'jquery'
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
//...
|
||||||
|
|
||||||
|
Load the required stylesheet and JS:
|
||||||
|
|
||||||
|
```js
|
||||||
|
import 'owl.carousel/dist/assets/owl.carousel.css';
|
||||||
|
import 'owl.carousel';
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Static HTML
|
||||||
|
|
||||||
|
Put the required stylesheet at the [top](https://developer.yahoo.com/performance/rules.html#css_top) of your markup:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<link rel="stylesheet" href="/node_modules/owl.carousel/dist/assets/owl.carousel.min.css" />
|
||||||
|
```
|
||||||
|
|
||||||
|
```html
|
||||||
|
<link rel="stylesheet" href="/bower_components/owl.carousel/dist/assets/owl.carousel.min.css" />
|
||||||
|
```
|
||||||
|
|
||||||
|
**NOTE:** If you want to use the default navigation styles, you will also need to include `owl.theme.default.css`.
|
||||||
|
|
||||||
|
|
||||||
|
Put the script at the [bottom](https://developer.yahoo.com/performance/rules.html#js_bottom) of your markup right after jQuery:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/node_modules/jquery/dist/jquery.js"></script>
|
||||||
|
<script src="/node_modules/owl.carousel/dist/owl.carousel.min.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/bower_components/jquery/dist/jquery.js"></script>
|
||||||
|
<script src="/bower_components/owl.carousel/dist/owl.carousel.min.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
Wrap your items (`div`, `a`, `img`, `span`, `li` etc.) with a container element (`div`, `ul` etc.). Only the class `owl-carousel` is mandatory to apply proper styles:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
**NOTE:** The `owl-theme` class is optional, but without it, you will need to style navigation features on your own.
|
||||||
|
|
||||||
|
|
||||||
|
Call the [plugin](https://learn.jquery.com/plugins/) function and your carousel is ready.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('.owl-carousel').owlCarousel();
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
The documentation, included in this repo in the root directory, is built with [Assemble](http://assemble.io/) and publicly available at https://owlcarousel2.github.io/OwlCarousel2/. The documentation may also be run locally.
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
This package comes with [Grunt](http://gruntjs.com/) and [Bower](http://bower.io/). The following tasks are available:
|
||||||
|
|
||||||
|
* `default` compiles the CSS and JS into `/dist` and builds the doc.
|
||||||
|
* `dist` compiles the CSS and JS into `/dist` only.
|
||||||
|
* `watch` watches source files and builds them automatically whenever you save.
|
||||||
|
* `test` runs [JSHint](http://www.jshint.com/) and [QUnit](http://qunitjs.com/) tests headlessly in [PhantomJS](http://phantomjs.org/).
|
||||||
|
|
||||||
|
To define which plugins are build into the distribution just edit `/_config.json` to fit your needs.
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Please read [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||||
|
|
||||||
|
## Roadmap
|
||||||
|
|
||||||
|
Please make sure to check out our [Roadmap Discussion](https://github.com/OwlCarousel2/OwlCarousel2/issues/1756).
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
The code and the documentation are released under the [MIT License](LICENSE).
|
||||||
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,186 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* Owl Carousel - Core
|
||||||
|
*/
|
||||||
|
.owl-carousel {
|
||||||
|
display: none;
|
||||||
|
width: 100%;
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
/* position relative and z-index fix webkit rendering fonts issue */
|
||||||
|
position: relative;
|
||||||
|
z-index: 1; }
|
||||||
|
.owl-carousel .owl-stage {
|
||||||
|
position: relative;
|
||||||
|
-ms-touch-action: pan-Y;
|
||||||
|
touch-action: manipulation;
|
||||||
|
-moz-backface-visibility: hidden;
|
||||||
|
/* fix firefox animation glitch */ }
|
||||||
|
.owl-carousel .owl-stage:after {
|
||||||
|
content: ".";
|
||||||
|
display: block;
|
||||||
|
clear: both;
|
||||||
|
visibility: hidden;
|
||||||
|
line-height: 0;
|
||||||
|
height: 0; }
|
||||||
|
.owl-carousel .owl-stage-outer {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
/* fix for flashing background */
|
||||||
|
-webkit-transform: translate3d(0px, 0px, 0px); }
|
||||||
|
.owl-carousel .owl-wrapper,
|
||||||
|
.owl-carousel .owl-item {
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
-moz-backface-visibility: hidden;
|
||||||
|
-ms-backface-visibility: hidden;
|
||||||
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
|
-moz-transform: translate3d(0, 0, 0);
|
||||||
|
-ms-transform: translate3d(0, 0, 0); }
|
||||||
|
.owl-carousel .owl-item {
|
||||||
|
position: relative;
|
||||||
|
min-height: 1px;
|
||||||
|
float: left;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
-webkit-touch-callout: none; }
|
||||||
|
.owl-carousel .owl-item img {
|
||||||
|
display: block;
|
||||||
|
width: 100%; }
|
||||||
|
.owl-carousel .owl-nav.disabled,
|
||||||
|
.owl-carousel .owl-dots.disabled {
|
||||||
|
display: none; }
|
||||||
|
.owl-carousel .owl-nav .owl-prev,
|
||||||
|
.owl-carousel .owl-nav .owl-next,
|
||||||
|
.owl-carousel .owl-dot {
|
||||||
|
cursor: pointer;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none; }
|
||||||
|
.owl-carousel .owl-nav button.owl-prev,
|
||||||
|
.owl-carousel .owl-nav button.owl-next,
|
||||||
|
.owl-carousel button.owl-dot {
|
||||||
|
background: none;
|
||||||
|
color: inherit;
|
||||||
|
border: none;
|
||||||
|
padding: 0 !important;
|
||||||
|
font: inherit; }
|
||||||
|
.owl-carousel.owl-loaded {
|
||||||
|
display: block; }
|
||||||
|
.owl-carousel.owl-loading {
|
||||||
|
opacity: 0;
|
||||||
|
display: block; }
|
||||||
|
.owl-carousel.owl-hidden {
|
||||||
|
opacity: 0; }
|
||||||
|
.owl-carousel.owl-refresh .owl-item {
|
||||||
|
visibility: hidden; }
|
||||||
|
.owl-carousel.owl-drag .owl-item {
|
||||||
|
-ms-touch-action: pan-y;
|
||||||
|
touch-action: pan-y;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none; }
|
||||||
|
.owl-carousel.owl-grab {
|
||||||
|
cursor: move;
|
||||||
|
cursor: grab; }
|
||||||
|
.owl-carousel.owl-rtl {
|
||||||
|
direction: rtl; }
|
||||||
|
.owl-carousel.owl-rtl .owl-item {
|
||||||
|
float: right; }
|
||||||
|
|
||||||
|
/* No Js */
|
||||||
|
.no-js .owl-carousel {
|
||||||
|
display: block; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Owl Carousel - Animate Plugin
|
||||||
|
*/
|
||||||
|
.owl-carousel .animated {
|
||||||
|
animation-duration: 1000ms;
|
||||||
|
animation-fill-mode: both; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-animated-in {
|
||||||
|
z-index: 0; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-animated-out {
|
||||||
|
z-index: 1; }
|
||||||
|
|
||||||
|
.owl-carousel .fadeOut {
|
||||||
|
animation-name: fadeOut; }
|
||||||
|
|
||||||
|
@keyframes fadeOut {
|
||||||
|
0% {
|
||||||
|
opacity: 1; }
|
||||||
|
100% {
|
||||||
|
opacity: 0; } }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Owl Carousel - Auto Height Plugin
|
||||||
|
*/
|
||||||
|
.owl-height {
|
||||||
|
transition: height 500ms ease-in-out; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Owl Carousel - Lazy Load Plugin
|
||||||
|
*/
|
||||||
|
.owl-carousel .owl-item {
|
||||||
|
/**
|
||||||
|
This is introduced due to a bug in IE11 where lazy loading combined with autoheight plugin causes a wrong
|
||||||
|
calculation of the height of the owl-item that breaks page layouts
|
||||||
|
*/ }
|
||||||
|
.owl-carousel .owl-item .owl-lazy {
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 400ms ease; }
|
||||||
|
.owl-carousel .owl-item .owl-lazy[src^=""], .owl-carousel .owl-item .owl-lazy:not([src]) {
|
||||||
|
max-height: 0; }
|
||||||
|
.owl-carousel .owl-item img.owl-lazy {
|
||||||
|
transform-style: preserve-3d; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Owl Carousel - Video Plugin
|
||||||
|
*/
|
||||||
|
.owl-carousel .owl-video-wrapper {
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
background: #000; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-video-play-icon {
|
||||||
|
position: absolute;
|
||||||
|
height: 80px;
|
||||||
|
width: 80px;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
margin-left: -40px;
|
||||||
|
margin-top: -40px;
|
||||||
|
background: url("owl.video.play.png") no-repeat;
|
||||||
|
cursor: pointer;
|
||||||
|
z-index: 1;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
transition: transform 100ms ease; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-video-play-icon:hover {
|
||||||
|
-ms-transform: scale(1.3, 1.3);
|
||||||
|
transform: scale(1.3, 1.3); }
|
||||||
|
|
||||||
|
.owl-carousel .owl-video-playing .owl-video-tn,
|
||||||
|
.owl-carousel .owl-video-playing .owl-video-play-icon {
|
||||||
|
display: none; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-video-tn {
|
||||||
|
opacity: 0;
|
||||||
|
height: 100%;
|
||||||
|
background-position: center center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
transition: opacity 400ms ease; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-video-frame {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%; }
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* Default theme - Owl Carousel CSS File
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-nav {
|
||||||
|
margin-top: 10px;
|
||||||
|
text-align: center;
|
||||||
|
-webkit-tap-highlight-color: transparent; }
|
||||||
|
.owl-theme .owl-nav [class*='owl-'] {
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 4px 7px;
|
||||||
|
background: #D6D6D6;
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 3px; }
|
||||||
|
.owl-theme .owl-nav [class*='owl-']:hover {
|
||||||
|
background: #869791;
|
||||||
|
color: #FFF;
|
||||||
|
text-decoration: none; }
|
||||||
|
.owl-theme .owl-nav .disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
cursor: default; }
|
||||||
|
|
||||||
|
.owl-theme .owl-nav.disabled + .owl-dots {
|
||||||
|
margin-top: 10px; }
|
||||||
|
|
||||||
|
.owl-theme .owl-dots {
|
||||||
|
text-align: center;
|
||||||
|
-webkit-tap-highlight-color: transparent; }
|
||||||
|
.owl-theme .owl-dots .owl-dot {
|
||||||
|
display: inline-block;
|
||||||
|
zoom: 1;
|
||||||
|
*display: inline; }
|
||||||
|
.owl-theme .owl-dots .owl-dot span {
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
margin: 5px 7px;
|
||||||
|
background: #D6D6D6;
|
||||||
|
display: block;
|
||||||
|
-webkit-backface-visibility: visible;
|
||||||
|
transition: opacity 200ms ease;
|
||||||
|
border-radius: 30px; }
|
||||||
|
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
|
||||||
|
background: #869791; }
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* Green theme - Owl Carousel CSS File
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-nav {
|
||||||
|
margin-top: 10px;
|
||||||
|
text-align: center;
|
||||||
|
-webkit-tap-highlight-color: transparent; }
|
||||||
|
.owl-theme .owl-nav [class*='owl-'] {
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 4px 7px;
|
||||||
|
background: #D6D6D6;
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 3px; }
|
||||||
|
.owl-theme .owl-nav [class*='owl-']:hover {
|
||||||
|
background: #4DC7A0;
|
||||||
|
color: #FFF;
|
||||||
|
text-decoration: none; }
|
||||||
|
.owl-theme .owl-nav .disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
cursor: default; }
|
||||||
|
|
||||||
|
.owl-theme .owl-nav.disabled + .owl-dots {
|
||||||
|
margin-top: 10px; }
|
||||||
|
|
||||||
|
.owl-theme .owl-dots {
|
||||||
|
text-align: center;
|
||||||
|
-webkit-tap-highlight-color: transparent; }
|
||||||
|
.owl-theme .owl-dots .owl-dot {
|
||||||
|
display: inline-block;
|
||||||
|
zoom: 1;
|
||||||
|
*display: inline; }
|
||||||
|
.owl-theme .owl-dots .owl-dot span {
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
margin: 5px 7px;
|
||||||
|
background: #D6D6D6;
|
||||||
|
display: block;
|
||||||
|
-webkit-backface-visibility: visible;
|
||||||
|
transition: opacity 200ms ease;
|
||||||
|
border-radius: 30px; }
|
||||||
|
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
|
||||||
|
background: #4DC7A0; }
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#4DC7A0;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#4DC7A0}
|
||||||
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
@@ -0,0 +1,32 @@
|
|||||||
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
// responsive nav
|
||||||
|
var responsiveNav = $('#toggle-nav');
|
||||||
|
var navBar = $('.nav-bar');
|
||||||
|
|
||||||
|
responsiveNav.on('click',function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
console.log(navBar);
|
||||||
|
navBar.toggleClass('active')
|
||||||
|
});
|
||||||
|
|
||||||
|
// pseudo active
|
||||||
|
if($('#docs').length){
|
||||||
|
var sidenav = $('ul.side-nav').find('a');
|
||||||
|
var url = window.location.pathname.split( '/' );
|
||||||
|
var url = url[url.length-1];
|
||||||
|
|
||||||
|
sidenav.each(function(i,e){
|
||||||
|
var active = $(e).attr('href');
|
||||||
|
|
||||||
|
if(active === url){
|
||||||
|
$(e).parent('li').addClass('active');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
hljs.configure({tabReplace: ' '});
|
||||||
|
hljs.initHighlightingOnLoad();
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
# Owl Carousel 2
|
||||||
|
|
||||||
|
Touch enabled [jQuery](https://jquery.com/) plugin that lets you create a beautiful, responsive carousel slider. **To get started, check out https://owlcarousel2.github.io/OwlCarousel2/.**
|
||||||
|
|
||||||
|
**Notice:** The old Owl Carousel site (owlgraphic [dot] com) is no longer in use. Please delete all references to this in bookmarks and your own products' documentation as it's being used for malicious purposes.
|
||||||
|
|
||||||
|
## Quick start
|
||||||
|
|
||||||
|
### Install
|
||||||
|
|
||||||
|
This package can be installed with:
|
||||||
|
|
||||||
|
- [npm](https://www.npmjs.com/package/owl.carousel): `npm install --save owl.carousel` or `yarn add owl.carousel jquery`
|
||||||
|
- [bower](http://bower.io/search/?q=owl.carousel): `bower install --save owl.carousel`
|
||||||
|
|
||||||
|
Or download the [latest release](https://github.com/OwlCarousel2/OwlCarousel2/releases).
|
||||||
|
|
||||||
|
### Load
|
||||||
|
|
||||||
|
#### Webpack
|
||||||
|
|
||||||
|
Add jQuery via the "webpack.ProvidePlugin" to your webpack configuration:
|
||||||
|
|
||||||
|
const webpack = require('webpack');
|
||||||
|
|
||||||
|
//...
|
||||||
|
plugins: [
|
||||||
|
new webpack.ProvidePlugin({
|
||||||
|
$: 'jquery',
|
||||||
|
jQuery: 'jquery',
|
||||||
|
'window.jQuery': 'jquery'
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
//...
|
||||||
|
|
||||||
|
Load the required stylesheet and JS:
|
||||||
|
|
||||||
|
```js
|
||||||
|
import 'owl.carousel/dist/assets/owl.carousel.css';
|
||||||
|
import 'owl.carousel';
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Static HTML
|
||||||
|
|
||||||
|
Put the required stylesheet at the [top](https://developer.yahoo.com/performance/rules.html#css_top) of your markup:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<link rel="stylesheet" href="/node_modules/owl.carousel/dist/assets/owl.carousel.min.css" />
|
||||||
|
```
|
||||||
|
|
||||||
|
```html
|
||||||
|
<link rel="stylesheet" href="/bower_components/owl.carousel/dist/assets/owl.carousel.min.css" />
|
||||||
|
```
|
||||||
|
|
||||||
|
**NOTE:** If you want to use the default navigation styles, you will also need to include `owl.theme.default.css`.
|
||||||
|
|
||||||
|
|
||||||
|
Put the script at the [bottom](https://developer.yahoo.com/performance/rules.html#js_bottom) of your markup right after jQuery:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/node_modules/jquery/dist/jquery.js"></script>
|
||||||
|
<script src="/node_modules/owl.carousel/dist/owl.carousel.min.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/bower_components/jquery/dist/jquery.js"></script>
|
||||||
|
<script src="/bower_components/owl.carousel/dist/owl.carousel.min.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
Wrap your items (`div`, `a`, `img`, `span`, `li` etc.) with a container element (`div`, `ul` etc.). Only the class `owl-carousel` is mandatory to apply proper styles:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
<div> Your Content </div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
**NOTE:** The `owl-theme` class is optional, but without it, you will need to style navigation features on your own.
|
||||||
|
|
||||||
|
|
||||||
|
Call the [plugin](https://learn.jquery.com/plugins/) function and your carousel is ready.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('.owl-carousel').owlCarousel();
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
The documentation, included in this repo in the root directory, is built with [Assemble](http://assemble.io/) and publicly available at https://owlcarousel2.github.io/OwlCarousel2/. The documentation may also be run locally.
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
This package comes with [Grunt](http://gruntjs.com/) and [Bower](http://bower.io/). The following tasks are available:
|
||||||
|
|
||||||
|
* `default` compiles the CSS and JS into `/dist` and builds the doc.
|
||||||
|
* `dist` compiles the CSS and JS into `/dist` only.
|
||||||
|
* `watch` watches source files and builds them automatically whenever you save.
|
||||||
|
* `test` runs [JSHint](http://www.jshint.com/) and [QUnit](http://qunitjs.com/) tests headlessly in [PhantomJS](http://phantomjs.org/).
|
||||||
|
|
||||||
|
To define which plugins are build into the distribution just edit `/_config.json` to fit your needs.
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Please read [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||||
|
|
||||||
|
## Roadmap
|
||||||
|
|
||||||
|
Please make sure to check out our [Roadmap Discussion](https://github.com/OwlCarousel2/OwlCarousel2/issues/1756).
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
The code and the documentation are released under the [MIT License](LICENSE).
|
||||||
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,186 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* Owl Carousel - Core
|
||||||
|
*/
|
||||||
|
.owl-carousel {
|
||||||
|
display: none;
|
||||||
|
width: 100%;
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
/* position relative and z-index fix webkit rendering fonts issue */
|
||||||
|
position: relative;
|
||||||
|
z-index: 1; }
|
||||||
|
.owl-carousel .owl-stage {
|
||||||
|
position: relative;
|
||||||
|
-ms-touch-action: pan-Y;
|
||||||
|
touch-action: manipulation;
|
||||||
|
-moz-backface-visibility: hidden;
|
||||||
|
/* fix firefox animation glitch */ }
|
||||||
|
.owl-carousel .owl-stage:after {
|
||||||
|
content: ".";
|
||||||
|
display: block;
|
||||||
|
clear: both;
|
||||||
|
visibility: hidden;
|
||||||
|
line-height: 0;
|
||||||
|
height: 0; }
|
||||||
|
.owl-carousel .owl-stage-outer {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
/* fix for flashing background */
|
||||||
|
-webkit-transform: translate3d(0px, 0px, 0px); }
|
||||||
|
.owl-carousel .owl-wrapper,
|
||||||
|
.owl-carousel .owl-item {
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
-moz-backface-visibility: hidden;
|
||||||
|
-ms-backface-visibility: hidden;
|
||||||
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
|
-moz-transform: translate3d(0, 0, 0);
|
||||||
|
-ms-transform: translate3d(0, 0, 0); }
|
||||||
|
.owl-carousel .owl-item {
|
||||||
|
position: relative;
|
||||||
|
min-height: 1px;
|
||||||
|
float: left;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
-webkit-touch-callout: none; }
|
||||||
|
.owl-carousel .owl-item img {
|
||||||
|
display: block;
|
||||||
|
width: 100%; }
|
||||||
|
.owl-carousel .owl-nav.disabled,
|
||||||
|
.owl-carousel .owl-dots.disabled {
|
||||||
|
display: none; }
|
||||||
|
.owl-carousel .owl-nav .owl-prev,
|
||||||
|
.owl-carousel .owl-nav .owl-next,
|
||||||
|
.owl-carousel .owl-dot {
|
||||||
|
cursor: pointer;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none; }
|
||||||
|
.owl-carousel .owl-nav button.owl-prev,
|
||||||
|
.owl-carousel .owl-nav button.owl-next,
|
||||||
|
.owl-carousel button.owl-dot {
|
||||||
|
background: none;
|
||||||
|
color: inherit;
|
||||||
|
border: none;
|
||||||
|
padding: 0 !important;
|
||||||
|
font: inherit; }
|
||||||
|
.owl-carousel.owl-loaded {
|
||||||
|
display: block; }
|
||||||
|
.owl-carousel.owl-loading {
|
||||||
|
opacity: 0;
|
||||||
|
display: block; }
|
||||||
|
.owl-carousel.owl-hidden {
|
||||||
|
opacity: 0; }
|
||||||
|
.owl-carousel.owl-refresh .owl-item {
|
||||||
|
visibility: hidden; }
|
||||||
|
.owl-carousel.owl-drag .owl-item {
|
||||||
|
-ms-touch-action: pan-y;
|
||||||
|
touch-action: pan-y;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none; }
|
||||||
|
.owl-carousel.owl-grab {
|
||||||
|
cursor: move;
|
||||||
|
cursor: grab; }
|
||||||
|
.owl-carousel.owl-rtl {
|
||||||
|
direction: rtl; }
|
||||||
|
.owl-carousel.owl-rtl .owl-item {
|
||||||
|
float: right; }
|
||||||
|
|
||||||
|
/* No Js */
|
||||||
|
.no-js .owl-carousel {
|
||||||
|
display: block; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Owl Carousel - Animate Plugin
|
||||||
|
*/
|
||||||
|
.owl-carousel .animated {
|
||||||
|
animation-duration: 1000ms;
|
||||||
|
animation-fill-mode: both; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-animated-in {
|
||||||
|
z-index: 0; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-animated-out {
|
||||||
|
z-index: 1; }
|
||||||
|
|
||||||
|
.owl-carousel .fadeOut {
|
||||||
|
animation-name: fadeOut; }
|
||||||
|
|
||||||
|
@keyframes fadeOut {
|
||||||
|
0% {
|
||||||
|
opacity: 1; }
|
||||||
|
100% {
|
||||||
|
opacity: 0; } }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Owl Carousel - Auto Height Plugin
|
||||||
|
*/
|
||||||
|
.owl-height {
|
||||||
|
transition: height 500ms ease-in-out; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Owl Carousel - Lazy Load Plugin
|
||||||
|
*/
|
||||||
|
.owl-carousel .owl-item {
|
||||||
|
/**
|
||||||
|
This is introduced due to a bug in IE11 where lazy loading combined with autoheight plugin causes a wrong
|
||||||
|
calculation of the height of the owl-item that breaks page layouts
|
||||||
|
*/ }
|
||||||
|
.owl-carousel .owl-item .owl-lazy {
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 400ms ease; }
|
||||||
|
.owl-carousel .owl-item .owl-lazy[src^=""], .owl-carousel .owl-item .owl-lazy:not([src]) {
|
||||||
|
max-height: 0; }
|
||||||
|
.owl-carousel .owl-item img.owl-lazy {
|
||||||
|
transform-style: preserve-3d; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Owl Carousel - Video Plugin
|
||||||
|
*/
|
||||||
|
.owl-carousel .owl-video-wrapper {
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
background: #000; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-video-play-icon {
|
||||||
|
position: absolute;
|
||||||
|
height: 80px;
|
||||||
|
width: 80px;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
margin-left: -40px;
|
||||||
|
margin-top: -40px;
|
||||||
|
background: url("owl.video.play.png") no-repeat;
|
||||||
|
cursor: pointer;
|
||||||
|
z-index: 1;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
transition: transform 100ms ease; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-video-play-icon:hover {
|
||||||
|
-ms-transform: scale(1.3, 1.3);
|
||||||
|
transform: scale(1.3, 1.3); }
|
||||||
|
|
||||||
|
.owl-carousel .owl-video-playing .owl-video-tn,
|
||||||
|
.owl-carousel .owl-video-playing .owl-video-play-icon {
|
||||||
|
display: none; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-video-tn {
|
||||||
|
opacity: 0;
|
||||||
|
height: 100%;
|
||||||
|
background-position: center center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
transition: opacity 400ms ease; }
|
||||||
|
|
||||||
|
.owl-carousel .owl-video-frame {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%; }
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* Default theme - Owl Carousel CSS File
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-nav {
|
||||||
|
margin-top: 10px;
|
||||||
|
text-align: center;
|
||||||
|
-webkit-tap-highlight-color: transparent; }
|
||||||
|
.owl-theme .owl-nav [class*='owl-'] {
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 4px 7px;
|
||||||
|
background: #D6D6D6;
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 3px; }
|
||||||
|
.owl-theme .owl-nav [class*='owl-']:hover {
|
||||||
|
background: #869791;
|
||||||
|
color: #FFF;
|
||||||
|
text-decoration: none; }
|
||||||
|
.owl-theme .owl-nav .disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
cursor: default; }
|
||||||
|
|
||||||
|
.owl-theme .owl-nav.disabled + .owl-dots {
|
||||||
|
margin-top: 10px; }
|
||||||
|
|
||||||
|
.owl-theme .owl-dots {
|
||||||
|
text-align: center;
|
||||||
|
-webkit-tap-highlight-color: transparent; }
|
||||||
|
.owl-theme .owl-dots .owl-dot {
|
||||||
|
display: inline-block;
|
||||||
|
zoom: 1;
|
||||||
|
*display: inline; }
|
||||||
|
.owl-theme .owl-dots .owl-dot span {
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
margin: 5px 7px;
|
||||||
|
background: #D6D6D6;
|
||||||
|
display: block;
|
||||||
|
-webkit-backface-visibility: visible;
|
||||||
|
transition: opacity 200ms ease;
|
||||||
|
border-radius: 30px; }
|
||||||
|
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
|
||||||
|
background: #869791; }
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* Green theme - Owl Carousel CSS File
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-nav {
|
||||||
|
margin-top: 10px;
|
||||||
|
text-align: center;
|
||||||
|
-webkit-tap-highlight-color: transparent; }
|
||||||
|
.owl-theme .owl-nav [class*='owl-'] {
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 4px 7px;
|
||||||
|
background: #D6D6D6;
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 3px; }
|
||||||
|
.owl-theme .owl-nav [class*='owl-']:hover {
|
||||||
|
background: #4DC7A0;
|
||||||
|
color: #FFF;
|
||||||
|
text-decoration: none; }
|
||||||
|
.owl-theme .owl-nav .disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
cursor: default; }
|
||||||
|
|
||||||
|
.owl-theme .owl-nav.disabled + .owl-dots {
|
||||||
|
margin-top: 10px; }
|
||||||
|
|
||||||
|
.owl-theme .owl-dots {
|
||||||
|
text-align: center;
|
||||||
|
-webkit-tap-highlight-color: transparent; }
|
||||||
|
.owl-theme .owl-dots .owl-dot {
|
||||||
|
display: inline-block;
|
||||||
|
zoom: 1;
|
||||||
|
*display: inline; }
|
||||||
|
.owl-theme .owl-dots .owl-dot span {
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
margin: 5px 7px;
|
||||||
|
background: #D6D6D6;
|
||||||
|
display: block;
|
||||||
|
-webkit-backface-visibility: visible;
|
||||||
|
transition: opacity 200ms ease;
|
||||||
|
border-radius: 30px; }
|
||||||
|
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
|
||||||
|
background: #4DC7A0; }
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#4DC7A0;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#4DC7A0}
|
||||||
|
After Width: | Height: | Size: 4.9 KiB |
@@ -0,0 +1,8 @@
|
|||||||
|
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
|
||||||
|
* Licensed under the MIT License (LICENSE.txt).
|
||||||
|
*
|
||||||
|
* Version: 3.1.11
|
||||||
|
*
|
||||||
|
* Requires: jQuery 1.2.2+
|
||||||
|
*/
|
||||||
|
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.11",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b)["offsetParent"in a.fn?"offsetParent":"parent"]();return c.length||(c=a("body")),parseInt(c.css("fontSize"),10)},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
|
||||||
@@ -0,0 +1,272 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Animate carousel">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Animate Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Animate</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="fadeOut owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>To get fade out effect just set:</p>
|
||||||
|
<pre><code>animateOut: 'fadeOut'</code></pre>
|
||||||
|
<blockquote>
|
||||||
|
<p><code>fadeOut</code> value is the only built-in CSS animate style. However there are tons of additional CSS animations that you can use in Owl. Simply download
|
||||||
|
<a href="https://daneden.github.io/animate.css/">animate.css</a> library and you are ready to extend Owl with new fancy transitions.</p>
|
||||||
|
</blockquote>
|
||||||
|
<h3 id="important">Important</h3>
|
||||||
|
<p>Animate functions work only with one item and only in browsers that support perspective property.</p>
|
||||||
|
<h3 id="how-to-use-additional-animation-from-animate-css-library">How to use additional animation from <code>animate.css</code> library</h3>
|
||||||
|
<ol>
|
||||||
|
<li> <a href="https://daneden.github.io/animate.css/">Download animate.css</a> </li>
|
||||||
|
<li>Include animate.css into header.</li>
|
||||||
|
<li>Set <code>animateOut</code> and <code>animateIn</code> options with the style names you picked.</li>
|
||||||
|
</ol>
|
||||||
|
<pre><code>$('.custom1').owlCarousel({
|
||||||
|
animateOut: 'slideOutDown',
|
||||||
|
animateIn: 'flipInX',
|
||||||
|
items:1,
|
||||||
|
margin:30,
|
||||||
|
stagePadding:30,
|
||||||
|
smartSpeed:450
|
||||||
|
});</code></pre>
|
||||||
|
<p>Example with slideOutDown and flipInX</p>
|
||||||
|
<div class="custom1 owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="how-does-it-work-">How does it work?</h3>
|
||||||
|
<p>Before animation starts three classes are added to each item:</p>
|
||||||
|
<ul>
|
||||||
|
<li>.animated - added on both In and Out item - ive included this class from Animate.css into Owl core CSS file.</li>
|
||||||
|
<li>.owl-animated-out - only on Out item - use it to change z-index</li>
|
||||||
|
<li>.owl-animated-in - only on In item - use it to change z-index</li>
|
||||||
|
<li>.classNameOut - only on Out item - this is your custom animation class from options.</li>
|
||||||
|
<li>.classNameIn - only on In item - this is your custom animation class from options.</li>
|
||||||
|
</ul>
|
||||||
|
<p>Part of owl.carousel.css:</p>
|
||||||
|
<pre><code class="language-css"><span class="comment">/* Feel free to change duration */</span>
|
||||||
|
<span class="class">.animated</span> <span class="rules">{
|
||||||
|
<span class="rule"><span class="attribute">-webkit-animation-duration</span> :<span class="value"> <span class="number">1000</span> ms</span> </span> ;
|
||||||
|
<span class="rule"><span class="attribute">animation-duration</span> :<span class="value"> <span class="number">1000</span> ms</span> </span> ;
|
||||||
|
<span class="rule"><span class="attribute">-webkit-animation-fill-mode</span> :<span class="value"> both</span> </span> ;
|
||||||
|
<span class="rule"><span class="attribute">animation-fill-mode</span> :<span class="value"> both</span> </span> ;
|
||||||
|
<span class="rule">}</span> </span>
|
||||||
|
<span class="comment">/* .owl-animated-out - only for current item */</span>
|
||||||
|
<span class="comment">/* This is very important class. Use z-index if you want move Out item above In item */</span>
|
||||||
|
<span class="class">.owl-animated-out</span> <span class="rules">{
|
||||||
|
<span class="rule"><span class="attribute">z-index</span> :<span class="value"> <span class="number">1</span>
|
||||||
|
</span> </span> </span> }
|
||||||
|
<span class="comment">/* .owl-animated-in - only for upcoming item
|
||||||
|
/* This is very important class. Use z-index if you want move In item above Out item */</span>
|
||||||
|
<span class="class">.owl-animated-in</span> <span class="rules">{
|
||||||
|
<span class="rule"><span class="attribute">z-index</span> :<span class="value"> <span class="number">0</span>
|
||||||
|
</span> </span> </span> }
|
||||||
|
<span class="comment">/* .fadeOut is style taken from Animation.css and this is how it looks in owl.carousel.css: */</span>
|
||||||
|
<span class="class">.fadeOut</span> <span class="rules">{
|
||||||
|
<span class="rule"><span class="attribute">-webkit-animation-name</span> :<span class="value"> fadeOut</span> </span> ;
|
||||||
|
<span class="rule"><span class="attribute">animation-name</span> :<span class="value"> fadeOut</span> </span> ;
|
||||||
|
<span class="rule">}</span> </span>
|
||||||
|
<span class="at_rule">@<span class="keyword">-webkit-keyframes</span> fadeOut </span> {
|
||||||
|
0% <span class="rules">{
|
||||||
|
<span class="rule"><span class="attribute">opacity</span> :<span class="value"> <span class="number">1</span> </span> </span> ;
|
||||||
|
<span class="rule">}</span> </span>
|
||||||
|
100% <span class="rules">{
|
||||||
|
<span class="rule"><span class="attribute">opacity</span> :<span class="value"> <span class="number">0</span> </span> </span> ;
|
||||||
|
<span class="rule">}</span> </span>
|
||||||
|
}
|
||||||
|
<span class="at_rule">@<span class="keyword">keyframes</span> fadeOut </span> {
|
||||||
|
0% <span class="rules">{
|
||||||
|
<span class="rule"><span class="attribute">opacity</span> :<span class="value"> <span class="number">1</span> </span> </span> ;
|
||||||
|
<span class="rule">}</span> </span>
|
||||||
|
100% <span class="rules">{
|
||||||
|
<span class="rule"><span class="attribute">opacity</span> :<span class="value"> <span class="number">0</span> </span> </span> ;
|
||||||
|
<span class="rule">}</span> </span>
|
||||||
|
}</code></pre>
|
||||||
|
<link rel="stylesheet" href="../assets/css/animate.css">
|
||||||
|
<script>
|
||||||
|
jQuery(document).ready(function($) {
|
||||||
|
$('.fadeOut').owlCarousel({
|
||||||
|
items: 1,
|
||||||
|
animateOut: 'fadeOut',
|
||||||
|
loop: true,
|
||||||
|
margin: 10,
|
||||||
|
});
|
||||||
|
$('.custom1').owlCarousel({
|
||||||
|
animateOut: 'slideOutDown',
|
||||||
|
animateIn: 'flipInX',
|
||||||
|
items: 1,
|
||||||
|
margin: 30,
|
||||||
|
stagePadding: 30,
|
||||||
|
smartSpeed: 450
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,165 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="autoHeight usage demo">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Auto Height Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Auto Height</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item" style="height:300px">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:100px">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:500px">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:250px">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:400px">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:500px">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:600px">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:400px">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:300px">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:350px">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:200px">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="height:150px">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>To enable use <code>autoHeight: true</code>. At the moment works only with 1 item on screen. The plan is to calculate all visible items and change height according to heighest item.</p>
|
||||||
|
<pre><code>//default settings:
|
||||||
|
AutoHeight.Defaults = {
|
||||||
|
autoHeight: false,
|
||||||
|
autoHeightClass: 'owl-height'
|
||||||
|
};</code></pre>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code>$('.owl-carousel').owlCarousel({
|
||||||
|
items:1,
|
||||||
|
margin:10,
|
||||||
|
autoHeight:true
|
||||||
|
});</code></pre>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('.owl-carousel').owlCarousel({
|
||||||
|
items: 1,
|
||||||
|
margin: 10,
|
||||||
|
autoHeight: true
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Autoplay usage demo">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Autoplay Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Autoplay</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a class="button secondary play">Play</a>
|
||||||
|
<a class="button secondary stop">Stop</a>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>Autoplay plugin has three options:</p>
|
||||||
|
<pre><code>//default settings:
|
||||||
|
autoplay:false
|
||||||
|
autoplayTimeout:5000
|
||||||
|
autoplayHoverPause:false</code></pre>
|
||||||
|
<p>In this example i've added two buttons with custom events for play and stop:</p>
|
||||||
|
<pre><code>var owl = $('.owl-carousel');
|
||||||
|
owl.owlCarousel({
|
||||||
|
items:4,
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
autoplay:true,
|
||||||
|
autoplayTimeout:1000,
|
||||||
|
autoplayHoverPause:true
|
||||||
|
});
|
||||||
|
$('.play').on('click',function(){
|
||||||
|
owl.trigger('play.owl.autoplay',[1000])
|
||||||
|
})
|
||||||
|
$('.stop').on('click',function(){
|
||||||
|
owl.trigger('stop.owl.autoplay')
|
||||||
|
})</code></pre>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var owl = $('.owl-carousel');
|
||||||
|
owl.owlCarousel({
|
||||||
|
items: 4,
|
||||||
|
loop: true,
|
||||||
|
margin: 10,
|
||||||
|
autoplay: true,
|
||||||
|
autoplayTimeout: 1000,
|
||||||
|
autoplayHoverPause: true
|
||||||
|
});
|
||||||
|
$('.play').on('click', function() {
|
||||||
|
owl.trigger('play.owl.autoplay', [1000])
|
||||||
|
})
|
||||||
|
$('.stop').on('click', function() {
|
||||||
|
owl.trigger('stop.owl.autoplay')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,185 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Auto Width">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Auto Width Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Auto Width</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item" style="width:250px">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:100px">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:500px">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:100px">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:50px">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:250px">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:120px">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:420px">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:120px">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:300px">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:450px">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:220px">
|
||||||
|
<h4>13</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:150px">
|
||||||
|
<h4>14</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width:600px">
|
||||||
|
<h4>15</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>Use width style on elements to get the result you want. If using with infinity loop add option 'items' more than 1. It all depends on the width of your content.</p>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code>$('.owl-carousel').owlCarousel({
|
||||||
|
margin:10,
|
||||||
|
loop:true,
|
||||||
|
autoWidth:true,
|
||||||
|
items:4
|
||||||
|
})</code></pre>
|
||||||
|
<h3 id="html">html</h3>
|
||||||
|
<pre><code><div class="owl-carousel owl-theme">
|
||||||
|
<div class="item" style="width:250px"><h4>1</h4></div>
|
||||||
|
<div class="item" style="width:100px"><h4>2</h4></div>
|
||||||
|
<div class="item" style="width:500px"><h4>3</h4></div>
|
||||||
|
<div class="item" style="width:100px"><h4>4</h4></div>
|
||||||
|
<div class="item" style="width:50px"><h4>6</h4></div>
|
||||||
|
<div class="item" style="width:250px"><h4>7</h4></div>
|
||||||
|
<div class="item" style="width:120px"><h4>8</h4></div>
|
||||||
|
<div class="item" style="width:420px"><h4>9</h4></div>
|
||||||
|
<div class="item" style="width:120px"><h4>10</h4></div>
|
||||||
|
<div class="item" style="width:300px"><h4>11</h4></div>
|
||||||
|
<div class="item" style="width:450px"><h4>12</h4></div>
|
||||||
|
<div class="item" style="width:220px"><h4>13</h4></div>
|
||||||
|
<div class="item" style="width:150px"><h4>14</h4></div>
|
||||||
|
<div class="item" style="width:600px"><h4>15</h4></div>
|
||||||
|
</div></code></pre>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('.owl-carousel').owlCarousel({
|
||||||
|
margin: 10,
|
||||||
|
loop: true,
|
||||||
|
autoWidth: true,
|
||||||
|
items: 4
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,199 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Basic usage demo">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Basic Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Basic</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>Basic usage of Owl Carousel. I used <code>loop:true</code> and <code>margin:10</code>. The structure works with any kind of DOM element. In all of my examples i used <code><div class="item">...</div></code> but you could
|
||||||
|
put any other element <code>div/span/a/img...</code></p>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code>$('.owl-carousel').owlCarousel({
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
nav:true,
|
||||||
|
responsive:{
|
||||||
|
0:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
600:{
|
||||||
|
items:3
|
||||||
|
},
|
||||||
|
1000:{
|
||||||
|
items:5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})</code></pre>
|
||||||
|
<h3 id="html">html</h3>
|
||||||
|
<pre><code><div class="owl-carousel owl-theme">
|
||||||
|
<div class="item"><h4>1</h4></div>
|
||||||
|
<div class="item"><h4>2</h4></div>
|
||||||
|
<div class="item"><h4>3</h4></div>
|
||||||
|
<div class="item"><h4>4</h4></div>
|
||||||
|
<div class="item"><h4>5</h4></div>
|
||||||
|
<div class="item"><h4>6</h4></div>
|
||||||
|
<div class="item"><h4>7</h4></div>
|
||||||
|
<div class="item"><h4>8</h4></div>
|
||||||
|
<div class="item"><h4>9</h4></div>
|
||||||
|
<div class="item"><h4>10</h4></div>
|
||||||
|
<div class="item"><h4>11</h4></div>
|
||||||
|
<div class="item"><h4>12</h4></div>
|
||||||
|
</div></code></pre>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var owl = $('.owl-carousel');
|
||||||
|
owl.owlCarousel({
|
||||||
|
margin: 10,
|
||||||
|
nav: true,
|
||||||
|
loop: true,
|
||||||
|
responsive: {
|
||||||
|
0: {
|
||||||
|
items: 1
|
||||||
|
},
|
||||||
|
600: {
|
||||||
|
items: 3
|
||||||
|
},
|
||||||
|
1000: {
|
||||||
|
items: 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,239 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Center carousel">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Center Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Center</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h4 id="center-with-loop">Center with loop</h4>
|
||||||
|
<div class="loop owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
<h4 id="center-without-loop">Center without loop</h4>
|
||||||
|
<div class="nonloop owl-carousel">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<blockquote>
|
||||||
|
<p>Works well with odd and even items on screen. Keep in mind that dots are not working here like a pagination.</p>
|
||||||
|
</blockquote>
|
||||||
|
<p>Add center to setup:</p>
|
||||||
|
<pre><code>center:true</code></pre>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code>$('.loop').owlCarousel({
|
||||||
|
center: true,
|
||||||
|
items:2,
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
responsive:{
|
||||||
|
600:{
|
||||||
|
items:4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('.nonloop').owlCarousel({
|
||||||
|
center: true,
|
||||||
|
items:2,
|
||||||
|
loop:false,
|
||||||
|
margin:10,
|
||||||
|
responsive:{
|
||||||
|
600:{
|
||||||
|
items:4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});</code></pre>
|
||||||
|
<script>
|
||||||
|
jQuery(document).ready(function($) {
|
||||||
|
$('.loop').owlCarousel({
|
||||||
|
center: true,
|
||||||
|
items: 2,
|
||||||
|
loop: true,
|
||||||
|
margin: 10,
|
||||||
|
responsive: {
|
||||||
|
600: {
|
||||||
|
items: 4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('.nonloop').owlCarousel({
|
||||||
|
center: true,
|
||||||
|
items: 2,
|
||||||
|
loop: false,
|
||||||
|
margin: 10,
|
||||||
|
responsive: {
|
||||||
|
600: {
|
||||||
|
items: 4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,198 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="A list of Owl Carousel examples.">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Demos | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Demos</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h4 id="basic-demos-">Basic demos:</h4>
|
||||||
|
<hr>
|
||||||
|
<div class="demo-list">
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="basic.html" class="demo-block">
|
||||||
|
<h5>Basic </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="responsive.html" class="demo-block">
|
||||||
|
<h5>Responsive </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="center.html" class="demo-block">
|
||||||
|
<h5>Center </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="merge.html" class="demo-block">
|
||||||
|
<h5>Merge </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="autowidth.html" class="demo-block">
|
||||||
|
<h5>Auto Width </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="urlhashnav.html" class="demo-block">
|
||||||
|
<h5>Url Hash Navigation </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="events.html" class="demo-block">
|
||||||
|
<h5>Events </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="stagepadding.html" class="demo-block">
|
||||||
|
<h5>stagePadding </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="rtl.html" class="demo-block">
|
||||||
|
<h5>Right To Left </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h4 id="using-built-in-plugins">Using built-in plugins</h4>
|
||||||
|
<hr>
|
||||||
|
<div class="demo-list">
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="lazyLoad.html" class="demo-block">
|
||||||
|
<h5>Lazy Load </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="video.html" class="demo-block">
|
||||||
|
<h5>Video </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="animate.html" class="demo-block">
|
||||||
|
<h5>Animate </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="autoplay.html" class="demo-block">
|
||||||
|
<h5>Autoplay </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="autoheight.html" class="demo-block">
|
||||||
|
<h5>Auto Height </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h4 id="using-external-libraries">Using external libraries</h4>
|
||||||
|
<hr>
|
||||||
|
<div class="demo-list">
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-6 medium-4 large-3 columns">
|
||||||
|
<a href="mousewheel.html" class="demo-block">
|
||||||
|
<h5>Mousewheel </h5>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,207 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Events usage demo">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Events Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Events</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="large-12 columns callbacks">
|
||||||
|
<div><span class="label secondary initialize">on</span> initialize.owl.carousel </div>
|
||||||
|
<div><span class="label secondary initialized">on</span> initialized.owl.carousel </div>
|
||||||
|
<div><span class="label secondary resize">on</span> resize.owl.carousel </div>
|
||||||
|
<div><span class="label secondary resized">on</span> resized.owl.carousel </div>
|
||||||
|
<div><span class="label secondary refresh">on</span> refresh.owl.carousel </div>
|
||||||
|
<div><span class="label secondary refreshed">on</span> refreshed.owl.carousel </div>
|
||||||
|
<div><span class="label secondary update">on</span> update.owl.carousel </div>
|
||||||
|
<div><span class="label secondary updated">on</span> updated.owl.carousel </div>
|
||||||
|
<div><span class="label secondary drag">on</span> drag.owl.carousel </div>
|
||||||
|
<div><span class="label secondary dragged">on</span> dragged.owl.carousel </div>
|
||||||
|
<div><span class="label secondary translate">on</span> translate.owl.carousel </div>
|
||||||
|
<div><span class="label secondary translated">on</span> translated.owl.carousel </div>
|
||||||
|
<div><span class="label secondary to">on</span> to.owl.carousel </div>
|
||||||
|
<div><span class="label secondary changed">on</span> changed.owl.carousel </div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>Notice that <code>initialize.owl.carousel</code> and <code>initialized.owl.carousel</code> events must be attached before Owl Carousel initialization. This is required only for those two.</p>
|
||||||
|
<p><code>changed.owl.carousel</code> event is attached to the main Owl Carousel animation method so that every carousel move triggers this callback.</p>
|
||||||
|
<script>
|
||||||
|
jQuery(document).ready(function($) {
|
||||||
|
var owl = $('.owl-carousel');
|
||||||
|
owl.on('initialize.owl.carousel initialized.owl.carousel ' +
|
||||||
|
'initialize.owl.carousel initialize.owl.carousel ' +
|
||||||
|
'resize.owl.carousel resized.owl.carousel ' +
|
||||||
|
'refresh.owl.carousel refreshed.owl.carousel ' +
|
||||||
|
'update.owl.carousel updated.owl.carousel ' +
|
||||||
|
'drag.owl.carousel dragged.owl.carousel ' +
|
||||||
|
'translate.owl.carousel translated.owl.carousel ' +
|
||||||
|
'to.owl.carousel changed.owl.carousel',
|
||||||
|
function(e) {
|
||||||
|
$('.' + e.type)
|
||||||
|
.removeClass('secondary')
|
||||||
|
.addClass('success');
|
||||||
|
window.setTimeout(function() {
|
||||||
|
$('.' + e.type)
|
||||||
|
.removeClass('success')
|
||||||
|
.addClass('secondary');
|
||||||
|
}, 500);
|
||||||
|
});
|
||||||
|
owl.owlCarousel({
|
||||||
|
loop: true,
|
||||||
|
nav: true,
|
||||||
|
lazyLoad: true,
|
||||||
|
margin: 10,
|
||||||
|
video: true,
|
||||||
|
responsive: {
|
||||||
|
0: {
|
||||||
|
items: 1
|
||||||
|
},
|
||||||
|
600: {
|
||||||
|
items: 3
|
||||||
|
},
|
||||||
|
960: {
|
||||||
|
items: 5,
|
||||||
|
},
|
||||||
|
1200: {
|
||||||
|
items: 6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,165 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Lazy Load carousel">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Lazy Load Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Lazy Load</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=1" data-src-retina="https://placehold.it/350x250&text=1-retina" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x350&text=2" data-src-retina="https://placehold.it/350x250&text=2-retina" alt="">
|
||||||
|
<picture>
|
||||||
|
<source class="owl-lazy" media="(min-width: 650px)" data-srcset="https://placehold.it/350x250&text=3-large">
|
||||||
|
<source class="owl-lazy" media="(min-width: 350px)" data-srcset="https://placehold.it/350x250&text=3-medium">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=3-fallback" alt="">
|
||||||
|
</picture>
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=4" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=5" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=6" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=7" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=8" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x400&text=9" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x400&text=10" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x450&text=11" alt="">
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>Add lazyLoad to plugin setup:</p>
|
||||||
|
<pre><code>lazyLoad: true</code></pre>
|
||||||
|
<p>LazyLoad HTML structure requires <code>class="owl-lazy"</code> and <code>data-src="url_to_img"</code> or/and <code>data-src-retina="url_to_highres_img"</code>. If you set above settings not on <code><img></code> but on other DOM element then Owl will load an image into css inline background style. You can even use picture tags with different sources by adding the <code>owl-lazy</code> class to the source tag and a data-srcset attribute.</p>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code>$('.owl-carousel').owlCarousel({
|
||||||
|
items:4,
|
||||||
|
lazyLoad:true,
|
||||||
|
loop:true,
|
||||||
|
margin:10
|
||||||
|
});</code></pre>
|
||||||
|
<h3 id="option">Option</h3>
|
||||||
|
<p>If you want to preload images you can also add the option <code>lazyLoadEager</code> to the settings object, where the value indicates how many items to the right (and left, when loop is <code>true</code>) will be pre-loaded.</p>
|
||||||
|
<h3 id="html-">HTML:</h3>
|
||||||
|
<pre><code><div class="owl-carousel owl-theme">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x450&text=1" data-src-retina="https://placehold.it/350x250&text=1-retina" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x650&text=2" data-src-retina="https://placehold.it/350x250&text=2-retina" alt="">
|
||||||
|
<picture>
|
||||||
|
<source class="owl-lazy" media="(min-width: 650px)" data-srcset="https://placehold.it/350x250&text=3-large">
|
||||||
|
<source class="owl-lazy" media="(min-width: 350px)" data-srcset="https://placehold.it/350x250&text=3-medium">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=3-fallback" alt="">
|
||||||
|
</picture>
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=4" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=5" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=6" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=7" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x250&text=8" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x400&text=9" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x400&text=10" alt="">
|
||||||
|
<img class="owl-lazy" data-src="https://placehold.it/350x450&text=11" alt="">
|
||||||
|
</div></code></pre>
|
||||||
|
<script>
|
||||||
|
jQuery(document).ready(function($) {
|
||||||
|
$('.owl-carousel').owlCarousel({
|
||||||
|
items: 1,
|
||||||
|
lazyLoad: true,
|
||||||
|
lazyLoadEager: 1,
|
||||||
|
loop: true,
|
||||||
|
margin: 10,
|
||||||
|
autoHeight: true
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,202 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Merge Items">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Merge Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Merge</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item" data-merge="1">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-merge="2">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-merge="1">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-merge="3">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-merge="6">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-merge="2">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-merge="1">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-merge="3">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-merge="2">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>13</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>14</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>15</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>Merge option requires <code>data-merge="number_items_to_merge"</code> on any child element (can be nested as well). There is a sibling option called <code>mergeFit</code> which fits merged elements to screen size. </p>
|
||||||
|
<p>See item 6 on breakpoint below and above <code>1000px</code> screen width.</p>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code>$('.owl-carousel').owlCarousel({
|
||||||
|
items:5,
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
merge:true,
|
||||||
|
responsive:{
|
||||||
|
678:{
|
||||||
|
mergeFit:true
|
||||||
|
},
|
||||||
|
1000:{
|
||||||
|
mergeFit:false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});</code></pre>
|
||||||
|
<h3 id="html">html</h3>
|
||||||
|
<pre><code><div class="owl-carousel owl-theme">
|
||||||
|
<div class="item" data-merge="1"><h2>1</h2></div>
|
||||||
|
<div class="item" data-merge="2"><h2>2</h2></div>
|
||||||
|
<div class="item" data-merge="1"><h2>3</h2></div>
|
||||||
|
<div class="item" data-merge="3"><h2>4</h2></div>
|
||||||
|
<div class="item" data-merge="6"><h2>6</h2></div>
|
||||||
|
<div class="item" data-merge="2"><h2>7</h2></div>
|
||||||
|
<div class="item" data-merge="1"><h2>8</h2></div>
|
||||||
|
<div class="item" data-merge="3"><h2>9</h2></div>
|
||||||
|
<div class="item"><h2>10</h2></div>
|
||||||
|
<div class="item"><h2>11</h2></div>
|
||||||
|
<div class="item" data-merge="2"><h2>12</h2></div>
|
||||||
|
<div class="item"><h2>13</h2></div>
|
||||||
|
<div class="item"><h2>14</h2></div>
|
||||||
|
<div class="item"><h2>15</h2></div>
|
||||||
|
</div></code></pre>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('.owl-carousel').owlCarousel({
|
||||||
|
items: 5,
|
||||||
|
loop: true,
|
||||||
|
margin: 10,
|
||||||
|
merge: true,
|
||||||
|
responsive: {
|
||||||
|
678: {
|
||||||
|
mergeFit: true
|
||||||
|
},
|
||||||
|
1000: {
|
||||||
|
mergeFit: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,209 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Mousewheel usage demo">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Mousewheel Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Mousewheel</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>To add mouswheel scrolling just include the fantastic plugin jquery.mousewheel.js created by Brandon Aaron.
|
||||||
|
<a href="https://github.com/brandonaaron/jquery-mousewheel">Link to plugin GitHub page</a>
|
||||||
|
</p>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code>var owl = $('.owl-carousel');
|
||||||
|
owl.owlCarousel({
|
||||||
|
loop:true,
|
||||||
|
nav:true,
|
||||||
|
margin:10,
|
||||||
|
responsive:{
|
||||||
|
0:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
600:{
|
||||||
|
items:3
|
||||||
|
},
|
||||||
|
960:{
|
||||||
|
items:5
|
||||||
|
},
|
||||||
|
1200:{
|
||||||
|
items:6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
owl.on('mousewheel', '.owl-stage', function (e) {
|
||||||
|
if (e.deltaY>0) {
|
||||||
|
owl.trigger('next.owl');
|
||||||
|
} else {
|
||||||
|
owl.trigger('prev.owl');
|
||||||
|
}
|
||||||
|
e.preventDefault();
|
||||||
|
});</code></pre>
|
||||||
|
<script src="../assets/vendors/jquery.mousewheel.min.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var owl = $('.owl-carousel');
|
||||||
|
owl.owlCarousel({
|
||||||
|
loop: true,
|
||||||
|
nav: true,
|
||||||
|
margin: 10,
|
||||||
|
responsive: {
|
||||||
|
0: {
|
||||||
|
items: 1
|
||||||
|
},
|
||||||
|
600: {
|
||||||
|
items: 3
|
||||||
|
},
|
||||||
|
960: {
|
||||||
|
items: 5
|
||||||
|
},
|
||||||
|
1200: {
|
||||||
|
items: 6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
owl.on('mousewheel', '.owl-stage', function(e) {
|
||||||
|
if (e.deltaY > 0) {
|
||||||
|
owl.trigger('next.owl');
|
||||||
|
} else {
|
||||||
|
owl.trigger('prev.owl');
|
||||||
|
}
|
||||||
|
e.preventDefault();
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,297 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="How to use responsive options">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Responsive Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Responsive</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<blockquote>
|
||||||
|
<p>Responsive option can be used for setting breakpoints and additional options within. Try changing your browser width to see what happens with Items and Navigations.</p>
|
||||||
|
</blockquote>
|
||||||
|
<h4 id="about-responsive-option">About responsive option</h4>
|
||||||
|
<p>Setting of the responsive is very simple. Structure of responsive option:</p>
|
||||||
|
<pre><code>responsive : {
|
||||||
|
// breakpoint from 0 up
|
||||||
|
0 : {
|
||||||
|
option1 : value,
|
||||||
|
option2 : value,
|
||||||
|
...
|
||||||
|
},
|
||||||
|
// breakpoint from 480 up
|
||||||
|
480 : {
|
||||||
|
option1 : value,
|
||||||
|
option2 : value,
|
||||||
|
...
|
||||||
|
},
|
||||||
|
// breakpoint from 768 up
|
||||||
|
768 : {
|
||||||
|
option1 : value,
|
||||||
|
option2 : value,
|
||||||
|
...
|
||||||
|
}
|
||||||
|
}</code></pre>
|
||||||
|
<h3 id="key-facts-">Key facts:</h3>
|
||||||
|
<ul>
|
||||||
|
<li>Each breakpoint key can be a Number value (like in example) or a string: '480'.</li>
|
||||||
|
<li>Owl has an in-built sort option but it’s best to set from the smallest screens to the widest.</li>
|
||||||
|
<li>Responsive options <strong>always</strong> overwrite top level settings.</li>
|
||||||
|
<li>As default, the responsive option is set to true so carousel always tries to fit the wrapper (even if media queries are not support IE7/IE8 etc).</li>
|
||||||
|
<li>If you have non flexible layout then set <code>responsive:false</code>.</li>
|
||||||
|
</ul>
|
||||||
|
<h3 id="live-example">Live Example</h3>
|
||||||
|
<pre><code>$('.owl-carousel').owlCarousel({
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
responsiveClass:true,
|
||||||
|
responsive:{
|
||||||
|
0:{
|
||||||
|
items:1,
|
||||||
|
nav:true
|
||||||
|
},
|
||||||
|
600:{
|
||||||
|
items:3,
|
||||||
|
nav:false
|
||||||
|
},
|
||||||
|
1000:{
|
||||||
|
items:5,
|
||||||
|
nav:true,
|
||||||
|
loop:false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})</code></pre>
|
||||||
|
<hr>
|
||||||
|
<h3 id="responsive-related-options-">Responsive related options:</h3>
|
||||||
|
<h4 id="responsiveclass">responsiveClass</h4>
|
||||||
|
<p>Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.</p>
|
||||||
|
<h4 id="responsivebaseelement">responsiveBaseElement</h4>
|
||||||
|
<p>As default all responsive breakpoints are corresponding with <code>window</code> width. This option gives you an opportunity to change it to your own class/id like <code>responsiveBaseElement:".myCustomWrapper"</code></p>
|
||||||
|
<h4 id="responsiverefreshrate">responsiveRefreshRate</h4>
|
||||||
|
<p>What this does is wait 200ms after you changed the browser width and performs refresh actions (calculating widths/ cloning items etc.) Default refresh rate is 200ms. I think this rate is optimal but you can change it if it’s to slow for you.</p>
|
||||||
|
<p>As not every option is able to use responsive abilities, here’s a full list of responsive options.</p>
|
||||||
|
<p>
|
||||||
|
<div class="row">
|
||||||
|
</p>
|
||||||
|
<div class="large-6 columns">
|
||||||
|
<h4 id="list-of-responsive-options">List of responsive options</h4>
|
||||||
|
<ul>
|
||||||
|
<li>items</li>
|
||||||
|
<li>loop</li>
|
||||||
|
<li>center</li>
|
||||||
|
<li>mouseDrag</li>
|
||||||
|
<li>touchDrag</li>
|
||||||
|
<li>pullDrag</li>
|
||||||
|
<li>freeDrag</li>
|
||||||
|
<li>margin</li>
|
||||||
|
<li>stagePadding</li>
|
||||||
|
<li>merge</li>
|
||||||
|
<li>mergeFit</li>
|
||||||
|
<li>autoWidth</li>
|
||||||
|
<li>autoHeight</li>
|
||||||
|
<li>nav</li>
|
||||||
|
<li>navRewind</li>
|
||||||
|
<li>slideBy</li>
|
||||||
|
<li>dots</li>
|
||||||
|
<li>dotsEach</li>
|
||||||
|
<li>autoplay</li>
|
||||||
|
<li>autoplayTimeout</li>
|
||||||
|
<li>smartSpeed</li>
|
||||||
|
<li>fluidSpeed</li>
|
||||||
|
<li>autoplaySpeed</li>
|
||||||
|
<li>navSpeed</li>
|
||||||
|
<li>dotsSpeed</li>
|
||||||
|
<li>dragEndSpeed</li>
|
||||||
|
<li>responsiveRefreshRate</li>
|
||||||
|
<li>animateOut</li>
|
||||||
|
<li>animateIn</li>
|
||||||
|
<li>fallbackEasing</li>
|
||||||
|
<li>callbacks</li>
|
||||||
|
<li>info</li>
|
||||||
|
<li>and all events</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="large-6 columns">
|
||||||
|
<h4 id="list-of-responsive-only-on-load">List of responsive only on load</h4>
|
||||||
|
<ul>
|
||||||
|
<li>startPosition</li>
|
||||||
|
<li>URLhashListener</li>
|
||||||
|
<li>navText</li>
|
||||||
|
<li>dotsData</li>
|
||||||
|
<li>lazyLoad</li>
|
||||||
|
<li>lazyContent</li>
|
||||||
|
<li>autoplayHoverPause</li>
|
||||||
|
<li>responsiveBaseElement</li>
|
||||||
|
<li>responsiveClass</li>
|
||||||
|
<li>video</li>
|
||||||
|
<li>videoHeight</li>
|
||||||
|
<li>videoWidth</li>
|
||||||
|
<li>nestedItemSelector</li>
|
||||||
|
<li>itemElement</li>
|
||||||
|
<li>stageElement</li>
|
||||||
|
<li>navContainer</li>
|
||||||
|
<li>dotsContainer</li>
|
||||||
|
<li>and all classes options</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('.owl-carousel').owlCarousel({
|
||||||
|
loop: true,
|
||||||
|
margin: 10,
|
||||||
|
responsiveClass: true,
|
||||||
|
responsive: {
|
||||||
|
0: {
|
||||||
|
items: 1,
|
||||||
|
nav: true
|
||||||
|
},
|
||||||
|
600: {
|
||||||
|
items: 3,
|
||||||
|
nav: false
|
||||||
|
},
|
||||||
|
1000: {
|
||||||
|
items: 5,
|
||||||
|
nav: true,
|
||||||
|
loop: false,
|
||||||
|
margin: 20
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,202 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="RTL usage demo">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
RTL Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Right To Left</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>By adding <code>rtl:true</code> Owl will change direction from Right to left.</p>
|
||||||
|
<p>Default:</p>
|
||||||
|
<pre><code>rtl: false</code></pre>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code>$('.owl-carousel').owlCarousel({
|
||||||
|
rtl:true,
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
nav:true,
|
||||||
|
responsive:{
|
||||||
|
0:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
600:{
|
||||||
|
items:3
|
||||||
|
},
|
||||||
|
1000:{
|
||||||
|
items:5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})</code></pre>
|
||||||
|
<h3 id="html">html</h3>
|
||||||
|
<pre><code><div class="owl-carousel owl-theme">
|
||||||
|
<div class="item"><h4>1</h4></div>
|
||||||
|
<div class="item"><h4>2</h4></div>
|
||||||
|
<div class="item"><h4>3</h4></div>
|
||||||
|
<div class="item"><h4>4</h4></div>
|
||||||
|
<div class="item"><h4>5</h4></div>
|
||||||
|
<div class="item"><h4>6</h4></div>
|
||||||
|
<div class="item"><h4>7</h4></div>
|
||||||
|
<div class="item"><h4>8</h4></div>
|
||||||
|
<div class="item"><h4>9</h4></div>
|
||||||
|
<div class="item"><h4>10</h4></div>
|
||||||
|
<div class="item"><h4>11</h4></div>
|
||||||
|
<div class="item"><h4>12</h4></div>
|
||||||
|
</div></code></pre>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var owl = $('.owl-carousel');
|
||||||
|
owl.owlCarousel({
|
||||||
|
rtl: true,
|
||||||
|
margin: 10,
|
||||||
|
nav: true,
|
||||||
|
loop: true,
|
||||||
|
responsive: {
|
||||||
|
0: {
|
||||||
|
items: 1
|
||||||
|
},
|
||||||
|
600: {
|
||||||
|
items: 3
|
||||||
|
},
|
||||||
|
1000: {
|
||||||
|
items: 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,202 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Stage Padding usage demo">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Stage Padding Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>stagePadding</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>Stage padding option adds left and right padding style (in pixels) onto stage-wrapper.</p>
|
||||||
|
<p>Option:</p>
|
||||||
|
<pre><code>stagePadding: Number</code></pre>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code>$('.owl-carousel').owlCarousel({
|
||||||
|
stagePadding: 50,
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
nav:true,
|
||||||
|
responsive:{
|
||||||
|
0:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
600:{
|
||||||
|
items:3
|
||||||
|
},
|
||||||
|
1000:{
|
||||||
|
items:5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})</code></pre>
|
||||||
|
<h3 id="html">html</h3>
|
||||||
|
<pre><code><div class="owl-carousel owl-theme">
|
||||||
|
<div class="item"><h4>1</h4></div>
|
||||||
|
<div class="item"><h4>2</h4></div>
|
||||||
|
<div class="item"><h4>3</h4></div>
|
||||||
|
<div class="item"><h4>4</h4></div>
|
||||||
|
<div class="item"><h4>5</h4></div>
|
||||||
|
<div class="item"><h4>6</h4></div>
|
||||||
|
<div class="item"><h4>7</h4></div>
|
||||||
|
<div class="item"><h4>8</h4></div>
|
||||||
|
<div class="item"><h4>9</h4></div>
|
||||||
|
<div class="item"><h4>10</h4></div>
|
||||||
|
<div class="item"><h4>11</h4></div>
|
||||||
|
<div class="item"><h4>12</h4></div>
|
||||||
|
</div></code></pre>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var owl = $('.owl-carousel');
|
||||||
|
owl.owlCarousel({
|
||||||
|
stagePadding: 50,
|
||||||
|
margin: 10,
|
||||||
|
nav: true,
|
||||||
|
loop: true,
|
||||||
|
responsive: {
|
||||||
|
0: {
|
||||||
|
items: 1
|
||||||
|
},
|
||||||
|
600: {
|
||||||
|
items: 3
|
||||||
|
},
|
||||||
|
1000: {
|
||||||
|
items: 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,144 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Generic layout only for testing">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Test | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li> <a href="/OwlCarousel2/demos/demos.html">Demos</a> </li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Test</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var owl = $('.owl-carousel');
|
||||||
|
owl.owlCarousel({
|
||||||
|
loop: true,
|
||||||
|
margin: 10,
|
||||||
|
navRewind: false,
|
||||||
|
responsive: {
|
||||||
|
0: {
|
||||||
|
items: 1
|
||||||
|
},
|
||||||
|
600: {
|
||||||
|
items: 3
|
||||||
|
},
|
||||||
|
1000: {
|
||||||
|
items: 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Url Hash Navigation usage demo">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Url Hash Navigation Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Url Hash Navigation</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item" data-hash="zero">
|
||||||
|
<h4>0</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="one">
|
||||||
|
<h4>1</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="two">
|
||||||
|
<h4>2</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="three">
|
||||||
|
<h4>3</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="four">
|
||||||
|
<h4>4</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="five">
|
||||||
|
<h4>5</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="six">
|
||||||
|
<h4>6</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="seven">
|
||||||
|
<h4>7</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="eight">
|
||||||
|
<h4>8</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="nine">
|
||||||
|
<h4>9</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="ten">
|
||||||
|
<h4>10</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="eleven">
|
||||||
|
<h4>11</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="tweleve">
|
||||||
|
<h4>12</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="thirteen">
|
||||||
|
<h4>13</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="fourteen">
|
||||||
|
<h4>14</h4>
|
||||||
|
</div>
|
||||||
|
<div class="item" data-hash="fifteen">
|
||||||
|
<h4>15</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<a class="button secondary url" href="#zero">zero</a>
|
||||||
|
<a class="button secondary url" href="#three">three</a>
|
||||||
|
<a class="button secondary url" href="#five">five</a>
|
||||||
|
<a class="button secondary url" href="#seven">seven</a>
|
||||||
|
<a class="button secondary url" href="#ten">ten</a>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<blockquote>
|
||||||
|
<p>URLhashListener option is listening for url hash change and is looking for slide with the same data name e.g. <code>data-hash="zero"</code></p>
|
||||||
|
</blockquote>
|
||||||
|
<p>Also <code>startPosition</code> option accept string: <code>'URLHash'</code>. This will load corresponding items on startup. Browser history back button is also affected.</p>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code> $('.owl-carousel').owlCarousel({
|
||||||
|
items:4,
|
||||||
|
loop:false,
|
||||||
|
center:true,
|
||||||
|
margin:10,
|
||||||
|
URLhashListener:true,
|
||||||
|
autoplayHoverPause:true,
|
||||||
|
startPosition: 'URLHash'
|
||||||
|
});</code></pre>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('.owl-carousel').owlCarousel({
|
||||||
|
items: 4,
|
||||||
|
loop: false,
|
||||||
|
center: true,
|
||||||
|
margin: 10,
|
||||||
|
callbacks: true,
|
||||||
|
URLhashListener: true,
|
||||||
|
autoplayHoverPause: true,
|
||||||
|
startPosition: 'URLHash'
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Owl Carousel supports YouTube, Vimeo, and vzaar videos">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Video Demo | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/demos/demos.html">Demos</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="/OwlCarousel2/docs/started-welcome.html">Docs</a> </li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>Video</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Demos -->
|
||||||
|
<section id="demos">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="owl-carousel owl-theme">
|
||||||
|
<div class="item-video" data-merge="3">
|
||||||
|
<a class="owl-video" href="https://vimeo.com/23924346"></a>
|
||||||
|
</div>
|
||||||
|
<div class="item-video" data-merge="1">
|
||||||
|
<a class="owl-video" href="https://www.youtube.com/watch?v=JpxsRwnRwCQ"></a>
|
||||||
|
</div>
|
||||||
|
<div class="item-video" data-merge="2">
|
||||||
|
<a class="owl-video" href="https://www.youtube.com/watch?v=FBu_jxT1PkA"></a>
|
||||||
|
</div>
|
||||||
|
<div class="item-video" data-merge="1">
|
||||||
|
<a class="owl-video" href="https://www.youtube.com/watch?v=oy18DJwy5lI"></a>
|
||||||
|
</div>
|
||||||
|
<div class="item-video" data-merge="2">
|
||||||
|
<a class="owl-video" href="https://www.youtube.com/watch?v=H3jLkJrhHKQ"></a>
|
||||||
|
</div>
|
||||||
|
<div class="item-video" data-merge="3">
|
||||||
|
<a class="owl-video" href="https://www.youtube.com/watch?v=g3J4VxWIM6s"></a>
|
||||||
|
</div>
|
||||||
|
<div class="item-video" data-merge="1">
|
||||||
|
<a class="owl-video" href="https://www.youtube.com/watch?v=0fhoIate4qI"></a>
|
||||||
|
</div>
|
||||||
|
<div class="item-video" data-merge="2">
|
||||||
|
<a class="owl-video" href="https://www.youtube.com/watch?v=EF_kj2ojZaE"></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 id="overview">Overview</h3>
|
||||||
|
<p>Enable video option:</p>
|
||||||
|
<pre><code>video:true</code></pre>
|
||||||
|
<p>To add video into carousel just put <code><a class="owl-video" href="_straight URL from YouTube, Vimeo, or vzaar"></a></code>.</p>
|
||||||
|
<p>A tag is not mandatory, it can be any other tag but "owl-video" and href with url link is required.</p>
|
||||||
|
<p>Additional video options:</p>
|
||||||
|
<pre><code>videoWidth: false, // Default false; Type: Boolean/Number
|
||||||
|
videoHeight: false, // Default false; Type: Boolean/Number</code></pre>
|
||||||
|
<h3 id="setup">Setup</h3>
|
||||||
|
<pre><code> $('.owl-carousel').owlCarousel({
|
||||||
|
items:1,
|
||||||
|
merge:true,
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
video:true,
|
||||||
|
lazyLoad:true,
|
||||||
|
center:true,
|
||||||
|
responsive:{
|
||||||
|
480:{
|
||||||
|
items:2
|
||||||
|
},
|
||||||
|
600:{
|
||||||
|
items:4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})</code></pre>
|
||||||
|
<h3 id="html">html</h3>
|
||||||
|
<pre><code><div class="owl-carousel owl-theme">
|
||||||
|
<div class="item-video" data-merge="3"><a class="owl-video" href="https://vimeo.com/23924346"></a></div>
|
||||||
|
<div class="item-video" data-merge="1"><a class="owl-video" href="https://www.youtube.com/watch?v=JpxsRwnRwCQ"></a></div>
|
||||||
|
<div class="item-video" data-merge="2"><a class="owl-video" href="https://www.youtube.com/watch?v=FBu_jxT1PkA"></a></div>
|
||||||
|
<div class="item-video" data-merge="1"><a class="owl-video" href="https://www.youtube.com/watch?v=oy18DJwy5lI"></a></div>
|
||||||
|
<div class="item-video" data-merge="2"><a class="owl-video" href="https://www.youtube.com/watch?v=H3jLkJrhHKQ"></a></div>
|
||||||
|
<div class="item-video" data-merge="3"><a class="owl-video" href="https://www.youtube.com/watch?v=g3J4VxWIM6s"></a></div>
|
||||||
|
<div class="item-video" data-merge="1"><a class="owl-video" href="https://www.youtube.com/watch?v=0fhoIate4qI"></a></div>
|
||||||
|
<div class="item-video" data-merge="2"><a class="owl-video" href="https://www.youtube.com/watch?v=EF_kj2ojZaE"></a></div>
|
||||||
|
</div></code></pre>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('.owl-carousel').owlCarousel({
|
||||||
|
items: 1,
|
||||||
|
merge: true,
|
||||||
|
loop: true,
|
||||||
|
margin: 10,
|
||||||
|
video: true,
|
||||||
|
lazyLoad: true,
|
||||||
|
center: true,
|
||||||
|
responsive: {
|
||||||
|
480: {
|
||||||
|
items: 2
|
||||||
|
},
|
||||||
|
600: {
|
||||||
|
items: 4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,227 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- head -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="Owl Carousel Documentation">
|
||||||
|
<meta name="author" content="David Deutsch">
|
||||||
|
<title>
|
||||||
|
Classes | Owl Carousel | 2.3.4
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="../assets/css/docs.theme.min.css">
|
||||||
|
|
||||||
|
<!-- Owl Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.carousel.min.css">
|
||||||
|
<link rel="stylesheet" href="../assets/owlcarousel/assets/owl.theme.default.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
||||||
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
|
|
||||||
|
<!-- Yeah i know js should not be in header. Its required for demos.-->
|
||||||
|
|
||||||
|
<!-- javascript -->
|
||||||
|
<script src="../assets/vendors/jquery.min.js"></script>
|
||||||
|
<script src="../assets/owlcarousel/owl.carousel.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<div class="brand left">
|
||||||
|
<h3>
|
||||||
|
<a href="/OwlCarousel2/">owl.carousel.js</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<a id="toggle-nav" class="right">
|
||||||
|
<span></span> <span></span> <span></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-bar">
|
||||||
|
<ul class="clearfix">
|
||||||
|
<li> <a href="/OwlCarousel2/index.html">Home</a> </li>
|
||||||
|
<li> <a href="/OwlCarousel2/demos/demos.html">Demos</a> </li>
|
||||||
|
<li class="active">
|
||||||
|
<a href="/OwlCarousel2/docs/started-welcome.html">Docs</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/OwlCarousel2/OwlCarousel2/archive/2.3.4.zip">Download</a>
|
||||||
|
<span class="download"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
|
<section class="title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h1>API</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<div id="docs">
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-12 medium-3 large-3 columns">
|
||||||
|
<ul class="side-nav">
|
||||||
|
<li class="side-nav-head">Getting Started</li>
|
||||||
|
<li> <a href="started-welcome.html">Welcome</a> </li>
|
||||||
|
<li> <a href="started-installation.html">Installation</a> </li>
|
||||||
|
<li> <a href="started-faq.html">FAQ</a> </li>
|
||||||
|
</ul>
|
||||||
|
<ul class="side-nav">
|
||||||
|
<li class="side-nav-head">API</li>
|
||||||
|
<li> <a href="api-options.html">Options</a> </li>
|
||||||
|
<li> <a href="api-classes.html">Classes</a> </li>
|
||||||
|
<li> <a href="api-events.html">Events</a> </li>
|
||||||
|
</ul>
|
||||||
|
<ul class="side-nav">
|
||||||
|
<li class="side-nav-head">Development</li>
|
||||||
|
<li> <a href="dev-buildin-plugins.html">Built-in Plugins</a> </li>
|
||||||
|
<li> <a href="dev-plugin-api.html">Plugin API</a> </li>
|
||||||
|
<li> <a href="dev-styles.html">Sass Styles</a> </li>
|
||||||
|
<li> <a href="dev-external.html">External Libs</a> </li>
|
||||||
|
</ul>
|
||||||
|
<ul class="side-nav">
|
||||||
|
<li class="side-nav-head">Support</li>
|
||||||
|
<li> <a href="support-contributing.html">Contributing</a> </li>
|
||||||
|
<li> <a href="support-changelog.html">Changelog</a> </li>
|
||||||
|
<li> <a href="support-contact.html">Contact</a> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="small-12 medium-9 large-9 columns">
|
||||||
|
<article class="docs-content">
|
||||||
|
<h2 id="classes">Classes</h2>
|
||||||
|
<p>This is an example of how html is rendered. With the following options you can change almost every class the way you want</p>
|
||||||
|
<pre><code><div class="owl-carousel owl-theme owl-loaded">
|
||||||
|
<div class="owl-stage-outer">
|
||||||
|
<div class="owl-stage">
|
||||||
|
<div class="owl-item">...</div>
|
||||||
|
<div class="owl-item">...</div>
|
||||||
|
<div class="owl-item">...</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="owl-nav">
|
||||||
|
<div class="owl-prev">prev</div>
|
||||||
|
<div class="owl-next">next</div>
|
||||||
|
</div>
|
||||||
|
<div class="owl-dots">
|
||||||
|
<div class="owl-dot active"><span></span></div>
|
||||||
|
<div class="owl-dot"><span></span></div>
|
||||||
|
<div class="owl-dot"><span></span></div>
|
||||||
|
</div>
|
||||||
|
</div></code></pre>
|
||||||
|
<h3 id="options">Options</h3>
|
||||||
|
<h4 id="refreshclass">refreshClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-refresh</code></p>
|
||||||
|
<p>Class during refresh.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="loadingclass">loadingClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-loading</code></p>
|
||||||
|
<p>Class during load.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="loadedclass">loadedClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-loaded</code></p>
|
||||||
|
<p>Class after load.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="rtlclass">rtlClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-rtl</code></p>
|
||||||
|
<p>Class for right to left mode.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="dragclass">dragClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-drag</code></p>
|
||||||
|
<p>Class for mouse drag mode.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="grabclass">grabClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-grab</code></p>
|
||||||
|
<p>Class during mouse drag.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="stageclass">stageClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-stage</code></p>
|
||||||
|
<p>Stage class.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="stageouterclass">stageOuterClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-stage-outer</code></p>
|
||||||
|
<p>Stage outer class.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="navcontainerclass">navContainerClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-nav</code></p>
|
||||||
|
<p>Navigation container class.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="navclass">navClass</h4>
|
||||||
|
<p>Type: <code>Array</code>
|
||||||
|
<br /> Default: <code>[&#x27;owl-prev&#x27;,&#x27;owl-next&#x27;]</code></p>
|
||||||
|
<p>Navigation buttons classes.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="dotclass">dotClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-dot</code></p>
|
||||||
|
<p>Dot Class.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="dotsclass">dotsClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-dots</code></p>
|
||||||
|
<p>Dots container class.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="autoheightclass">autoHeightClass</h4>
|
||||||
|
<p>Type: <code>String</code>
|
||||||
|
<br /> Default: <code>owl-height</code></p>
|
||||||
|
<p>Auto height class.</p>
|
||||||
|
<hr>
|
||||||
|
<h4 id="responsiveclass">responsiveClass</h4>
|
||||||
|
<p>Type: <code>String|Boolean</code>
|
||||||
|
<br /> Default: <code>false</code></p>
|
||||||
|
<p>Optional helper class. Add '<responsiveClass>-<breakpoint>' class to main element. Can be used to stylize content on given breakpoint.</p>
|
||||||
|
<hr>
|
||||||
|
<h3 id="next-step">Next Step</h3>
|
||||||
|
<h4 id="-events-api-events-html-">
|
||||||
|
<a href="api-events.html">Events</a>
|
||||||
|
</h4>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="row">
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<h5>
|
||||||
|
<a href="/OwlCarousel2/docs/support-contact.html">David Deutsch</a>
|
||||||
|
<a id="custom-tweet-button" href="https://twitter.com/share?url=https://github.com/OwlCarousel2/OwlCarousel2&text=Owl Carousel - This is so awesome! " target="_blank"></a>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- vendors -->
|
||||||
|
<script src="../assets/vendors/highlight.js"></script>
|
||||||
|
<script src="../assets/js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||