Remove themes
This commit is contained in:
parent
ea9a84b038
commit
cdf3879a8b
|
@ -78,14 +78,15 @@ class pluginGoogle extends Plugin {
|
||||||
|
|
||||||
public function siteBodyBegin()
|
public function siteBodyBegin()
|
||||||
{
|
{
|
||||||
|
$html = '';
|
||||||
|
|
||||||
// Google Tag Manager
|
// Google Tag Manager
|
||||||
if ($this->getValue('google-tag-manager')) {
|
if ($this->getValue('google-tag-manager')) {
|
||||||
$html = '<!-- Google Tag Manager (noscript) -->'.PHP_EOL;
|
$html .= '<!-- Google Tag Manager (noscript) -->'.PHP_EOL;
|
||||||
$html .= '<noscript><iframe src="https://www.googletagmanager.com/ns.html?id='.$this->getValue('google-tag-manager').'" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>'.PHP_EOL;
|
$html .= '<noscript><iframe src="https://www.googletagmanager.com/ns.html?id='.$this->getValue('google-tag-manager').'" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>'.PHP_EOL;
|
||||||
$html .= '<!-- End Google Tag Manager (noscript) -->'.PHP_EOL;
|
$html .= '<!-- End Google Tag Manager (noscript) -->'.PHP_EOL;
|
||||||
return $html;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"plugin-data":
|
||||||
|
{
|
||||||
|
"name": "Neueste Inhalte",
|
||||||
|
"description": "Liste der neuesten Inhalte in der Seitenleiste (bei Themes mit einer Seitenleiste). Die Anzahl kann in den Einstellungen gewählt werden. Die Reihenfolge entspricht der unter \"Einstellungen\" > \"Erweitert\" gewählten Option."
|
||||||
|
},
|
||||||
|
"home-link": "Hauptseite",
|
||||||
|
"show-the-home-link-on-the-sidebar": "Link zur Hauptseite.",
|
||||||
|
"amount-of-items": "Anzahl der Inhalte"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"plugin-data":
|
||||||
|
{
|
||||||
|
"name": "Neueste Inhalte",
|
||||||
|
"description": "Liste der neuesten Inhalte in der Seitenleiste (bei Themes mit einer Seitenleiste). Die Anzahl kann in den Einstellungen gewählt werden. Die Reihenfolge entspricht der unter \"Einstellungen\" > \"Erweitert\" gewählten Option."
|
||||||
|
},
|
||||||
|
"home-link": "Hauptseite",
|
||||||
|
"show-the-home-link-on-the-sidebar": "Link zur Hauptseite.",
|
||||||
|
"amount-of-items": "Anzahl der Inhalte"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"plugin-data":
|
||||||
|
{
|
||||||
|
"name": "Latest content",
|
||||||
|
"description": "List of latest contents, you can set the number of items.<br>The order of the content is taken from the advanced settings of Bludit."
|
||||||
|
},
|
||||||
|
"home-link": "Home link",
|
||||||
|
"show-the-home-link-on-the-sidebar": "Show the home link on the sidebar.",
|
||||||
|
"amount-of-items": "Amount of items"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"plugin-data":
|
||||||
|
{
|
||||||
|
"name": "Último contenido",
|
||||||
|
"description": "Lista los últimos contenidos, puede establecer el número de elementos.<br>El orden del contenido se toma de la configuración avanzada de Bludit."
|
||||||
|
},
|
||||||
|
"home-link": "Enlace Home",
|
||||||
|
"show-the-home-link-on-the-sidebar": "Mostrar el vínculo de inicio en la barra lateral.",
|
||||||
|
"amount-of-items": "Cantidad de artículos"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"plugin-data":
|
||||||
|
{
|
||||||
|
"name": "Dernier contenu",
|
||||||
|
"description": "Liste des derniers contenus, vous pouvez définir le nombre d’éléments. <br> L’ordre du contenu est tiré des paramètres avancés de Bludit."
|
||||||
|
},
|
||||||
|
"home-link": "Lien vers la page d’acceuil.",
|
||||||
|
"show-the-home-link-on-the-sidebar": "Afficher le lien vers la page d’acceuil sur la barre latérale.",
|
||||||
|
"amount-of-items": "Quantité d’objets"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"plugin-data":
|
||||||
|
{
|
||||||
|
"name": "Последний контент",
|
||||||
|
"description": "Список последнего содержимого, вы можете задать количество позиций.<br>Порядок отображения содержимого задаётся в расширенных настройках Bludit."
|
||||||
|
},
|
||||||
|
"home-link": "Ссылка на главную страницу",
|
||||||
|
"show-the-home-link-on-the-sidebar": "Показывать ссылку на главную страницу на боковой панели",
|
||||||
|
"amount-of-items": "Количество позиций"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"author": "Bludit",
|
||||||
|
"email": "",
|
||||||
|
"website": "https://plugins.bludit.com",
|
||||||
|
"version": "2.2",
|
||||||
|
"releaseDate": "2018-01-23",
|
||||||
|
"license": "MIT",
|
||||||
|
"compatible": "2.2",
|
||||||
|
"notes": ""
|
||||||
|
}
|
|
@ -0,0 +1,125 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class pluginNavigation extends Plugin {
|
||||||
|
|
||||||
|
public function init()
|
||||||
|
{
|
||||||
|
// Fields and default values for the database of this plugin
|
||||||
|
$this->dbFields = array(
|
||||||
|
'label'=>'Navigation',
|
||||||
|
'homeLink'=>true,
|
||||||
|
'amountOfItems'=>5
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Method called on the settings of the plugin on the admin area
|
||||||
|
public function form()
|
||||||
|
{
|
||||||
|
global $Language;
|
||||||
|
|
||||||
|
$html = '<div>';
|
||||||
|
$html .= '<label>'.$Language->get('Label').'</label>';
|
||||||
|
$html .= '<input id="jslabel" name="label" type="text" value="'.$this->getValue('label').'">';
|
||||||
|
$html .= '<span class="tip">'.$Language->get('This title is almost always used in the sidebar of the site').'</span>';
|
||||||
|
$html .= '</div>';
|
||||||
|
|
||||||
|
$html .= '<div>';
|
||||||
|
$html .= '<label>'.$Language->get('Home link').'</label>';
|
||||||
|
$html .= '<select name="homeLink">';
|
||||||
|
$html .= '<option value="true" '.($this->getValue('homeLink')===true?'selected':'').'>'.$Language->get('Enabled').'</option>';
|
||||||
|
$html .= '<option value="false" '.($this->getValue('homeLink')===false?'selected':'').'>'.$Language->get('Disabled').'</option>';
|
||||||
|
$html .= '</select>';
|
||||||
|
$html .= '<span class="tip">'.$Language->get('Show the home link on the sidebar').'</span>';
|
||||||
|
$html .= '</div>';
|
||||||
|
|
||||||
|
$html .= '<div>';
|
||||||
|
$html .= '<label>'.$Language->get('Amount of items').'</label>';
|
||||||
|
$html .= '<input id="jsamountOfItems" name="amountOfItems" type="text" value="'.$this->getValue('amountOfItems').'">';
|
||||||
|
$html .= '</div>';
|
||||||
|
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Method called on the sidebar of the website
|
||||||
|
public function siteSidebar()
|
||||||
|
{
|
||||||
|
global $Language;
|
||||||
|
global $Url;
|
||||||
|
global $Site;
|
||||||
|
global $dbPages;
|
||||||
|
global $pagesByParent;
|
||||||
|
|
||||||
|
// Amount of pages to show
|
||||||
|
$amountOfItems = $this->getValue('amountOfItems');
|
||||||
|
|
||||||
|
// Page number the first one
|
||||||
|
$pageNumber = 1;
|
||||||
|
|
||||||
|
// Only published pages
|
||||||
|
$onlyPublished = true;
|
||||||
|
|
||||||
|
// Get the list of pages
|
||||||
|
$pages = $dbPages->getList($pageNumber, $amountOfItems, $onlyPublished, true);
|
||||||
|
|
||||||
|
// HTML for sidebar
|
||||||
|
$html = '<div class="plugin plugin-navigation">';
|
||||||
|
|
||||||
|
// Print the label if not empty
|
||||||
|
$label = $this->getValue('label');
|
||||||
|
if (!empty($label)) {
|
||||||
|
$html .= '<h2 class="plugin-label">'.$label.'</h2>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= '<div class="plugin-content">';
|
||||||
|
$html .= '<ul>';
|
||||||
|
|
||||||
|
if(ORDER_BY==='position') {
|
||||||
|
foreach($pagesByParent[PARENT] as $Parent) {
|
||||||
|
$html .= '<li class="parent">';
|
||||||
|
$html .= '<h3>';
|
||||||
|
$html .= $Parent->title();
|
||||||
|
$html .= '</h3>';
|
||||||
|
|
||||||
|
if(!empty($pagesByParent[$Parent->key()])) {
|
||||||
|
$html .= '<ul class="child">';
|
||||||
|
foreach($pagesByParent[$Parent->key()] as $child) {
|
||||||
|
$html .= '<li class="child">';
|
||||||
|
$html .= '<a class="child" href="'.$child->permalink().'">';
|
||||||
|
$html .= $child->title();
|
||||||
|
$html .= '</a>';
|
||||||
|
$html .= '</li>';
|
||||||
|
}
|
||||||
|
$html .= '</ul>';
|
||||||
|
}
|
||||||
|
$html .= '</li>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Show Home page link
|
||||||
|
if( $this->getValue('homeLink') ) {
|
||||||
|
$html .= '<li>';
|
||||||
|
$html .= '<a href="'.$Site->url().'">';
|
||||||
|
$html .= $Language->get('Home page');
|
||||||
|
$html .= '</a>';
|
||||||
|
$html .= '</li>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get keys of pages
|
||||||
|
foreach($pages as $pageKey) {
|
||||||
|
// Create the page object from the page key
|
||||||
|
$page = buildPage($pageKey);
|
||||||
|
$html .= '<li>';
|
||||||
|
$html .= '<a href="'.$page->permalink().'">';
|
||||||
|
$html .= $page->title();
|
||||||
|
$html .= '</a>';
|
||||||
|
$html .= '</li>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= '</ul>';
|
||||||
|
$html .= '</div>';
|
||||||
|
$html .= '</div>';
|
||||||
|
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,21 +0,0 @@
|
||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2013-2017 Blackrock Digital LLC
|
|
||||||
|
|
||||||
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.
|
|
|
@ -1,62 +0,0 @@
|
||||||
# [Start Bootstrap - Scrolling Nav](https://startbootstrap.com/template-overviews/scrolling-nav/)
|
|
||||||
|
|
||||||
[Scrolling Nav](http://startbootstrap.com/template-overviews/scrolling-nav/) is an unstyled one page starter template with a collapsing, smooth scrolling navigation bar for [Bootstrap](http://getbootstrap.com/) created by [Start Bootstrap](http://startbootstrap.com/).
|
|
||||||
|
|
||||||
## Preview
|
|
||||||
|
|
||||||
[![Scrolling Nav Preview](https://startbootstrap.com/assets/img/templates/scrolling-nav.jpg)](https://blackrockdigital.github.io/startbootstrap-scrolling-nav/)
|
|
||||||
|
|
||||||
**[View Live Preview](https://blackrockdigital.github.io/startbootstrap-scrolling-nav/)**
|
|
||||||
|
|
||||||
## Status
|
|
||||||
|
|
||||||
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/BlackrockDigital/startbootstrap-scrolling-nav/master/LICENSE)
|
|
||||||
[![npm version](https://img.shields.io/npm/v/startbootstrap-scrolling-nav.svg)](https://www.npmjs.com/package/startbootstrap-scrolling-nav)
|
|
||||||
[![Build Status](https://travis-ci.org/BlackrockDigital/startbootstrap-scrolling-nav.svg?branch=master)](https://travis-ci.org/BlackrockDigital/startbootstrap-scrolling-nav)
|
|
||||||
[![dependencies Status](https://david-dm.org/BlackrockDigital/startbootstrap-scrolling-nav/status.svg)](https://david-dm.org/BlackrockDigital/startbootstrap-scrolling-nav)
|
|
||||||
[![devDependencies Status](https://david-dm.org/BlackrockDigital/startbootstrap-scrolling-nav/dev-status.svg)](https://david-dm.org/BlackrockDigital/startbootstrap-scrolling-nav?type=dev)
|
|
||||||
|
|
||||||
## Download and Installation
|
|
||||||
|
|
||||||
To begin using this template, choose one of the following options to get started:
|
|
||||||
* [Download the latest release on Start Bootstrap](https://startbootstrap.com/template-overviews/scrolling-nav/)
|
|
||||||
* Install via npm: `npm i startbootstrap-scrolling-nav`
|
|
||||||
* Clone the repo: `git clone https://github.com/BlackrockDigital/startbootstrap-scrolling-nav.git`
|
|
||||||
* [Fork, Clone, or Download on GitHub](https://github.com/BlackrockDigital/startbootstrap-scrolling-nav)
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
### Basic Usage
|
|
||||||
|
|
||||||
After downloading, simply edit the HTML and CSS files included with the template in your favorite text editor to make changes. These are the only files you need to worry about, you can ignore everything else! To preview the changes you make to the code, you can open the `index.html` file in your web browser.
|
|
||||||
|
|
||||||
### Advanced Usage
|
|
||||||
|
|
||||||
After installation, run `npm install` and then run `gulp dev` which will open up a preview of the template in your default browser, watch for changes to core template files, and live reload the browser when changes are saved. You can view the `gulpfile.js` to see which tasks are included with the dev environment.
|
|
||||||
|
|
||||||
## Bugs and Issues
|
|
||||||
|
|
||||||
Have a bug or an issue with this template? [Open a new issue](https://github.com/BlackrockDigital/startbootstrap-scrolling-nav/issues) here on GitHub or leave a comment on the [template overview page at Start Bootstrap](http://startbootstrap.com/template-overviews/scrolling-nav/).
|
|
||||||
|
|
||||||
## Custom Builds
|
|
||||||
|
|
||||||
You can hire Start Bootstrap to create a custom build of any template, or create something from scratch using Bootstrap. For more information, visit the **[custom design services page](https://startbootstrap.com/bootstrap-design-services/)**.
|
|
||||||
|
|
||||||
## About
|
|
||||||
|
|
||||||
Start Bootstrap is an open source library of free Bootstrap templates and themes. All of the free templates and themes on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
|
|
||||||
|
|
||||||
* https://startbootstrap.com
|
|
||||||
* https://twitter.com/SBootstrap
|
|
||||||
|
|
||||||
Start Bootstrap was created by and is maintained by **[David Miller](http://davidmiller.io/)**, Owner of [Blackrock Digital](http://blackrockdigital.io/).
|
|
||||||
|
|
||||||
* http://davidmiller.io
|
|
||||||
* https://twitter.com/davidmillerskt
|
|
||||||
* https://github.com/davidtmiller
|
|
||||||
|
|
||||||
Start Bootstrap is based on the [Bootstrap](http://getbootstrap.com/) framework created by [Mark Otto](https://twitter.com/mdo) and [Jacob Thorton](https://twitter.com/fat).
|
|
||||||
|
|
||||||
## Copyright and License
|
|
||||||
|
|
||||||
Copyright 2013-2017 Blackrock Digital LLC. Code released under the [MIT](https://github.com/BlackrockDigital/startbootstrap-scrolling-nav/blob/gh-pages/LICENSE) license.
|
|
|
@ -1,19 +0,0 @@
|
||||||
/*!
|
|
||||||
* Start Bootstrap - Scrolling Nav (https://startbootstrap.com/template-overviews/scrolling-nav)
|
|
||||||
* Copyright 2013-2017 Start Bootstrap
|
|
||||||
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-scrolling-nav/blob/master/LICENSE)
|
|
||||||
*/
|
|
||||||
|
|
||||||
header {
|
|
||||||
padding: 154px 0 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
|
||||||
header {
|
|
||||||
padding: 156px 0 100px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
section {
|
|
||||||
padding: 150px 0;
|
|
||||||
}
|
|
|
@ -1,48 +0,0 @@
|
||||||
var gulp = require('gulp');
|
|
||||||
var browserSync = require('browser-sync').create();
|
|
||||||
var pkg = require('./package.json');
|
|
||||||
|
|
||||||
// Copy third party libraries from /node_modules into /vendor
|
|
||||||
gulp.task('vendor', function() {
|
|
||||||
|
|
||||||
// Bootstrap
|
|
||||||
gulp.src([
|
|
||||||
'./node_modules/bootstrap/dist/**/*',
|
|
||||||
'!./node_modules/bootstrap/dist/css/bootstrap-grid*',
|
|
||||||
'!./node_modules/bootstrap/dist/css/bootstrap-reboot*'
|
|
||||||
])
|
|
||||||
.pipe(gulp.dest('./vendor/bootstrap'))
|
|
||||||
|
|
||||||
// jQuery
|
|
||||||
gulp.src([
|
|
||||||
'./node_modules/jquery/dist/*',
|
|
||||||
'!./node_modules/jquery/dist/core.js'
|
|
||||||
])
|
|
||||||
.pipe(gulp.dest('./vendor/jquery'))
|
|
||||||
|
|
||||||
// jQuery Easing
|
|
||||||
gulp.src([
|
|
||||||
'node_modules/jquery.easing/*.js'
|
|
||||||
])
|
|
||||||
.pipe(gulp.dest('vendor/jquery-easing'))
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
// Default task
|
|
||||||
gulp.task('default', ['vendor']);
|
|
||||||
|
|
||||||
// Configure the browserSync task
|
|
||||||
gulp.task('browserSync', function() {
|
|
||||||
browserSync.init({
|
|
||||||
server: {
|
|
||||||
baseDir: "./"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// Dev task
|
|
||||||
gulp.task('dev', ['browserSync'], function() {
|
|
||||||
gulp.watch('./css/*.css', browserSync.reload);
|
|
||||||
gulp.watch('./js/*.js', browserSync.reload);
|
|
||||||
gulp.watch('./*.html', browserSync.reload);
|
|
||||||
});
|
|
|
@ -1,112 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Scrolling Nav - Start Bootstrap Template</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="css/scrolling-nav.css" rel="stylesheet">
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body id="page-top">
|
|
||||||
|
|
||||||
<!-- Navigation -->
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
|
|
||||||
<div class="container">
|
|
||||||
<a class="navbar-brand js-scroll-trigger" href="#page-top">Start Bootstrap</a>
|
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
|
||||||
<ul class="navbar-nav ml-auto">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link js-scroll-trigger" href="#about">About</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link js-scroll-trigger" href="#services">Services</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link js-scroll-trigger" href="#contact">Contact</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<header class="bg-primary text-white">
|
|
||||||
<div class="container text-center">
|
|
||||||
<h1>Welcome to Scrolling Nav</h1>
|
|
||||||
<p class="lead">A landing page template freshly redesigned for Bootstrap 4</p>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<section id="about">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-8 mx-auto">
|
|
||||||
<h2>About this page</h2>
|
|
||||||
<p class="lead">This is a great place to talk about your webpage. This template is purposefully unstyled so you can use it as a boilerplate or starting point for you own landing page designs! This template features:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Clickable nav links that smooth scroll to page sections</li>
|
|
||||||
<li>Responsive behavior when clicking nav links perfect for a one page website</li>
|
|
||||||
<li>Bootstrap's scrollspy feature which highlights which section of the page you're on in the navbar</li>
|
|
||||||
<li>Minimal custom CSS so you are free to explore your own unique design options</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section id="services" class="bg-light">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-8 mx-auto">
|
|
||||||
<h2>Services we offer</h2>
|
|
||||||
<p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut optio velit inventore, expedita quo laboriosam possimus ea consequatur vitae, doloribus consequuntur ex. Nemo assumenda laborum vel, labore ut velit dignissimos.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section id="contact">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-8 mx-auto">
|
|
||||||
<h2>Contact us</h2>
|
|
||||||
<p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vero odio fugiat voluptatem dolor, provident officiis, id iusto! Obcaecati incidunt, qui nihil beatae magnam et repudiandae ipsa exercitationem, in, quo totam.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Footer -->
|
|
||||||
<footer class="py-5 bg-dark">
|
|
||||||
<div class="container">
|
|
||||||
<p class="m-0 text-center text-white">Copyright © Your Website 2017</p>
|
|
||||||
</div>
|
|
||||||
<!-- /.container -->
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript -->
|
|
||||||
<script src="vendor/jquery/jquery.min.js"></script>
|
|
||||||
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
||||||
|
|
||||||
<!-- Plugin JavaScript -->
|
|
||||||
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
|
|
||||||
|
|
||||||
<!-- Custom JavaScript for this theme -->
|
|
||||||
<script src="js/scrolling-nav.js"></script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
|
@ -1,29 +0,0 @@
|
||||||
(function($) {
|
|
||||||
"use strict"; // Start of use strict
|
|
||||||
|
|
||||||
// Smooth scrolling using jQuery easing
|
|
||||||
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
|
|
||||||
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
|
|
||||||
var target = $(this.hash);
|
|
||||||
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
|
|
||||||
if (target.length) {
|
|
||||||
$('html, body').animate({
|
|
||||||
scrollTop: (target.offset().top - 54)
|
|
||||||
}, 1000, "easeInOutExpo");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Closes responsive menu when a scroll trigger link is clicked
|
|
||||||
$('.js-scroll-trigger').click(function() {
|
|
||||||
$('.navbar-collapse').collapse('hide');
|
|
||||||
});
|
|
||||||
|
|
||||||
// Activate scrollspy to add active class to navbar items on scroll
|
|
||||||
$('body').scrollspy({
|
|
||||||
target: '#mainNav',
|
|
||||||
offset: 54
|
|
||||||
});
|
|
||||||
|
|
||||||
})(jQuery); // End of use strict
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
"title": "Scrolling Nav",
|
|
||||||
"name": "startbootstrap-scrolling-nav",
|
|
||||||
"version": "4.0.0",
|
|
||||||
"description": "A smooth scrolling navigation HTML template built with Bootstrap",
|
|
||||||
"keywords": [
|
|
||||||
"css",
|
|
||||||
"sass",
|
|
||||||
"html",
|
|
||||||
"responsive",
|
|
||||||
"theme",
|
|
||||||
"template"
|
|
||||||
],
|
|
||||||
"homepage": "https://startbootstrap.com/template-overviews/scrolling-nav",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/BlackrockDigital/startbootstrap-scrolling-nav/issues",
|
|
||||||
"email": "feedback@startbootstrap.com"
|
|
||||||
},
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Start Bootstrap",
|
|
||||||
"contributors": [
|
|
||||||
"David Miller (http://davidmiller.io/)"
|
|
||||||
],
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/BlackrockDigital/startbootstrap-scrolling-nav.git"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"bootstrap": "4.0.0",
|
|
||||||
"jquery": "3.3.0",
|
|
||||||
"jquery.easing": "^1.4.1"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"browser-sync": "2.23.5",
|
|
||||||
"gulp": "^3.9.1"
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,342 +0,0 @@
|
||||||
/*!
|
|
||||||
* Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com)
|
|
||||||
* Copyright 2011-2017 The Bootstrap Authors
|
|
||||||
* Copyright 2011-2017 Twitter, Inc.
|
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
|
||||||
*/
|
|
||||||
*,
|
|
||||||
*::before,
|
|
||||||
*::after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
font-family: sans-serif;
|
|
||||||
line-height: 1.15;
|
|
||||||
-webkit-text-size-adjust: 100%;
|
|
||||||
-ms-text-size-adjust: 100%;
|
|
||||||
-ms-overflow-style: scrollbar;
|
|
||||||
-webkit-tap-highlight-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
@-ms-viewport {
|
|
||||||
width: device-width;
|
|
||||||
}
|
|
||||||
|
|
||||||
article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
||||||
font-size: 1rem;
|
|
||||||
font-weight: 400;
|
|
||||||
line-height: 1.5;
|
|
||||||
color: #212529;
|
|
||||||
text-align: left;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
[tabindex="-1"]:focus {
|
|
||||||
outline: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr {
|
|
||||||
box-sizing: content-box;
|
|
||||||
height: 0;
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
abbr[title],
|
|
||||||
abbr[data-original-title] {
|
|
||||||
text-decoration: underline;
|
|
||||||
-webkit-text-decoration: underline dotted;
|
|
||||||
text-decoration: underline dotted;
|
|
||||||
cursor: help;
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
address {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
font-style: normal;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol,
|
|
||||||
ul,
|
|
||||||
dl {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol ol,
|
|
||||||
ul ul,
|
|
||||||
ol ul,
|
|
||||||
ul ol {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
dt {
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
dd {
|
|
||||||
margin-bottom: .5rem;
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote {
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
dfn {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
b,
|
|
||||||
strong {
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
small {
|
|
||||||
font-size: 80%;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub,
|
|
||||||
sup {
|
|
||||||
position: relative;
|
|
||||||
font-size: 75%;
|
|
||||||
line-height: 0;
|
|
||||||
vertical-align: baseline;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub {
|
|
||||||
bottom: -.25em;
|
|
||||||
}
|
|
||||||
|
|
||||||
sup {
|
|
||||||
top: -.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #007bff;
|
|
||||||
text-decoration: none;
|
|
||||||
background-color: transparent;
|
|
||||||
-webkit-text-decoration-skip: objects;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
|
||||||
color: #0056b3;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:not([href]):not([tabindex]) {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:not([href]):not([tabindex]):focus {
|
|
||||||
outline: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre,
|
|
||||||
code,
|
|
||||||
kbd,
|
|
||||||
samp {
|
|
||||||
font-family: monospace, monospace;
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
overflow: auto;
|
|
||||||
-ms-overflow-style: scrollbar;
|
|
||||||
}
|
|
||||||
|
|
||||||
figure {
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
vertical-align: middle;
|
|
||||||
border-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
svg:not(:root) {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
a,
|
|
||||||
area,
|
|
||||||
button,
|
|
||||||
[role="button"],
|
|
||||||
input:not([type="range"]),
|
|
||||||
label,
|
|
||||||
select,
|
|
||||||
summary,
|
|
||||||
textarea {
|
|
||||||
-ms-touch-action: manipulation;
|
|
||||||
touch-action: manipulation;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
|
|
||||||
caption {
|
|
||||||
padding-top: 0.75rem;
|
|
||||||
padding-bottom: 0.75rem;
|
|
||||||
color: #868e96;
|
|
||||||
text-align: left;
|
|
||||||
caption-side: bottom;
|
|
||||||
}
|
|
||||||
|
|
||||||
th {
|
|
||||||
text-align: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
display: inline-block;
|
|
||||||
margin-bottom: .5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:focus {
|
|
||||||
outline: 1px dotted;
|
|
||||||
outline: 5px auto -webkit-focus-ring-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
input,
|
|
||||||
button,
|
|
||||||
select,
|
|
||||||
optgroup,
|
|
||||||
textarea {
|
|
||||||
margin: 0;
|
|
||||||
font-family: inherit;
|
|
||||||
font-size: inherit;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
|
||||||
input {
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
|
||||||
select {
|
|
||||||
text-transform: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
|
||||||
html [type="button"],
|
|
||||||
[type="reset"],
|
|
||||||
[type="submit"] {
|
|
||||||
-webkit-appearance: button;
|
|
||||||
}
|
|
||||||
|
|
||||||
button::-moz-focus-inner,
|
|
||||||
[type="button"]::-moz-focus-inner,
|
|
||||||
[type="reset"]::-moz-focus-inner,
|
|
||||||
[type="submit"]::-moz-focus-inner {
|
|
||||||
padding: 0;
|
|
||||||
border-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type="radio"],
|
|
||||||
input[type="checkbox"] {
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type="date"],
|
|
||||||
input[type="time"],
|
|
||||||
input[type="datetime-local"],
|
|
||||||
input[type="month"] {
|
|
||||||
-webkit-appearance: listbox;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea {
|
|
||||||
overflow: auto;
|
|
||||||
resize: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
fieldset {
|
|
||||||
min-width: 0;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
legend {
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
max-width: 100%;
|
|
||||||
padding: 0;
|
|
||||||
margin-bottom: .5rem;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
line-height: inherit;
|
|
||||||
color: inherit;
|
|
||||||
white-space: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
progress {
|
|
||||||
vertical-align: baseline;
|
|
||||||
}
|
|
||||||
|
|
||||||
[type="number"]::-webkit-inner-spin-button,
|
|
||||||
[type="number"]::-webkit-outer-spin-button {
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
[type="search"] {
|
|
||||||
outline-offset: -2px;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
[type="search"]::-webkit-search-cancel-button,
|
|
||||||
[type="search"]::-webkit-search-decoration {
|
|
||||||
-webkit-appearance: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-file-upload-button {
|
|
||||||
font: inherit;
|
|
||||||
-webkit-appearance: button;
|
|
||||||
}
|
|
||||||
|
|
||||||
output {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
summary {
|
|
||||||
display: list-item;
|
|
||||||
}
|
|
||||||
|
|
||||||
template {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
[hidden] {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
/*# sourceMappingURL=bootstrap-reboot.css.map */
|
|
|
@ -1,8 +0,0 @@
|
||||||
/*!
|
|
||||||
* Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com)
|
|
||||||
* Copyright 2011-2017 The Bootstrap Authors
|
|
||||||
* Copyright 2011-2017 Twitter, Inc.
|
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
|
||||||
*/*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#868e96;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}
|
|
||||||
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,59 +0,0 @@
|
||||||
/*
|
|
||||||
* Easing Compatibility v1 - http://gsgd.co.uk/sandbox/jquery/easing
|
|
||||||
*
|
|
||||||
* Adds compatibility for applications that use the pre 1.2 easing names
|
|
||||||
*
|
|
||||||
* Copyright (c) 2007 George Smith
|
|
||||||
* Licensed under the MIT License:
|
|
||||||
* http://www.opensource.org/licenses/mit-license.php
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function($){
|
|
||||||
$.extend( $.easing,
|
|
||||||
{
|
|
||||||
easeIn: function (x, t, b, c, d) {
|
|
||||||
return $.easing.easeInQuad(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
easeOut: function (x, t, b, c, d) {
|
|
||||||
return $.easing.easeOutQuad(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
easeInOut: function (x, t, b, c, d) {
|
|
||||||
return $.easing.easeInOutQuad(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
expoin: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeInExpo(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
expoout: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeOutExpo(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
expoinout: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeInOutExpo(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
bouncein: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeInBounce(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
bounceout: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeOutBounce(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
bounceinout: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeInOutBounce(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
elasin: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeInElastic(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
elasout: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeOutElastic(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
elasinout: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeInOutElastic(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
backin: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeInBack(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
backout: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeOutBack(x, t, b, c, d);
|
|
||||||
},
|
|
||||||
backinout: function(x, t, b, c, d) {
|
|
||||||
return $.easing.easeInOutBack(x, t, b, c, d);
|
|
||||||
}
|
|
||||||
});})(jQuery);
|
|
|
@ -1,166 +0,0 @@
|
||||||
/*
|
|
||||||
* jQuery Easing v1.4.1 - http://gsgd.co.uk/sandbox/jquery/easing/
|
|
||||||
* Open source under the BSD License.
|
|
||||||
* Copyright © 2008 George McGinley Smith
|
|
||||||
* All rights reserved.
|
|
||||||
* https://raw.github.com/gdsmith/jquery-easing/master/LICENSE
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
define(['jquery'], function ($) {
|
|
||||||
return factory($);
|
|
||||||
});
|
|
||||||
} else if (typeof module === "object" && typeof module.exports === "object") {
|
|
||||||
exports = factory(require('jquery'));
|
|
||||||
} else {
|
|
||||||
factory(jQuery);
|
|
||||||
}
|
|
||||||
})(function($){
|
|
||||||
|
|
||||||
// Preserve the original jQuery "swing" easing as "jswing"
|
|
||||||
$.easing.jswing = $.easing.swing;
|
|
||||||
|
|
||||||
var pow = Math.pow,
|
|
||||||
sqrt = Math.sqrt,
|
|
||||||
sin = Math.sin,
|
|
||||||
cos = Math.cos,
|
|
||||||
PI = Math.PI,
|
|
||||||
c1 = 1.70158,
|
|
||||||
c2 = c1 * 1.525,
|
|
||||||
c3 = c1 + 1,
|
|
||||||
c4 = ( 2 * PI ) / 3,
|
|
||||||
c5 = ( 2 * PI ) / 4.5;
|
|
||||||
|
|
||||||
// x is the fraction of animation progress, in the range 0..1
|
|
||||||
function bounceOut(x) {
|
|
||||||
var n1 = 7.5625,
|
|
||||||
d1 = 2.75;
|
|
||||||
if ( x < 1/d1 ) {
|
|
||||||
return n1*x*x;
|
|
||||||
} else if ( x < 2/d1 ) {
|
|
||||||
return n1*(x-=(1.5/d1))*x + 0.75;
|
|
||||||
} else if ( x < 2.5/d1 ) {
|
|
||||||
return n1*(x-=(2.25/d1))*x + 0.9375;
|
|
||||||
} else {
|
|
||||||
return n1*(x-=(2.625/d1))*x + 0.984375;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$.extend( $.easing,
|
|
||||||
{
|
|
||||||
def: 'easeOutQuad',
|
|
||||||
swing: function (x) {
|
|
||||||
return $.easing[$.easing.def](x);
|
|
||||||
},
|
|
||||||
easeInQuad: function (x) {
|
|
||||||
return x * x;
|
|
||||||
},
|
|
||||||
easeOutQuad: function (x) {
|
|
||||||
return 1 - ( 1 - x ) * ( 1 - x );
|
|
||||||
},
|
|
||||||
easeInOutQuad: function (x) {
|
|
||||||
return x < 0.5 ?
|
|
||||||
2 * x * x :
|
|
||||||
1 - pow( -2 * x + 2, 2 ) / 2;
|
|
||||||
},
|
|
||||||
easeInCubic: function (x) {
|
|
||||||
return x * x * x;
|
|
||||||
},
|
|
||||||
easeOutCubic: function (x) {
|
|
||||||
return 1 - pow( 1 - x, 3 );
|
|
||||||
},
|
|
||||||
easeInOutCubic: function (x) {
|
|
||||||
return x < 0.5 ?
|
|
||||||
4 * x * x * x :
|
|
||||||
1 - pow( -2 * x + 2, 3 ) / 2;
|
|
||||||
},
|
|
||||||
easeInQuart: function (x) {
|
|
||||||
return x * x * x * x;
|
|
||||||
},
|
|
||||||
easeOutQuart: function (x) {
|
|
||||||
return 1 - pow( 1 - x, 4 );
|
|
||||||
},
|
|
||||||
easeInOutQuart: function (x) {
|
|
||||||
return x < 0.5 ?
|
|
||||||
8 * x * x * x * x :
|
|
||||||
1 - pow( -2 * x + 2, 4 ) / 2;
|
|
||||||
},
|
|
||||||
easeInQuint: function (x) {
|
|
||||||
return x * x * x * x * x;
|
|
||||||
},
|
|
||||||
easeOutQuint: function (x) {
|
|
||||||
return 1 - pow( 1 - x, 5 );
|
|
||||||
},
|
|
||||||
easeInOutQuint: function (x) {
|
|
||||||
return x < 0.5 ?
|
|
||||||
16 * x * x * x * x * x :
|
|
||||||
1 - pow( -2 * x + 2, 5 ) / 2;
|
|
||||||
},
|
|
||||||
easeInSine: function (x) {
|
|
||||||
return 1 - cos( x * PI/2 );
|
|
||||||
},
|
|
||||||
easeOutSine: function (x) {
|
|
||||||
return sin( x * PI/2 );
|
|
||||||
},
|
|
||||||
easeInOutSine: function (x) {
|
|
||||||
return -( cos( PI * x ) - 1 ) / 2;
|
|
||||||
},
|
|
||||||
easeInExpo: function (x) {
|
|
||||||
return x === 0 ? 0 : pow( 2, 10 * x - 10 );
|
|
||||||
},
|
|
||||||
easeOutExpo: function (x) {
|
|
||||||
return x === 1 ? 1 : 1 - pow( 2, -10 * x );
|
|
||||||
},
|
|
||||||
easeInOutExpo: function (x) {
|
|
||||||
return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ?
|
|
||||||
pow( 2, 20 * x - 10 ) / 2 :
|
|
||||||
( 2 - pow( 2, -20 * x + 10 ) ) / 2;
|
|
||||||
},
|
|
||||||
easeInCirc: function (x) {
|
|
||||||
return 1 - sqrt( 1 - pow( x, 2 ) );
|
|
||||||
},
|
|
||||||
easeOutCirc: function (x) {
|
|
||||||
return sqrt( 1 - pow( x - 1, 2 ) );
|
|
||||||
},
|
|
||||||
easeInOutCirc: function (x) {
|
|
||||||
return x < 0.5 ?
|
|
||||||
( 1 - sqrt( 1 - pow( 2 * x, 2 ) ) ) / 2 :
|
|
||||||
( sqrt( 1 - pow( -2 * x + 2, 2 ) ) + 1 ) / 2;
|
|
||||||
},
|
|
||||||
easeInElastic: function (x) {
|
|
||||||
return x === 0 ? 0 : x === 1 ? 1 :
|
|
||||||
-pow( 2, 10 * x - 10 ) * sin( ( x * 10 - 10.75 ) * c4 );
|
|
||||||
},
|
|
||||||
easeOutElastic: function (x) {
|
|
||||||
return x === 0 ? 0 : x === 1 ? 1 :
|
|
||||||
pow( 2, -10 * x ) * sin( ( x * 10 - 0.75 ) * c4 ) + 1;
|
|
||||||
},
|
|
||||||
easeInOutElastic: function (x) {
|
|
||||||
return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ?
|
|
||||||
-( pow( 2, 20 * x - 10 ) * sin( ( 20 * x - 11.125 ) * c5 )) / 2 :
|
|
||||||
pow( 2, -20 * x + 10 ) * sin( ( 20 * x - 11.125 ) * c5 ) / 2 + 1;
|
|
||||||
},
|
|
||||||
easeInBack: function (x) {
|
|
||||||
return c3 * x * x * x - c1 * x * x;
|
|
||||||
},
|
|
||||||
easeOutBack: function (x) {
|
|
||||||
return 1 + c3 * pow( x - 1, 3 ) + c1 * pow( x - 1, 2 );
|
|
||||||
},
|
|
||||||
easeInOutBack: function (x) {
|
|
||||||
return x < 0.5 ?
|
|
||||||
( pow( 2 * x, 2 ) * ( ( c2 + 1 ) * 2 * x - c2 ) ) / 2 :
|
|
||||||
( pow( 2 * x - 2, 2 ) *( ( c2 + 1 ) * ( x * 2 - 2 ) + c2 ) + 2 ) / 2;
|
|
||||||
},
|
|
||||||
easeInBounce: function (x) {
|
|
||||||
return 1 - bounceOut( 1 - x );
|
|
||||||
},
|
|
||||||
easeOutBounce: bounceOut,
|
|
||||||
easeInOutBounce: function (x) {
|
|
||||||
return x < 0.5 ?
|
|
||||||
( 1 - bounceOut( 1 - 2 * x ) ) / 2 :
|
|
||||||
( 1 + bounceOut( 2 * x - 1 ) ) / 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
|
@ -1 +0,0 @@
|
||||||
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require("jquery"))}else{factory(jQuery)}})(function($){$.easing.jswing=$.easing.swing;var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*PI/3,c5=2*PI/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=1.5/d1)*x+.75}else if(x<2.5/d1){return n1*(x-=2.25/d1)*x+.9375}else{return n1*(x-=2.625/d1)*x+.984375}}$.extend($.easing,{def:"easeOutQuad",swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<.5?pow(2*x,2)*((c2+1)*2*x-c2)/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})});
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue