metron-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmerri...@apache.org
Subject [02/15] incubator-metron git commit: METRON-173 Update the the Apache Metron Web Page (iraghumitra via merrimanr) closes apache/incubator-metron#126
Date Fri, 20 May 2016 16:21:56 GMT
http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/7077dbd6/site/js/navigation.js
----------------------------------------------------------------------
diff --git a/site/js/navigation.js b/site/js/navigation.js
new file mode 100644
index 0000000..a624e31
--- /dev/null
+++ b/site/js/navigation.js
@@ -0,0 +1,303 @@
+jQuery(document).ready(function () {
+
+    jQuery('.fixed-links li a[href^="#"]').on('click', function (e) {
+        e.preventDefault();
+        var target = this.hash;
+        $target = jQuery(target);
+        jQuery('html, body').stop().animate({
+            'scrollTop': ($target.offset().top - 50)
+        }, 800, 'swing', function () {
+        });
+    });
+
+
+
+    var window_width = jQuery(window).width();
+    /*
+     *  Set main navigation active based on path.
+     */
+    var page = window.location.pathname;
+
+    jQuery('.main-navigation .main-menu li').each(function () {
+        var section_url = jQuery('a', this).attr('href');
+        if (page == section_url)
+            jQuery(this).children("a").addClass('active');
+    });
+    jQuery('.main-navigation .main-menu li:has(.drop-menu)').addClass('arrow-menu');
+
+
+    /*local main-menu on scroll */
+
+    var scroll = jQuery(document).scrollTop();
+    var headerHeight = jQuery('header').outerHeight();
+    var sticky = jQuery('.fixed-links');
+    var topVal;
+    jQuery(window).on("resize", function () {
+        window_width = jQuery(window).width();
+        if (window_width > 767) {
+            topVal = 63;
+        } else if (window_width < 768) {
+            topVal = 49;
+        }
+    }).resize();
+    
+    jQuery(window).scroll(function () {
+        var bodyScroll = jQuery('body').css('overflow');
+        var scrolled = jQuery(document).scrollTop();
+        if (scrolled > headerHeight) {
+            jQuery('.main-nav').addClass('off-canvas');
+            jQuery('body').addClass('no-menu');
+
+        } else if (scrolled <= 50) {
+            jQuery('.main-nav').removeClass('off-canvas');
+            jQuery('body').removeClass('no-menu');
+            jQuery('.search-overlay, .newsletter-overlay').removeAttr('style');
+
+        }
+
+        if ((scrolled > scroll) && (bodyScroll !== "hidden")) {
+            jQuery('.main-nav').removeClass('fixed');
+            //jQuery('body').removeClass('fx-menu');
+            sticky.css({'top': '0', 'transition': 'top .5s ease'});
+        } else if ((scrolled < scroll) && (bodyScroll !== "hidden")) {
+            jQuery('.main-nav').addClass('fixed');
+            //jQuery('body').addClass('fx-menu');
+            //jQuery('.search-overlay, .newsletter-overlay').css('top', '64px');
+            sticky.css('top', topVal);
+
+        }
+        scroll = jQuery(document).scrollTop();
+        jQuery('.drop-menu').removeAttr('style');
+    });
+    /**
+     * stick anchor-links
+     */
+//    jQuery('.fixed-anchor').each(function () {
+//        var anch_hei = jQuery('.fixed-anchor').outerHeight();
+//        jQuery(this).css('height', anch_hei);
+//        jQuery(window).load(function () {
+//            jQuery(window).on("resize", function () {
+//
+//                if (jQuery('.fixed-links').length > 0) {
+//                    var stickyOffset = '';
+//                    if (jQuery('.fixed-links')) {
+//                        sticky.removeClass('stick');
+//                        var stickyOffset = jQuery('.fixed-links').offset().top;
+//                    }
+//                    jQuery(window).scroll(function () {
+//                        var anch_hei = jQuery('.fixed-anchor').outerHeight();
+//                        jQuery(this).css('height', anch_hei);
+//                        scroll = jQuery(window).scrollTop();
+//                        if (scroll >= stickyOffset) {
+//                            sticky.addClass('stick');
+//                        }
+//                        else {
+//                            sticky.removeClass('stick');
+//                        }
+//                    });
+//                }
+//            }).resize();
+//        });
+//    });
+
+});
+jQuery(window).load(function () {
+    jQuery(window).on("resize", function () {
+        var window_height = jQuery(window).height();
+        var window_width = jQuery(window).width();
+
+        /*
+         *  Set menu height to avoid body jump on scroll
+         */
+
+        if (window_width > 1023) {
+            jQuery('.main-navigation').css('height', "85px");
+        } else
+        if (window_width > 767 && window_width < 1024) {
+            jQuery('.main-navigation').css('height', "85px");
+        } else {
+            jQuery('.main-navigation').css('height', "71px");
+        }
+
+        /*
+         *  Set menu wrapper height full screen
+         */
+
+        var wrapper_height = window_height - 49;
+        if (window_width < 768) {
+            jQuery('.main-navigation .menu-wrapper').css("height", wrapper_height + "px");
+        } else {
+            jQuery('.main-navigation .menu-wrapper').css("height", "auto");
+        }
+        if (window_width > 767) {
+            jQuery('.main-navigation .menu-wrapper').css("display", "block");
+
+        } else {
+            jQuery('.main-navigation .toggle').removeClass("active");
+            jQuery('.main-navigation .menu-wrapper').css("display", "none");
+
+        }
+    }).resize();
+
+    /*
+     *  Second level navigation
+     */
+    jQuery(".fixed-links li:eq(0)").addClass("active");
+    jQuery(window).on('scroll', function () {
+        /*
+         * Active links on page scroll
+         */
+        if (jQuery(".fixed-anchor").length) {
+            var nav_height = jQuery('.fixed-anchor').outerHeight();
+            var scrollPos = jQuery(document).scrollTop() + nav_height;
+            if (jQuery('.fixed-anchor').length) {
+                jQuery('.fixed-links li a').each(function () {
+                    var currLink = jQuery(this);
+                    var refElement = jQuery(currLink.attr("href"));
+                    if (refElement.length) {
+                        if (refElement.position().top <= scrollPos && refElement.position().top + refElement.outerHeight() > scrollPos) {
+                            jQuery('.fixed-links li').removeClass("active");
+                            currLink.parent().addClass("active");
+                        }
+                    }
+//                    else {
+//                        currLink.parent().removeClass("active");
+//                    }
+                    if (!jQuery(".fixed-links li").hasClass("active")) {
+                        var thisElement = jQuery(".fixed-links li:eq(0)").children();
+                        var thisId = jQuery(thisElement.attr("href"));
+                        var topPosition = thisId.position().top - jQuery(window).scrollTop();
+                        if (topPosition > nav_height) {
+                            jQuery('.fixed-links li:eq(0)').addClass("active");
+                        }
+                    }
+                });
+
+            }
+        }
+    });
+
+});
+
+/*
+ * Mobile menu to open and close
+ */
+
+
+jQuery(document).ready(function () {
+
+    function checkbrowserwidth() {
+        if (jQuery("nav > .toggle").css("display") === "block") {
+
+            jQuery('.main-menu').addClass('mobile-menu');
+
+        } else {
+            jQuery('.main-menu').removeClass('mobile-menu');
+            jQuery("body").css("overflow-y", "visible");
+            jQuery('.toggle').removeClass("active");
+        }
+    }
+    checkbrowserwidth();
+    jQuery('.mobile-menu li.arrow-menu > a').addClass('mobile');
+
+    jQuery(document).on('click', '.mobile-menu > li.arrow-menu > .mobile', function () {
+        jQuery('.mobile').not(this).parent().find('.drop-menu').slideUp();
+        jQuery(this).parent().find('.drop-menu').stop(true, true).slideToggle();
+        return false;
+    });
+
+
+    jQuery(".toggle").click(function () {
+        jQuery(this).toggleClass("active");
+        jQuery('.drop-menu').removeAttr('style');
+        jQuery(".menu-wrapper").toggle();
+        if (jQuery(this).hasClass("active")) {
+            jQuery("body").css("overflow-y", "hidden");
+        } else {
+            jQuery("body").css("overflow-y", "visible");
+        }
+    });
+
+    /*drop-menu show on hover*/
+
+//    jQuery('.main-menu > li.arrow-menu').hover(function () {
+//        jQuery(this).find(".drop-menu").stop(true, true).delay(200).fadeIn(200);
+//    }, function () {
+//        jQuery(this).find(".drop-menu").stop(true, true).fadeOut(200);
+//    });
+    
+    // Make the main menu touch friendly for mobile devices, like iPads
+    if (jQuery('.ua-mobile').length > 0) {
+	    // Track what was last clicked
+	    window.hwxLastClicked = null;
+	    jQuery(document).click(function(e){
+	      window.hwxLastClicked = e.target;
+	    });
+	    
+	    // Prevent top level links from being followed unless they were the last element clicked
+	    jQuery('.main-menu > li > a').click(function(e){
+	      if(window.hwxLastClicked !== this && !jQuery('.main-menu').hasClass('mobile-menu')) {
+	        e.preventDefault();
+	      }
+	    });
+	  }
+});
+
+jQuery(window).resize(function () {
+
+    function checkbrowserwidth() {
+        if (jQuery("nav > .toggle").css("display") === "block") {
+
+            jQuery('.main-menu').addClass('mobile-menu');
+            jQuery('.mobile-menu li.arrow-menu > a').addClass('mobile');
+
+        } else {
+
+            jQuery('.mobile-menu li.arrow-menu > a').removeClass('mobile');
+            jQuery('.main-menu').removeClass('mobile-menu');
+            jQuery(".drop-menu").removeAttr('style');
+            jQuery("body").css("overflow-y", "visible");
+            jQuery('.toggle').removeClass("active");
+
+        }
+    }
+    checkbrowserwidth();
+
+});
+
+
+/*drop-menu show on hover*/
+
+
+var $= jQuery;
+
+$(document).ready(function () {
+    $(window).resize(function () {
+
+        if (jQuery("nav > .toggle").css("display") === "none") {
+            $('.main-menu > li.arrow-menu').on('mouseenter', function () {
+                $(this).find('.drop-menu').stop(true, true).delay(200).fadeIn(200);
+            }).on('mouseleave', function () {
+                $(this).find('.drop-menu').stop(true, true).fadeOut(200);
+            });
+        } else {
+            $('.main-menu > li.arrow-menu').off('mouseenter mouseleave');
+        }
+    }).resize(); //to initialize the value
+});
+
+
+/**
+ * CssUserAgent (cssua.js) v2.1.31
+ * http://cssuseragent.org
+ * 
+ * Copyright (c)2006-2015 Stephen M. McKamey.
+ * Licensed under The MIT License.
+ */
+var cssua=function(n,l,p){var q=/\s*([\-\w ]+)[\s\/\:]([\d_]+\b(?:[\-\._\/]\w+)*)/,r=/([\w\-\.]+[\s\/][v]?[\d_]+\b(?:[\-\._\/]\w+)*)/g,s=/\b(?:(blackberry\w*|bb10)|(rim tablet os))(?:\/(\d+\.\d+(?:\.\w+)*))?/,t=/\bsilk-accelerated=true\b/,u=/\bfluidapp\b/,v=/(\bwindows\b|\bmacintosh\b|\blinux\b|\bunix\b)/,w=/(\bandroid\b|\bipad\b|\bipod\b|\bwindows phone\b|\bwpdesktop\b|\bxblwp7\b|\bzunewp7\b|\bwindows ce\b|\bblackberry\w*|\bbb10\b|\brim tablet os\b|\bmeego|\bwebos\b|\bpalm|\bsymbian|\bj2me\b|\bdocomo\b|\bpda\b|\bchtml\b|\bmidp\b|\bcldc\b|\w*?mobile\w*?|\w*?phone\w*?)/,
+x=/(\bxbox\b|\bplaystation\b|\bnintendo\s+\w+)/,k={parse:function(b,d){var a={};d&&(a.standalone=d);b=(""+b).toLowerCase();if(!b)return a;for(var c,e,g=b.split(/[()]/),f=0,k=g.length;f<k;f++)if(f%2){var m=g[f].split(";");c=0;for(e=m.length;c<e;c++)if(q.exec(m[c])){var h=RegExp.$1.split(" ").join("_"),l=RegExp.$2;if(!a[h]||parseFloat(a[h])<parseFloat(l))a[h]=l}}else if(m=g[f].match(r))for(c=0,e=m.length;c<e;c++)h=m[c].split(/[\/\s]+/),h.length&&"mozilla"!==h[0]&&(a[h[0].split(" ").join("_")]=h.slice(1).join("-"));
+w.exec(b)?(a.mobile=RegExp.$1,s.exec(b)&&(delete a[a.mobile],a.blackberry=a.version||RegExp.$3||RegExp.$2||RegExp.$1,RegExp.$1?a.mobile="blackberry":"0.0.1"===a.version&&(a.blackberry="7.1.0.0"))):x.exec(b)?(a.game=RegExp.$1,c=a.game.split(" ").join("_"),a.version&&!a[c]&&(a[c]=a.version)):v.exec(b)&&(a.desktop=RegExp.$1);a.intel_mac_os_x?(a.mac_os_x=a.intel_mac_os_x.split("_").join("."),delete a.intel_mac_os_x):a.cpu_iphone_os?(a.ios=a.cpu_iphone_os.split("_").join("."),delete a.cpu_iphone_os):a.cpu_os?
+(a.ios=a.cpu_os.split("_").join("."),delete a.cpu_os):"iphone"!==a.mobile||a.ios||(a.ios="1");a.opera&&a.version?(a.opera=a.version,delete a.blackberry):t.exec(b)?a.silk_accelerated=!0:u.exec(b)&&(a.fluidapp=a.version);a.edge&&(delete a.applewebkit,delete a.safari,delete a.chrome,delete a.android);if(a.applewebkit)a.webkit=a.applewebkit,delete a.applewebkit,a.opr&&(a.opera=a.opr,delete a.opr,delete a.chrome),a.safari&&(a.chrome||a.crios||a.fxios||a.opera||a.silk||a.fluidapp||a.phantomjs||a.mobile&&
+!a.ios?(delete a.safari,a.vivaldi&&delete a.chrome):a.safari=a.version&&!a.rim_tablet_os?a.version:{419:"2.0.4",417:"2.0.3",416:"2.0.2",412:"2.0",312:"1.3",125:"1.2",85:"1.0"}[parseInt(a.safari,10)]||a.safari);else if(a.msie||a.trident)if(a.opera||(a.ie=a.msie||a.rv),delete a.msie,delete a.android,a.windows_phone_os)a.windows_phone=a.windows_phone_os,delete a.windows_phone_os;else{if("wpdesktop"===a.mobile||"xblwp7"===a.mobile||"zunewp7"===a.mobile)a.mobile="windows desktop",a.windows_phone=9>+a.ie?
+"7.0":10>+a.ie?"7.5":"8.0",delete a.windows_nt}else if(a.gecko||a.firefox)a.gecko=a.rv;a.rv&&delete a.rv;a.version&&delete a.version;return a},format:function(b){var d="",a;for(a in b)if(a&&b.hasOwnProperty(a)){var c=a,e=b[a],c=c.split(".").join("-"),g=" ua-"+c;if("string"===typeof e){for(var e=e.split(" ").join("_").split(".").join("-"),f=e.indexOf("-");0<f;)g+=" ua-"+c+"-"+e.substring(0,f),f=e.indexOf("-",f+1);g+=" ua-"+c+"-"+e}d+=g}return d},encode:function(b){var d="",a;for(a in b)a&&b.hasOwnProperty(a)&&
+(d&&(d+="\x26"),d+=encodeURIComponent(a)+"\x3d"+encodeURIComponent(b[a]));return d}};k.userAgent=k.ua=k.parse(l,p);l=k.format(k.ua)+" js";n.className=n.className?n.className.replace(/\bno-js\b/g,"")+l:l.substr(1);return k}(document.documentElement,navigator.userAgent,navigator.standalone);

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/7077dbd6/site/js/paralax-scroll.js
----------------------------------------------------------------------
diff --git a/site/js/paralax-scroll.js b/site/js/paralax-scroll.js
new file mode 100644
index 0000000..44a1d32
--- /dev/null
+++ b/site/js/paralax-scroll.js
@@ -0,0 +1,7 @@
+/*!
+Waypoints - 3.1.1
+Copyright © 2011-2015 Caleb Troughton
+Licensed under the MIT license.
+https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
+*/
+!function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callb
 ack&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-vie
 w":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".
 waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,
 u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOff
 set:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var n in t){var r=t[n];for(var s in this.waypoints[n]){var a,l,h,p,u,c=this.waypoints[n][s],d=c.options.offset,f=c.triggerPoint,w=0,y=null==f;c.element!==c.element.window&&(w=c.adapter.offset()[r.offsetProp]),"function"==typeof d?d=d.apply(c):"string"==typeof d&&(d=parseFloat(d),c.options.offset.indexOf("%")>-1&&(d=Math.ceil(r.contextDimension*d/100))),a=r.contextScroll-r.contextOffset,c.triggerPoint=w+a-d,l=f<r.oldScroll,h=c.triggerPoint>=r.oldScroll,p=l&&h,u=!l&&!h,!y&&p?(c.queueTrigger(r.backward),o[c.group.id]=c.group):!y&&u?(c.queueTrigger(r.forward),o[c.group.id]=c.group):y&&r.oldScroll>=c.triggerPoint&&(c.queueTrigger(r.forward),o[c.group.id]=c.group)}}for(var g in o)o[g].flushTriggers();return this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t]
 .refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&
 a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(ar
 guments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/7077dbd6/site/js/parallax.js
----------------------------------------------------------------------
diff --git a/site/js/parallax.js b/site/js/parallax.js
new file mode 100644
index 0000000..ae57841
--- /dev/null
+++ b/site/js/parallax.js
@@ -0,0 +1,77 @@
+$(document).ready(function() {
+    // Cache the Window object
+    $window = $(window);
+
+    // var windowWidth = jQuery(window).width();
+    if ($('.ua-mobile').length == 0) {
+        $('.parallax').each(function() {
+            var $bgobj = $(this); // assigning the object
+
+            $(window).on('scroll resize', function() {
+                // Get top, height, windowHeight, and pos
+                var top = $bgobj.offset().top;
+                var height = $bgobj.outerHeight();
+                var windowHeight = $window.height();
+                var pos = $window.scrollTop();
+                // Do nothing if image not in viewport
+//                if (top + height < pos || top > pos + windowHeight) {
+//                    return;
+//                }
+                var win_wid = jQuery(window).width();
+                var win_hei = jQuery(window).height();
+                // Find new position
+                if (win_wid >= 1401)
+                {
+                    if (win_hei > 1300) {
+                        var toppos = (($(window).height()) - ($('.win-height').height()));
+                        var yPos = ($bgobj.offset().top - pos) / $bgobj.data('speed');
+                        $bgobj.css({backgroundPosition: '50% ' + yPos + 'px'});
+                    }
+                    else {
+                        var toppos = (($(window).height()) - ($('.win-height').height()));
+                        var yPos = ($bgobj.offset().top - pos) / $bgobj.data('speed');
+                        //$bgobj.css({backgroundPosition: '50% ' + yPos + 'px'});
+                        //console.log($bgobj.offset().top);
+                        //console.log(pos);
+                        //console.log(yPos);
+                        $bgobj.css({backgroundPosition: '50% ' + yPos + 'px'});
+                    }
+                }
+                else if ((win_wid >= 1200) && (win_wid <= 1400)) {
+                    var toppos = (($(window).height()) - ($('.win-height').height()));
+                    var yPos = ($bgobj.offset().top - (pos + (toppos + 50))) / $bgobj.data('speed');
+                    $bgobj.css({backgroundPosition: '50% ' + yPos + 'px'});
+                }
+                else if ((win_wid >= 992) && (win_wid <= 1199)) {
+                    var toppos = (($(window).height()) - ($('.win-height').height()));
+                    var yPos = ($bgobj.offset().top - (pos + 50)) / $bgobj.data('speed');
+                    $bgobj.css({backgroundPosition: '50% ' + yPos + 'px'});
+                }
+                else if ((win_wid >= 768) && (win_wid <= 991)) {
+                    var toppos = (($(window).height()) - ($('.win-height').height()));
+                    var yPos = ($bgobj.offset().top - (pos + 50)) / $bgobj.data('speed');
+                    $bgobj.css({backgroundPosition: '50% ' + yPos + 'px'});
+                }
+                else if ((win_wid >= 596) && (win_wid <= 767)) {
+                    var toppos = (($(window).height()) - ($('.win-height').height()));
+                    var yPos = ($bgobj.offset().top - (pos + 50)) / $bgobj.data('speed');
+                    $bgobj.css({backgroundPosition: '50% ' + yPos + 'px'});
+                }
+                else if ((win_wid >= 300) && (win_wid <= 595)) {
+                    var toppos = (($(window).height()) - ($('.win-height').height()));
+                    var yPos = ($bgobj.offset().top - pos) / $bgobj.data('speed');
+                    $bgobj.css({backgroundPosition: '50% ' + yPos + 'px'});
+                }
+                // Move the background
+
+            }); // window scroll Ends
+        });
+    }
+    $window.trigger('resize');
+});
+/* 
+ * Create HTML5 elements for IE's sake
+ */
+
+document.createElement("article");
+document.createElement("section");
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/7077dbd6/site/js/parallax.min.js
----------------------------------------------------------------------
diff --git a/site/js/parallax.min.js b/site/js/parallax.min.js
new file mode 100644
index 0000000..4ff4bbc
--- /dev/null
+++ b/site/js/parallax.min.js
@@ -0,0 +1,6 @@
+/*!
+ * parallax.js v1.4.2 (http://pixelcog.github.io/parallax.js/)
+ * @copyright 2016 PixelCog, Inc.
+ * @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE)
+ */
+!function(t,i,e,s){function o(i,e){var h=this;"object"==typeof e&&(delete e.refresh,delete e.render,t.extend(this,e)),this.$element=t(i),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src"));var r=(this.position+"").toLowerCase().match(/\S+/g)||[];if(r.length<1&&r.push("center"),1==r.length&&r.push(r[0]),("top"==r[0]||"bottom"==r[0]||"left"==r[1]||"right"==r[1])&&(r=[r[1],r[0]]),this.positionX!=s&&(r[0]=this.positionX.toLowerCase()),this.positionY!=s&&(r[1]=this.positionY.toLowerCase()),h.positionX=r[0],h.positionY=r[1],"left"!=this.positionX&&"right"!=this.positionX&&(this.positionX=isNaN(parseInt(this.positionX))?"center":parseInt(this.positionX)),"top"!=this.positionY&&"bottom"!=this.positionY&&(this.positionY=isNaN(parseInt(this.positionY))?"center":parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageS
 rc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;this.$mirror=t("<div />").prependTo("body");var a=this.$element.find(">.parallax-slider"),n=!1;0==a.length?this.$slider=t("<img />").prependTo(this.$mirror):(this.$slider=a.prependTo(this.$mirror),n=!0),this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"}),this.$slider.addClass("parallax-slider").one("load",function(){h.naturalHeight&&h.naturalWidth||(h.naturalHeight=this.naturalHeight||this.height||1,h.naturalWidth=this.naturalWidth||this.width||1),h.aspectRatio=h.naturalWidth/h.naturalHeight,o.isSetup||o.setup(),
 o.sliders.push(h),o.isFresh=!1,o.requestRender()}),n||(this.$slider[0].src=this.imageSrc),(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||a.length>0)&&this.$slider.trigger("load")}function h(s){return this.each(function(){var h=t(this),r="object"==typeof s&&s;this==i||this==e||h.is("body")?o.configure(r):h.data("px.parallax")?"object"==typeof s&&t.extend(h.data("px.parallax"),r):(r=t.extend({},h.data(),r),h.data("px.parallax",new o(this,r))),"string"==typeof s&&("destroy"==s?o.destroy(this):o[s]())})}!function(){for(var t=0,e=["ms","moz","webkit","o"],s=0;s<e.length&&!i.requestAnimationFrame;++s)i.requestAnimationFrame=i[e[s]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[e[s]+"CancelAnimationFrame"]||i[e[s]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(e){var s=(new Date).getTime(),o=Math.max(0,16-(s-t)),h=i.setTimeout(function(){e(s+o)},o);return t=s+o,h}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(t){c
 learTimeout(t)})}(),t.extend(o.prototype,{speed:.2,bleed:0,zIndex:-100,iosFix:!0,androidFix:!0,position:"center",overScrollFix:!1,refresh:function(){this.boxWidth=this.$element.outerWidth(),this.boxHeight=this.$element.outerHeight()+2*this.bleed,this.boxOffsetTop=this.$element.offset().top-this.bleed,this.boxOffsetLeft=this.$element.offset().left,this.boxOffsetBottom=this.boxOffsetTop+this.boxHeight;var t=o.winHeight,i=o.docHeight,e=Math.min(this.boxOffsetTop,i-t),s=Math.max(this.boxOffsetTop+this.boxHeight-t,0),h=this.boxHeight+(e-s)*(1-this.speed)|0,r=(this.boxOffsetTop-e)*(1-this.speed)|0;if(h*this.aspectRatio>=this.boxWidth){this.imageWidth=h*this.aspectRatio|0,this.imageHeight=h,this.offsetBaseTop=r;var a=this.imageWidth-this.boxWidth;this.offsetLeft="left"==this.positionX?0:"right"==this.positionX?-a:isNaN(this.positionX)?-a/2|0:Math.max(this.positionX,-a)}else{this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0;var a=this.imageHei
 ght-h;this.offsetBaseTop="top"==this.positionY?r:"bottom"==this.positionY?r-a:isNaN(this.positionY)?r-a/2|0:r+Math.max(this.positionY,-a)}},render:function(){var t=o.scrollTop,i=o.scrollLeft,e=this.overScrollFix?o.overScroll:0,s=t+o.winHeight;this.boxOffsetBottom>t&&this.boxOffsetTop<=s?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-t,this.mirrorLeft=this.boxOffsetLeft-i,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden",this.$mirror.css({transform:"translate3d(0px, 0px, 0px)",visibility:this.visibility,top:this.mirrorTop-e,left:this.mirrorLeft,height:this.boxHeight,width:this.boxWidth}),this.$slider.css({transform:"translate3d(0px, 0px, 0px)",position:"absolute",top:this.offsetTop,left:this.offsetLeft,height:this.imageHeight,width:this.imageWidth,maxWidth:"none"})}}),t.extend(o,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){if(!this.isRead
 y){var s=t(e),h=t(i),r=function(){o.winHeight=h.height(),o.winWidth=h.width(),o.docHeight=s.height(),o.docWidth=s.width()},a=function(){var t=h.scrollTop(),i=o.docHeight-o.winHeight,e=o.docWidth-o.winWidth;o.scrollTop=Math.max(0,Math.min(i,t)),o.scrollLeft=Math.max(0,Math.min(e,h.scrollLeft())),o.overScroll=Math.max(t-i,Math.min(t,0))};h.on("resize.px.parallax load.px.parallax",function(){r(),o.isFresh=!1,o.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){a(),o.requestRender()}),r(),a(),this.isReady=!0}},configure:function(i){"object"==typeof i&&(delete i.refresh,delete i.render,t.extend(this.prototype,i))},refresh:function(){t.each(this.sliders,function(){this.refresh()}),this.isFresh=!0},render:function(){this.isFresh||this.refresh(),t.each(this.sliders,function(){this.render()})},requestRender:function(){var t=this;this.isBusy||(this.isBusy=!0,i.requestAnimationFrame(function(){t.render(),t.isBusy=!1}))},destroy:function(e){var s,h=t(e).data("px.parallax");fo
 r(h.$mirror.remove(),s=0;s<this.sliders.length;s+=1)this.sliders[s]==h&&this.sliders.splice(s,1);t(e).data("px.parallax",!1),0===this.sliders.length&&(t(i).off("scroll.px.parallax resize.px.parallax load.px.parallax"),this.isReady=!1,o.isSetup=!1)}});var r=t.fn.parallax;t.fn.parallax=h,t.fn.parallax.Constructor=o,t.fn.parallax.noConflict=function(){return t.fn.parallax=r,this},t(e).on("ready.px.parallax.data-api",function(){t('[data-parallax="scroll"]').parallax()})}(jQuery,window,document);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/7077dbd6/site/js/pressReleaseController.js
