This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### | |
| Init owlCarousel with custom DOM options | |
| http://www.owlcarousel.owlgraphic.com/docs/api-options.html | |
| @plugin-options | |
| @responsive-options | |
| @nav-text | |
| https://github.com/smashingboxes/OwlCarousel2 | |
| ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //========================================================================= | |
| // POLYFILL for requestAnimationFrame | |
| //========================================================================= | |
| if (!window.requestAnimationFrame) { // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| window.requestAnimationFrame = window.webkitRequestAnimationFrame || | |
| window.mozRequestAnimationFrame || | |
| window.oRequestAnimationFrame || | |
| window.msRequestAnimationFrame || | |
| function(callback, element) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var browserSync = require('browser-sync'); | |
| var del = require('del'); | |
| var gulp = require('gulp'); | |
| var pageSpeed = require('psi'); | |
| var plugins = require('gulp-load-plugins')(); | |
| var runSequence = require('run-sequence'); | |
| // Optimize images | |
| gulp.task('images', function () { | |
| return gulp.src('app"<%= asset_path('$1') %>"**/*') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($) { | |
| /** | |
| * Trim Form Elements before returning Serialize() | |
| * @param {string} selector Defaults to 'input[type=text]' | |
| * @return {serialized()} Returned jQuery serialize() string | |
| */ | |
| $.fn.trimSerialize = function(selector) { | |
| // Deep clone form (to get all nested elements), then unbind everything off the clone | |
| var clonedObject = $(this).clone(true).off(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * jQuery alterClass plugin | |
| * | |
| * Remove element classes with wildcard matching. Optionally add classes: | |
| * $( '#foo' ).alterClass( 'foo-* bar-*', 'foobar' ) | |
| * | |
| * Copyright (c) 2011 Pete Boere (the-echoplex.net) | |
| * Free under terms of the MIT license: http://www.opensource.org/licenses/mit-license.php | |
| * | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BrowserDetect = { | |
| init:-> | |
| this.browser = this.searchString(this.dataBrowser) || "Other" | |
| this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "Unknown" | |
| searchString: (data) -> | |
| for (var i = 0; i < data.length; i++) { | |
| var dataString = data[i].string; | |
| this.versionSearchString = data[i].subString; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"> | |
| </script> | |
| <meta charset='utf-8' /> | |
| <title> | |
| infinite loop carousel(horizontal) | |
| </title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A class-based template for jQuery plugins in Coffeescript | |
| # | |
| # $('.target').myPlugin({ paramA: 'not-foo' }); | |
| # $('.target').myPlugin('myMethod', 'Hello, world'); | |
| # | |
| # Check out Alan Hogan's original jQuery plugin template: | |
| # https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
| # | |
| (($, window) -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @charset "UTF-8"; | |
| @mixin grab-cursor { | |
| // http://www.google.com/intl/en_ALL/mapfiles/openhand.cur | |
| cursor: url('data:image/vnd.microsoft.icon;base64,AAACAAEAICACAAcABQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAEAAAAAAAAAAAAAAgAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8AAAA/AAAAfwAAAP+AAAH/gAAB/8AAA//AAAd/wAAGf+AAAH9gAADbYAAA2yAAAZsAAAGbAAAAGAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////gH///4B///8Af//+AD///AA///wAH//4AB//8AAf//AAD//5AA///gAP//4AD//8AF///AB///5A////5///8='), all-scroll; | |
| // cursor: -webkit-grab; | |
| cursor: -moz-grab; | |
| cursor: -o-grab; | |
| cursor: -ms-grab; | |
| cursor: grab; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <!--[if IE 8]> <html lang="sv-SE" class="no-js ie8"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html lang="sv-SE" class="no-js"> <!--<![endif]--> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Breakpoint detection test</title> | |
| <style type="text/css" media="screen"> | |
| @media screen and (min-width: 320px) { | |
| #page:after { | |
| content: 'smallest'; /* represent the current width-bracket */ |