news_reader 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/news_reader/scraper.rb +1 -1
- data/lib/news_reader/version.rb +1 -1
- metadata +1 -61
- data/fixtures/.DS_Store +0 -0
- data/fixtures/blog/index.html +0 -200
- data/fixtures/blog/index_files/Box.css +0 -29
- data/fixtures/blog/index_files/Java_Box.js +0 -89
- data/fixtures/blog/index_files/ModuleStyleSheets.css +0 -1655
- data/fixtures/blog/index_files/black.css +0 -11
- data/fixtures/blog/index_files/blog-jive.jpg +0 -0
- data/fixtures/blog/index_files/blog-musolfs.jpg +0 -0
- data/fixtures/blog/index_files/blog-poolpak.jpg +0 -0
- data/fixtures/blog/index_files/blog-portalaudit.png +0 -0
- data/fixtures/blog/index_files/blog-semicolon1.jpg +0 -0
- data/fixtures/blog/index_files/blog-semicolon2.jpg +0 -0
- data/fixtures/blog/index_files/blog-spa1.jpg +0 -0
- data/fixtures/blog/index_files/blog-spa2.jpg +0 -0
- data/fixtures/blog/index_files/blog-statera.jpg +0 -0
- data/fixtures/blog/index_files/blue.css +0 -11
- data/fixtures/blog/index_files/common.js +0 -149
- data/fixtures/blog/index_files/dark.css +0 -31
- data/fixtures/blog/index_files/featherlight.min.css +0 -8
- data/fixtures/blog/index_files/featherlight.min.js +0 -8
- data/fixtures/blog/index_files/font-awesome.min.css +0 -4
- data/fixtures/blog/index_files/green.css +0 -11
- data/fixtures/blog/index_files/isotope.css +0 -64
- data/fixtures/blog/index_files/jquery-ui.min.js +0 -5
- data/fixtures/blog/index_files/jquery.carouFredSel-6.2.1-packed.js +0 -16
- data/fixtures/blog/index_files/jquery.contentcarousel.js +0 -137
- data/fixtures/blog/index_files/jquery.easing.1.3.js +0 -205
- data/fixtures/blog/index_files/jquery.form.js +0 -1121
- data/fixtures/blog/index_files/jquery.hoverdir.js +0 -220
- data/fixtures/blog/index_files/jquery.inview.js +0 -60
- data/fixtures/blog/index_files/jquery.isotope.min.js +0 -11
- data/fixtures/blog/index_files/jquery.magnific-popup.js +0 -2046
- data/fixtures/blog/index_files/jquery.mb.YTPlayer.js +0 -1041
- data/fixtures/blog/index_files/jquery.min.js +0 -5
- data/fixtures/blog/index_files/jquery.nav.js +0 -223
- data/fixtures/blog/index_files/jquery.smoothwheel.js +0 -153
- data/fixtures/blog/index_files/jquery.sticky.js +0 -129
- data/fixtures/blog/index_files/jquery.superslides.js +0 -656
- data/fixtures/blog/index_files/jquery.validate.js +0 -1231
- data/fixtures/blog/index_files/jquery.vegas.css +0 -34
- data/fixtures/blog/index_files/js +0 -201
- data/fixtures/blog/index_files/loading.gif +0 -0
- data/fixtures/blog/index_files/magnific-popup.css +0 -365
- data/fixtures/blog/index_files/main.css +0 -301
- data/fixtures/blog/index_files/main.js +0 -26
- data/fixtures/blog/index_files/modernizr-2.6.2.min.js +0 -4
- data/fixtures/blog/index_files/normalize.css +0 -533
- data/fixtures/blog/index_files/ohp3fra.js +0 -44
- data/fixtures/blog/index_files/orange.css +0 -11
- data/fixtures/blog/index_files/paralax.js +0 -525
- data/fixtures/blog/index_files/paralaxNEW4.css +0 -2730
- data/fixtures/blog/index_files/plugins.js +0 -221
- data/fixtures/blog/index_files/portfolio.js +0 -142
- data/fixtures/blog/index_files/purple.css +0 -11
- data/fixtures/blog/index_files/red.css +0 -11
- data/fixtures/blog/index_files/responsive3.css +0 -329
- data/fixtures/blog/index_files/superslides.css +0 -65
- data/fixtures/blog/index_files/turquoise.css +0 -11
- data/fixtures/blog/index_files/util.js +0 -287
- data/fixtures/blog/index_files/yellow.css +0 -11
@@ -1,44 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* The Typekit service used to deliver this font or fonts for use on websites
|
3
|
-
* is provided by Adobe and is subject to these Terms of Use
|
4
|
-
* http://www.adobe.com/products/eulas/tou_typekit. For font license
|
5
|
-
* information, see the list below.
|
6
|
-
*
|
7
|
-
* museo:
|
8
|
-
* - http://typekit.com/eulas/000000000000000000011b23
|
9
|
-
* - http://typekit.com/eulas/000000000000000000011b24
|
10
|
-
* - http://typekit.com/eulas/00000000000000000000ebe4
|
11
|
-
* - http://typekit.com/eulas/00000000000000000000ebe6
|
12
|
-
*
|
13
|
-
* © 2009-2018 Adobe Systems Incorporated. All Rights Reserved.
|
14
|
-
*/
|
15
|
-
if(!window.Typekit)window.Typekit={};window.Typekit.config={"a":"182170","c":[".tk-museo","\"museo\",serif"],"fi":[1981,1983,8542,8544],"fc":[{"id":1981,"family":"museo","src":"https://use.typekit.net/af/f7c91f/000000000000000000011b23/27/{format}{?primer,subset_id,fvd,v}","descriptors":{"weight":"300","style":"normal","primer":"7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191"}},{"id":1983,"family":"museo","src":"https://use.typekit.net/af/8a79e7/000000000000000000011b24/27/{format}{?primer,subset_id,fvd,v}","descriptors":{"weight":"700","style":"normal","primer":"7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191"}},{"id":8542,"family":"museo","src":"https://use.typekit.net/af/9797cd/00000000000000000000ebe4/27/{format}{?primer,subset_id,fvd,v}","descriptors":{"weight":"300","style":"italic","primer":"7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191"}},{"id":8544,"family":"museo","src":"https://use.typekit.net/af/beaa6e/00000000000000000000ebe6/27/{format}{?primer,subset_id,fvd,v}","descriptors":{"weight":"700","style":"italic","primer":"7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191"}}],"fn":["museo",["i3","i7","n3","n7"]],"hn":"use.typekit.net","ht":"tk","js":"1.19.2","kt":"ohp3fra","l":"typekit","ps":1,"ping":"https://p.typekit.net/p.gif{?s,k,ht,h,f,a,js,app,e,_}","pm":true,"type":"configurable","vft":false};
|
16
|
-
/*{"k":"1.19.2","auto_updating":true,"last_published":"2016-04-26 18:56:15 UTC"}*/
|
17
|
-
;(function(window,document,undefined){if(!document.querySelector){document.documentElement.className+=" wf-inactive";return;}function aa(a,b,c){return a.call.apply(a.bind,arguments)}function ba(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function h(a,b,c){h=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return h.apply(null,arguments)}var l=Date.now||function(){return+new Date};function ca(a){this.g=a||"-"}ca.prototype.b=function(a){for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c].replace(/[\W_]+/g,"").toLowerCase());return b.join(this.g)};function da(){var a=[{name:"font-family",value:m.c[n+1]}];this.g=[m.c[n]];this.b=a}function fa(a){for(var b=a.g.join(","),c=[],d=0;d<a.b.length;d++){var e=a.b[d];c.push(e.name+":"+e.value+";")}return b+"{"+c.join("")+"}"};function q(a,b){return(a&65535)*b+(((a>>>16)*b&65535)<<16)};function r(a,b){this.b=b||Array(Math.ceil(a/32));if(!b)for(var c=0;c<this.b.length;c++)this.b[c]=0}r.prototype.set=function(a){if(Math.floor(a/32+1)>this.b.length)throw Error("Index is out of bounds.");var b=Math.floor(a/32);this.b[b]|=1<<a-32*b};r.prototype.has=function(a){if(Math.floor(a/32+1)>this.b.length)throw Error("Index is out of bounds.");var b=Math.floor(a/32);return!!(this.b[b]&1<<a-32*b)};function ga(a,b,c){this.b=a;this.i=b;this.g=new r(a,c)}var ha=[2449897292,4218179547,2675077685,1031960064,1478620578,1386343184,3194259988,2656050674,3012733295,2193273665];
|
18
|
-
ga.prototype.has=function(a){if("string"!==typeof a&&"number"!==typeof a)throw Error("Value should be a string or number.");for(var b="number"===typeof a,c=0;c<this.i;c++){var d;if(b)d=q(a&4294967295,3432918353),d=d<<15|d>>>17,d=q(d,461845907),d^=ha[c]||0,d=d<<13|d>>>19,d=q(d,5)+3864292196,d^=4,d^=d>>>16,d=q(d,2246822507),d^=d>>>13,d=q(d,3266489909),d^=d>>>16,d=(d>>>0)%this.b;else{d=ha[c]||0;var e,f,g=a.length%4,k=a.length-g;for(f=0;f<k;f+=4)e=(a.charCodeAt(f+0)&4294967295)<<0|(a.charCodeAt(f+1)&
|
19
|
-
4294967295)<<8|(a.charCodeAt(f+2)&4294967295)<<16|(a.charCodeAt(f+3)&4294967295)<<24,e=q(e,3432918353),e=e<<15|e>>>17,e=q(e,461845907),d^=e,d=d<<13|d>>>19,d=q(d,5)+3864292196;e=0;switch(g){case 3:e^=(a.charCodeAt(f+2)&4294967295)<<16;case 2:e^=(a.charCodeAt(f+1)&4294967295)<<8;case 1:e^=(a.charCodeAt(f+0)&4294967295)<<0,e=q(e,3432918353),e=e<<15|e>>>17,e=q(e,461845907),d^=e}d^=a.length;d=q(d^d>>>16,2246822507);d=q(d^d>>>13,3266489909);d=((d^d>>>16)>>>0)%this.b}if(!this.g.has(d))return!1}return!0};function ia(a){a.length%4&&(a+=Array(5-a.length%4).join("="));a=a.replace(/\-/g,"+").replace(/\_/g,"/");if(window.atob)a=window.atob(a);else{a=a.replace(/=+$/,"");if(1==a.length%4)throw Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var b=0,c,d,e=0,f="";d=a.charAt(e++);~d&&(c=b%4?64*c+d:d,b++%4)?f+=String.fromCharCode(255&c>>(-2*b&6)):0)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d);a=f}c=[];for(b=0;b<a.length;b+=4)c.push(a.charCodeAt(b)<<
|
20
|
-
24|a.charCodeAt(b+1)<<16|a.charCodeAt(b+2)<<8|a.charCodeAt(b+3)<<0);a=c.shift();b=c.shift();this.b=new ga(a,b,c)}ia.prototype.has=function(a){if(""===a)return!0;for(a=a.split(".");a.length;){var b=a.join("."),c="*."+b;if(this.b.has(b)||this.b.has(c)||this.b.has(encodeURIComponent(b))||this.b.has(encodeURIComponent(c)))return!0;a.shift()}return!1};function t(a,b,c,d){b=a.b.createElement(b);if(c)for(var e in c)c.hasOwnProperty(e)&&("style"==e?b.style.cssText=c[e]:b.setAttribute(e,c[e]));d&&b.appendChild(a.b.createTextNode(d));return b}function u(a,b,c){a=a.b.getElementsByTagName(b)[0];a||(a=document.documentElement);a.insertBefore(c,a.lastChild)}
|
21
|
-
function ja(a,b){a.b.body?b():a.b.addEventListener?a.b.addEventListener("DOMContentLoaded",b):a.b.attachEvent("onreadystatechange",function(){"interactive"!=a.b.readyState&&"complete"!=a.b.readyState||b()})}function v(a){a.parentNode&&a.parentNode.removeChild(a)}
|
22
|
-
function w(a,b,c){var d=b||[];c=c||[];b=a.className.split(/\s+/);for(var e,f=0;f<d.length;f+=1){e=!1;for(var g=0;g<b.length;g+=1)if(d[f]===b[g]){e=!0;break}e||b.push(d[f])}d=[];for(f=0;f<b.length;f+=1){e=!1;for(g=0;g<c.length;g+=1)if(b[f]===c[g]){e=!0;break}e||d.push(b[f])}a.className=d.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function ka(a,b){for(var c=a.className.split(/\s+/),d=0,e=c.length;d<e;d++)if(c[d]==b)return!0;return!1}
|
23
|
-
function x(a,b){var c=t(a,"style");c.setAttribute("type","text/css");c.styleSheet?(u(a,"head",c),c.styleSheet.cssText=b):(c.appendChild(document.createTextNode(b)),u(a,"head",c))}
|
24
|
-
function la(a,b,c){var d=a.b.getElementsByTagName("head")[0];if(d){var e=t(a,"script",{src:b}),f=!1;e.onload=e.onreadystatechange=function(){f||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(f=!0,c&&c(null),e.onload=e.onreadystatechange=null,"HEAD"==e.parentNode.tagName&&d.removeChild(e))};d.appendChild(e);setTimeout(function(){f||(f=!0,c&&c(Error("Script load timeout")))},5E3)}};function A(a,b,c){this.g=a.g.document.documentElement;this.j=b;this.m=c;this.b=new ca("-");this.o=!1!==b.events;this.i=!1!==b.classes}function B(a){if(a.i){var b=ka(a.g,a.b.b("wf","active")),c=[],d=[a.b.b("wf","loading")];b||c.push(a.b.b("wf","inactive"));w(a.g,c,d)}C(a,"inactive")}function C(a,b,c){if(a.o&&a.j[b])try{if(c)a.j[b](c.b,D(c));else a.j[b]()}catch(d){console.error('Typekit: Error in "'+b+'" callback',d)}if(a.m[b])if(c)a.m[b](c.b,D(c));else a.m[b]()};function ma(a,b,c){c=c||{};this.b=a;this.g=b;this.weight=c.weight||"400";this.style=c.style||"normal";this.B=c.primer||void 0;this.C=c.subset_id||void 0}function E(a){return("tk-"+a.b).slice(0,26)+"-"+D(a)}function F(a,b){return new ma(b,a.g,{weight:a.weight,style:a.style,B:a.B,C:a.C})}function D(a){return a.style.charAt(0)+a.weight.charAt(0)}function na(a){var b=a.charAt(0);a=a.charAt(1);/[1-9]/.test(a)||(a=4);return{style:"i"===b?"italic":"o"===b?"oblique":"normal",weight:a+"00"}};function oa(){var a=document,b=navigator.userAgent;if(/MSIE|Trident/.test(b)&&(a.documentMode?9>a.documentMode:1))b="i";else{a:{if(/AppleWebKit/.test(b)&&/Android/.test(b)&&!/OPR|Chrome|CrMo|CriOS/.test(b)&&(a=/Android ([^;)]+)/.exec(b))&&a[1]){a=parseFloat(a[1]);a=3.1<=a&&4.1>a;break a}a=!1}if(!a)a:{if(/Silk/.test(b)&&/Linux|Ubuntu|Android/.test(b)&&(b=/Silk\/([\d\._]+)/.exec(b))&&b[1]){a=2<=parseFloat(b[1]);break a}a=!1}b=a?"j":"k"}return b};function G(a){this.b=a}function H(a,b){return a.b.replace(/\{([^\{\}]+)\}/g,function(a,d){if("?"==d.charAt(0)){for(var e=d.slice(1).split(","),f=[],g=0;g<e.length;g++)b[e[g]]&&f.push(e[g]+"="+encodeURIComponent(b[e[g]]));return f.length?"?"+f.join("&"):""}return encodeURIComponent(b[d]||"")})};function I(){this.b=[]}function qa(a,b){for(var c=0;c<b.length;c++)a.b.push(b[c])}function J(a,b){for(var c=0;c<a.b.length;c++)b(a.b[c],c,a)}
|
25
|
-
function ra(a,b){if("i"===b){var c={},d=new I;J(a,function(a){c[a.b]||(c[a.b]={});c[a.b][a.weight]||(c[a.b][a.weight]=[]);c[a.b][a.weight].push(a)});for(var e in c){for(var f=[400,300,200,100,500,600,700,800,900],g=400,k=0;k<f.length;k++)if(g=f[k],c[e][g]){qa(d,c[e][g]);break}f=[700,800,900,600,500,400,300,200,100];for(k=0;k<f.length;k++){var p=f[k];if(c[e][p]&&g!==p){qa(d,c[e][p]);break}}}J(a,function(a){a=F(a,a.b.replace(/(-1|-2)$/,"").slice(0,28)+"-"+D(a));d.b.push(a)});return d}return"x"===b?
|
26
|
-
new I:a}function sa(a,b,c){for(var d=[],e=0;e<b.length;e++){var f=b[e],g=H(new G(a.g),{format:f,primer:a.B,subset_id:a.C,fvd:D(a),extension:ta(f),token:c,v:"3"});"i"===f?d.push("url("+g+")"):d.push("url("+g+') format("'+ua(f)+'")')}return d.join(",")}function va(a,b,c,d){if("x"===b)return"";var e=[];e.push("font-family:"+(d?E(a):a.b));b="k"===b?sa(a,["l","d","a"],c):sa(a,[b],c);e.push("src:"+b);e.push("font-weight:"+a.weight);e.push("font-style:"+a.style);return"@font-face{"+e.join(";")+";}"}
|
27
|
-
function ua(a){switch(a){case "d":return"woff";case "i":return"eot";case "l":return"woff2";default:return"opentype"}}function ta(a){switch(a){case "d":return"woff";case "i":return"eot";case "l":return"woff2";default:return"otf"}}function K(a,b,c,d){var e=[];J(a,function(a){e.push(va(a,b,c,d))});return e.join("")};function L(a,b){this.g=a;this.i=b;this.b=t(this.g,"span",{"aria-hidden":"true"},this.i)}function M(a){u(a.g,"body",a.b)}
|
28
|
-
function N(a){return"display:block !important;position:absolute !important;top:-9999px !important;left:-9999px !important;font-size:300px !important;width:auto !important;height:auto !important;line-height:normal !important;margin:0 !important;padding:0 !important;font-variant:normal !important;white-space:nowrap !important;font-family:"+a.b+" !important;font-weight:"+a.weight+" !important;font-style:"+a.style+" !important;"};function wa(a,b,c,d,e,f,g,k){this.D=a;this.H=b;this.u=c;this.b=d;this.w=g||"BESbswy";this.g={};this.I=e||3E3;this.G=k;this.A=f||null;this.i=new L(this.u,this.w);this.j=new L(this.u,this.w);this.m=new L(this.u,this.w);this.o=new L(this.u,this.w);a=this.G?E(this.b):this.b.b;this.i.b.style.cssText=N(F(this.b,a+",serif"));this.j.b.style.cssText=N(F(this.b,a+",sans-serif"));this.m.b.style.cssText=N(F(this.b,"serif"));this.o.b.style.cssText=N(F(this.b,"sans-serif"));M(this.i);M(this.j);M(this.m);M(this.o)}
|
29
|
-
var O={K:"serif",J:"sans-serif"},P=null;function ya(){if(null===P){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);P=!!a&&(536>parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return P}wa.prototype.start=function(){this.g.serif=this.m.b.offsetWidth;this.g["sans-serif"]=this.o.b.offsetWidth;this.F=l();za(this)};function Aa(a,b,c){for(var d in O)if(O.hasOwnProperty(d)&&b===a.g[O[d]]&&c===a.g[O[d]])return!0;return!1}
|
30
|
-
function za(a){var b=a.i.b.offsetWidth,c=a.j.b.offsetWidth,d;(d=b===a.g.serif&&c===a.g["sans-serif"])||(d=ya()&&Aa(a,b,c));d?l()-a.F>=a.I?ya()&&Aa(a,b,c)&&(!a.A||a.A.hasOwnProperty(a.b.b))?Ba(a,a.D):Ba(a,a.H):Ca(a):Ba(a,a.D)}function Ca(a){setTimeout(h(function(){za(this)},a),50)}function Ba(a,b){setTimeout(h(function(){v(this.i.b);v(this.j.b);v(this.m.b);v(this.o.b);b(this.b)},a),0)};function Da(a,b,c,d,e,f,g){this.i=a;this.u=b;this.b=d;this.m=c;this.g=e||3E3;this.o=f||void 0;this.j=g}Da.prototype.start=function(){var a=this.m.g.document,b=this,c=l(),d=new Promise(function(d,e){function k(){l()-c>=b.g?e():a.fonts.load(b.b.style+" "+b.b.weight+" 300px "+(b.j?E(b.b):b.b.b),b.o).then(function(a){1<=a.length?d():setTimeout(k,25)},function(){e()})}k()}),e=new Promise(function(a,c){setTimeout(c,b.g)});Promise.race([e,d]).then(function(){b.i(b.b)},function(){b.u(b.b)})};function Ea(a,b,c,d){this.w=a;this.b=b;this.g=0;this.o=this.m=!1;this.A=c;this.u=d}var Q=null;
|
31
|
-
function Fa(a,b,c){var d={},e=b.b.length;if(!e&&c)B(a.b);else{a.g+=e;c&&(a.m=c);var f=[];J(b,function(b){var c=a.b;c.i&&w(c.g,[c.b.b("wf",b.b,D(b),"loading")]);C(c,"fontloading",b);c=null;if(null===Q)if(window.FontFace){var e=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),pa=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);Q=e?42<parseInt(e[1],10):pa&&/Apple/.exec(window.navigator.vendor)?603<=parseInt(pa[1],10):!0}else Q=!1;Q?c=new Da(h(a.i,a),h(a.j,
|
32
|
-
a),a.w,b,a.A,"BESbswy\ue000\ue001\ue002\ue003\ue004\ue005\ue006",a.u):c=new wa(h(a.i,a),h(a.j,a),a.w,b,a.A,d,"BESbswy\ue000\ue001\ue002\ue003\ue004\ue005\ue006",a.u);f.push(c)});for(b=0;b<f.length;b++)f[b].start()}}Ea.prototype.i=function(a){var b=this.b;b.i&&w(b.g,[b.b.b("wf",a.b,D(a),"active")],[b.b.b("wf",a.b,D(a),"loading"),b.b.b("wf",a.b,D(a),"inactive")]);C(b,"fontactive",a);this.o=!0;Ga(this)};
|
33
|
-
Ea.prototype.j=function(a){var b=this.b;if(b.i){var c=ka(b.g,b.b.b("wf",a.b,D(a),"active")),d=[],e=[b.b.b("wf",a.b,D(a),"loading")];c||d.push(b.b.b("wf",a.b,D(a),"inactive"));w(b.g,d,e)}C(b,"fontinactive",a);Ga(this)};function Ga(a){!--a.g&&a.m&&(a.o?(a=a.b,a.i&&w(a.g,[a.b.b("wf","active")],[a.b.b("wf","loading"),a.b.b("wf","inactive")]),C(a,"active")):B(a.b))};function R(a){this.b=a;this.m=null;this.g=[];this.j=this.w=null;this.u=new I;this.o=this.i=null}var Ha=null,S="00000000000000003b9b12ea 00000000000000003b9b12ed 00000000000000003b9b12ef 00000000000000003b9b12f0 00000000000000003b9b12f2 00000000000000003b9b12f3".split(" ");function Ia(){null===Ha&&(Ha=window.CSS&&window.CSS.supports&&CSS.supports("font-variation-settings",'"wght" 400'));return Ha}R.prototype.supportsConfiguredBrowser=function(){return!0};
|
34
|
-
R.prototype.init=function(){if(0<this.g.length){for(var a=[],b=0;b<this.g.length;b++)a.push(fa(this.g[b]));x(this.b,a.join(""))}};
|
35
|
-
R.prototype.load=function(a,b,c){var d=this;c=c||{};if(this.j&&(a=location.hostname,!this.j.has(a))){console.error('Typekit: the domain "'+a+'" isn\'t in the list of published domains for kit "'+this.w+'".');B(new A(this.b,c,{}));return}a=c.timeout;var e=!!c.async,f=oa(),g=ra(this.u,f);c=new A(this.b,c,{active:function(){if(e){var a=K(g,f,d.i,!1);x(d.b,a)}if(d.m){var a=d.m,b=d.b,c=a.m,k=(window.__adobewebfontsappname__||a.app||"").toString().substr(0,20),b=b.g.location.hostname||b.i.location.hostname,
|
36
|
-
p=[],y=[];window.Typekit?(window.Typekit.fonts||(window.Typekit.fonts=[]),y=window.Typekit.fonts):window.TypekitPreview&&(window.TypekitPreview.fonts||(window.TypekitPreview.fonts=[]),y=window.TypekitPreview.fonts);for(var z=0;z<a.b.length;z++){for(var xa=!1,ea=0;ea<y.length;ea++)if(a.b[z]===y[ea]){xa=!0;break}xa||(p.push(a.b[z]),y.push(a.b[z]))}p.length&&Ja(H(c,{s:a.j,k:a.o,app:k,ht:a.i,h:b,f:p.join("."),a:a.g,js:a.version,e:"js",_:(+new Date).toString()}))}},inactive:function(){if(e){var a=K(g,
|
37
|
-
f,d.i,!1);x(d.b,a)}}});if(g.b.length){var k=K(g,f,this.i,e);x(this.b,k);var p=new Ea(this.b,c,a,e);ja(d.b,function(){Fa(p,g,b)})}else B(c)};function Ka(a,b){this.j=a;this.g=b;this.b=[]}Ka.prototype.i=function(a){this.b.push(a)};Ka.prototype.load=function(a,b){var c=a,d=b||{};"string"==typeof c?c=[c]:c&&c.length||(d=c||{},c=[]);if(c.length)for(var e=this,f=c.length,g=0;g<c.length;g++)La(this,c[g],function(){--f||Ma(e,d)});else Ma(this,d)};function La(a,b,c){b=H(a.j,{id:b});la(a.g,b,c)}
|
38
|
-
function Ma(a,b){if(a.b.length){for(var c=new A(a.g,b,{}),d=0;d<a.b.length;d++)a.b[d].init();c.i&&w(c.g,[c.b.b("wf","loading")]);C(c,"loading");for(c=0;c<a.b.length;c++)a.b[c].load(null,c==a.b.length-1,b);a.b=[]}};function Na(){var a=m.ps,b=m.ht,c=Oa,d=m.a,e=m.kt,f=m.js,g=m.l;this.m=new G(m.ping);this.j=a;this.i=b;this.b=c||[];this.g=d||null;this.o=e||null;this.version=f||null;this.app=g||null}function Ja(a){var b=new Image(1,1),c=!1;b.src=a;b.onload=function(){c=!0;b.onload=null};setTimeout(function(){c||(b.src="about:blank",b.onload=null)},3E3)};var Pa=new function(){var a=window;this.g=this.i=a;this.b=this.g.document};window.Typekit||(window.Typekit={});if(!window.Typekit.load){var T=new Ka(new G("//"+(window.Typekit.config||{}).hn+"/{id}.js"),Pa);window.Typekit.load=function(){T.load.apply(T,arguments)};window.Typekit.addKit=function(){T.i.apply(T,arguments)}}for(var U,m=window.Typekit.config||{},Oa=[],V=m.fc,Qa=0;Qa<V.length;Qa++)Oa.push(V[Qa].id);U=new R(Pa);m.ping&&(U.m=new Na);m.vft&&(U.o=m.vft);
|
39
|
-
if(m.fc)for(var W=m.fc,X=0;X<W.length;X++){var Y=W[X].src,Ra=W[X].descriptors||{};if(U.o&&Ia()&&1===Ra.subset_id)for(var Z=0;Z<S.length;Z++)if(-1!==Y.indexOf(S[Z])){Y=Y.replace(S[Z],"00000000000000003b9b12ef");break}U.u.b.push(new ma(W[X].family,Y,W[X].descriptors))}if(m.dl){var Sa=m.dl;try{U.j=new ia(Sa)}catch(a){}}m.kt&&(U.w=m.kt);m.token&&(U.i=m.token);if(m.c)for(var n=0;n<m.c.length;n+=2)U.g.push(new da);window.Typekit.addKit(U);
|
40
|
-
function Ta(){if(!Ia())return!1;for(var a=m.fc,b=0;b<a.length;b++)if(1===a[b].descriptors.subset_id)for(var c=0;c<S.length;c++)if(-1!==a[b].src.indexOf(S[c]))return!0;return!1}function Ua(a,b){var c=m.fc,d=na(b);if(!Ia()||!m.vft)return!1;for(var e=0;e<c.length;e++)if(c[e].family===a&&c[e].descriptors.weight===d.weight&&c[e].descriptors.style===d.style&&1===c[e].descriptors.subset_id)for(var f=0;f<S.length;f++)if(-1!==c[e].src.indexOf(S[f]))return!0;return!1}
|
41
|
-
if(m.pm&&!window.WebFont&&1===Math.round(30*Math.random())){var Va=window.Typekit.load,Wa=[];window.Typekit.load=function(a){a=a||{};var b=a.active||function(){},c=a.fontactive||function(){},d=(new Date).getTime();a.active=function(){b();if(!window.XDomainRequest){var a=new Image,c=function(a){a={fonts:Wa,augmentations:[],font_loading:window.FontFace?"native":"non-native",active_duration:(new Date).getTime()-d,javascript_version:m.js,kit_type:"configurable",ad_blocker:a,test_group:Ta()};a=JSON.stringify(a);
|
42
|
-
if(!window.XDomainRequest){var b=new XMLHttpRequest;b.open("POST","https://performance.typekit.net/");b.send(a)}};a.src="https://p.typekit.net/p.gif?";a.onload=function(){for(var a=!1,b=0;b<document.styleSheets.length;b++)if(null===document.styleSheets[b].href&&/ghostery-purple-box/.test(document.styleSheets[b].ownerNode.textContent)){a=!0;break}c(a)};a.onerror=function(){c(!0)}}};a.fontactive=function(a,b){c(a,b);var g;a:{g=na(b);for(var k=0;k<V.length;k++)if(V[k].family===a&&V[k].descriptors.weight===
|
43
|
-
g.weight&&V[k].descriptors.style===g.style){g=V[k].id;break a}g=0}Wa.push({id:g,duration:(new Date).getTime()-d,dynamic:!1,weight:b.charAt(1)+"00",variable:Ua(a,b)})};Va(a)}}if(window.WebFont)try{window.Typekit.load()}catch(a){};}(this,document));
|
44
|
-
|
@@ -1,11 +0,0 @@
|
|
1
|
-
@charset "UTF-8";
|
2
|
-
/* Color Fucsia CSS */
|
3
|
-
.orange .prev-featured:hover,.orange .next-featured:hover,.orange .s-ico,.orange .sl-ico,.orange .progress-bar .skill-in,.orange .ch-grid,.orange .f-ico,.orange .car-prev,.orange .car-next,.orange .car-prev-2,.orange .car-next-2,.orange .scrollup,.orange .list-dot,.orange .p-two {background-color: #fda527;}
|
4
|
-
.orange .menu a:hover,.orange #nav .current a,.orange .f-image .f-category,.orange .t-photo .f-category,.orange .half-content a,.orange .contour-btn:hover, .orange .second-title span {color: #fda527 !important;}
|
5
|
-
.orange .f-image .f-category {background-position: -132px 0;}
|
6
|
-
.orange .t-photo .f-category {background-position: -132px -44px;}
|
7
|
-
.orange .f-single:hover .f-info,.orange .btn-featured,.orange .spacer,.orange .folio-btn:hover,.orange .p-roll,.orange .contour-btn,.orange .folio-btn.selected,.orange .t-spacer,.orange .t-element:hover .t-data,.orange .logo span em{background: #fda527;}
|
8
|
-
.orange .logo span{background: #fda527; background: rgba(253,165,39,0.5);}
|
9
|
-
.orange .controller ul li:hover,.orange .selected,.orange .controller-2 ul li:hover,.orange .controller-3 ul li:hover{border: 2px solid #fda527 !important; background: #fda527 !important;}
|
10
|
-
.orange .buy-logo{border-color: #fda527;}
|
11
|
-
.orange ::selection{background-color: #fda527;}
|
@@ -1,525 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
$(document).ready(function(){
|
4
|
-
/*Validation*/
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
/* Services RollOver Info */
|
9
|
-
function loadServices(){
|
10
|
-
$(".sl-ico").mouseenter(function(){
|
11
|
-
$(this).parent().find(".s-roll").addClass('visible');
|
12
|
-
});
|
13
|
-
$(".sl-ico").mouseleave(function(){
|
14
|
-
$(this).parent().find(".s-roll").removeClass('visible');
|
15
|
-
});
|
16
|
-
}
|
17
|
-
|
18
|
-
/* Banner */
|
19
|
-
function loadTall(){
|
20
|
-
var altura = $(window).height();
|
21
|
-
$('#home').css('height',altura);
|
22
|
-
}
|
23
|
-
|
24
|
-
/* Jump Menu */
|
25
|
-
function loadJump(){
|
26
|
-
$('.jump-menu').click(function() {
|
27
|
-
if($('#nav2').hasClass('active')){
|
28
|
-
$('#nav2').removeClass('active');
|
29
|
-
}else{
|
30
|
-
$('#nav2').addClass('active');
|
31
|
-
}
|
32
|
-
})
|
33
|
-
|
34
|
-
$('#nav2 ul li a').click(function(){
|
35
|
-
$('#nav2').removeClass('active');
|
36
|
-
});
|
37
|
-
}
|
38
|
-
|
39
|
-
/* Scroll Up */
|
40
|
-
$('.scrollup').click(function(){
|
41
|
-
$("html, body").animate({ scrollTop: 0 }, 1000);
|
42
|
-
return false;
|
43
|
-
});
|
44
|
-
|
45
|
-
/* Parallax */
|
46
|
-
function Move(seccio){
|
47
|
-
$(seccio).each(function(){
|
48
|
-
if($(this).attr('class')==='parallax'){
|
49
|
-
$(this).css('background-position', '0 '+$(window).scrollTop()/3+'px');
|
50
|
-
}else{
|
51
|
-
$(this).css('background-position', '0 '+(($(window).scrollTop()+$(window).height()-$(this).attr('yPos'))/3+$(this).height())+'px');
|
52
|
-
}
|
53
|
-
});
|
54
|
-
}
|
55
|
-
|
56
|
-
/* Caroussel One Images & Two Queues */
|
57
|
-
function loadCarousel(){
|
58
|
-
|
59
|
-
/* Car One */
|
60
|
-
var amplecar = $(".caroussel-list-2 .car-img").length;
|
61
|
-
var ampleitem = $(".car-img img").width;
|
62
|
-
var amplelist = amplecar*ampleitem;
|
63
|
-
$('.caroussel-list-2').css('width','amplelist')
|
64
|
-
|
65
|
-
var itemscar=$('.caroussel-list-2 .car-img').length;
|
66
|
-
ampleitem=$('.caroussel-2').width();
|
67
|
-
amplelist = itemscar*ampleitem;
|
68
|
-
$('.caroussel-list-2').css('width', amplelist)
|
69
|
-
//alert(amplelist);
|
70
|
-
|
71
|
-
var fragment = document.createDocumentFragment(),
|
72
|
-
li = document.createElement('li');
|
73
|
-
while (itemscar--) {
|
74
|
-
fragment.appendChild(li.cloneNode(true));
|
75
|
-
}
|
76
|
-
$('.controller-2 ul').append(fragment);
|
77
|
-
|
78
|
-
var index = 0;
|
79
|
-
var pos = 1;
|
80
|
-
$('.controller-2 ul li:first-child').addClass('selected');
|
81
|
-
|
82
|
-
$(".controller-2 ul li").click(function(){
|
83
|
-
ampleitem=$('.caroussel-2').width();
|
84
|
-
index = $(this).index();
|
85
|
-
$(".caroussel-2").stop().animate({scrollLeft:ampleitem*index},'slow');
|
86
|
-
$('.controller-2 ul li').removeClass('selected');
|
87
|
-
$(this).addClass('selected');
|
88
|
-
//alert(ampleitem);
|
89
|
-
});
|
90
|
-
$(".car-next").click(function(){
|
91
|
-
if( index != $(".controller-2 ul li").size()-1){
|
92
|
-
index++;
|
93
|
-
$(".caroussel-2").stop().animate({scrollLeft:ampleitem*index},'slow');
|
94
|
-
pos++;
|
95
|
-
$('.controller-2 ul li.selected').removeClass('selected').next().addClass('selected');
|
96
|
-
}
|
97
|
-
});
|
98
|
-
$(".car-prev").click(function(){
|
99
|
-
if( index!=0 ){
|
100
|
-
index--;
|
101
|
-
$(".caroussel-2").stop().animate({scrollLeft:ampleitem*index},'slow');
|
102
|
-
pos--;
|
103
|
-
$('.controller-2 ul li.selected').removeClass('selected').prev().addClass('selected');
|
104
|
-
}
|
105
|
-
});
|
106
|
-
|
107
|
-
/* Car Two */
|
108
|
-
var amplecar2 = $(".caroussel-list-2 .car-quote").length;
|
109
|
-
var ampleitem2 = $(".car-quote").width;
|
110
|
-
var amplelist2 = amplecar2*ampleitem2;
|
111
|
-
//alert(amplelist2);
|
112
|
-
$('.caroussel-list-2').css('width','amplelist2')
|
113
|
-
|
114
|
-
|
115
|
-
function bullets2(){
|
116
|
-
var itemscar2=$('.caroussel-list-2 .car-quote').length;
|
117
|
-
ampleitem2=$('.caroussel-2').width();
|
118
|
-
amplelist2 = itemscar2*ampleitem2;
|
119
|
-
$('.caroussel-list-2').css('width', amplelist2)
|
120
|
-
//alert(amplelist);
|
121
|
-
|
122
|
-
var fragment = document.createDocumentFragment(),
|
123
|
-
li = document.createElement('li');
|
124
|
-
while (itemscar2--) {
|
125
|
-
fragment.appendChild(li.cloneNode(true));
|
126
|
-
}
|
127
|
-
$('.controller-2 ul').append(fragment);
|
128
|
-
}
|
129
|
-
bullets2();
|
130
|
-
|
131
|
-
var index2 = 0;
|
132
|
-
var pos2 = 1;
|
133
|
-
$('.controller-2 ul li:first-child').addClass('selected');
|
134
|
-
|
135
|
-
$(".controller-2 ul li").click(function(){
|
136
|
-
ampleitem2=$('.caroussel-2').width();
|
137
|
-
index2 = $(this).index();
|
138
|
-
$(".caroussel-2").stop().animate({scrollLeft:ampleitem2*index2},'slow');
|
139
|
-
$('.controller-2 ul li').removeClass('selected');
|
140
|
-
$(this).addClass('selected');
|
141
|
-
//alert(ampleitem);
|
142
|
-
});
|
143
|
-
$(".car-next-2").click(function(){
|
144
|
-
if( index2 != $(".controller-2 ul li").size()-1){
|
145
|
-
index2++;
|
146
|
-
$(".caroussel-2").stop().animate({scrollLeft:ampleitem2*index2},'slow');
|
147
|
-
pos2++;
|
148
|
-
$('.controller-2 ul li.selected').removeClass('selected').next().addClass('selected');
|
149
|
-
}
|
150
|
-
});
|
151
|
-
$(".car-prev-2").click(function(){
|
152
|
-
if( index2!=0 ){
|
153
|
-
index2--;
|
154
|
-
$(".caroussel-2").stop().animate({scrollLeft:ampleitem2*index2},'slow');
|
155
|
-
pos2--;
|
156
|
-
$('.controller-2 ul li.selected').removeClass('selected').prev().addClass('selected');
|
157
|
-
}
|
158
|
-
});
|
159
|
-
}
|
160
|
-
|
161
|
-
/* Arrow Animations */
|
162
|
-
function loadArrows(){
|
163
|
-
var fletxa=false;
|
164
|
-
/* Car One */
|
165
|
-
$('.car-prev').stop().animate({left:'-45px',opacity:'0'},"fast");
|
166
|
-
$('.car-next').stop().animate({right:'-45px',opacity:'0'},"fast");
|
167
|
-
$(".car-show-1 .show").mouseenter(function(){
|
168
|
-
$('.car-prev').stop().animate({left:'-40px',opacity:'1'},"fast");
|
169
|
-
$('.car-next').stop().animate({right:'-40px',opacity:'1'},"fast");
|
170
|
-
}).mouseleave(function(){
|
171
|
-
$('.car-prev').stop().animate({left:'-45px',opacity:'0'},"fast");
|
172
|
-
$('.car-next').stop().animate({right:'-45px',opacity:'0'},"fast");
|
173
|
-
});
|
174
|
-
/* Car Two */
|
175
|
-
$('.car-prev-2').stop().animate({left:'-45px',opacity:'0'},"fast");
|
176
|
-
$('.car-next-2').stop().animate({right:'-45px',opacity:'0'},"fast");
|
177
|
-
$(".car-show-2").mouseenter(function(){
|
178
|
-
$('.car-prev-2').stop().animate({left:'-40px',opacity:'1'},"fast");
|
179
|
-
$('.car-next-2').stop().animate({right:'-40px',opacity:'1'},"fast");
|
180
|
-
}).mouseleave(function(){
|
181
|
-
$('.car-prev-2').stop().animate({left:'-45px',opacity:'0'},"fast");
|
182
|
-
$('.car-next-2').stop().animate({right:'-45px',opacity:'0'},"fast");
|
183
|
-
});
|
184
|
-
}
|
185
|
-
|
186
|
-
/* Counter */
|
187
|
-
$.fn.countTo = function(options) {
|
188
|
-
// merge the default plugin settings with the custom options
|
189
|
-
options = $.extend({}, $.fn.countTo.defaults, options || {});
|
190
|
-
|
191
|
-
// how many times to update the value, and how much to increment the value on each update
|
192
|
-
var loops = Math.ceil(options.speed / options.refreshInterval),
|
193
|
-
increment = (options.to - options.from) / loops;
|
194
|
-
|
195
|
-
return $(this).each(function() {
|
196
|
-
var _this = this,
|
197
|
-
loopCount = 0,
|
198
|
-
value = options.from,
|
199
|
-
interval = setInterval(updateTimer, options.refreshInterval);
|
200
|
-
|
201
|
-
function updateTimer() {
|
202
|
-
value += increment;
|
203
|
-
loopCount++;
|
204
|
-
$(_this).html(value.toFixed(options.decimals));
|
205
|
-
|
206
|
-
if (typeof(options.onUpdate) == 'function') {
|
207
|
-
options.onUpdate.call(_this, value);
|
208
|
-
}
|
209
|
-
|
210
|
-
if (loopCount >= loops) {
|
211
|
-
clearInterval(interval);
|
212
|
-
value = options.to;
|
213
|
-
|
214
|
-
if (typeof(options.onComplete) == 'function') {
|
215
|
-
options.onComplete.call(_this, value);
|
216
|
-
}
|
217
|
-
}
|
218
|
-
}
|
219
|
-
})
|
220
|
-
};
|
221
|
-
|
222
|
-
/* Portfolio HoverDir Roll-Over */
|
223
|
-
function mosaicInit() {
|
224
|
-
$('.mosaic').mixitup({
|
225
|
-
targetSelector: '.mosaic__item',
|
226
|
-
filterSelector: '.mosaic__filter-item',
|
227
|
-
effects: ['fade','scale'],
|
228
|
-
easing: 'snap',
|
229
|
-
transitionSpeed: 850,
|
230
|
-
});
|
231
|
-
$('.mosaic__item .image_item-meta--portfolio .image_item-table').each(function() {
|
232
|
-
$(this).hoverdir();
|
233
|
-
});
|
234
|
-
}
|
235
|
-
|
236
|
-
/* Slider AutoChanging Title */
|
237
|
-
function loadTitleAnimated(){
|
238
|
-
var myInterval;
|
239
|
-
var contador = 1;
|
240
|
-
var myFunc = function() {
|
241
|
-
var cur = $('.main-title ul li').length;
|
242
|
-
//alert(contador);
|
243
|
-
if(cur == contador) {;
|
244
|
-
$('.main-title ul li.t-current').removeClass('t-current');
|
245
|
-
$('.main-title ul li').first().addClass('t-current');
|
246
|
-
contador = 1;
|
247
|
-
} else {
|
248
|
-
contador++;
|
249
|
-
$('.main-title ul li.t-current').removeClass('t-current').next().addClass('t-current');
|
250
|
-
}
|
251
|
-
};
|
252
|
-
myInterval = setInterval(myFunc, 5000); // Set Animation Interval in Miliseconds
|
253
|
-
}
|
254
|
-
|
255
|
-
/* Main Menu Section Selector */
|
256
|
-
function loadMenuSelector(){
|
257
|
-
$('#nav').onePageNav({
|
258
|
-
begin: function() {
|
259
|
-
console.log('start');
|
260
|
-
},
|
261
|
-
end: function() {
|
262
|
-
console.log('stop');
|
263
|
-
},
|
264
|
-
scrollOffset: 75 // header Height
|
265
|
-
});
|
266
|
-
}
|
267
|
-
|
268
|
-
|
269
|
-
/* Small Funtions */
|
270
|
-
function loadSmall(){
|
271
|
-
|
272
|
-
/* Portfolio Animate Show Project */
|
273
|
-
/*$('.ch-grid').click(function() {
|
274
|
-
$("html, body").animate({ scrollTop: $('#project-show').offset().top }, 1000);
|
275
|
-
});*/
|
276
|
-
|
277
|
-
/* Call LightBox Featured Works */
|
278
|
-
$('.image-link').magnificPopup({type:'image'});
|
279
|
-
$('.ca-wrapper').magnificPopup({
|
280
|
-
delegate: 'a', // child items selector, by clicking on it popup will open
|
281
|
-
type: 'image',
|
282
|
-
// other options
|
283
|
-
gallery:{
|
284
|
-
enabled:true
|
285
|
-
}
|
286
|
-
});
|
287
|
-
}
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
/* Isotope/ Portfolio Filter PlugIn */
|
292
|
-
var container = $('#i-portfolio');
|
293
|
-
container.isotope({
|
294
|
-
animationEngine : 'best-available',
|
295
|
-
animationOptions: {
|
296
|
-
duration: 200,
|
297
|
-
queue: false
|
298
|
-
},
|
299
|
-
layoutMode: 'fitRows'
|
300
|
-
});
|
301
|
-
// filter items when filter link is clicked
|
302
|
-
$('#filters a').click(function(){
|
303
|
-
$('#filters a').removeClass('active');
|
304
|
-
$(this).addClass('active');
|
305
|
-
var selector = $(this).attr('data-option-value');
|
306
|
-
container.isotope({ filter: selector });
|
307
|
-
setProjects();
|
308
|
-
return false;
|
309
|
-
});
|
310
|
-
|
311
|
-
function splitColumns() {
|
312
|
-
var winWidth = $(window).width(),
|
313
|
-
columnNumb = 1;
|
314
|
-
if (winWidth > 1200) {
|
315
|
-
columnNumb = 4;
|
316
|
-
} else if (winWidth > 600) {
|
317
|
-
columnNumb = 2;
|
318
|
-
} else if (winWidth > 300) {
|
319
|
-
columnNumb = 1;
|
320
|
-
}
|
321
|
-
return columnNumb;
|
322
|
-
}
|
323
|
-
|
324
|
-
function setColumns() {
|
325
|
-
var winWidth = $(window).width(),
|
326
|
-
columnNumb = splitColumns(),
|
327
|
-
postWidth = Math.floor(winWidth / columnNumb);
|
328
|
-
container.find('.element').each(function () {
|
329
|
-
$(this).css( {
|
330
|
-
width : postWidth + 'px'
|
331
|
-
});
|
332
|
-
|
333
|
-
var marhei = ($(this).find('div').height()/2)-49;
|
334
|
-
|
335
|
-
$(this).find('div > span').css( {
|
336
|
-
margin : marhei+'px 20px'
|
337
|
-
});
|
338
|
-
|
339
|
-
});
|
340
|
-
}
|
341
|
-
function setProjects() {
|
342
|
-
setColumns();
|
343
|
-
container.isotope('reLayout');
|
344
|
-
}
|
345
|
-
|
346
|
-
function loadIsotope(){
|
347
|
-
container.imagesLoaded(function () {setProjects();});
|
348
|
-
setProjects();
|
349
|
-
}
|
350
|
-
|
351
|
-
/* Call HoverDir Portfolio RollOver */
|
352
|
-
function loadHoverDir(){
|
353
|
-
$(' #i-portfolio > .ch-grid ').each( function() { $(this).hoverdir({
|
354
|
-
hoverDelay : 5
|
355
|
-
}); } );
|
356
|
-
}
|
357
|
-
|
358
|
-
/* Logos/Company Carousel */
|
359
|
-
function loadLogos(){
|
360
|
-
$('#logos').carouFredSel({
|
361
|
-
responsive: true,
|
362
|
-
width: '100%',
|
363
|
-
scroll: 1,
|
364
|
-
items: {
|
365
|
-
width: 400,
|
366
|
-
// height: '30%', // optionally resize item-height
|
367
|
-
visible: {
|
368
|
-
min: 1,
|
369
|
-
max: 6
|
370
|
-
}
|
371
|
-
}
|
372
|
-
});
|
373
|
-
}
|
374
|
-
|
375
|
-
/* Call Featured Carousel Container */
|
376
|
-
function loadContentCarousel(){
|
377
|
-
$('#ca-container').contentcarousel();
|
378
|
-
}
|
379
|
-
|
380
|
-
|
381
|
-
////////////////////////////////////////////
|
382
|
-
|
383
|
-
/* Scroll */
|
384
|
-
$(window).bind("scroll", function(){//when the user is scrolling...
|
385
|
-
|
386
|
-
/* Parallax */
|
387
|
-
Move('.paraOn'); //move the background images in relation to the movement of the scrollbar
|
388
|
-
|
389
|
-
/* Scroll Top Btn */
|
390
|
-
if ($(this).scrollTop() > $(window).height()-1) {
|
391
|
-
$('.scrollup').fadeIn();
|
392
|
-
} else {
|
393
|
-
$('.scrollup').fadeOut();
|
394
|
-
}
|
395
|
-
});
|
396
|
-
|
397
|
-
/* Resize */
|
398
|
-
function resizedw(){
|
399
|
-
// Haven't resized in 500ms!
|
400
|
-
setProjects();
|
401
|
-
loadTall();
|
402
|
-
}
|
403
|
-
|
404
|
-
var doit;
|
405
|
-
$(window).bind('resize', function () {
|
406
|
-
clearTimeout(doit);
|
407
|
-
doit = setTimeout(resizedw, 1000);
|
408
|
-
});
|
409
|
-
function loadsuperslides(){
|
410
|
-
$('#slides-1').superslides({
|
411
|
-
hashchange: false,
|
412
|
-
animation: 'fade',
|
413
|
-
play: 10000,
|
414
|
-
pagination: false
|
415
|
-
});
|
416
|
-
}
|
417
|
-
|
418
|
-
function loadbxSlider(){
|
419
|
-
$('.bxslider').bxSlider();
|
420
|
-
}
|
421
|
-
|
422
|
-
/* Inview */
|
423
|
-
function loadInview(){
|
424
|
-
/* Parallax */
|
425
|
-
$('.parallax').bind('inview', function (event, visible) {
|
426
|
-
if (visible === true) {
|
427
|
-
// element is now visible in the viewport
|
428
|
-
var offset = $(this).offset();
|
429
|
-
$(this).addClass('paraOn').attr('yPos',offset.top);
|
430
|
-
} else {
|
431
|
-
// element has gone out of viewport
|
432
|
-
$(this).removeClass('paraOn');
|
433
|
-
}
|
434
|
-
});
|
435
|
-
|
436
|
-
/* Fade In Elements */
|
437
|
-
$('.hideme').bind('inview', function (event, visible) {
|
438
|
-
if (visible === true) {
|
439
|
-
var offset = $(this).offset();
|
440
|
-
$(this).removeClass('hideme');
|
441
|
-
}
|
442
|
-
});
|
443
|
-
$('.p-image-02').bind('inview', function (event, visible) {
|
444
|
-
if (visible === true) {
|
445
|
-
$('.dontHide').removeClass('hideme-slide');
|
446
|
-
}
|
447
|
-
});
|
448
|
-
|
449
|
-
$('.newtr').bind('inview', function (event, visible) {
|
450
|
-
if (visible === true) {
|
451
|
-
$('.dontHide').removeClass('hideme-slide2');
|
452
|
-
}
|
453
|
-
});
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
/* Facts Counter */
|
458
|
-
var count=0;
|
459
|
-
var dataperc;
|
460
|
-
|
461
|
-
//mobile counter
|
462
|
-
|
463
|
-
$('.milestone-counter').bind('inview', function (event, visible) {
|
464
|
-
if (visible === true & count===0) {
|
465
|
-
// element is now visible in the viewport
|
466
|
-
count++;
|
467
|
-
$('.milestone-counter').each(function(){
|
468
|
-
dataperc = $(this).attr('data-perc'),
|
469
|
-
$(this).find('.milestone-count').delay(6000).countTo({
|
470
|
-
from: 0,
|
471
|
-
to: dataperc,
|
472
|
-
speed: 2500,
|
473
|
-
refreshInterval: 80
|
474
|
-
});
|
475
|
-
});
|
476
|
-
} else {
|
477
|
-
// element has gone out of viewport
|
478
|
-
}
|
479
|
-
});
|
480
|
-
|
481
|
-
/* Skills Animation */
|
482
|
-
var value;
|
483
|
-
$('.skill-in').bind('inview', function (event, visible) {
|
484
|
-
if (visible === true) {
|
485
|
-
// element is now visible in the viewport
|
486
|
-
$(this).each(function(){
|
487
|
-
value = $(this).attr('title');
|
488
|
-
$(this).animate({ "width": value+'%' }, 2000);
|
489
|
-
});
|
490
|
-
}
|
491
|
-
});
|
492
|
-
}
|
493
|
-
|
494
|
-
/* Load Functions */
|
495
|
-
loadServices();
|
496
|
-
//loadTall();
|
497
|
-
loadJump();
|
498
|
-
|
499
|
-
if($(window).width()>974){
|
500
|
-
loadInview();
|
501
|
-
}else{
|
502
|
-
$('.milestone-count.highlight').each(function(){
|
503
|
-
$(this).html($(this).parent().attr('data-perc'))
|
504
|
-
})
|
505
|
-
|
506
|
-
|
507
|
-
var value;
|
508
|
-
$('.skill-in').each(function(){
|
509
|
-
value = $(this).attr('title');
|
510
|
-
$(this).css("width", value+'%');
|
511
|
-
});
|
512
|
-
}
|
513
|
-
|
514
|
-
loadCarousel();
|
515
|
-
loadArrows();
|
516
|
-
loadSmall();
|
517
|
-
loadTitleAnimated();
|
518
|
-
loadMenuSelector();
|
519
|
-
loadIsotope();
|
520
|
-
loadHoverDir();
|
521
|
-
loadLogos();
|
522
|
-
loadContentCarousel();
|
523
|
-
//loadbxSlider();
|
524
|
-
loadsuperslides();
|
525
|
-
});
|