----------------------------------------------------------------------
diff --git a/site/js/pressReleaseController.js b/site/js/pressReleaseController.js
new file mode 100644
index 0000000..55c93c1
--- /dev/null
+++ b/site/js/pressReleaseController.js
@@ -0,0 +1,230 @@
+app.controller("pressReleaseController", ['$http', '$scope', function ($http, $scope) {
+        $scope.isotopefilter = function () {
+            var activeClass = 'active';
+            jQuery('.isotope-filter').each(function () {
+                var holder = jQuery(this),
+                        filterLinks = holder.find('.filter-btn a'),
+                        container = holder.find('.filter-elements'),
+                        items = container.children(),
+                        btn = holder.find('.load-more'),
+                        ajaxbusy;
+
+                container.isotope({
+                    itemSelector: '.item',
+                    layoutMode: 'fitRows'
+                });
+
+                filterLinks.click(function (e) {
+                    var link = jQuery(this),
+                            filter = link.data('filter');
+                    e.preventDefault();
+                    refreshActiveClass(link);
+                    container.isotope({
+                        filter: filter,
+                        layoutMode: 'fitRows'
+                    });
+                });
+
+                var refreshActiveClass = function (link) {
+                    filterLinks.removeClass(activeClass);
+                    link.addClass(activeClass);
+                };
+
+
+            });
+
+            var holder = jQuery('.filter-drop'),
+                    filterLinks = holder.find('input'),
+                    container = jQuery('.filter-rows'),
+                    items = container.children('.item');
+
+            container.isotope({
+                itemSelector: items,
+                layoutMode: 'fitRows'
+            });
+
+            filterLinks.click(function (e) {
+                var link = jQuery(this),
+                        filter = link.data('filter');
+                container.isotope({
+                    filter: filter,
+                    layoutMode: 'fitRows'
+                });
+            });
+
+        }
+
+        /**
+         * Load post on click
+         */
+
+        $scope.loadAll = function (post_type, offset, class_name, check) {
+            $scope.page_number = '0';
+            $scope.post_type = post_type;
+            var options = {page_number: $scope.page_number, post_type: $scope.post_type, sort: jQuery('#sort').val(), topic: jQuery('#topic').val()};
+            $http.get('/wp-content/themes/hortonworks/template_part/views/press-release-loop.php', {params: options}).success(function (response) {
+                $scope.myposts = response;
+                $scope.loadPost(response, class_name, check);
+                jQuery('.filter-press-release .load_more').css({'display': 'block'});
+                jQuery('.filter-press-release .no_more').css({'display': 'none'});
+                if ($scope.myposts.length == 0) {
+                    jQuery('.filter-press-release .load_more').css({'display': 'none'});
+                    jQuery('.filter-press-release .no_more').css({'display': 'block'});
+                }
+            });
+        }
+        $scope.loadPost = function (myposts, class_name, check) {
+            console.log(myposts);
+            var post_length = $scope.myposts.length;
+            var $allItems = [];
+            var $removeItems = [];
+            var $post_type;
+            var $grid = jQuery('.filter-elements');
+            for (i = 0; i < post_length; i++) {
+                if (myposts[i].post_type == 'post') {
+                    $post_type = 'blog';
+                } else if (myposts[i].post_type == 'hw_news') {
+                    $post_type = 'press';
+                }
+                else if (myposts[i].post_type == 'article') {
+                    $post_type = 'news';
+                }
+                var post_date = myposts[i].post_date;
+                if (post_date != null && post_date != '') {
+                    /*
+                     var p_date = post_date.substr(0, post_date.indexOf(' '));
+                     p_date = p_date.split('-');
+                     var s_date = p_date[2];
+                     var s_year = (p_date[0] % 100);
+                     var s_month = p_date[1];
+                     var date = s_year + '.' + s_date + '.' + s_month;
+                     */
+                    var date = post_date;
+                }
+                var title = myposts[i].post_title;
+                var newtab = '';
+                if(myposts[i].post_type == 'article') newtab = ' target="_blank"';
+                if(myposts[i].featured_image != null){
+                    var col_bg = 'back-bg';
+                    var image = '<img src="'+myposts[i].featured_image[0]+'"/>'
+                }
+                else{
+                    var col_bg = '';
+                    var image = '';
+                }
+                $allItems.push(jQuery(
+                
+                '<div class="item col-three ' + $post_type +' '+col_bg+'">   <div class="feature-bg">'+image+'</div>\n\
+                <div class="v-middle-wrapper"><div class="v-middle-inner"><div class="item-content v-middle">\n\
+                <div class="item-caption"><h6>' + $post_type + '</h6></div>\n\
+                <div class="text-container">\n\
+                <span class="news-date">' + date + '</span>\n\
+                <h5>' + title + '</h5>\n\
+                </div>\n\
+                <a class="learn-more" href="' + myposts[i].guid + '"' + newtab + '>learn more</a>\n\
+                </div> </div> </div></div>'
+                        ));
+            }
+//            if (check == 'true') {
+            for (i = 0; i < jQuery('.item').length; i++) {
+                $removeItems.push(jQuery('.item').eq(i));
+            }
+//            } else {
+//                for (i = 0; i < jQuery('.item:not(.' + class_name + ')').length; i++) {
+//                    $removeItems.push(jQuery('.item:not(.' + class_name + ')').eq(i));
+//                }
+//            }
+            for (i = 0; i < $allItems.length; i++) {
+                $grid.isotope('insert', $allItems[i]);
+            }
+
+            for (i = 0; i < $removeItems.length; i++) {
+                $grid.isotope('remove', $removeItems[i]);
+            }
+            $grid.isotope('layout');
+            window.hwxFixGridTitles();
+        }
+
+        /**
+         * Load more post on click
+         */
+
+        $scope.loadMore = function (post_type, offset, element) {
+            $scope.page_number = offset;
+            $scope.post_type = post_type;
+            $http
+                    .get('/wp-content/themes/hortonworks/template_part/views/press-release-loop.php', {params: {page_number: $scope.page_number, post_type: $scope.post_type, sort: jQuery('#sort').val(), topic: jQuery('#topic').val()}}).success(function (response) {
+                $scope.myposts = response;
+                $scope.loadMorePost(response);
+                jQuery('.filter-press-release .load_more').css({'display': 'block'});
+                jQuery('.filter-press-release .no_more').css({'display': 'none'});
+                if ($scope.myposts.length == 0) {
+                    jQuery('.filter-press-release .load_more').css({'display': 'none'});
+                    jQuery('.filter-press-release .no_more').css({'display': 'block'});
+                }
+                if ($scope.myposts.length == 0) {
+                    jQuery('.filter-press-release .no_more').css({'display': 'block'});
+                    jQuery('.filter-press-release .load_more').css({'display': 'none'});
+                }
+                element.removeClass('loader');
+                element.prop('disabled', false);
+            });
+        }
+        $scope.loadMorePost = function (myposts) {
+            var post_length = $scope.myposts.length;
+            var $allItems = [];
+            var $post_type;
+            var $grid = jQuery('.filter-elements');
+            for (i = 0; i < post_length; i++) {
+                if (myposts[i].post_type == 'post') {
+                    $post_type = 'blog';
+                } else if (myposts[i].post_type == 'hw_news') {
+                    $post_type = 'press';
+                }
+                else if (myposts[i].post_type == 'article') {
+                    $post_type = 'news';
+                }
+                var post_date = myposts[i].post_date;
+                if (post_date != null && post_date != '') {
+                    /*
+                     var p_date = post_date.substr(0, post_date.indexOf(' '));
+                     p_date = p_date.split('-');
+                     var s_date = p_date[2];
+                     var s_year = (p_date[0] % 100);
+                     var s_month = p_date[1];
+                     var date = s_year + '.' + s_date + '.' + s_month;
+                     */
+                    var date = post_date;
+                }
+                var title = myposts[i].post_title;
+                var newtab = '';
+                if(myposts[i].post_type == 'article') newtab = ' target="_blank"';
+                if(myposts[i].featured_image != null){
+                    var col_bg = 'back-bg';
+                    var image = '<img src="'+myposts[i].featured_image[0]+'"/>'
+                }
+                else{
+                    var col_bg = '';
+                    var image = '';
+                }
+                $allItems.push(jQuery('<div class="item col-three ' + $post_type +' '+col_bg+'">   <div class="feature-bg">'+ image+'</div>\n\
+                <div class="v-middle-wrapper"><div class="v-middle-inner"><div class="item-content v-middle">\n\
+                <div class="item-caption"><h6>' + $post_type + '</h6></div>\n\
+                <div class="text-container">\n\
+                <span class="news-date">' + date + '</span>\n\
+                <h5>' + title + '</h5>\n\
+                </div>\n\
+                <a class="learn-more" href="' + myposts[i].guid + '"' + newtab + '>learn more</a>\n\
+                </div> </div> </div></div>'
+                        ));
+            }
+
+            for (i = 0; i < $allItems.length; i++) {
+                $grid.isotope('insert', $allItems[i]);
+            }
+            $grid.isotope('layout');
+            window.hwxFixGridTitles();
+        }
+    }]);
+
+

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/7077dbd6/site/js/products_scroll.js
----------------------------------------------------------------------
diff --git a/site/js/products_scroll.js b/site/js/products_scroll.js
new file mode 100644
index 0000000..82f7519
--- /dev/null
+++ b/site/js/products_scroll.js
@@ -0,0 +1,47 @@
+jQuery(document).ready(function() {
+    var position;
+
+    if (jQuery('.scroll-slider').length > 0) {
+        jQuery(window).scroll(function() {
+            var section_offset = jQuery('.scroll-slider').offset().top;
+            var window_offset = (jQuery(window).scrollTop()) + 25;
+            position = section_offset - window_offset;
+
+        });
+        jQuery('html').on('mousewheel', function(e) {
+            scrollSlider();
+        });
+    }
+
+    function scrollSlider() {
+        var section_offset = jQuery('.scroll-slider').offset().top;
+        var window_offset = (jQuery(window).scrollTop()) + 25;
+        if ((section_offset < window_offset) && (jQuery('.scroll-slider').hasClass('screen-scroll')) && (position > -100)) {
+            jQuery(window).scrollTop(((jQuery('.mask').offset().top) - 25).toFixed());
+            jQuery('body').css({'overflow': 'hidden'});
+            jQuery('.mask').addClass('fixed-mode');
+            jQuery('.mask').delay(700).animate({scrollTop: '640px'}, {easing: 'swing', duration: 1000, complete:
+                        function() {
+                            jQuery('.mask').removeClass('fixed-mode');
+                            jQuery('body').css({'overflow': 'scroll'});
+                            jQuery('.scroll-slider').removeClass('screen-scroll').addClass('fixed');
+                        }
+            });
+            if (jQuery('.scroll-slider').hasClass('fixed')) {
+                return false;
+            }
+        } else if ((section_offset > window_offset) && (jQuery('.scroll-slider').hasClass('fixed'))) {
+            jQuery(window).scrollTop(((jQuery('.mask').offset().top) - 25).toFixed(0));
+            jQuery('body').css({'overflow': 'hidden'});
+            jQuery('.mask').addClass('fixed-mode');
+            jQuery('.mask').delay(700).animate({scrollTop: '-640px'}, {easing: 'swing', duration: 1000, complete:
+                        function() {
+                            jQuery('.mask').removeClass('fixed-mode');
+                            jQuery('body').css({'overflow': 'scroll'});
+                            jQuery('.scroll-slider').removeClass('fixed').addClass('screen-scroll');
+                        }
+            });
+        }
+    }
+});
+

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/7077dbd6/site/js/scroll-slider.js
----------------------------------------------------------------------
diff --git a/site/js/scroll-slider.js b/site/js/scroll-slider.js
new file mode 100644
index 0000000..acb578c
--- /dev/null
+++ b/site/js/scroll-slider.js
@@ -0,0 +1,182 @@
+////jQuery(document).ready(function () {
+////    var window_width = jQuery(window).width();
+////    if (jQuery('.mask').length) {
+////
+////        var waypoints = jQuery('.animated-screen').waypoint(function (direction) {
+////            jQuery('.scroll-slider').toggleClass('screen-scroll');
+////            
+////        });
+////        var waypoints2 = jQuery('.animated-screen:last-of-type').waypoint(function (direction) {
+////            jQuery('.scroll-slider').toggleClass('screen-scroll');
+////        //}, {offset: '400px'
+////        });
+////
+////    }
+////});
+//
+//
+//
+//
+//
+//
+//// page init
+//jQuery(function(){
+//	initParallax();
+//});
+//
+//// init parallax
+//function initParallax(){
+//	var animSpeed = 1200;
+//	var fixedClass = 'fixed-mode';
+//	var win = jQuery(window);
+//	var isTouchDevice = /Windows Phone/.test(navigator.userAgent) || ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch;
+//	jQuery('.mask').each(function(){
+//		var hold = jQuery(this);
+//		var busy = false;
+//
+//		if (!hold.length || isTouchDevice) return;
+//
+//		function move(offset){
+//			hold.addClass(fixedClass);
+//			hold.delay(1000).animate({scrollTop: offset}, animSpeed, function(){
+//				busy = false;
+//				hold.removeClass(fixedClass);
+//			})
+//			busy = true;
+//		}
+//		function scrollHandler(){
+//			if (busy) {
+//				win.scrollTop((hold.offset().top ).toFixed(0));
+//				return;
+//			}
+//			if (hold.offset().top  < win.scrollTop()  && hold.scrollTop() == 0  && !busy) {
+//				move(hold.outerHeight())
+//			}
+//			if (hold.offset().top  > win.scrollTop()  && hold.scrollTop() == hold.outerHeight()  && !busy) {
+//				move(0)
+//			}
+//		}
+//
+//		ResponsiveHelper.addRange({
+//			'1024..': {
+//				on: function() {
+//					scrollHandler();
+//					win.on('load scroll resize orientationchange', scrollHandler);
+//				},
+//				off: function() {
+//					hold.stop().removeAttr('style');
+//					win.off('scroll resize orientationchange', scrollHandler);
+//				}
+//			}
+//		});
+//	})
+//}
+//
+//
+///*
+// * Responsive Layout helper
+// */
+//ResponsiveHelper = (function($){
+//  // init variables
+//  var handlers = [],
+//    prevWinWidth,
+//    win = $(window),
+//    nativeMatchMedia = false;
+//
+//  // detect match media support
+//  if(window.matchMedia) {
+//    if(window.Window && window.matchMedia === Window.prototype.matchMedia) {
+//      nativeMatchMedia = true;
+//    } else if(window.matchMedia.toString().indexOf('native') > -1) {
+//      nativeMatchMedia = true;
+//    }
+//  }
+//
+//  // prepare resize handler
+//  function resizeHandler() {
+//    var winWidth = win.width();
+//    if(winWidth !== prevWinWidth) {
+//      prevWinWidth = winWidth;
+//
+//      // loop through range groups
+//      $.each(handlers, function(index, rangeObject){
+//        // disable current active area if needed
+//        $.each(rangeObject.data, function(property, item) {
+//          if(item.currentActive && !matchRange(item.range[0], item.range[1])) {
+//            item.currentActive = false;
+//            if(typeof item.disableCallback === 'function') {
+//              item.disableCallback();
+//            }
+//          }
+//        });
+//
+//        // enable areas that match current width
+//        $.each(rangeObject.data, function(property, item) {
+//          if(!item.currentActive && matchRange(item.range[0], item.range[1])) {
+//            // make callback
+//            item.currentActive = true;
+//            if(typeof item.enableCallback === 'function') {
+//              item.enableCallback();
+//            }
+//          }
+//        });
+//      });
+//    }
+//  }
+//  win.bind('load resize orientationchange', resizeHandler);
+//
+//  // test range
+//  function matchRange(r1, r2) {
+//    var mediaQueryString = '';
+//    if(r1 > 0) {
+//      mediaQueryString += '(min-width: ' + r1 + 'px)';
+//    }
+//    if(r2 < Infinity) {
+//      mediaQueryString += (mediaQueryString ? ' and ' : '') + '(max-width: ' + r2 + 'px)';
+//    }
+//    return matchQuery(mediaQueryString, r1, r2);
+//  }
+//
+//  // media query function
+//  function matchQuery(query, r1, r2) {
+//    if(window.matchMedia && nativeMatchMedia) {
+//      return matchMedia(query).matches;
+//    } else if(window.styleMedia) {
+//      return styleMedia.matchMedium(query);
+//    } else if(window.media) {
+//      return media.matchMedium(query);
+//    } else {
+//      return prevWinWidth >= r1 && prevWinWidth <= r2;
+//    }
+//  }
+//
+//  // range parser
+//  function parseRange(rangeStr) {
+//    var rangeData = rangeStr.split('..');
+//    var x1 = parseInt(rangeData[0], 10) || -Infinity;
+//    var x2 = parseInt(rangeData[1], 10) || Infinity;
+//    return [x1, x2].sort(function(a, b){
+//      return a - b;
+//    });
+//  }
+//
+//  // export public functions
+//  return {
+//    addRange: function(ranges) {
+//      // parse data and add items to collection
+//      var result = {data:{}};
+//      $.each(ranges, function(property, data){
+//        result.data[property] = {
+//          range: parseRange(property),
+//          enableCallback: data.on,
+//          disableCallback: data.off
+//        };
+//      });
+//      handlers.push(result);
+//
+//      // call resizeHandler to recalculate all events
+//      prevWinWidth = null;
+//      resizeHandler();
+//    }
+//  };
+//}(jQuery));

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/7077dbd6/site/js/select-list.js
----------------------------------------------------------------------
diff --git a/site/js/select-list.js b/site/js/select-list.js
new file mode 100644
index 0000000..de3cbd9
--- /dev/null
+++ b/site/js/select-list.js
@@ -0,0 +1,58 @@
+jQuery(document).ready(function () {
+    /* Selects each select list*/
+    
+    jQuery(".select-list").each(function () {
+        var default_select = jQuery(this).find("select"),
+                option_length = default_select.children("option").size(),
+                first_option = default_select.children("option:eq(0)").text(),
+                i = 0;
+
+        /* Append html in each select-list */
+        jQuery(this).append('<div class="selected">' +
+                ' <div class="v-middle-wrapper">' +
+                '<div class="v-middle-inner">' +
+                '<div class="v-middle text-left">' +
+                '<p>' + first_option + '</p>' +
+                '</div>' +
+                '</div>' +
+                '</div>' +
+                '</div>' +
+                '<ul class="options text-left grey-bg">' +
+                '</ul>');
+        /* Append select option value to select-list options */
+        for (i; i < option_length; i++) {
+            var option_values = default_select.children("option:eq(" + i + ")").text();
+            jQuery(this).find(".options").append("<li><p>" + option_values + "</p></li>");
+        }
+    });
+
+    /*closes select list on click anywhere on document*/
+    jQuery(document).click(function () {
+        jQuery(".select-list").each(function () {
+            if (jQuery(this).find(".options").css("display") === "block") {
+                jQuery(this).find(".options").css("display", "none");
+            }
+        });
+    });
+    /* opens & close options list on click of selected box*/
+    jQuery(document).on("click", ".select-list .selected", function (event) {
+        event.stopPropagation();
+        if (jQuery(this).siblings(".options").css("display") === "block") {
+            jQuery(this).siblings(".options").css("display", "none");
+        } else {
+            jQuery(this).siblings(".options").css("display", "block");
+        }
+        jQuery(".select-list .options").not(jQuery(this).siblings(".options")).css("display", "none");
+    });
+
+    /* selects option from both custom and default option list */
+    jQuery(document).on("click", ".select-list .options li", function () {
+        var selected = jQuery(this).text(),
+                this_index = jQuery(this).index();
+        jQuery(this).parents(".select-list").find(".selected p").text(selected);
+        jQuery(this).parents(".select-list").find(".options").css("display", "none");
+        jQuery(this).parents(".select-list").find("select option:eq(" + this_index + ")").prop("selected", true);
+        jQuery(this).parents(".select-list").find("select option").not("select option:eq(" + this_index + ")").prop("selected", false);
+        jQuery(this).parents(".select-list").find("select").trigger('change');
+    });
+});

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/7077dbd6/site/js/shb0wjr.js
----------------------------------------------------------------------
diff --git a/site/js/shb0wjr.js b/site/js/shb0wjr.js
new file mode 100644
index 0000000..e85fc91
--- /dev/null
+++ b/site/js/shb0wjr.js
@@ -0,0 +1,46 @@
+/*
+ * For font license information, see the CSS file loaded by this JavaScript.
+ */
+if(!window.Typekit)window.Typekit={};window.Typekit.config={"a":"507388","c":[".tk-roboto","\"roboto\",sans-serif",".tk-roboto-condensed","\"roboto-condensed\",sans-serif"],"dl":"AAAAkAAAAAoyueO55nYzzKpA+JJ30n1SAAAong==","f":"//use.typekit.net/c/629f92/1w;roboto,7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191,2clz4P:W:n3,2clz4W:W:n4,2clz4Y:W:n5,2clz4b:W:n7;roboto-condensed,7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191,2clz4S:W:n3,2clz4X:W:n4,2clz4f:W:n7/{format}{/extras*}","fi":[15498,15506,15508,15510,26838,26840,26842],"fn":["roboto",["n3","n4","n5","n7"],"roboto-condensed",["n3","n4","n7"]],"ht":"tk","js":"1.14.12","k":"//use.typekit.net/{id}.js","kt":"shb0wjr","l":"typekit","p":"//p.typekit.net/p.gif?s=1&k=shb0wjr&ht=tk&h={host}&f=15498.15506.15508.15510.26838.26840.26842&a=507388&_={_}","ps":1,"w":"shb0wjr"};
+/*{"k":"1.14.12","last_published":"2016-04-06 17:11:46 UTC","auto_updating":true}*/
+;(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 e=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,e);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 k=Date.now||function(){return+new Date};function ca(){this.P=this.R=this.I=this.N=this.O=!0};function da(){var a=[{name:"font-family",value:n.c[q+1]}];this.g=[n.c[q]];this.b=a}function ea(a){for(var b=a.g.join(","),c=[],e=0;e<a.b.length;e++){var d=a.b[e];c.push(d.name+":"+d.value+";")}return b+"{"+c.join("")+"}"};function fa(a){this.b=a}fa.prototype.toString=function(){return encodeURICompon
 ent(ga(this.b))};function ha(a,b){this.g=a;this.b=b}ha.prototype.toString=function(){for(var a=[],b=0;b<this.b.length;b++)for(var c=this.b[b],e=c.G(),c=c.G(this.g),d=0;d<e.length;d++){var f;a:{for(f=0;f<c.length;f++)if(e[d]===c[f]){f=!0;break a}f=!1}a.push(f?1:0)}a=a.join("");a=a.replace(/^0+/,"");b=[];for(e=a.length;0<e;e-=4)b.unshift(parseInt(a.slice(0>e-4?0:e-4,e),2).toString(16));return b.join("")};function ia(a,b){this.b=a;this.g=b}ia.prototype.G=function(){return this.g};function ja(a){this.b=a}function ka(a,b){return b};function la(){this.b=this.g=-1}la.prototype.start=function(){this.g=(new Date).getTime();this.b=-1};var t={V:"a",$:"d",U:"i",W:"j",T:"k",Z:"l",NONE:"x"};var u={};u.a=u.d=u.l=u.j=function(){return[]};u.i=function(a,b,c){return[new fa(a),new ha(b,c)]};u.k=function(a){return[new fa(a)]};function ma(a,b,c){return u[b](a,b,c)};var na={};
