rails_pitfall 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. metadata +2 -34
  2. data/.gitignore +0 -18
  3. data/.rvmrc +0 -48
  4. data/Gemfile +0 -4
  5. data/LICENSE.txt +0 -1
  6. data/README.md +0 -45
  7. data/Rakefile +0 -1
  8. data/lib/rails_pitfall/version.rb +0 -3
  9. data/lib/rails_pitfall.rb +0 -18
  10. data/rails_pitfall.gemspec +0 -25
  11. data/vendor/assets/images/backgrounds/wild_oliva.png +0 -0
  12. data/vendor/assets/images/backgrounds/wild_oliva_@2X.png +0 -0
  13. data/vendor/assets/images/backgrounds/wild_oliva_blue_dark.png +0 -0
  14. data/vendor/assets/images/backgrounds/wild_oliva_blue_light.png +0 -0
  15. data/vendor/assets/images/backgrounds/wild_oliva_dark.png +0 -0
  16. data/vendor/assets/images/backgrounds/wild_oliva_light.png +0 -0
  17. data/vendor/assets/images/backgrounds/wild_oliva_light_head.png +0 -0
  18. data/vendor/assets/images/ui.totop.png +0 -0
  19. data/vendor/assets/javascript/easing.js +0 -141
  20. data/vendor/assets/javascript/isotope/jquery.isotope.js +0 -1407
  21. data/vendor/assets/javascript/jquery.ui/jquery.ui.totop.js +0 -55
  22. data/vendor/assets/javascript/rails_strap.js +0 -9
  23. data/vendor/assets/javascript/rails_strap_modernizer.js +0 -4
  24. data/vendor/assets/javascript/restart_theme.js +0 -213
  25. data/vendor/assets/stylesheets/animate/animate.css +0 -3263
  26. data/vendor/assets/stylesheets/bootstrap_customization.less +0 -2
  27. data/vendor/assets/stylesheets/custom_variables.less +0 -301
  28. data/vendor/assets/stylesheets/flexslider_customization.css +0 -20
  29. data/vendor/assets/stylesheets/font-awesome-ie7.min.css +0 -22
  30. data/vendor/assets/stylesheets/fontawesome_customization.less +0 -6
  31. data/vendor/assets/stylesheets/isotope/css/style.css +0 -77
  32. data/vendor/assets/stylesheets/rails_strap.css.scss +0 -11
  33. data/vendor/assets/stylesheets/style.less +0 -1726
