ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Nwdthemes\Base\Block\System\Config\Form\Field;
|
||||
|
||||
/**
|
||||
* Class Color
|
||||
* @package Nwdthemes\Base\Block\System\Config\Form\Field
|
||||
*
|
||||
* <field id="color" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
* <label>Color</label>
|
||||
* <comment><![CDATA[Background color]]></comment>
|
||||
* <frontend_model>Nwdthemes\Base\Block\System\Config\Form\Field\Color</frontend_model>
|
||||
* </field>
|
||||
*
|
||||
*/
|
||||
class Color extends \Magento\Config\Block\System\Config\Form\Field
|
||||
{
|
||||
|
||||
/**
|
||||
* Retrieve element HTML markup
|
||||
*
|
||||
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
|
||||
* @return string
|
||||
*/
|
||||
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
|
||||
{
|
||||
$element->setData('class', $element->getData('class') . ' jscolor');
|
||||
return $element->getElementHtml();
|
||||
}
|
||||
|
||||
}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
http://themeforest.net/licenses/terms/regular
|
||||
+727
@@ -0,0 +1,727 @@
|
||||
<?php
|
||||
|
||||
namespace Nwdthemes\Base\Model\Source;
|
||||
|
||||
use Magento\Framework\Data\OptionSourceInterface;
|
||||
|
||||
/**
|
||||
* Class GoogleFonts
|
||||
*/
|
||||
class GoogleFonts implements OptionSourceInterface
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $options;
|
||||
|
||||
/**
|
||||
* Get options
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function toOptionArray()
|
||||
{
|
||||
if ($this->options !== null) {
|
||||
return $this->options;
|
||||
}
|
||||
|
||||
$fonts = $this->getFontsList();
|
||||
$options = [];
|
||||
foreach ($fonts as $value) {
|
||||
$options[] = [
|
||||
'label' => $value,
|
||||
'value' => $value,
|
||||
];
|
||||
}
|
||||
$this->options = $options;
|
||||
|
||||
return $this->options;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get google fonts list
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
private function getFontsList()
|
||||
{
|
||||
return array(
|
||||
'ABeeZee',
|
||||
'Abel',
|
||||
'Abril Fatface',
|
||||
'Aclonica',
|
||||
'Acme',
|
||||
'Actor',
|
||||
'Adamina',
|
||||
'Advent Pro',
|
||||
'Aguafina Script',
|
||||
'Akronim',
|
||||
'Aladin',
|
||||
'Aldrich',
|
||||
'Alef',
|
||||
'Alegreya',
|
||||
'Alegreya SC',
|
||||
'Alegreya Sans',
|
||||
'Alegreya Sans SC',
|
||||
'Alex Brush',
|
||||
'Alfa Slab One',
|
||||
'Alice',
|
||||
'Alike',
|
||||
'Alike Angular',
|
||||
'Allan',
|
||||
'Allerta',
|
||||
'Allerta Stencil',
|
||||
'Allura',
|
||||
'Almendra',
|
||||
'Almendra Display',
|
||||
'Almendra SC',
|
||||
'Amarante',
|
||||
'Amaranth',
|
||||
'Amatic SC',
|
||||
'Amethysta',
|
||||
'Anaheim',
|
||||
'Andada',
|
||||
'Andika',
|
||||
'Angkor',
|
||||
'Annie Use Your Telescope',
|
||||
'Anonymous Pro',
|
||||
'Antic',
|
||||
'Antic Didone',
|
||||
'Antic Slab',
|
||||
'Anton',
|
||||
'Arapey',
|
||||
'Arbutus',
|
||||
'Arbutus Slab',
|
||||
'Architects Daughter',
|
||||
'Archivo Black',
|
||||
'Archivo Narrow',
|
||||
'Arimo',
|
||||
'Arizonia',
|
||||
'Armata',
|
||||
'Artifika',
|
||||
'Arvo',
|
||||
'Asap',
|
||||
'Asset',
|
||||
'Astloch',
|
||||
'Asul',
|
||||
'Atomic Age',
|
||||
'Aubrey',
|
||||
'Audiowide',
|
||||
'Autour One',
|
||||
'Average',
|
||||
'Average Sans',
|
||||
'Averia Gruesa Libre',
|
||||
'Averia Libre',
|
||||
'Averia Sans Libre',
|
||||
'Averia Serif Libre',
|
||||
'Bad Script',
|
||||
'Balthazar',
|
||||
'Bangers',
|
||||
'Basic',
|
||||
'Battambang',
|
||||
'Baumans',
|
||||
'Bayon',
|
||||
'Belgrano',
|
||||
'Belleza',
|
||||
'BenchNine',
|
||||
'Bentham',
|
||||
'Berkshire Swash',
|
||||
'Bevan',
|
||||
'Bigelow Rules',
|
||||
'Bigshot One',
|
||||
'Bilbo',
|
||||
'Bilbo Swash Caps',
|
||||
'Bitter',
|
||||
'Black Ops One',
|
||||
'Bokor',
|
||||
'Bonbon',
|
||||
'Boogaloo',
|
||||
'Bowlby One',
|
||||
'Bowlby One SC',
|
||||
'Brawler',
|
||||
'Bree Serif',
|
||||
'Bubblegum Sans',
|
||||
'Bubbler One',
|
||||
'Buda',
|
||||
'Buenard',
|
||||
'Butcherman',
|
||||
'Butterfly Kids',
|
||||
'Cabin',
|
||||
'Cabin Condensed',
|
||||
'Cabin Sketch',
|
||||
'Caesar Dressing',
|
||||
'Cagliostro',
|
||||
'Calligraffitti',
|
||||
'Cambo',
|
||||
'Candal',
|
||||
'Cantarell',
|
||||
'Cantata One',
|
||||
'Cantora One',
|
||||
'Capriola',
|
||||
'Cardo',
|
||||
'Carme',
|
||||
'Carrois Gothic',
|
||||
'Carrois Gothic SC',
|
||||
'Carter One',
|
||||
'Caudex',
|
||||
'Cedarville Cursive',
|
||||
'Ceviche One',
|
||||
'Changa One',
|
||||
'Chango',
|
||||
'Chau Philomene One',
|
||||
'Chela One',
|
||||
'Chelsea Market',
|
||||
'Chenla',
|
||||
'Cherry Cream Soda',
|
||||
'Cherry Swash',
|
||||
'Chewy',
|
||||
'Chicle',
|
||||
'Chivo',
|
||||
'Cinzel',
|
||||
'Cinzel Decorative',
|
||||
'Clicker Script',
|
||||
'Coda',
|
||||
'Coda Caption',
|
||||
'Codystar',
|
||||
'Combo',
|
||||
'Comfortaa',
|
||||
'Coming Soon',
|
||||
'Concert One',
|
||||
'Condiment',
|
||||
'Content',
|
||||
'Contrail One',
|
||||
'Convergence',
|
||||
'Cookie',
|
||||
'Copse',
|
||||
'Corben',
|
||||
'Courgette',
|
||||
'Cousine',
|
||||
'Coustard',
|
||||
'Covered By Your Grace',
|
||||
'Crafty Girls',
|
||||
'Creepster',
|
||||
'Crete Round',
|
||||
'Crimson Text',
|
||||
'Croissant One',
|
||||
'Crushed',
|
||||
'Cuprum',
|
||||
'Cutive',
|
||||
'Cutive Mono',
|
||||
'Damion',
|
||||
'Dancing Script',
|
||||
'Dangrek',
|
||||
'Dawning of a New Day',
|
||||
'Days One',
|
||||
'Delius',
|
||||
'Delius Swash Caps',
|
||||
'Delius Unicase',
|
||||
'Della Respira',
|
||||
'Denk One',
|
||||
'Devonshire',
|
||||
'Didact Gothic',
|
||||
'Diplomata',
|
||||
'Diplomata SC',
|
||||
'Domine',
|
||||
'Donegal One',
|
||||
'Doppio One',
|
||||
'Dorsa',
|
||||
'Dosis',
|
||||
'Dr Sugiyama',
|
||||
'Droid Sans',
|
||||
'Droid Sans Mono',
|
||||
'Droid Serif',
|
||||
'Duru Sans',
|
||||
'Dynalight',
|
||||
'EB Garamond',
|
||||
'Eagle Lake',
|
||||
'Eater',
|
||||
'Economica',
|
||||
'Ek Mukta',
|
||||
'Electrolize',
|
||||
'Elsie',
|
||||
'Elsie Swash Caps',
|
||||
'Emblema One',
|
||||
'Emilys Candy',
|
||||
'Engagement',
|
||||
'Englebert',
|
||||
'Enriqueta',
|
||||
'Erica One',
|
||||
'Esteban',
|
||||
'Euphoria Script',
|
||||
'Ewert',
|
||||
'Exo',
|
||||
'Exo 2',
|
||||
'Expletus Sans',
|
||||
'Fanwood Text',
|
||||
'Fascinate',
|
||||
'Fascinate Inline',
|
||||
'Faster One',
|
||||
'Fasthand',
|
||||
'Fauna One',
|
||||
'Federant',
|
||||
'Federo',
|
||||
'Felipa',
|
||||
'Fenix',
|
||||
'Finger Paint',
|
||||
'Fira Mono',
|
||||
'Fira Sans',
|
||||
'Fjalla One',
|
||||
'Fjord One',
|
||||
'Flamenco',
|
||||
'Flavors',
|
||||
'Fondamento',
|
||||
'Fontdiner Swanky',
|
||||
'Forum',
|
||||
'Francois One',
|
||||
'Freckle Face',
|
||||
'Fredericka the Great',
|
||||
'Fredoka One',
|
||||
'Freehand',
|
||||
'Fresca',
|
||||
'Frijole',
|
||||
'Fruktur',
|
||||
'Fugaz One',
|
||||
'GFS Didot',
|
||||
'GFS Neohellenic',
|
||||
'Gabriela',
|
||||
'Gafata',
|
||||
'Galdeano',
|
||||
'Galindo',
|
||||
'Gentium Basic',
|
||||
'Gentium Book Basic',
|
||||
'Geo',
|
||||
'Geostar',
|
||||
'Geostar Fill',
|
||||
'Germania One',
|
||||
'Gilda Display',
|
||||
'Give You Glory',
|
||||
'Glass Antiqua',
|
||||
'Glegoo',
|
||||
'Gloria Hallelujah',
|
||||
'Goblin One',
|
||||
'Gochi Hand',
|
||||
'Gorditas',
|
||||
'Goudy Bookletter 1911',
|
||||
'Graduate',
|
||||
'Grand Hotel',
|
||||
'Gravitas One',
|
||||
'Great Vibes',
|
||||
'Griffy',
|
||||
'Gruppo',
|
||||
'Gudea',
|
||||
'Habibi',
|
||||
'Halant',
|
||||
'Hammersmith One',
|
||||
'Hanalei',
|
||||
'Hanalei Fill',
|
||||
'Handlee',
|
||||
'Hanuman',
|
||||
'Happy Monkey',
|
||||
'Headland One',
|
||||
'Henny Penny',
|
||||
'Herr Von Muellerhoff',
|
||||
'Hind',
|
||||
'Holtwood One SC',
|
||||
'Homemade Apple',
|
||||
'Homenaje',
|
||||
'IM Fell DW Pica',
|
||||
'IM Fell DW Pica SC',
|
||||
'IM Fell Double Pica',
|
||||
'IM Fell Double Pica SC',
|
||||
'IM Fell English',
|
||||
'IM Fell English SC',
|
||||
'IM Fell French Canon',
|
||||
'IM Fell French Canon SC',
|
||||
'IM Fell Great Primer',
|
||||
'IM Fell Great Primer SC',
|
||||
'Iceberg',
|
||||
'Iceland',
|
||||
'Imprima',
|
||||
'Inconsolata',
|
||||
'Inder',
|
||||
'Indie Flower',
|
||||
'Inika',
|
||||
'Irish Grover',
|
||||
'Istok Web',
|
||||
'Italiana',
|
||||
'Italianno',
|
||||
'Jacques Francois',
|
||||
'Jacques Francois Shadow',
|
||||
'Jim Nightshade',
|
||||
'Jockey One',
|
||||
'Jolly Lodger',
|
||||
'Josefin Sans',
|
||||
'Josefin Slab',
|
||||
'Joti One',
|
||||
'Judson',
|
||||
'Julee',
|
||||
'Julius Sans One',
|
||||
'Junge',
|
||||
'Jura',
|
||||
'Just Another Hand',
|
||||
'Just Me Again Down Here',
|
||||
'Kalam',
|
||||
'Kameron',
|
||||
'Kantumruy',
|
||||
'Karla',
|
||||
'Karma',
|
||||
'Kaushan Script',
|
||||
'Kavoon',
|
||||
'Kdam Thmor',
|
||||
'Keania One',
|
||||
'Kelly Slab',
|
||||
'Kenia',
|
||||
'Khand',
|
||||
'Khmer',
|
||||
'Kite One',
|
||||
'Knewave',
|
||||
'Kotta One',
|
||||
'Koulen',
|
||||
'Kranky',
|
||||
'Kreon',
|
||||
'Kristi',
|
||||
'Krona One',
|
||||
'La Belle Aurore',
|
||||
'Laila',
|
||||
'Lancelot',
|
||||
'Lato',
|
||||
'League Script',
|
||||
'Leckerli One',
|
||||
'Ledger',
|
||||
'Lekton',
|
||||
'Lemon',
|
||||
'Libre Baskerville',
|
||||
'Life Savers',
|
||||
'Lilita One',
|
||||
'Lily Script One',
|
||||
'Limelight',
|
||||
'Linden Hill',
|
||||
'Lobster',
|
||||
'Lobster Two',
|
||||
'Londrina Outline',
|
||||
'Londrina Shadow',
|
||||
'Londrina Sketch',
|
||||
'Londrina Solid',
|
||||
'Lora',
|
||||
'Love Ya Like A Sister',
|
||||
'Loved by the King',
|
||||
'Lovers Quarrel',
|
||||
'Luckiest Guy',
|
||||
'Lusitana',
|
||||
'Lustria',
|
||||
'Macondo',
|
||||
'Macondo Swash Caps',
|
||||
'Magra',
|
||||
'Maiden Orange',
|
||||
'Mako',
|
||||
'Marcellus',
|
||||
'Marcellus SC',
|
||||
'Marck Script',
|
||||
'Margarine',
|
||||
'Marko One',
|
||||
'Marmelad',
|
||||
'Marvel',
|
||||
'Mate',
|
||||
'Mate SC',
|
||||
'Maven Pro',
|
||||
'McLaren',
|
||||
'Meddon',
|
||||
'MedievalSharp',
|
||||
'Medula One',
|
||||
'Megrim',
|
||||
'Meie Script',
|
||||
'Merienda',
|
||||
'Merienda One',
|
||||
'Merriweather',
|
||||
'Merriweather Sans',
|
||||
'Metal',
|
||||
'Metal Mania',
|
||||
'Metamorphous',
|
||||
'Metrophobic',
|
||||
'Michroma',
|
||||
'Milonga',
|
||||
'Miltonian',
|
||||
'Miltonian Tattoo',
|
||||
'Miniver',
|
||||
'Miss Fajardose',
|
||||
'Modern Antiqua',
|
||||
'Molengo',
|
||||
'Molle',
|
||||
'Monda',
|
||||
'Monofett',
|
||||
'Monoton',
|
||||
'Monsieur La Doulaise',
|
||||
'Montaga',
|
||||
'Montez',
|
||||
'Montserrat',
|
||||
'Montserrat Alternates',
|
||||
'Montserrat Subrayada',
|
||||
'Moul',
|
||||
'Moulpali',
|
||||
'Mountains of Christmas',
|
||||
'Mouse Memoirs',
|
||||
'Mr Bedfort',
|
||||
'Mr Dafoe',
|
||||
'Mr De Haviland',
|
||||
'Mrs Saint Delafield',
|
||||
'Mrs Sheppards',
|
||||
'Muli',
|
||||
'Mystery Quest',
|
||||
'Neucha',
|
||||
'Neuton',
|
||||
'New Rocker',
|
||||
'News Cycle',
|
||||
'Niconne',
|
||||
'Nixie One',
|
||||
'Nobile',
|
||||
'Nokora',
|
||||
'Norican',
|
||||
'Nosifer',
|
||||
'Nothing You Could Do',
|
||||
'Noticia Text',
|
||||
'Noto Sans',
|
||||
'Noto Serif',
|
||||
'Nova Cut',
|
||||
'Nova Flat',
|
||||
'Nova Mono',
|
||||
'Nova Oval',
|
||||
'Nova Round',
|
||||
'Nova Script',
|
||||
'Nova Slim',
|
||||
'Nova Square',
|
||||
'Numans',
|
||||
'Nunito',
|
||||
'Odor Mean Chey',
|
||||
'Offside',
|
||||
'Old Standard TT',
|
||||
'Oldenburg',
|
||||
'Oleo Script',
|
||||
'Oleo Script Swash Caps',
|
||||
'Open Sans',
|
||||
'Open Sans Condensed',
|
||||
'Oranienbaum',
|
||||
'Orbitron',
|
||||
'Oregano',
|
||||
'Orienta',
|
||||
'Original Surfer',
|
||||
'Oswald',
|
||||
'Over the Rainbow',
|
||||
'Overlock',
|
||||
'Overlock SC',
|
||||
'Ovo',
|
||||
'Oxygen',
|
||||
'Oxygen Mono',
|
||||
'PT Mono',
|
||||
'PT Sans',
|
||||
'PT Sans Caption',
|
||||
'PT Sans Narrow',
|
||||
'PT Serif',
|
||||
'PT Serif Caption',
|
||||
'Pacifico',
|
||||
'Paprika',
|
||||
'Parisienne',
|
||||
'Passero One',
|
||||
'Passion One',
|
||||
'Pathway Gothic One',
|
||||
'Patrick Hand',
|
||||
'Patrick Hand SC',
|
||||
'Patua One',
|
||||
'Paytone One',
|
||||
'Peralta',
|
||||
'Permanent Marker',
|
||||
'Petit Formal Script',
|
||||
'Petrona',
|
||||
'Philosopher',
|
||||
'Piedra',
|
||||
'Pinyon Script',
|
||||
'Pirata One',
|
||||
'Plaster',
|
||||
'Play',
|
||||
'Playball',
|
||||
'Playfair Display',
|
||||
'Playfair Display SC',
|
||||
'Podkova',
|
||||
'Poiret One',
|
||||
'Poller One',
|
||||
'Poly',
|
||||
'Pompiere',
|
||||
'Pontano Sans',
|
||||
'Port Lligat Sans',
|
||||
'Port Lligat Slab',
|
||||
'Prata',
|
||||
'Preahvihear',
|
||||
'Press Start 2P',
|
||||
'Princess Sofia',
|
||||
'Prociono',
|
||||
'Prosto One',
|
||||
'Puritan',
|
||||
'Purple Purse',
|
||||
'Quando',
|
||||
'Quantico',
|
||||
'Quattrocento',
|
||||
'Quattrocento Sans',
|
||||
'Questrial',
|
||||
'Quicksand',
|
||||
'Quintessential',
|
||||
'Qwigley',
|
||||
'Racing Sans One',
|
||||
'Radley',
|
||||
'Rajdhani',
|
||||
'Raleway',
|
||||
'Raleway Dots',
|
||||
'Rambla',
|
||||
'Rammetto One',
|
||||
'Ranchers',
|
||||
'Rancho',
|
||||
'Rationale',
|
||||
'Redressed',
|
||||
'Reenie Beanie',
|
||||
'Revalia',
|
||||
'Ribeye',
|
||||
'Ribeye Marrow',
|
||||
'Righteous',
|
||||
'Risque',
|
||||
'Roboto',
|
||||
'Roboto Condensed',
|
||||
'Roboto Slab',
|
||||
'Rochester',
|
||||
'Rock Salt',
|
||||
'Rokkitt',
|
||||
'Romanesco',
|
||||
'Ropa Sans',
|
||||
'Rosario',
|
||||
'Rosarivo',
|
||||
'Rouge Script',
|
||||
'Rozha One',
|
||||
'Rubik Mono One',
|
||||
'Rubik One',
|
||||
'Ruda',
|
||||
'Rufina',
|
||||
'Ruge Boogie',
|
||||
'Ruluko',
|
||||
'Rum Raisin',
|
||||
'Ruslan Display',
|
||||
'Russo One',
|
||||
'Ruthie',
|
||||
'Rye',
|
||||
'Sacramento',
|
||||
'Sail',
|
||||
'Salsa',
|
||||
'Sanchez',
|
||||
'Sancreek',
|
||||
'Sansita One',
|
||||
'Sarina',
|
||||
'Sarpanch',
|
||||
'Satisfy',
|
||||
'Scada',
|
||||
'Schoolbell',
|
||||
'Seaweed Script',
|
||||
'Sevillana',
|
||||
'Seymour One',
|
||||
'Shadows Into Light',
|
||||
'Shadows Into Light Two',
|
||||
'Shanti',
|
||||
'Share',
|
||||
'Share Tech',
|
||||
'Share Tech Mono',
|
||||
'Shojumaru',
|
||||
'Short Stack',
|
||||
'Siemreap',
|
||||
'Sigmar One',
|
||||
'Signika',
|
||||
'Signika Negative',
|
||||
'Simonetta',
|
||||
'Sintony',
|
||||
'Sirin Stencil',
|
||||
'Six Caps',
|
||||
'Skranji',
|
||||
'Slabo 13px',
|
||||
'Slabo 27px',
|
||||
'Slackey',
|
||||
'Smokum',
|
||||
'Smythe',
|
||||
'Sniglet',
|
||||
'Snippet',
|
||||
'Snowburst One',
|
||||
'Sofadi One',
|
||||
'Sofia',
|
||||
'Sonsie One',
|
||||
'Sorts Mill Goudy',
|
||||
'Source Code Pro',
|
||||
'Source Sans Pro',
|
||||
'Source Serif Pro',
|
||||
'Special Elite',
|
||||
'Spicy Rice',
|
||||
'Spinnaker',
|
||||
'Spirax',
|
||||
'Squada One',
|
||||
'Stalemate',
|
||||
'Stalinist One',
|
||||
'Stardos Stencil',
|
||||
'Stint Ultra Condensed',
|
||||
'Stint Ultra Expanded',
|
||||
'Stoke',
|
||||
'Strait',
|
||||
'Sue Ellen Francisco',
|
||||
'Sunshiney',
|
||||
'Supermercado One',
|
||||
'Suwannaphum',
|
||||
'Swanky and Moo Moo',
|
||||
'Syncopate',
|
||||
'Tangerine',
|
||||
'Taprom',
|
||||
'Tauri',
|
||||
'Teko',
|
||||
'Telex',
|
||||
'Tenor Sans',
|
||||
'Text Me One',
|
||||
'The Girl Next Door',
|
||||
'Tienne',
|
||||
'Tinos',
|
||||
'Titan One',
|
||||
'Titillium Web',
|
||||
'Trade Winds',
|
||||
'Trocchi',
|
||||
'Trochut',
|
||||
'Trykker',
|
||||
'Tulpen One',
|
||||
'Ubuntu',
|
||||
'Ubuntu Condensed',
|
||||
'Ubuntu Mono',
|
||||
'Ultra',
|
||||
'Uncial Antiqua',
|
||||
'Underdog',
|
||||
'Unica One',
|
||||
'UnifrakturCook',
|
||||
'UnifrakturMaguntia',
|
||||
'Unkempt',
|
||||
'Unlock',
|
||||
'Unna',
|
||||
'VT323',
|
||||
'Vampiro One',
|
||||
'Varela',
|
||||
'Varela Round',
|
||||
'Vast Shadow',
|
||||
'Vesper Libre',
|
||||
'Vibur',
|
||||
'Vidaloka',
|
||||
'Viga',
|
||||
'Voces',
|
||||
'Volkhov',
|
||||
'Vollkorn',
|
||||
'Voltaire',
|
||||
'Waiting for the Sunrise',
|
||||
'Wallpoet',
|
||||
'Walter Turncoat',
|
||||
'Warnes',
|
||||
'Wellfleet',
|
||||
'Wendy One',
|
||||
'Wire One',
|
||||
'Yanone Kaffeesatz',
|
||||
'Yellowtail',
|
||||
'Yeseva One',
|
||||
'Yesteryear',
|
||||
'Zeyada'
|
||||
);
|
||||
}
|
||||
}
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
## NWDthemes Base
|
||||
|
||||
Base Module to share stuff between extensions
|
||||
|
||||
## Contributors
|
||||
|
||||
NWDthemes team
|
||||
|
||||
## License
|
||||
|
||||
[proprietary](LICENSE.txt)
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "nwdthemes/base",
|
||||
"description": "Base Module to share stuff between extensions",
|
||||
"type": "magento2-module",
|
||||
"version": "1.0.0",
|
||||
"license": [ "proprietary" ],
|
||||
"require": {
|
||||
"php": ">=5.4.0"
|
||||
},
|
||||
"autoload": {
|
||||
"files": [ "registration.php" ],
|
||||
"psr-4": {
|
||||
"Nwdthemes\\Base\\": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
|
||||
<menu>
|
||||
<add id="Nwdthemes_Base::base" title="NWDthemes" module="Nwdthemes_Base" sortOrder="77" resource="Nwdthemes_Base::base"/>
|
||||
</menu>
|
||||
</config>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
|
||||
<system>
|
||||
<tab id="nwdthemes" translate="label" sortOrder="777">
|
||||
<label>NWDthemes</label>
|
||||
</tab>
|
||||
</system>
|
||||
</config>
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="Nwdthemes_Base" setup_version="1.0.0">
|
||||
</module>
|
||||
</config>
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
use \Magento\Framework\Component\ComponentRegistrar;
|
||||
|
||||
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Nwdthemes_Base', __DIR__);
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<script src="Nwdthemes_Base::js/jscolor.min.js"/>
|
||||
</head>
|
||||
</page>
|
||||
@@ -0,0 +1,10 @@
|
||||
var config = {
|
||||
paths: {
|
||||
jscolor: 'Nwdthemes_Base/js/jscolor.min'
|
||||
},
|
||||
shim: {
|
||||
jscolor: {
|
||||
exports: 'jscolor'
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Copyright © 2016 Magento. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
define([
|
||||
'jquery',
|
||||
'Magento_Ui/js/form/element/abstract',
|
||||
'jscolor'
|
||||
],
|
||||
function($, Abstract) {
|
||||
return Abstract.extend({
|
||||
defaults: {
|
||||
},
|
||||
|
||||
/**
|
||||
* Initializes component, invokes initialize method of Abstract class.
|
||||
*
|
||||
* @returns {Object} Chainable.
|
||||
*/
|
||||
initialize: function () {
|
||||
this._super();
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Handler function which is supposed to be invoked when
|
||||
* input element has been rendered.
|
||||
*
|
||||
* @param {HTMLInputElement} input
|
||||
*/
|
||||
onElementRender: function (input) {
|
||||
$(input).width(100);
|
||||
new jscolor(input, {hash: true, uppercase: true});
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
+10
File diff suppressed because one or more lines are too long
@@ -0,0 +1,14 @@
|
||||
<input class="admin__control-text" type="text"
|
||||
afterRender="onElementRender"
|
||||
data-bind="
|
||||
event: {change: userChanges},
|
||||
value: value,
|
||||
hasFocus: focused,
|
||||
valueUpdate: valueUpdate,
|
||||
attr: {
|
||||
name: inputName,
|
||||
placeholder: placeholder,
|
||||
'aria-describedby': noticeId,
|
||||
id: uid,
|
||||
disabled: disabled
|
||||
}"/>
|
||||
@@ -0,0 +1,13 @@
|
||||
var config = {
|
||||
"map": {
|
||||
'*': {
|
||||
'nwdthemes/jquery.easing' : 'Nwdthemes_Base/js/jquery.easing',
|
||||
'nwdthemes/owl.carousel' : 'Nwdthemes_Base/js/owl.carousel',
|
||||
'nwdthemes/owl.carousel.min' : 'Nwdthemes_Base/js/owl.carousel.min'
|
||||
}
|
||||
},
|
||||
"shim": {
|
||||
"nwdthemes/owl.carousel": ["jquery"],
|
||||
"nwdthemes/owl.carousel.min": ["jquery"]
|
||||
}
|
||||
};
|
||||
+2337
File diff suppressed because it is too large
Load Diff
+4
File diff suppressed because one or more lines are too long
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Core Owl Carousel CSS File
|
||||
* v1.3.2
|
||||
*/
|
||||
|
||||
/* clearfix */
|
||||
.owl-carousel .owl-wrapper:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0;
|
||||
}
|
||||
/* display none until init */
|
||||
.owl-carousel{
|
||||
display: none;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
-ms-touch-action: pan-y;
|
||||
}
|
||||
.owl-carousel .owl-wrapper{
|
||||
display: none;
|
||||
position: relative;
|
||||
-webkit-transform: translate3d(0px, 0px, 0px);
|
||||
}
|
||||
.owl-carousel .owl-wrapper-outer{
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.owl-carousel .owl-wrapper-outer.autoHeight{
|
||||
-webkit-transition: height 500ms ease-in-out;
|
||||
-moz-transition: height 500ms ease-in-out;
|
||||
-ms-transition: height 500ms ease-in-out;
|
||||
-o-transition: height 500ms ease-in-out;
|
||||
transition: height 500ms ease-in-out;
|
||||
}
|
||||
|
||||
.owl-carousel .owl-item{
|
||||
float: left;
|
||||
}
|
||||
.owl-controls .owl-page,
|
||||
.owl-controls .owl-buttons div{
|
||||
cursor: pointer;
|
||||
}
|
||||
.owl-controls {
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
/* mouse grab icon */
|
||||
.grabbing {
|
||||
cursor:url(grabbing.png) 8 8, move;
|
||||
}
|
||||
|
||||
/* fix */
|
||||
.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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Owl Carousel Owl Demo Theme
|
||||
* v1.3.2
|
||||
*/
|
||||
|
||||
.owl-theme .owl-controls{
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Styling Next and Prev buttons */
|
||||
|
||||
.owl-theme .owl-controls .owl-buttons div{
|
||||
color: #FFF;
|
||||
display: inline-block;
|
||||
zoom: 1;
|
||||
*display: inline;/*IE7 life-saver */
|
||||
margin: 5px;
|
||||
padding: 3px 10px;
|
||||
font-size: 12px;
|
||||
-webkit-border-radius: 30px;
|
||||
-moz-border-radius: 30px;
|
||||
border-radius: 30px;
|
||||
background: #869791;
|
||||
filter: Alpha(Opacity=50);/*IE7 fix*/
|
||||
opacity: 0.5;
|
||||
}
|
||||
/* Clickable class fix problem with hover on touch devices */
|
||||
/* Use it for non-touch hover action */
|
||||
.owl-theme .owl-controls.clickable .owl-buttons div:hover{
|
||||
filter: Alpha(Opacity=100);/*IE7 fix*/
|
||||
opacity: 1;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Styling Pagination*/
|
||||
|
||||
.owl-theme .owl-controls .owl-page{
|
||||
display: inline-block;
|
||||
zoom: 1;
|
||||
*display: inline;/*IE7 life-saver */
|
||||
}
|
||||
.owl-theme .owl-controls .owl-page span{
|
||||
display: block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
margin: 5px 7px;
|
||||
filter: Alpha(Opacity=50);/*IE7 fix*/
|
||||
opacity: 0.5;
|
||||
-webkit-border-radius: 20px;
|
||||
-moz-border-radius: 20px;
|
||||
border-radius: 20px;
|
||||
background: #869791;
|
||||
}
|
||||
|
||||
.owl-theme .owl-controls .owl-page.active span,
|
||||
.owl-theme .owl-controls.clickable .owl-page:hover span{
|
||||
filter: Alpha(Opacity=100);/*IE7 fix*/
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* If PaginationNumbers is true */
|
||||
|
||||
.owl-theme .owl-controls .owl-page span.owl-numbers{
|
||||
height: auto;
|
||||
width: auto;
|
||||
color: #FFF;
|
||||
padding: 2px 10px;
|
||||
font-size: 12px;
|
||||
-webkit-border-radius: 30px;
|
||||
-moz-border-radius: 30px;
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
/* preloading images */
|
||||
.owl-item.loading{
|
||||
min-height: 150px;
|
||||
background: url(AjaxLoader.gif) no-repeat center center
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
/*
|
||||
* Owl Carousel CSS3 Transitions
|
||||
* v1.3.2
|
||||
*/
|
||||
|
||||
.owl-origin {
|
||||
-webkit-perspective: 1200px;
|
||||
-webkit-perspective-origin-x : 50%;
|
||||
-webkit-perspective-origin-y : 50%;
|
||||
-moz-perspective : 1200px;
|
||||
-moz-perspective-origin-x : 50%;
|
||||
-moz-perspective-origin-y : 50%;
|
||||
perspective : 1200px;
|
||||
}
|
||||
/* fade */
|
||||
.owl-fade-out {
|
||||
z-index: 10;
|
||||
-webkit-animation: fadeOut .7s both ease;
|
||||
-moz-animation: fadeOut .7s both ease;
|
||||
animation: fadeOut .7s both ease;
|
||||
}
|
||||
.owl-fade-in {
|
||||
-webkit-animation: fadeIn .7s both ease;
|
||||
-moz-animation: fadeIn .7s both ease;
|
||||
animation: fadeIn .7s both ease;
|
||||
}
|
||||
/* backSlide */
|
||||
.owl-backSlide-out {
|
||||
-webkit-animation: backSlideOut 1s both ease;
|
||||
-moz-animation: backSlideOut 1s both ease;
|
||||
animation: backSlideOut 1s both ease;
|
||||
}
|
||||
.owl-backSlide-in {
|
||||
-webkit-animation: backSlideIn 1s both ease;
|
||||
-moz-animation: backSlideIn 1s both ease;
|
||||
animation: backSlideIn 1s both ease;
|
||||
}
|
||||
/* goDown */
|
||||
.owl-goDown-out {
|
||||
-webkit-animation: scaleToFade .7s ease both;
|
||||
-moz-animation: scaleToFade .7s ease both;
|
||||
animation: scaleToFade .7s ease both;
|
||||
}
|
||||
.owl-goDown-in {
|
||||
-webkit-animation: goDown .6s ease both;
|
||||
-moz-animation: goDown .6s ease both;
|
||||
animation: goDown .6s ease both;
|
||||
}
|
||||
/* scaleUp */
|
||||
.owl-fadeUp-in {
|
||||
-webkit-animation: scaleUpFrom .5s ease both;
|
||||
-moz-animation: scaleUpFrom .5s ease both;
|
||||
animation: scaleUpFrom .5s ease both;
|
||||
}
|
||||
|
||||
.owl-fadeUp-out {
|
||||
-webkit-animation: scaleUpTo .5s ease both;
|
||||
-moz-animation: scaleUpTo .5s ease both;
|
||||
animation: scaleUpTo .5s ease both;
|
||||
}
|
||||
/* Keyframes */
|
||||
/*empty*/
|
||||
@-webkit-keyframes empty {
|
||||
0% {opacity: 1}
|
||||
}
|
||||
@-moz-keyframes empty {
|
||||
0% {opacity: 1}
|
||||
}
|
||||
@keyframes empty {
|
||||
0% {opacity: 1}
|
||||
}
|
||||
@-webkit-keyframes fadeIn {
|
||||
0% { opacity:0; }
|
||||
100% { opacity:1; }
|
||||
}
|
||||
@-moz-keyframes fadeIn {
|
||||
0% { opacity:0; }
|
||||
100% { opacity:1; }
|
||||
}
|
||||
@keyframes fadeIn {
|
||||
0% { opacity:0; }
|
||||
100% { opacity:1; }
|
||||
}
|
||||
@-webkit-keyframes fadeOut {
|
||||
0% { opacity:1; }
|
||||
100% { opacity:0; }
|
||||
}
|
||||
@-moz-keyframes fadeOut {
|
||||
0% { opacity:1; }
|
||||
100% { opacity:0; }
|
||||
}
|
||||
@keyframes fadeOut {
|
||||
0% { opacity:1; }
|
||||
100% { opacity:0; }
|
||||
}
|
||||
@-webkit-keyframes backSlideOut {
|
||||
25% { opacity: .5; -webkit-transform: translateZ(-500px); }
|
||||
75% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(-200%); }
|
||||
100% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(-200%); }
|
||||
}
|
||||
@-moz-keyframes backSlideOut {
|
||||
25% { opacity: .5; -moz-transform: translateZ(-500px); }
|
||||
75% { opacity: .5; -moz-transform: translateZ(-500px) translateX(-200%); }
|
||||
100% { opacity: .5; -moz-transform: translateZ(-500px) translateX(-200%); }
|
||||
}
|
||||
@keyframes backSlideOut {
|
||||
25% { opacity: .5; transform: translateZ(-500px); }
|
||||
75% { opacity: .5; transform: translateZ(-500px) translateX(-200%); }
|
||||
100% { opacity: .5; transform: translateZ(-500px) translateX(-200%); }
|
||||
}
|
||||
@-webkit-keyframes backSlideIn {
|
||||
0%, 25% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(200%); }
|
||||
75% { opacity: .5; -webkit-transform: translateZ(-500px); }
|
||||
100% { opacity: 1; -webkit-transform: translateZ(0) translateX(0); }
|
||||
}
|
||||
@-moz-keyframes backSlideIn {
|
||||
0%, 25% { opacity: .5; -moz-transform: translateZ(-500px) translateX(200%); }
|
||||
75% { opacity: .5; -moz-transform: translateZ(-500px); }
|
||||
100% { opacity: 1; -moz-transform: translateZ(0) translateX(0); }
|
||||
}
|
||||
@keyframes backSlideIn {
|
||||
0%, 25% { opacity: .5; transform: translateZ(-500px) translateX(200%); }
|
||||
75% { opacity: .5; transform: translateZ(-500px); }
|
||||
100% { opacity: 1; transform: translateZ(0) translateX(0); }
|
||||
}
|
||||
@-webkit-keyframes scaleToFade {
|
||||
to { opacity: 0; -webkit-transform: scale(.8); }
|
||||
}
|
||||
@-moz-keyframes scaleToFade {
|
||||
to { opacity: 0; -moz-transform: scale(.8); }
|
||||
}
|
||||
@keyframes scaleToFade {
|
||||
to { opacity: 0; transform: scale(.8); }
|
||||
}
|
||||
@-webkit-keyframes goDown {
|
||||
from { -webkit-transform: translateY(-100%); }
|
||||
}
|
||||
@-moz-keyframes goDown {
|
||||
from { -moz-transform: translateY(-100%); }
|
||||
}
|
||||
@keyframes goDown {
|
||||
from { transform: translateY(-100%); }
|
||||
}
|
||||
|
||||
@-webkit-keyframes scaleUpFrom {
|
||||
from { opacity: 0; -webkit-transform: scale(1.5); }
|
||||
}
|
||||
@-moz-keyframes scaleUpFrom {
|
||||
from { opacity: 0; -moz-transform: scale(1.5); }
|
||||
}
|
||||
@keyframes scaleUpFrom {
|
||||
from { opacity: 0; transform: scale(1.5); }
|
||||
}
|
||||
|
||||
@-webkit-keyframes scaleUpTo {
|
||||
to { opacity: 0; -webkit-transform: scale(1.5); }
|
||||
}
|
||||
@-moz-keyframes scaleUpTo {
|
||||
to { opacity: 0; -moz-transform: scale(1.5); }
|
||||
}
|
||||
@keyframes scaleUpTo {
|
||||
to { opacity: 0; transform: scale(1.5); }
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 437 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
*
|
||||
* TERMS OF USE - jQuery Easing
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
||||
|
||||
jQuery.extend( jQuery.easing,
|
||||
{
|
||||
def: 'easeOutQuad',
|
||||
swing: function (x, t, b, c, d) {
|
||||
//alert(jQuery.easing.default);
|
||||
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
||||
},
|
||||
easeInQuad: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t + b;
|
||||
},
|
||||
easeOutQuad: function (x, t, b, c, d) {
|
||||
return -c *(t/=d)*(t-2) + b;
|
||||
},
|
||||
easeInOutQuad: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t + b;
|
||||
return -c/2 * ((--t)*(t-2) - 1) + b;
|
||||
},
|
||||
easeInCubic: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t + b;
|
||||
},
|
||||
easeOutCubic: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t + 1) + b;
|
||||
},
|
||||
easeInOutCubic: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t + 2) + b;
|
||||
},
|
||||
easeInQuart: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t + b;
|
||||
},
|
||||
easeOutQuart: function (x, t, b, c, d) {
|
||||
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
||||
},
|
||||
easeInOutQuart: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
||||
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
||||
},
|
||||
easeInQuint: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t*t + b;
|
||||
},
|
||||
easeOutQuint: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
||||
},
|
||||
easeInOutQuint: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
||||
},
|
||||
easeInSine: function (x, t, b, c, d) {
|
||||
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
||||
},
|
||||
easeOutSine: function (x, t, b, c, d) {
|
||||
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
||||
},
|
||||
easeInOutSine: function (x, t, b, c, d) {
|
||||
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
||||
},
|
||||
easeInExpo: function (x, t, b, c, d) {
|
||||
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
||||
},
|
||||
easeOutExpo: function (x, t, b, c, d) {
|
||||
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
||||
},
|
||||
easeInOutExpo: function (x, t, b, c, d) {
|
||||
if (t==0) return b;
|
||||
if (t==d) return b+c;
|
||||
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
||||
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
||||
},
|
||||
easeInCirc: function (x, t, b, c, d) {
|
||||
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
||||
},
|
||||
easeOutCirc: function (x, t, b, c, d) {
|
||||
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
||||
},
|
||||
easeInOutCirc: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
||||
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
||||
},
|
||||
easeInElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
},
|
||||
easeOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
||||
},
|
||||
easeInOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
||||
},
|
||||
easeInBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*(t/=d)*t*((s+1)*t - s) + b;
|
||||
},
|
||||
easeOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
||||
},
|
||||
easeInOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
||||
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
||||
},
|
||||
easeInBounce: function (x, t, b, c, d) {
|
||||
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
||||
},
|
||||
easeOutBounce: function (x, t, b, c, d) {
|
||||
if ((t/=d) < (1/2.75)) {
|
||||
return c*(7.5625*t*t) + b;
|
||||
} else if (t < (2/2.75)) {
|
||||
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
||||
} else if (t < (2.5/2.75)) {
|
||||
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
||||
} else {
|
||||
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
||||
}
|
||||
},
|
||||
easeInOutBounce: function (x, t, b, c, d) {
|
||||
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
||||
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
*
|
||||
* TERMS OF USE - EASING EQUATIONS
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2001 Robert Penner
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
+1491
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user