+na.i=new ja(function(a,b,c){for(var e=0;e<b.length;e+=1){var d=b[e],f;f=d;f=a.replace(/(-1|-2)$/,"").slice(0,28)+"-"+f;c.push(new ia(f,[d]))}a={};for(d=0;d<b.length;d++)c=b[d],e=c.charAt(1),(a[e]||(a[e]=[])).push(c);c=[[4,3,2,1,5,6,7,8,9],[7,8,9,6,5,4,3,2,1]];e=[];for(d=0;d<c.length;d++){f=c[d];for(var g=0;g<f.length;g++){var l=f[g];if(a[l]){e=e.concat(a[l]);break}}}c=e;e={};a=[];for(d=0;d<c.length;d++)f=c[d],e[f]||(e[f]=!0,a.push(f));c=[];for(e=0;e<b.length;e++)for(d=b[e],f=0;f<a.length;f++)g=a[f],
+g==d&&c.push(g);return c});function oa(a){this.b=a}oa.prototype.s=function(a,b){var c=a||{},e=this.b.replace(/\{\/?([^*}]*)(\*?)\}/g,function(a,b,e){return e&&c[b]?"/"+c[b].join("/"):c[b]||""});e.match(/^\/\//)&&(e=(b?"http:":"https:")+e);return e.replace(/\/*\?*($|\?)/,"$1")};function pa(a,b){for(var c=[],e=0;e<b.length;e++)c.push(b[e].toString());return{format:a,extras:c}};function qa(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)};function w(a,b,c,e,d,f,g){this.b=a;this.B=b;this.F=c;this.D=e;this.v=d;this.o=f;this.M=g}w.prototype.getName=function(){return this.b};function x(a,b,c,e){this.b=null!=a?a:null;this.g=null!=b?b:null;this.h=null!=c?c:null;this.s=null!=e?e:null}var ra=/^([0-9]+)(?:[\._-]([0-9]+))?(?:[\._-]([0-9]+))?(?:[\._+-]?(.*))?$/;function y(a,b){return a.b>b.b||a.b===b.b&&a.g>b.g||a.b===b.b&&a.g===b.g&&a.h>b.h?1:a.b<b.b||a.b===b.b&&a.g<b.g||a.b===b.b&&a.g===b.g&&a.h<b.h?-
 1:0}function z(a,b){return-1===y(a,b)}function A(a,b){return 0===y(a,b)||1===y(a,b)}function sa(a,b){return 0===y(a,b)||-1===y(a,b)}function ta(a,b){return 0===y(a,b)}