@@ -1,55 +0,0 @@
1
- /*
2
- |--------------------------------------------------------------------------
3
- | UItoTop jQuery Plugin 1.2 by Matt Varone
4
- | http://www.mattvarone.com/web-design/uitotop-jquery-plugin/
5
- |--------------------------------------------------------------------------
6
- */
7
- (function($){
8
- $.fn.UItoTop = function(options) {
9
-
10
- var defaults = {
11
- text: 'To Top',
12
- min: 800,
13
- inDelay:600,
14
- outDelay:400,
15
- containerID: 'toTop',
16
- containerHoverID: 'toTopHover',
17
- scrollSpeed: 1200,
18
- easingType: 'linear'
19
- },
20
- settings = $.extend(defaults, options),
21
- containerIDhash = '#' + settings.containerID,
22
- containerHoverIDHash = '#'+settings.containerHoverID;
23
-
24
- $('body').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>');
25
- $(containerIDhash).hide().on('click.UItoTop',function(){
26
- $('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
27
- $('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType);
28
- return false;
29
- })
30
- .prepend('<span id="'+settings.containerHoverID+'"></span>')
31
- .hover(function() {
32
- $(containerHoverIDHash, this).stop().animate({
33
- 'opacity': 1
34
- }, 600, 'linear');
35
- }, function() {
36
- $(containerHoverIDHash, this).stop().animate({
37
- 'opacity': 0
38
- }, 700, 'linear');
39
- });
40
-
41
- $(window).scroll(function() {
42
- var sd = $(window).scrollTop();
43
- if(typeof document.body.style.maxHeight === "undefined") {
44
- $(containerIDhash).css({
45
- 'position': 'absolute',
46
- 'top': sd + $(window).height() - 50
47
- });
48
- }
49
- if ( sd > settings.min )
50
- $(containerIDhash).fadeIn(settings.inDelay);
51
- else
52
- $(containerIDhash).fadeOut(settings.Outdelay);
53
- });
54
- };
55
- })(jQuery);
@@ -1,9 +0,0 @@
1
- //= require jquery
2
- //= require jquery_ujs
3
- //= require twitter/bootstrap
4
- //= require flexslider
5
- //= require prettyphoto-rails
6
- //= require isotope/jquery.isotope
7
- //= require jquery.ui/jquery.ui.totop
8
- //= require easing
9
- //= require restart_theme
@@ -1,4 +0,0 @@
1
- /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
2
- * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-flexboxlegacy-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
3
- */
4
- ;window.Modernizr=function(a,b,c){function C(a){j.cssText=a}function D(a,b){return C(n.join(a+";")+(b||""))}function E(a,b){return typeof a===b}function F(a,b){return!!~(""+a).indexOf(b)}function G(a,b){for(var d in a){var e=a[d];if(!F(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function H(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:E(f,"function")?f.bind(d||b):f}return!1}function I(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return E(b,"string")||E(b,"undefined")?G(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),H(e,b,c))}function J(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=E(e[d],"function"),E(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),A={}.hasOwnProperty,B;!E(A,"undefined")&&!E(A.call,"undefined")?B=function(a,b){return A.call(a,b)}:B=function(a,b){return b in a&&E(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return I("flexWrap")},s.flexboxlegacy=function(){return I("boxDirection")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!E(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!I("indexedDB",a)},s.hashchange=function(){return z("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return C("background-color:rgba(150,255,150,.5)"),F(j.backgroundColor,"rgba")},s.hsla=function(){return C("background-color:hsla(120,40%,100%,.5)"),F(j.backgroundColor,"rgba")||F(j.backgroundColor,"hsla")},s.multiplebgs=function(){return C("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return I("backgroundSize")},s.borderimage=function(){return I("borderImage")},s.borderradius=function(){return I("borderRadius")},s.boxshadow=function(){return I("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return D("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return I("animationName")},s.csscolumns=function(){return I("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return C((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),F(j.backgroundImage,"gradient")},s.cssreflections=function(){return I("boxReflect")},s.csstransforms=function(){return!!I("transform")},s.csstransforms3d=function(){var a=!!I("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return I("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var K in s)B(s,K)&&(x=K.toLowerCase(),e[x]=s[K](),v.push((e[x]?"":"no-")+x));return e.input||J(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)B(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},C(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.hasEvent=z,e.testProp=function(a){return G([a])},e.testAllProps=I,e.testStyles=y,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
@@ -1,213 +0,0 @@
1
- $(document).ready(function() {
2
-
3
- //PrettyPhoto
4
- $("a[rel^='prettyPhoto']").prettyPhoto();
5
-
6
-
7
- //Collapsing Header Effect
8
- var nav = $('.collapsing_header header');
9
- $(window).scroll(function () {
10
- if ($(this).scrollTop() > 400) {
11
- nav.addClass("absolute");
12
- } else {
13
- nav.removeClass("absolute");
14
- }
15
- });
16
-
17
- var window_top = $(window).scrollTop();
18
-
19
- if (window_top > 400) {
20
- nav.addClass("absolute");
21
- } else {
22
- nav.removeClass("absolute");
23
- }
24
-
25
- //FLEXSLIDER
26
- $('#main_flexslider').flexslider({
27
- namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin
28
- selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril
29
- animation: "slide", //String: Select your animation type, "fade" or "slide"
30
- easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
31
- direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"
32
- reverse: false, //{NEW} Boolean: Reverse the animation direction
33
- animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
34
- smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
35
- startAt: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide)
36
- slideshow: true, //Boolean: Animate slider automatically
37
- slideshowSpeed: 10000, //Integer: Set the speed of the slideshow cycling, in milliseconds
38
- animationSpeed: 600, //Integer: Set the speed of animations, in milliseconds
39
- initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds
40
- randomize: false, //Boolean: Randomize slide order
41
-
42
- // Usability features
43
- pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
44
- pauseOnHover: true, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
45
- useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available
46
- touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
47
- video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
48
-
49
- // Primary Controls
50
- controlNav: true, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
51
- directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false)
52
- prevText: "Previous", //String: Set the text for the "previous" directionNav item
53
- nextText: "Next", //String: Set the text for the "next" directionNav item
54
-
55
- // Secondary Navigation
56
- keyboard: true, //Boolean: Allow slider navigating via keyboard left/right keys
57
- multipleKeyboard: false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present.
58
- mousewheel: false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel
59
- pausePlay: false, //Boolean: Create pause/play dynamic element
60
- pauseText: 'Pause', //String: Set the text for the "pause" pausePlay item
61
- playText: 'Play', //String: Set the text for the "play" pausePlay item
62
-
63
- // Special properties
64
- controlsContainer: "", //{UPDATED} Selector: USE CLASS SELECTOR. Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be ".flexslider-container". Property is ignored if given element is not found.
65
- manualControls: "", //Selector: Declare custom control navigation. Examples would be ".flex-control-nav li" or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.
66
- sync: "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care.
67
- asNavFor: "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider
68
-
69
- // Carousel Options
70
- itemWidth: 0, //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding.
71
- itemMargin: 0, //{NEW} Integer: Margin between carousel items.
72
- minItems: 0, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this.
73
- maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit.
74
- move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items.
75
-
76
- // Callback API
77
- start: function(){
78
- $('.flex-active-slide .container .carousel-caption').addClass('show')
79
- }, //Callback: function(slider) - Fires when the slider loads the first slide
80
- before: function(){
81
- $('.flex-active-slide .container .carousel-caption').removeClass('show')
82
- }, //Callback: function(slider) - Fires asynchronously with each slider animation
83
- after: function(slider){
84
- $('.flex-active-slide .container .carousel-caption').addClass('show')
85
- }, //Callback: function(slider) - Fires after each slider animation completes
86
- end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous)
87
- added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added
88
- removed: function(){} //{NEW} Callback: function(slider) - Fires after a slide is removed
89
-
90
- });
91
-
92
- //Portfolio Flexslider with carousel
93
- $('#carousel').flexslider({
94
- animation: "slide",
95
- controlNav: false,
96
- animationLoop: false,
97
- slideshow: false,
98
- itemWidth: 210,
99
- itemMargin: 10,
100
- asNavFor: '#portfolio_slider'
101
- });
102
-
103
- $('#portfolio_slider').flexslider({
104
- namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin
105
- selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril
106
- animation: "slide", //String: Select your animation type, "fade" or "slide"
107
- easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
108
- direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"
109
- reverse: false, //{NEW} Boolean: Reverse the animation direction
110
- animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
111
- smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
112
- startAt: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide)
113
- slideshow: false, //Boolean: Animate slider automatically
114
- slideshowSpeed: 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds
115
- animationSpeed: 600, //Integer: Set the speed of animations, in milliseconds
116
- initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds
117
- randomize: false, //Boolean: Randomize slide order
118
-
119
- // Usability features
120
- pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
121
- pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
122
- useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available
123
- touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
124
- video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
125
-
126
- // Primary Controls
127
- controlNav: true, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
128
- directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false)
129
- prevText: "Previous", //String: Set the text for the "previous" directionNav item
130
- nextText: "Next", //String: Set the text for the "next" directionNav item
131
-
132
- // Secondary Navigation
133
- keyboard: true, //Boolean: Allow slider navigating via keyboard left/right keys
134
- multipleKeyboard: false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present.
135
- mousewheel: false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel
136
- pausePlay: false, //Boolean: Create pause/play dynamic element
137
- pauseText: 'Pause', //String: Set the text for the "pause" pausePlay item
138
- playText: 'Play', //String: Set the text for the "play" pausePlay item
139
-
140
- // Special properties
141
- controlsContainer: "", //{UPDATED} Selector: USE CLASS SELECTOR. Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be ".flexslider-container". Property is ignored if given element is not found.
142
- manualControls: "", //Selector: Declare custom control navigation. Examples would be ".flex-control-nav li" or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.
143
- sync: "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care.
144
- asNavFor: "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider
145
-
146
- // Carousel Options
147
- itemWidth: 0, //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding.
148
- itemMargin: 0, //{NEW} Integer: Margin between carousel items.
149
- minItems: 0, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this.
150
- maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit.
151
- move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items.
152
-
153
- // Callback API
154
- start: function(){
155
- $('.flex-active-slide .container .carousel-caption').addClass('show')
156
- }, //Callback: function(slider) - Fires when the slider loads the first slide
157
- before: function(){
158
- $('.flex-active-slide .container .carousel-caption').removeClass('show')
159
- }, //Callback: function(slider) - Fires asynchronously with each slider animation
160
- after: function(slider){
161
- $('.flex-active-slide .container .carousel-caption').addClass('show')
162
- }, //Callback: function(slider) - Fires after each slider animation completes
163
- end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous)
164
- added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added
165
- removed: function(){} //{NEW} Callback: function(slider) - Fires after a slide is removed
166
-
167
- });
168
-
169
- $().UItoTop({ easingType: 'easeOutQuart' });
170
-
171
- });
172
-
173
-
174
- var $container;
175
-
176
- //ISOTOPE
177
- window.onload = function() {
178
-
179
-
180
- // cache container
181
- if ($('#portfolio_container').length) {
182
- $container = $('#portfolio_container');
183
- // initialize isotope
184
-
185
- $container.isotope({
186
- // options...
187
- });
188
-
189
- // filter items when filter link is clicked
190
- $('#portfolio_filters a').click(function(){
191
- var selector = $(this).attr('data-filter');
192
- $container.isotope({ filter: selector });
193
- return false;
194
- });
195
-
196
- };
197
- }
198
-
199
- $(window).resize(function() {
200
- clearTimeout(this.id);
201
- this.id = setTimeout(doneResizing, 500);
202
- });
203
-
204
- function doneResizing(){
205
- if ($('#portfolio_container').length) {
206
-
207
- $container.isotope({
208
- // options...
209
- });
210
-
211
- };
212
-
213
- }