+x.prototype.toString=function(){return[this.b,this.g||"",this.h||"",this.s||""].join("")};function B(a){a=ra.exec(a);var b=null,c=null,e=null,d=null;a&&(null!==a[1]&&a[1]&&(b=parseInt(a[1],10)),null!==a[2]&&a[2]&&(c=parseInt(a[2],10)),null!==a[3]&&a[3]&&(e=parseInt(a[3],10)),null!==a[4]&&a[4]&&(/^[0-9]+$/.test(a[4])?d=parseInt(a[4],10):d=a[4]));return new x(b,c,e,d)};function ua(a){return"Safari"===a.getName()&&"AppleWebKit"===a.F||"Unknown"===a.getName()&&"AppleWebKit"===a.F&&("iPhone"===a.v||"iPad"===a.v||"iPod"===a.v)}function va(a){return"Chrome"===a.getName()&&A(a.B,new x(6))&&sa(a.B,new x(35))}function wa(a){return"Chrome"===a.getName()&&A(a.B,new x(36))}function xa(a){return"BuiltinBrowser"===a.getName()};function D(a){return"Windows"===a.v}function ya(a){return D(a)&&A(a.o,new x(6,1))}function E(a){return D(a)&&ta(a.o,new x(5,1))||D(a)&&ta(a.o,new x(5,2))||D(a)&&ta(a.o,new x(6,0))||ya(a)}function F(a){return"Macintosh"===a.v&&(A(a.o,new x(10,4))||null===a.o.b)}function za(a,
 b){return b.O&&("iPhone"===a.v||"iPod"===a.v)&&A(a.o,new x(4,2))&&z(a.o,new x(5))}function Aa(a,b){return b.O&&("iPhone"===a.v||"iPod"===a.v)&&A(a.o,new x(5))}
+function Ba(a,b){return b.N&&"iPad"===a.v&&A(a.o,new x(4,2))&&z(a.o,new x(5))}function Ca(a,b){return b.N&&"iPad"===a.v&&A(a.o,new x(5))}function I(a,b){return b.I&&"Android"===a.v}function Da(a,b){return I(a,b)&&A(a.o,new x(2,2))&&z(a.o,new x(3,1))}function Ea(a,b){return I(a,b)&&A(a.o,new x(3,1))&&z(a.o,new x(4,1))}function J(a){return"Linux"===a.v||"Ubuntu"===a.v};var Fa={a:function(a,b){return"Safari"===a.getName()&&"AppleWebKit"===a.F&&A(a.D,new x(525,13))&&z(a.D,new x(534,50))&&(E(a)||F(a))||xa(a)&&(Da(a,b)||I(a,b)&&A(a.o,new x(4,1)))||b.I&&"Silk"===a.getName()&&z(a.B,new x(2))&&(Da(a,b)||F)||b.I&&"Silk"===a.getName()&&A(a.B,new x(2))&&I(a,b)&&A(a.o,new x(4,1))||ua(a)&&(Ba(a,b)||za(a,b))||va(a)&&(Ba(a,b)||za(a,b))||wa(a)&&(Ba(a,b)||za(a,b))||"AdobeAIR"===a.getName()&&A(a.B,new x(2,5))&&(D(a)&&null===a.o.b||J(a)||F(a))},d:function(a,b){return va(a)&&(E(a)||
+J(a)||F(a)||I(a,b)||"CrOS"===a.v||"CrKey"===a.v||Ca(a,b)||Aa(a,b))||wa(a)&&(Ca(a,b)||Aa(a,b))||"Gecko"===a.F&&1===y(a.D,new x(1,9,1))&&sa(a.D,new x(38))&&(E(a)||J(a)||F(a)||I(a,b))||"Safari"===a.getName()&&"AppleWebKit"===a.F&&A(a.D,new x(534,50))&&(E(a)||F(a))||ua(a)&&(Ca(a,b)||Aa(a,b))||"Opera"===a.getName()&&A(a.B,new x(11,10))&&sa(a.B,new x(22))&&(E(a)||J(a)||F(a)||I(a,b))||"MSIE"===a.getName()&&9<=a.M&&(ya(a)||D(a)&&ta(a.o,new x(6,0)))||"Edge"===a.getName()&&ya(a)||"MSIE"===a.getName()&&b.R&&
+"Windows Phone"===a.v&&A(a.o,new x(8))||xa(a)&&(b.P&&"BlackBerry"===a.v&&A(a.o,new x(10))||J(a))},j:function(a,b){return xa(a)&&Ea(a,b)||b.I&&"Silk"===a.getName()&&A(a.B,new x(2))&&(Ea(a,b)||J(a))},i:function(a){return"MSIE"===a.getName()&&A(a.B,new x(6,0))&&(void 0===a.M||9>a.M)&&E(a)},l:function(a,b){return wa(a)&&(E(a)||J(a)||F(a)||I(a,b)||"CrOS"===a.v||"CrKey"===a.v)||"Gecko"===a.F&&A(a.D,new x(39))&&(E(a)||J(a)||F(a)||I(a,b))||"Opera"===a.getName()&&A(a.B,new x(23))&&(E(a)||J(a)||F(a)||I(a,b))},
+x:function(){return!1}};var Ga=new w("Unknown",new x,"Unknown",new x,"Unknown",new x,void 0);function K(a){var b=L(a.b,/(iPod|iPad|iPhone|Android|Windows Phone|BB\d{2}|BlackBerry)/,1);if(""!==b)return/BB\d{2}/.test(b)&&(b="BlackBerry"),b;a=L(a.b,/(Linux|Mac_PowerPC|Macintosh|Windows|CrOS|PlayStation|CrKey)/,1);return""!==a?("Mac_PowerPC"==a?a="Macintosh":"PlayStation"==a&&(a="Linux"),a):"Unknown"}
+function M(a){var b=L(a.b,/(OS X|Windows NT|Android) ([^;)]+)/,2);if(b||(b=L(a.b,/Windows Phone( OS)? ([^;)]+)/,2))||(b=L(a.b,/(iPhone )?OS ([\d_]+)/,2)))return b;if(b=L(a.b,/(?:Linux|CrOS|CrKey) ([^;)]+)/,1))for(var b=b.split(/\s/),c=0;c<b.length;c+=1)if(/^[\d\._]+$/.test(b[c]))return b[c];return(a=L(a.b,/(BB\d{2}|BlackBerry).*?Version\/([^\s]*)/,2))?a:"Unknown"}
+function Ha(){var a=N,b="Unknown",c=B(L(a.b,/Presto\/([\d\w\.]+)/,1)),e=B(M(a)),d=O(a.g);null!==c.b?b="Presto":(-1!=a.b.indexOf("Gecko")&&(b="Gecko"),c=B(L(a.b,/rv:([^\)]+)/,1)));if(-1!=a.b.indexOf("Opera Mini/")){var f=B(L(a.b,/Opera Mini\/([\d\.]+)/,1));return new w("OperaMini",f,b,c,K(a),e,d)}if(-1!=a.b.indexOf("Version/")&&(f=B(L(a.b,/Version\/([\d\.]+)/,1)),null!==f.b))return new w("Opera",f,b,c,K(a),e,d);f=B(L(a.b,/Opera[\/ ]([\d\.]+)/,1));return null!==f.b?new w("Opera",f,b,c,K(a),e,d):new w("Opera",
+new x,b,c,K(a),e,d)}
+function Ia(){var a=N,b=K(a),c=B(M(a)),e=B(L(a.b,/AppleWeb(?:K|k)it\/([\d\.\+]+)/,1)),d="Unknown",f=new x,f="Unknown";/OPR\/[\d.]+/.test(a.b)?d="Opera":-1!=a.b.indexOf("Chrome")||-1!=a.b.indexOf("CrMo")||-1!=a.b.indexOf("CriOS")?d="Chrome":/Silk\/\d/.test(a.b)?d="Silk":"BlackBerry"==b||"Android"==b?d="BuiltinBrowser":-1!=a.b.indexOf("PhantomJS")?d="PhantomJS":-1!=a.b.indexOf("Safari")?d="Safari":-1!=a.b.indexOf("AdobeAIR")?d="AdobeAIR":-1!=a.b.indexOf("PlayStation")&&(d="BuiltinBrowser");"BuiltinBrowser"==
+d?f="Unknown":"Silk"==d?f=L(a.b,/Silk\/([\d\._]+)/,1):"Chrome"==d?f=L(a.b,/(Chrome|CrMo|CriOS)\/([\d\.]+)/,2):-1!=a.b.indexOf("Version/")?f=L(a.b,/Version\/([\d\.\w]+)/,1):"AdobeAIR"==d?f=L(a.b,/AdobeAIR\/([\d\.]+)/,1):"Opera"==d?f=L(a.b,/OPR\/([\d.]+)/,1):"PhantomJS"==d&&(f=L(a.b,/PhantomJS\/([\d.]+)/,1));f=B(f);return new w(d,f,"AppleWebKit",e,b,c,O(a.g))}function L(a,b,c){return(a=a.match(b))&&a[c]?a[c]:""}function O(a){if(a.documentMode)return a.documentMode};function Ja(a){this.b=a||"-"}Ja.prototype.s=function(a){for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c].replace(/[\W_]+/g,"").toLowerCase());return b.join(this.b)};var Ka=!!window.FontFace;function La(a,b,c,e){b=a.b.createElement(b);if(c)for(var d in c)c.hasOwnProperty(d)&&("style"==d?b.style.cssText=c[d]:b.setAttribute(d,c[d]));e&&b.appendChild(a.b.createTextNode(e));return b}function Ma(a,b,c){a=a.b.getElementsByTagName(b)[0];a||(a=document.documentElement);a.insertBefore(c,a.lastChild)}
+function Na(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 Oa(a){a.parentNode&&a.parentNode.removeChild(a)}
+function P(a,b,c){b=b||[];c=c||[];for(var e=a.className.split(/\s+/),d=0;d<b.length;d+=1){for(var f=!1,g=0;g<e.length;g+=1)if(b[d]===e[g]){f=!0;break}f||e.push(b[d])}b=[];for(d=0;d<e.length;d+=1){f=!1;for(g=0;g<c.length;g+=1)if(e[d]===c[g]){f=!0;break}f||b.push(e[d])}a.className=b.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function Pa(a,b){for(var c=a.className.split(/\s+/),e=0,d=c.length;e<d;e++)if(c[e]==b)return!0;return!1}
+function Qa(a){if("string"===typeof a.m)return a.m;var b=a.g.location.protocol;"about:"==b&&(b=a.h.location.protocol);return"https:"==b?"https:":"http:"}function ga(a){return a.g.location.hostname||a.h.location.hostname}
+function Ra(a,b,c,e){function d(){C&&p&&G&&(C(H),C=null)}function f(a){for(var c=0;c<m.length;c++)if(m[c].href&&-1!==m[c].href.indexOf(b)){a();return}setTimeout(function(){f(a)},0)}function g(a){for(var c=0;c<m.length;c++)if(m[c].href&&-1!==m[c].href.indexOf(b)&&m[c].media){var d=m[c].media;if("all"===d||d.mediaText&&"all"===d.mediaText){a();return}}setTimeout(function(){g(a)},0)}var l=La(a,"link",{rel:"stylesheet",href:b,media:e?"only x":"all"}),m=a.b.styleSheets,p=!1,G=!e,H=null,C=c||null;Ka?(l.onload=
+function(){p=!0;d()},l.onerror=function(){p=!0;H=Error("Stylesheet failed to load");d()}):setTimeout(function(){p=!0;d()},0);Ma(a,"head",l);e&&f(function(){l.media="all";g(function(){G=!0;d()})})}
+function Sa(a,b,c){var e=a.b.getElementsByTagName("head")[0];if(e){var d=La(a,"script",{src:b}),f=!1;d.onload=d.onreadystatechange=function(){f||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(f=!0,c&&c(null),d.onload=d.onreadystatechange=null,"HEAD"==d.parentNode.tagName&&e.removeChild(d))};e.appendChild(d);setTimeout(function(){f||(f=!0,c&&c(Error("Script load timeout")))},5E3)}};function Ta(a,b){this.b=a;this.h=a.g.document.documentElement;this.u=b;this.g=new Ja("-");this.w=!1!==b.events;this.m=!1!==b.classes}function Ua(a){if(a.m){var b=Pa(a.h,a.g.s("wf","active")),c=[],e=[a.g.s("wf","loading")];b||c.push(a.g.s("wf","inactive"));P(a.h,c,e)}Q(a,"inactive")}function Q(a,b,c){if(a.w&&a.u[b])if(c)a.u[b](c.getName(),R(c));else a.u[b]()};function S(a,b){this.h=a;this.g=4;this.b="n";var c=(b||"n4").match(/^([nio])([1-9])$/i);c&&(this.b=c[1],this.g=parseInt(c[2],10))}S.prototype.getName=function(){return this.h};function Va(a){return Wa(a)+" "+(a.g+"00")+" 300p
 x "+Xa(a.h)}function Xa(a){var b=[];a=a.split(/,\s*/);for(var c=0;c<a.length;c++){var e=a[c].replace(/['"]/g,"");-1!=e.indexOf(" ")||/^\d/.test(e)?b.push("'"+e+"'"):b.push(e)}return b.join(",")}function R(a){return a.b+a.g}
+function Wa(a){var b="normal";"o"===a.b?b="oblique":"i"===a.b&&(b="italic");return b};function Ya(a,b){this.b=a;this.m=b;this.h={};this.g={}}Ya.prototype.G=function(a){return a?(this.h[a]||this.m).slice(0):this.m.slice(0)};function Za(a,b,c){for(var e=[],d=a.b.split(",")[0].replace(/"|'/g,""),f=a.G(),g,l=[],m={},p=0;p<f.length;p++)g=f[p],0<g.length&&!m[g]&&(m[g]=!0,l.push(g));c=c.b?c.b(d,l,e):l;a.h[b]=c;a.g[b]=e}
+function $a(a,b){for(var c=a.G(b),e=a.g[b]||[],d=[],f=0;f<c.length;f++)d.push(new S(a.b,c[f]));for(f=0;f<e.length;f++)if(c=e[f].b,c!==a.b)for(var g=e[f].G(),l=0;l<g.length;l++)d.push(new S(c,g[l]));return d};function ab(a,b){this.b=a;this.h=b;this.g=La(this.b,"span",{"aria-hidden":"true"},this.h)}function cb(a){Ma(a.b,"body",a.g)}function db(a){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+Xa(a.h)+";"+("font-style:"+Wa(a)+";font-weight:"+(a.g+"00")+";")};function eb(a,b,c,e,d,f,g){this.H=a;this.L=b;this.b=c;this.g=e;this.C=g||"BESbswy";this.h={};this.S=d||3E3;this.J=f||null;this.A=this.w=this.u=this.m=null;this.m=new ab(this.b,this.C);this.u=new ab(this.b,this.C);this.w=new ab(this.b,this.C);this.A=new ab(this.b,this.C);a=new S(this.g.getName()+",serif",R(this.g));a=db(a);this.m.g.style.cssText=a;a=new S(this.g.getName()+",sans-serif",R(
 this.g));a=db(a);this.u.g.style.cssText=a;a=new S("serif",R(this.g));a=db(a);this.w.g.style.cssText=a;a=new S("sans-serif",
+R(this.g));a=db(a);this.A.g.style.cssText=a;cb(this.m);cb(this.u);cb(this.w);cb(this.A)}var fb={Y:"serif",X:"sans-serif"},gb=null;function hb(){if(null===gb){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);gb=!!a&&(536>parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return gb}eb.prototype.start=function(){this.h.serif=this.w.g.offsetWidth;this.h["sans-serif"]=this.A.g.offsetWidth;this.K=k();ib(this)};
+function jb(a,b,c){for(var e in fb)if(fb.hasOwnProperty(e)&&b===a.h[fb[e]]&&c===a.h[fb[e]])return!0;return!1}function ib(a){var b=a.m.g.offsetWidth,c=a.u.g.offsetWidth,e;(e=b===a.h.serif&&c===a.h["sans-serif"])||(e=hb()&&jb(a,b,c));e?k()-a.K>=a.S?hb()&&jb(a,b,c)&&(null===a.J||a.J.hasOwnProperty(a.g.getName()))?kb(a,a.H):kb(a,a.L):lb(a):kb(a,a.H)}function lb(a){setTimeout(h(function(){ib(this)},a),50)}
+function kb(a,b){setTimeout(h(function(){Oa(this.m.g);Oa(this.u.g);Oa(this.w.g);Oa(this.A.g);b(this.g)},a),0)};function mb(a,b,c,e,d,f){this.m=a;this.w=b;this.g=e;this.b=c;this.h=d||3E3;this.u=f||void 0}mb.prototype.start=function(){var a=this.b.g.document,b=this,c=k(),e=new Promise(function(d,e){function l(){k()-c>=b.h?e():a.fonts.load(Va(b.g),b.u).then(function(a){1<=a.length?d():setTimeout(l,25)},function(){e()})}l()}),d=new Promise(function(a,c){setTimeout(c,b.h)});Promise.race([d,e]).then(function(){b.m(b.g)},function(){b.w(b.g)})};function nb(a,b,c){this.b=a;this.g=b;this.h=0;this.A=this.w=!1;this.C=c}var ob=null;nb.prototype.m=function(a){var b=this.g;b.m&&P(b.h,[b.g.s("wf",a.getName(),R(a).toString(),"active")],[b.g.s("wf",a.getName(),R(a).toString(),"loading"),b.g.s("wf",a.getName(),R(a).toString(),"inactive")]);Q(b,"fontactive",a);this.A=!0;pb(this)};
+nb.prototype.u=function(a){var b=this.g;if(b.m){var c=Pa(b.h,b.g.s("wf",a.getName(),R(a).toString(),"active")),e=[],d=[b.g.s("wf",a.getName(),R(a).toString(),"loading")];c||e.push(b.g.s("wf",a.getName(),R(a).toString(),"inactive"));P(b.h,e,d)}Q(b,"fontinactive",a);pb(this)};function pb(a){0==--a.h&&a.w&&(a.A?(a=a.g,a.m&&P(a.h,[a.g.s("wf","active")],[a.g.s("wf","loading"),a.g.s("wf","inactive")]),Q(a,"active")):Ua(a.g))};function qb(a,b){this.m=a;this.b=b;this.g=[]}qb.prototype.h=function(a){this.g.push(a)};qb.prototype.load=function(a,b){var c=a,e=b||{};"string"==typeof c?c=[c]:c&&c.length||(e=c||{},c=[]);if(c.length)for(var d=this,f=c.length,g=0;g<c.length;g++)rb(this,c[g],function(){0===--f&&sb(d,e)});else sb(this,e)};function rb(a,b,c){b=a.m.s({id:encodeURIComponent(b)});Sa(a.b,b,c)}
+function sb(a,b){if(0!==a.g.length){for(var c=new Ta(a.b,b),e=!1,d=0;d<a.g.length;d++)a.g[d].init(),e=e||a.g[d].supportsConfiguredBrowser();if(e)for(c.m&&P(c.h,[c.g.s("wf","loading")]),Q(c,"loading"),c=0;c<a.g.length;c++)e=a.g[c],e.supportsConfiguredBrowser()&&e.load(null,c==a.g.length-1,b);else Ua(c);a.g=[]}};function tb(){this.g=0;this.b=null}function ub(a){a.g++;return function(){a.g--;vb(a)}}function wb(a,b){a.b=b;vb(a)}function vb(a){0==a.g&&a.b&&(a.b(),a.b=null)};function xb(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};function T(a,b){return(a&65535)*b+(((a>>>16)*b&65535)<<16)};function yb(a,b,c){this.b=a;this.h=b;this.g=new xb(a,c)}var zb=[2449897292,4218179547,2675077685,1031960064,1478620578,1386343184,3194259988,2656050674,3012733295,2193273665];
+function Ab(a,b){if("string"!==typeof b&&"number"!==typeof b)throw Error("Value should be a string or number.");for(var c="number"===typeof b,e=0;e<a.h;e++){var d=0;if(c)var d=zb[e]||0,f=b&4294967295,f=T(f,3432918353),f=f<<15|f>>>17,f=T(f,461845907),d=d^f,d=d<<13|d>>>19,d=T(d,5)+3864292196,d=d^4;else{for(var d=zb[e]||0,g=f=0,l=b.length%4,m=b.length-l,g=0;g<m;g+=4)f=(b.charCodeAt(g+0)&4294967295)<<0|(b.charCodeAt(g+1)&4294967295)<<8|(b.charCodeAt(g+2)&4294967295)<<16|(b.charCodeAt(g+3)&4294967295)<<
+24,f=T(f,3432918353),f=f<<15|f>>>17,f=T(f,461845907),d^=f,d=d<<13|d>>>19,d=T(d,5)+3864292196;f=0;switch(l){case 3:f^=(b.charCodeAt(g+2)&4294967295)<<16;case 2:f^=(b.charCodeAt(g+1)&4294967295)<<8;case 1:f^=(b.charCodeAt(g+0)&4294967295)<<0,f=T(f,3432918353),f=f<<15|f>>>17,f=T(f,461845907),d^=f}d^=b.length}d^=d>>>16;d=T(d,2246822507);d^=d>>>13;d=T(d,3266489909);d^=d>>>16;d=(d>>>0)%a.b;f=a.g;if(Math.floor(d/32+1)>f.b.length)throw Error("Index is out of bounds.");g=Math.floor(d/32);if(!(f.b[g]&1<<d-
+32*g))return!1}return!0};function Bb(){var a;a=Cb;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,e,d=0,f="";e=a.charAt(d++);~e&&(c=b%4?64*c+e:e,b++%4)?f+=String.fromCharCode(255&c>>(-2*b&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);a=f}c=[];for(b=0;b<a.length;b+=4)c.push(a.charCodeAt(b)<<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 yb(a,b,c)}function Db(a,b){if(""===b)return!0;for(var c=b.split(".");0!==c.length;){var e=c.join("."),d="*."+e;if(Ab(a.b,e)||Ab(a.b,d)||Ab(a.b,encodeURIComponent(e))||Ab(a.b,encodeURIComponent(d)))return!0;c.shift()}return!1};function Eb(a){this.b=a;this.g="x";this.A=this.L=null;this.h=[];this.m=[];this.H=this.J=this.u=null;this.C=!1;this.w=null}Eb.prototype.supportsConfiguredBrowser=function(){return"x"!==this.g};Eb.prototype.init=function(){if(0<this.m.length){for(var a=[],b=0;b<this.m.length;b++)a.push(ea(this.m[b]));var b=this.b,a=a.join(""),c=La(this.b,"style");c.setAttribute("type","text/css");c.styleSheet?c.styleSheet.cssText=a:c.appendChild(document.createTextNode(a));Ma(b,"head",c)}};
+Eb.prototype.load=function(a,b,c){function e(){}var d=this,f=c||{},g=f.contextPath||".",l=f.hostname||this.J;a=f.timeout;c=!!f.async;var m=!1!==f.events,p=null,G=new la,H=new la,C=new tb;f.active&&(e=f.active);f.active=function(){H.b=(new Date).getTime();if(d.K){var a=d.K,b=-1!==G.g&&-1!==G.b?G.b-G.g:-1,c=-1!==H.g&&-1!==H.b?H.b-H.g:-1,f=new oa("//p.typekit.net/p.gif?s={service}&k={token}&app={app}&ht={hosting}&h={host}&f={variations}&a={account}&sl={stylesheetLoadTime}&fl={fontLoadTime}&js={version}&_={_}"),
+g=encodeURIComponent((window.__adobewebfontsappname__||a.app||"").toString().substr(0,20)),l=encodeURIComponent(ga(d.b)),r=[],m=[];window.Typekit.fonts||(window.Typekit.fonts=[]);for(var m=window.Typekit.fonts,p=0;p<a.b.length;p++){for(var v=!1,C=0;C<m.length;C++)if(a.b[p]===m[C]){v=!0;break}v||(r.push(a.b[p]),m.push(a.b[p]))}r.length&&qa(f.s({service:a.m,token:a.u,app:g,hosting:a.h,host:l,variations:r.join("."),account:a.g,stylesheetLoadTime:b,fontLoadTime:c,version:a.version,_:(+new Date).toString()}))}e()};
+p=new Ta(this.b,f);if(null!==this.w&&(f=location.hostname,!Db(this.w,f))){console.error('Typekit: the domain "'+f+'" isn\'t in the list of allowed domains for kit "'+this.H+'".');Ua(p);return}if(this.g){for(var f=na[this.g]||new ja(ka),v=0;v<this.h.length;v++)Za(this.h[v],this.g,f);this.u&&(f=ma(this.b,this.g,this.h),f=pa(this.g,f),f.contextPath=g,l&&(f.hostname=l),g=this.u.s(f,this.C?"https:"!==Qa(this.b):!1),G.start(),Ra(this.b,g,ub(C),c));if(m){for(var X=[],bb={},r=new nb(this.b,p,a),v=0;v<this.h.length;v++)X=
+X.concat($a(this.h[v],this.g));for(v=0;v<X.length;v++)bb[X[v].getName()]="BESbswy\ue000\ue001\ue002\ue003\ue004\ue005\ue006";wb(C,function(){G.b=(new Date).getTime();H.start();Na(d.b,function(){var a=X,c={},d=bb||{};if(0===a.length&&b)Ua(r.g);else{r.h+=a.length;b&&(r.w=b);var e,f=[];for(e=0;e<a.length;e++){var g=a[e],l=d[g.getName()],m=r.g,p=g;m.m&&P(m.h,[m.g.s("wf",p.getName(),R(p).toString(),"loading")]);Q(m,"fontloading",p);m=null;null===ob&&(ob=window.FontFace?(p=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))?
+42<parseInt(p[1],10):!0:!1);ob?m=new mb(h(r.m,r),h(r.u,r),r.b,g,r.C,l):m=new eb(h(r.m,r),h(r.u,r),r.b,g,r.C,c,l);f.push(m)}for(e=0;e<f.length;e++)f[e].start()}})})}}};var Fb,N=new function(){var a=document;this.b=navigator.userAgent;this.g=a},Gb;
+if(-1!=N.b.indexOf("MSIE")||-1!=N.b.indexOf("Trident/")){var U=N,Hb=K(U),Ib=B(M(U)),Jb=null,Kb=null,Lb=null,Mb=L(U.b,/Trident\/([\d\w\.]+)/,1),Nb=O(U.g),Jb=-1!=U.b.indexOf("MSIE")?B(L(U.b,/MSIE ([\d\w\.]+)/,1)):B(L(U.b,/rv:([\d\w\.]+)/,1));""!==Mb?(Kb="Trident",Lb=B(Mb)):(Kb="Unknown",Lb=new x);Gb=new w("MSIE",Jb,Kb,Lb,Hb,Ib,Nb)}else{var Ob;if(-1!=N.b.indexOf("Edge/")){var Pb=N,Qb=K(Pb),Rb=B(M(Pb)),Sb=B(L(Pb.b,/Edge\/([\d\w\.]+)/,1));Ob=new w("Edge",Sb,"Edge",Sb,Qb,Rb,O(Pb.g))}else{var Tb;if(-1!=
+N.b.indexOf("Opera"))Tb=Ha();else{var Ub;if(/OPR\/[\d.]+/.test(N.b))Ub=Ia();else{var Vb;if(/AppleWeb(K|k)it/.test(N.b))Vb=Ia();else{var Wb;if(-1!=N.b.indexOf("Gecko")){var V=N,Xb="Unknown",Yb=new x,Zb=B(M(V));-1!=V.b.indexOf("Firefox")?(Xb="Firefox",Yb=B(L(V.b,/Firefox\/([\d\w\.]+)/,1))):-1!=V.b.indexOf("Mozilla")&&(Xb="Mozilla");var $b=B(L(V.b,/rv:([^\)]+)/,1));Wb=new w(Xb,Yb,"Gecko",$b,K(V),Zb,O(V.g))}else Wb=Ga;Vb=Wb}Ub=Vb}Tb=Ub}Ob=Tb}Gb=Ob}Fb=Gb;
+var ac=new function(){var a=window;this.g=this.h=a;this.b=this.g.document};window.Typekit||(window.Typekit={});if(!window.Typekit.load){var bc=window.Typekit.config||{},cc=null;bc.k&&(cc=new oa(bc.k));var dc=new qb(cc,ac);window.Typekit.load=function(){dc.load.apply(dc,arguments)};window.Typekit.addKit=function(){dc.h.apply(dc,arguments)}}var ec,W,Y,n=window.Typekit.config||{};Y=new Eb(ac);
+Y.K=new function(){var a=n.ht,b=n.fi,c=n.a,e=n.kt,d=n.js,f=n.l;this.m=n.ps;this.h=a;this.b=b||[];this.g=c||null;this.u=e||null;this.version=d||null;this.app=f||null};W=new ca;W.O=!n.si;W.N=!n.st;W.I=!n.sa;W.R=!n.sw;W.P=!n.sb;Y.A=W;if(n.dl){var Cb=n.dl;try{Y.w=new Bb}catch(a){}}n.kt&&(Y.H=n.kt);n.ds&&(Y.C=n.ds);n.f&&(ec=new oa(n.f),Y.u=ec);n.hn&&(Y.J=n.hn);var q;if(n.fn)for(q=0;q<n.fn.length;q+=2)Y.h.push(new Ya(n.fn[q],n.fn[q+1]));if(n.c)for(q=0;q<n.c.length;q+=2)Y.m.push(new da);Y.L=Fb;var fc;
+a:{var gc=Y.L,hc=new ca,ic=Y.A||hc,jc;for(jc in t){var Z=t[jc];if(Fa[Z]&&Fa[Z](gc,ic)){fc=Z;break a}}for(jc in t)if(Z=t[jc],Fa[Z]&&Fa[Z](gc,hc)){fc="x";break a}fc="k"}Y.g=fc;window.Typekit.addKit(Y);if(window.WebFont)try{window.Typekit.load()}catch(a){};}(this,document));
+


Mime
View raw message