You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metron.apache.org by ce...@apache.org on 2016/05/20 16:52:30 UTC

[03/16] incubator-metron git commit: Updating the site as accepted by METRON-173

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4f69a4c/js/jquery.mobile.custom.min.js
----------------------------------------------------------------------
diff --git a/js/jquery.mobile.custom.min.js b/js/jquery.mobile.custom.min.js
new file mode 100644
index 0000000..bfc5445
--- /dev/null
+++ b/js/jquery.mobile.custom.min.js
@@ -0,0 +1,3 @@
+/*! jQuery Mobile v1.4.5 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */
+
+(function(e,t,n){typeof define=="function"&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)})(this,document,function(e,t,n,r){(function(e,n){e.extend(e.support,{orientation:"orientation"in t&&"onorientationchange"in t})})(e),function(e){e.event.special.throttledresize={setup:function(){e(this).bind("resize",n)},teardown:function(){e(this).unbind("resize",n)}};var t=250,n=function(){s=(new Date).getTime(),o=s-r,o>=t?(r=s,e(this).trigger("throttledresize")):(i&&clearTimeout(i),i=setTimeout(n,t-o))},r=0,i,s,o}(e),function(e,t){function p(){var e=s();e!==o&&(o=e,r.trigger(i))}var r=e(t),i="orientationchange",s,o,u,a,f={0:!0,180:!0},l,c,h;if(e.support.orientation){l=t.innerWidth||r.width(),c=t.innerHeight||r.height(),h=50,u=l>c&&l-c>h,a=f[t.orientation];if(u&&a||!u&&!a)f={"-90":!0,90:!0}}e.event.special.orientationchange=e.extend({},e.event.special.orientationchange,{setup:function(){if(e.support.orientation&&!e.event.special.orientationchange.disabled
 )return!1;o=s(),r.bind("throttledresize",p)},teardown:function(){if(e.support.orientation&&!e.event.special.orientationchange.disabled)return!1;r.unbind("throttledresize",p)},add:function(e){var t=e.handler;e.handler=function(e){return e.orientation=s(),t.apply(this,arguments)}}}),e.event.special.orientationchange.orientation=s=function(){var r=!0,i=n.documentElement;return e.support.orientation?r=f[t.orientation]:r=i&&i.clientWidth/i.clientHeight<1.1,r?"portrait":"landscape"},e.fn[i]=function(e){return e?this.bind(i,e):this.trigger(i)},e.attrFn&&(e.attrFn[i]=!0)}(e,this),function(e,t,n,r){function T(e){while(e&&typeof e.originalEvent!="undefined")e=e.originalEvent;return e}function N(t,n){var i=t.type,s,o,a,l,c,h,p,d,v;t=e.Event(t),t.type=n,s=t.originalEvent,o=e.event.props,i.search(/^(mouse|click)/)>-1&&(o=f);if(s)for(p=o.length,l;p;)l=o[--p],t[l]=s[l];i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1);if(i.search(/^touch/)!==-1){a=T(s),i=a.touches,c=a.changedTouches,h=i&&
 i.length?i[0]:c&&c.length?c[0]:r;if(h)for(d=0,v=u.length;d<v;d++)l=u[d],t[l]=h[l]}return t}function C(t){var n={},r,s;while(t){r=e.data(t,i);for(s in r)r[s]&&(n[s]=n.hasVirtualBinding=!0);t=t.parentNode}return n}function k(t,n){var r;while(t){r=e.data(t,i);if(r&&(!n||r[n]))return t;t=t.parentNode}return null}function L(){g=!1}function A(){g=!0}function O(){E=0,v.length=0,m=!1,A()}function M(){L()}function _(){D(),c=setTimeout(function(){c=0,O()},e.vmouse.resetTimerDuration)}function D(){c&&(clearTimeout(c),c=0)}function P(t,n,r){var i;if(r&&r[t]||!r&&k(n.target,t))i=N(n,t),e(n.target).trigger(i);return i}function H(t){var n=e.data(t.target,s),r;!m&&(!E||E!==n)&&(r=P("v"+t.type,t),r&&(r.isDefaultPrevented()&&t.preventDefault(),r.isPropagationStopped()&&t.stopPropagation(),r.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function B(t){var n=T(t).touches,r,i,o;n&&n.length===1&&(r=t.target,i=C(r),i.hasVirtualBinding&&(E=w++,e.data(r,s,E),D(),M(),d=!1,o=T(t).touches[0],h
 =o.pageX,p=o.pageY,P("vmouseover",t,i),P("vmousedown",t,i)))}function j(e){if(g)return;d||P("vmousecancel",e,C(e.target)),d=!0,_()}function F(t){if(g)return;var n=T(t).touches[0],r=d,i=e.vmouse.moveDistanceThreshold,s=C(t.target);d=d||Math.abs(n.pageX-h)>i||Math.abs(n.pageY-p)>i,d&&!r&&P("vmousecancel",t,s),P("vmousemove",t,s),_()}function I(e){if(g)return;A();var t=C(e.target),n,r;P("vmouseup",e,t),d||(n=P("vclick",e,t),n&&n.isDefaultPrevented()&&(r=T(e).changedTouches[0],v.push({touchID:E,x:r.clientX,y:r.clientY}),m=!0)),P("vmouseout",e,t),d=!1,_()}function q(t){var n=e.data(t,i),r;if(n)for(r in n)if(n[r])return!0;return!1}function R(){}function U(t){var n=t.substr(1);return{setup:function(){q(this)||e.data(this,i,{});var r=e.data(this,i);r[t]=!0,l[t]=(l[t]||0)+1,l[t]===1&&b.bind(n,H),e(this).bind(n,R),y&&(l.touchstart=(l.touchstart||0)+1,l.touchstart===1&&b.bind("touchstart",B).bind("touchend",I).bind("touchmove",F).bind("scroll",j))},teardown:function(){--l[t],l[t]||b.unbind(n,H
 ),y&&(--l.touchstart,l.touchstart||b.unbind("touchstart",B).unbind("touchmove",F).unbind("touchend",I).unbind("scroll",j));var r=e(this),s=e.data(this,i);s&&(s[t]=!1),r.unbind(n,R),q(this)||r.removeData(i)}}}var i="virtualMouseBindings",s="virtualTouchID",o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),a=e.event.mouseHooks?e.event.mouseHooks.props:[],f=e.event.props.concat(a),l={},c=0,h=0,p=0,d=!1,v=[],m=!1,g=!1,y="addEventListener"in n,b=e(n),w=1,E=0,S,x;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(x=0;x<o.length;x++)e.event.special[o[x]]=U(o[x]);y&&n.addEventListener("click",function(t){var n=v.length,r=t.target,i,o,u,a,f,l;if(n){i=t.clientX,o=t.clientY,S=e.vmouse.clickDistanceThreshold,u=r;while(u){for(a=0;a<n;a++){f=v[a],l=0;if(u===r&&Math.abs(f.x-i)<S&&Math.abs(f.y-o)<S||e.data(u,s)===f.touchID){t.preventDefault(),t.stopPropagation();ret
 urn}}u=u.parentNode}}},!0)}(e,t,n),function(e){e.mobile={}}(e),function(e,t){var r={touch:"ontouchend"in n};e.mobile.support=e.mobile.support||{},e.extend(e.support,r),e.extend(e.mobile.support,r)}(e),function(e,t,r){function l(t,n,i,s){var o=i.type;i.type=n,s?e.event.trigger(i,r,t):e.event.dispatch.call(t,i),i.type=o}var i=e(n),s=e.mobile.support.touch,o="touchmove scroll",u=s?"touchstart":"mousedown",a=s?"touchend":"mouseup",f=s?"touchmove":"mousemove";e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)}),e.event.special.scrollstart={enabled:!0,setup:function(){function s(e,n){r=n,l(t,r?"scrollstart":"scrollstop",e)}var t=this,n=e(t),r,i;n.bind(o,function(t){if(!e.event.special.scrollstart.enabled)return;r||s(t,!0),clearTimeout(i),i=setTimeout(function(){s(t,!1)},50)})},teardown:function(){e(this).unbind(o)}},e.event.spec
 ial.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var t=this,n=e(t),r=!1;n.bind("vmousedown",function(s){function a(){clearTimeout(u)}function f(){a(),n.unbind("vclick",c).unbind("vmouseup",a),i.unbind("vmousecancel",f)}function c(e){f(),!r&&o===e.target?l(t,"tap",e):r&&e.preventDefault()}r=!1;if(s.which&&s.which!==1)return!1;var o=s.target,u;n.bind("vmouseup",a).bind("vclick",c),i.bind("vmousecancel",f),u=setTimeout(function(){e.event.special.tap.emitTapOnTaphold||(r=!0),l(t,"taphold",e.Event("taphold",{target:o}))},e.event.special.tap.tapholdThreshold)})},teardown:function(){e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),i.unbind("vmousecancel")}},e.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var n=t.pageXOffset,r=t.pageYOffset,i=e.clientX,s=e.clientY;if(e.pageY===0&&Math.floor(s)>Math.floor(e.pageY)||e.pageX===0&&Math.floor(i)>Math.flo
 or(e.pageX))i-=n,s-=r;else if(s<e.pageY-r||i<e.pageX-n)i=e.pageX-n,s=e.pageY-r;return{x:i,y:s}},start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y],origin:e(t.target)}},stop:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y]}},handleSwipe:function(t,n,r,i){if(n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold){var s=t.coords[0]>n.coords[0]?"swipeleft":"swiperight";return l(r,"swipe",e.Event("swipe",{target:i,swipestart:t,swipestop:n}),!0),l(r,s,e.Event(s,{target:i,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),s={};t=e.data(this,"mobile-events"
 ),t||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=s,s.start=function(t){if(e.event.special.swipe.eventInProgress)return;e.event.special.swipe.eventInProgress=!0;var r,o=e.event.special.swipe.start(t),u=t.target,l=!1;s.move=function(t){if(!o||t.isDefaultPrevented())return;r=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,r,n,u),l&&(e.event.special.swipe.eventInProgress=!1)),Math.abs(o.coords[0]-r.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()},s.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,i.off(f,s.move),s.move=null},i.on(f,s.move).one(a,s.stop)},r.on(u,s.start)},teardown:function(){var t,n;t=e.data(this,"mobile-events"),t&&(n=t.swipe,delete t.swipe,t.length--,t.length===0&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(u,n.start),n.move&&i.off(f,n.move),n.stop&&i.off(a,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},fu
 nction(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}})}(e,this)});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4f69a4c/js/jquery.selectBoxIt.min.js
----------------------------------------------------------------------
diff --git a/js/jquery.selectBoxIt.min.js b/js/jquery.selectBoxIt.min.js
new file mode 100644
index 0000000..2a22ee9
--- /dev/null
+++ b/js/jquery.selectBoxIt.min.js
@@ -0,0 +1,4 @@
+/*! jquery.selectBoxIt - v3.8.0 - 2013-10-05 
+* http://www.selectboxit.com
+* Copyright (c) 2013 Greg Franko; Licensed MIT*/
+!function(a){"use strict";a(window.jQuery,window,document)}(function(a,b,c,d){"use strict";a.widget("selectBox.selectBoxIt",{VERSION:"3.8.0",options:{showEffect:"none",showEffectOptions:{},showEffectSpeed:"medium",hideEffect:"none",hideEffectOptions:{},hideEffectSpeed:"medium",showFirstOption:!0,defaultText:"",defaultIcon:"",downArrowIcon:"",theme:"default",keydownOpen:!0,isMobile:function(){var a=navigator.userAgent||navigator.vendor||b.opera;return/iPhone|iPod|iPad|Silk|Android|BlackBerry|Opera Mini|IEMobile/.test(a)},"native":!1,aggressiveChange:!1,selectWhenHidden:!0,viewport:a(b),similarSearch:!1,copyAttributes:["title","rel"],copyClasses:"button",nativeMousedown:!1,customShowHideEvent:!1,autoWidth:!0,html:!0,populate:"",dynamicPositioning:!0,hideCurrent:!1},getThemes:function(){var b=this,c=a(b.element).attr("data-theme")||"c";return{bootstrap:{focus:"active",hover:"",enabled:"enabled",disabled:"disabled",arrow:"caret",button:"btn",list:"dropdown-menu",container:"bootstrap",op
 en:"open"},jqueryui:{focus:"ui-state-focus",hover:"ui-state-hover",enabled:"ui-state-enabled",disabled:"ui-state-disabled",arrow:"ui-icon ui-icon-triangle-1-s",button:"ui-widget ui-state-default",list:"ui-widget ui-widget-content",container:"jqueryui",open:"selectboxit-open"},jquerymobile:{focus:"ui-btn-down-"+c,hover:"ui-btn-hover-"+c,enabled:"ui-enabled",disabled:"ui-disabled",arrow:"ui-icon ui-icon-arrow-d ui-icon-shadow",button:"ui-btn ui-btn-icon-right ui-btn-corner-all ui-shadow ui-btn-up-"+c,list:"ui-btn ui-btn-icon-right ui-btn-corner-all ui-shadow ui-btn-up-"+c,container:"jquerymobile",open:"selectboxit-open"},"default":{focus:"selectboxit-focus",hover:"selectboxit-hover",enabled:"selectboxit-enabled",disabled:"selectboxit-disabled",arrow:"selectboxit-default-arrow",button:"selectboxit-btn",list:"selectboxit-list",container:"selectboxit-container",open:"selectboxit-open"}}},isDeferred:function(b){return a.isPlainObject(b)&&b.promise&&b.done},_create:function(b){var d=this,e
 =d.options.populate,f=d.options.theme;if(d.element.is("select"))return d.widgetProto=a.Widget.prototype,d.originalElem=d.element[0],d.selectBox=d.element,d.options.populate&&d.add&&!b&&d.add(e),d.selectItems=d.element.find("option"),d.firstSelectItem=d.selectItems.slice(0,1),d.documentHeight=a(c).height(),d.theme=a.isPlainObject(f)?a.extend({},d.getThemes()["default"],f):d.getThemes()[f]?d.getThemes()[f]:d.getThemes()["default"],d.currentFocus=0,d.blur=!0,d.textArray=[],d.currentIndex=0,d.currentText="",d.flipped=!1,b||(d.selectBoxStyles=d.selectBox.attr("style")),d._createDropdownButton()._createUnorderedList()._copyAttributes()._replaceSelectBox()._addClasses(d.theme)._eventHandlers(),d.originalElem.disabled&&d.disable&&d.disable(),d._ariaAccessibility&&d._ariaAccessibility(),d.isMobile=d.options.isMobile(),d._mobile&&d._mobile(),d.options["native"]&&this._applyNativeSelect(),d.triggerEvent("create"),d},_createDropdownButton:function(){var b=this,c=b.originalElemId=b.originalElem.
 id||"",d=b.originalElemValue=b.originalElem.value||"",e=b.originalElemName=b.originalElem.name||"",f=b.options.copyClasses,g=b.selectBox.attr("class")||"";return b.dropdownText=a("<span/>",{id:c&&c+"SelectBoxItText","class":"selectboxit-text",unselectable:"on",text:b.firstSelectItem.text()}).attr("data-val",d),b.dropdownImageContainer=a("<span/>",{"class":"selectboxit-option-icon-container"}),b.dropdownImage=a("<i/>",{id:c&&c+"SelectBoxItDefaultIcon","class":"selectboxit-default-icon",unselectable:"on"}),b.dropdown=a("<span/>",{id:c&&c+"SelectBoxIt","class":"selectboxit "+("button"===f?g:"")+" "+(b.selectBox.prop("disabled")?b.theme.disabled:b.theme.enabled),name:e,tabindex:b.selectBox.attr("tabindex")||"0",unselectable:"on"}).append(b.dropdownImageContainer.append(b.dropdownImage)).append(b.dropdownText),b.dropdownContainer=a("<span/>",{id:c&&c+"SelectBoxItContainer","class":"selectboxit-container "+b.theme.container+" "+("container"===f?g:"")}).append(b.dropdown),b},_createUnorder
 edList:function(){var b,c,d,e,f,g,h,i,j,k,l,m,n,o=this,p="",q=o.originalElemId||"",r=a("<ul/>",{id:q&&q+"SelectBoxItOptions","class":"selectboxit-options",tabindex:-1});if(o.options.showFirstOption||(o.selectItems.first().attr("disabled","disabled"),o.selectItems=o.selectBox.find("option").slice(1)),o.selectItems.each(function(q){m=a(this),c="",d="",b=m.prop("disabled"),e=m.attr("data-icon")||"",f=m.attr("data-iconurl")||"",g=f?"selectboxit-option-icon-url":"",h=f?"style=\"background-image:url('"+f+"');\"":"",i=m.attr("data-selectedtext"),j=m.attr("data-text"),l=j?j:m.text(),n=m.parent(),n.is("optgroup")&&(c="selectboxit-optgroup-option",0===m.index()&&(d='<span class="selectboxit-optgroup-header '+n.first().attr("class")+'"data-disabled="true">'+n.first().attr("label")+"</span>")),p+=d+'<li data-id="'+q+'" data-val="'+this.value+'" data-disabled="'+b+'" class="'+c+" selectboxit-option "+(a(this).attr("class")||"")+'"><a class="selectboxit-option-anchor"><span class="selectboxit-opt
 ion-icon-container"><i class="selectboxit-option-icon '+e+" "+(g||o.theme.container)+'"'+h+"></i></span>"+(o.options.html?l:o.htmlEscape(l))+"</a></li>",k=m.attr("data-search"),o.textArray[q]=b?"":k?k:l,this.selected&&(o._setText(o.dropdownText,i||l),o.currentFocus=q)}),o.options.defaultText||o.selectBox.attr("data-text")){var s=o.options.defaultText||o.selectBox.attr("data-text");o._setText(o.dropdownText,s),o.options.defaultText=s}return r.append(p),o.list=r,o.dropdownContainer.append(o.list),o.listItems=o.list.children("li"),o.listAnchors=o.list.find("a"),o.listItems.first().addClass("selectboxit-option-first"),o.listItems.last().addClass("selectboxit-option-last"),o.list.find("li[data-disabled='true']").not(".optgroupHeader").addClass(o.theme.disabled),o.dropdownImage.addClass(o.selectBox.attr("data-icon")||o.options.defaultIcon||o.listItems.eq(o.currentFocus).find("i").attr("class")),o.dropdownImage.attr("style",o.listItems.eq(o.currentFocus).find("i").attr("style")),o},_replac
 eSelectBox:function(){var b,c,e,f=this,g=f.originalElem.id||"",h=f.selectBox.attr("data-size"),i=f.listSize=h===d?"auto":"0"===h?"auto":+h;return f.selectBox.css("display","none").after(f.dropdownContainer),f.dropdownContainer.appendTo("body").addClass("selectboxit-rendering"),b=f.dropdown.height(),f.downArrow=a("<i/>",{id:g&&g+"SelectBoxItArrow","class":"selectboxit-arrow",unselectable:"on"}),f.downArrowContainer=a("<span/>",{id:g&&g+"SelectBoxItArrowContainer","class":"selectboxit-arrow-container",unselectable:"on"}).append(f.downArrow),f.dropdown.append(f.downArrowContainer),f.listItems.removeClass("selectboxit-selected").eq(f.currentFocus).addClass("selectboxit-selected"),c=f.downArrowContainer.outerWidth(!0),e=f.dropdownImage.outerWidth(!0),f.options.autoWidth&&(f.dropdown.css({width:"auto"}).css({width:f.list.outerWidth(!0)+c+e}),f.list.css({"min-width":f.dropdown.width()})),f.dropdownText.css({"max-width":f.dropdownContainer.outerWidth(!0)-(c+e)}),f.selectBox.after(f.dropdown
 Container),f.dropdownContainer.removeClass("selectboxit-rendering"),"number"===a.type(i)&&(f.maxHeight=f.listAnchors.outerHeight(!0)*i),f},_scrollToView:function(a){var b=this,c=b.listItems.eq(b.currentFocus),d=b.list.scrollTop(),e=c.height(),f=c.position().top,g=Math.abs(f),h=b.list.height();return"search"===a?e>h-f?b.list.scrollTop(d+(f-(h-e))):-1>f&&b.list.scrollTop(f-e):"up"===a?-1>f&&b.list.scrollTop(d-g):"down"===a&&e>h-f&&b.list.scrollTop(d+(g-h+e)),b},_callbackSupport:function(b){var c=this;return a.isFunction(b)&&b.call(c,c.dropdown),c},_setText:function(a,b){var c=this;return c.options.html?a.html(b):a.text(b),c},open:function(a){var b=this,c=b.options.showEffect,d=b.options.showEffectSpeed,e=b.options.showEffectOptions,f=b.options["native"],g=b.isMobile;return!b.listItems.length||b.dropdown.hasClass(b.theme.disabled)?b:(f||g||this.list.is(":visible")||(b.triggerEvent("open"),b._dynamicPositioning&&b.options.dynamicPositioning&&b._dynamicPositioning(),"none"===c?b.list.sho
 w():"show"===c||"slideDown"===c||"fadeIn"===c?b.list[c](d):b.list.show(c,e,d),b.list.promise().done(function(){b._scrollToView("search")})),b._callbackSupport(a),b)},close:function(a){var b=this,c=b.options.hideEffect,d=b.options.hideEffectSpeed,e=b.options.hideEffectOptions,f=b.options["native"],g=b.isMobile;return f||g||!b.list.is(":visible")||(b.triggerEvent("close"),"none"===c?b.list.hide():"hide"===c||"slideUp"===c||"fadeOut"===c?b.list[c](d):b.list.hide(c,e,d)),b._callbackSupport(a),b},toggle:function(){var a=this,b=a.list.is(":visible");b?a.close():b||a.open()},_keyMappings:{38:"up",40:"down",13:"enter",8:"backspace",9:"tab",32:"space",27:"esc"},_keydownMethods:function(){var a=this,b=a.list.is(":visible")||!a.options.keydownOpen;return{down:function(){a.moveDown&&b&&a.moveDown()},up:function(){a.moveUp&&b&&a.moveUp()},enter:function(){var b=a.listItems.eq(a.currentFocus);a._update(b),"true"!==b.attr("data-preventclose")&&a.close(),a.triggerEvent("enter")},tab:function(){a.tr
 iggerEvent("tab-blur"),a.close()},backspace:function(){a.triggerEvent("backspace")},esc:function(){a.close()}}},_eventHandlers:function(){var b,c,d=this,e=d.options.nativeMousedown,f=d.options.customShowHideEvent,g=d.focusClass,h=d.hoverClass,i=d.openClass;return this.dropdown.on({"click.selectBoxIt":function(){d.dropdown.trigger("focus",!0),d.originalElem.disabled||(d.triggerEvent("click"),e||f||d.toggle())},"mousedown.selectBoxIt":function(){a(this).data("mdown",!0),d.triggerEvent("mousedown"),e&&!f&&d.toggle()},"mouseup.selectBoxIt":function(){d.triggerEvent("mouseup")},"blur.selectBoxIt":function(){d.blur&&(d.triggerEvent("blur"),d.close(),a(this).removeClass(g))},"focus.selectBoxIt":function(b,c){var e=a(this).data("mdown");a(this).removeData("mdown"),e||c||setTimeout(function(){d.triggerEvent("tab-focus")},0),c||(a(this).hasClass(d.theme.disabled)||a(this).addClass(g),d.triggerEvent("focus"))},"keydown.selectBoxIt":function(a){var b=d._keyMappings[a.keyCode],c=d._keydownMethod
 s()[b];c&&(c(),!d.options.keydownOpen||"up"!==b&&"down"!==b||d.open()),c&&"tab"!==b&&a.preventDefault()},"keypress.selectBoxIt":function(a){var b=a.charCode||a.keyCode,c=d._keyMappings[a.charCode||a.keyCode],e=String.fromCharCode(b);d.search&&(!c||c&&"space"===c)&&d.search(e,!0,!0),"space"===c&&a.preventDefault()},"mouseenter.selectBoxIt":function(){d.triggerEvent("mouseenter")},"mouseleave.selectBoxIt":function(){d.triggerEvent("mouseleave")}}),d.list.on({"mouseover.selectBoxIt":function(){d.blur=!1},"mouseout.selectBoxIt":function(){d.blur=!0},"focusin.selectBoxIt":function(){d.dropdown.trigger("focus",!0)}}),d.list.on({"mousedown.selectBoxIt":function(){d._update(a(this)),d.triggerEvent("option-click"),"false"===a(this).attr("data-disabled")&&"true"!==a(this).attr("data-preventclose")&&d.close(),setTimeout(function(){d.dropdown.trigger("focus",!0)},0)},"focusin.selectBoxIt":function(){d.listItems.not(a(this)).removeAttr("data-active"),a(this).attr("data-active","");var b=d.list.i
 s(":hidden");(d.options.searchWhenHidden&&b||d.options.aggressiveChange||b&&d.options.selectWhenHidden)&&d._update(a(this)),a(this).addClass(g)},"mouseup.selectBoxIt":function(){e&&!f&&(d._update(a(this)),d.triggerEvent("option-mouseup"),"false"===a(this).attr("data-disabled")&&"true"!==a(this).attr("data-preventclose")&&d.close())},"mouseenter.selectBoxIt":function(){"false"===a(this).attr("data-disabled")&&(d.listItems.removeAttr("data-active"),a(this).addClass(g).attr("data-active",""),d.listItems.not(a(this)).removeClass(g),a(this).addClass(g),d.currentFocus=+a(this).attr("data-id"))},"mouseleave.selectBoxIt":function(){"false"===a(this).attr("data-disabled")&&(d.listItems.not(a(this)).removeClass(g).removeAttr("data-active"),a(this).addClass(g),d.currentFocus=+a(this).attr("data-id"))},"blur.selectBoxIt":function(){a(this).removeClass(g)}},".selectboxit-option"),d.list.on({"click.selectBoxIt":function(a){a.preventDefault()}},"a"),d.selectBox.on({"change.selectBoxIt, internal-ch
 ange.selectBoxIt":function(a,e){var f,g;e||(f=d.list.find('li[data-val="'+d.originalElem.value+'"]'),f.length&&(d.listItems.eq(d.currentFocus).removeClass(d.focusClass),d.currentFocus=+f.attr("data-id"))),f=d.listItems.eq(d.currentFocus),g=f.attr("data-selectedtext"),b=f.attr("data-text"),c=b?b:f.find("a").text(),d._setText(d.dropdownText,g||c),d.dropdownText.attr("data-val",d.originalElem.value),f.find("i").attr("class")&&(d.dropdownImage.attr("class",f.find("i").attr("class")).addClass("selectboxit-default-icon"),d.dropdownImage.attr("style",f.find("i").attr("style"))),d.triggerEvent("changed")},"disable.selectBoxIt":function(){d.dropdown.addClass(d.theme.disabled)},"enable.selectBoxIt":function(){d.dropdown.removeClass(d.theme.disabled)},"open.selectBoxIt":function(){var a,b=d.list.find("li[data-val='"+d.dropdownText.attr("data-val")+"']");b.length||(b=d.listItems.not("[data-disabled=true]").first()),d.currentFocus=+b.attr("data-id"),a=d.listItems.eq(d.currentFocus),d.dropdown.ad
 dClass(i).removeClass(h).addClass(g),d.listItems.removeClass(d.selectedClass).removeAttr("data-active").not(a).removeClass(g),a.addClass(d.selectedClass).addClass(g),d.options.hideCurrent&&(d.listItems.show(),a.hide())},"close.selectBoxIt":function(){d.dropdown.removeClass(i)},"blur.selectBoxIt":function(){d.dropdown.removeClass(g)},"mouseenter.selectBoxIt":function(){a(this).hasClass(d.theme.disabled)||d.dropdown.addClass(h)},"mouseleave.selectBoxIt":function(){d.dropdown.removeClass(h)},destroy:function(a){a.preventDefault(),a.stopPropagation()}}),d},_update:function(a){var b,c,d,e=this,f=e.options.defaultText||e.selectBox.attr("data-text"),g=e.listItems.eq(e.currentFocus);"false"===a.attr("data-disabled")&&(b=e.listItems.eq(e.currentFocus).attr("data-selectedtext"),c=g.attr("data-text"),d=c?c:g.text(),(f&&e.options.html?e.dropdownText.html()===f:e.dropdownText.text()===f)&&e.selectBox.val()===a.attr("data-val")?e.triggerEvent("change"):(e.selectBox.val(a.attr("data-val")),e.curre
 ntFocus=+a.attr("data-id"),e.originalElem.value!==e.dropdownText.attr("data-val")&&e.triggerEvent("change")))},_addClasses:function(a){var b=this,c=(b.focusClass=a.focus,b.hoverClass=a.hover,a.button),d=a.list,e=a.arrow,f=a.container;return b.openClass=a.open,b.selectedClass="selectboxit-selected",b.downArrow.addClass(b.selectBox.attr("data-downarrow")||b.options.downArrowIcon||e),b.dropdownContainer.addClass(f),b.dropdown.addClass(c),b.list.addClass(d),b},refresh:function(a,b){var c=this;return c._destroySelectBoxIt()._create(!0),b||c.triggerEvent("refresh"),c._callbackSupport(a),c},htmlEscape:function(a){return String(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},triggerEvent:function(a){var b=this,c=b.options.showFirstOption?b.currentFocus:b.currentFocus-1>=0?b.currentFocus:0;return b.selectBox.trigger(a,{selectbox:b.selectBox,selectboxOption:b.selectItems.eq(c),dropdown:b.dropdown,dropdownOption:b.listItems.eq(b.
 currentFocus)}),b},_copyAttributes:function(){var a=this;return a._addSelectBoxAttributes&&a._addSelectBoxAttributes(),a},_realOuterWidth:function(a){if(a.is(":visible"))return a.outerWidth(!0);var b,c=a.clone();return c.css({visibility:"hidden",display:"block",position:"absolute"}).appendTo("body"),b=c.outerWidth(!0),c.remove(),b}});var e=a.selectBox.selectBoxIt.prototype;e.add=function(b,c){this._populate(b,function(b){var d,e,f=this,g=a.type(b),h=0,i=[],j=f._isJSON(b),k=j&&f._parseJSON(b);if(b&&("array"===g||j&&k.data&&"array"===a.type(k.data))||"object"===g&&b.data&&"array"===a.type(b.data)){for(f._isJSON(b)&&(b=k),b.data&&(b=b.data),e=b.length;e-1>=h;h+=1)d=b[h],a.isPlainObject(d)?i.push(a("<option/>",d)):"string"===a.type(d)&&i.push(a("<option/>",{text:d,value:d}));f.selectBox.append(i)}else b&&"string"===g&&!f._isJSON(b)?f.selectBox.append(b):b&&"object"===g?f.selectBox.append(a("<option/>",b)):b&&f._isJSON(b)&&a.isPlainObject(f._parseJSON(b))&&f.selectBox.append(a("<option/>
 ",f._parseJSON(b)));return f.dropdown?f.refresh(function(){f._callbackSupport(c)},!0):f._callbackSupport(c),f})},e._parseJSON=function(b){return JSON&&JSON.parse&&JSON.parse(b)||a.parseJSON(b)},e._isJSON=function(a){var b,c=this;try{return b=c._parseJSON(a),!0}catch(d){return!1}},e._populate=function(b,c){var d=this;return b=a.isFunction(b)?b.call():b,d.isDeferred(b)?b.done(function(a){c.call(d,a)}):c.call(d,b),d},e._ariaAccessibility=function(){var b=this,c=a("label[for='"+b.originalElem.id+"']");return b.dropdownContainer.attr({role:"combobox","aria-autocomplete":"list","aria-haspopup":"true","aria-expanded":"false","aria-owns":b.list[0].id}),b.dropdownText.attr({"aria-live":"polite"}),b.dropdown.on({"disable.selectBoxIt":function(){b.dropdownContainer.attr("aria-disabled","true")},"enable.selectBoxIt":function(){b.dropdownContainer.attr("aria-disabled","false")}}),c.length&&b.dropdownContainer.attr("aria-labelledby",c[0].id),b.list.attr({role:"listbox","aria-hidden":"true"}),b.li
 stItems.attr({role:"option"}),b.selectBox.on({"open.selectBoxIt":function(){b.list.attr("aria-hidden","false"),b.dropdownContainer.attr("aria-expanded","true")},"close.selectBoxIt":function(){b.list.attr("aria-hidden","true"),b.dropdownContainer.attr("aria-expanded","false")}}),b},e._addSelectBoxAttributes=function(){var b=this;return b._addAttributes(b.selectBox.prop("attributes"),b.dropdown),b.selectItems.each(function(c){b._addAttributes(a(this).prop("attributes"),b.listItems.eq(c))}),b},e._addAttributes=function(b,c){var d=this,e=d.options.copyAttributes;return b.length&&a.each(b,function(b,d){var f=d.name.toLowerCase(),g=d.value;"null"===g||-1===a.inArray(f,e)&&-1===f.indexOf("data")||c.attr(f,g)}),d},e.destroy=function(a){var b=this;return b._destroySelectBoxIt(),b.widgetProto.destroy.call(b),b._callbackSupport(a),b},e._destroySelectBoxIt=function(){var b=this;return b.dropdown.off(".selectBoxIt"),a.contains(b.dropdownContainer[0],b.originalElem)&&b.dropdownContainer.before(b.
 selectBox),b.dropdownContainer.remove(),b.selectBox.removeAttr("style").attr("style",b.selectBoxStyles),b.selectBox.show(),b.triggerEvent("destroy"),b},e.disable=function(a){var b=this;return b.options.disabled||(b.close(),b.selectBox.attr("disabled","disabled"),b.dropdown.removeAttr("tabindex").removeClass(b.theme.enabled).addClass(b.theme.disabled),b.setOption("disabled",!0),b.triggerEvent("disable")),b._callbackSupport(a),b},e.disableOption=function(b,c){var d,e,f,g=this,h=a.type(b);return"number"===h&&(g.close(),d=g.selectBox.find("option").eq(b),g.triggerEvent("disable-option"),d.attr("disabled","disabled"),g.listItems.eq(b).attr("data-disabled","true").addClass(g.theme.disabled),g.currentFocus===b&&(e=g.listItems.eq(g.currentFocus).nextAll("li").not("[data-disabled='true']").first().length,f=g.listItems.eq(g.currentFocus).prevAll("li").not("[data-disabled='true']").first().length,e?g.moveDown():f?g.moveUp():g.disable())),g._callbackSupport(c),g},e._isDisabled=function(){var a=
 this;return a.originalElem.disabled&&a.disable(),a},e._dynamicPositioning=function(){var b=this;if("number"===a.type(b.listSize))b.list.css("max-height",b.maxHeight||"none");else{var c=b.dropdown.offset().top,d=b.list.data("max-height")||b.list.outerHeight(),e=b.dropdown.outerHeight(),f=b.options.viewport,g=f.height(),h=a.isWindow(f.get(0))?f.scrollTop():f.offset().top,i=g+h>=c+e+d,j=!i;if(b.list.data("max-height")||b.list.data("max-height",b.list.outerHeight()),j)if(b.dropdown.offset().top-h>=d)b.list.css("max-height",d),b.list.css("top",b.dropdown.position().top-b.list.outerHeight());else{var k=Math.abs(c+e+d-(g+h)),l=Math.abs(b.dropdown.offset().top-h-d);l>k?(b.list.css("max-height",d-k-e/2),b.list.css("top","auto")):(b.list.css("max-height",d-l-e/2),b.list.css("top",b.dropdown.position().top-b.list.outerHeight()))}else b.list.css("max-height",d),b.list.css("top","auto")}return b},e.enable=function(a){var b=this;return b.options.disabled&&(b.triggerEvent("enable"),b.selectBox.rem
 oveAttr("disabled"),b.dropdown.attr("tabindex",0).removeClass(b.theme.disabled).addClass(b.theme.enabled),b.setOption("disabled",!1),b._callbackSupport(a)),b},e.enableOption=function(b,c){var d,e=this,f=a.type(b);return"number"===f&&(d=e.selectBox.find("option").eq(b),e.triggerEvent("enable-option"),d.removeAttr("disabled"),e.listItems.eq(b).attr("data-disabled","false").removeClass(e.theme.disabled)),e._callbackSupport(c),e},e.moveDown=function(a){var b=this;b.currentFocus+=1;var c="true"===b.listItems.eq(b.currentFocus).attr("data-disabled")?!0:!1,d=b.listItems.eq(b.currentFocus).nextAll("li").not("[data-disabled='true']").first().length;if(b.currentFocus===b.listItems.length)b.currentFocus-=1;else{if(c&&d)return b.listItems.eq(b.currentFocus-1).blur(),b.moveDown(),void 0;c&&!d?b.currentFocus-=1:(b.listItems.eq(b.currentFocus-1).blur().end().eq(b.currentFocus).focusin(),b._scrollToView("down"),b.triggerEvent("moveDown"))}return b._callbackSupport(a),b},e.moveUp=function(a){var b=t
 his;b.currentFocus-=1;var c="true"===b.listItems.eq(b.currentFocus).attr("data-disabled")?!0:!1,d=b.listItems.eq(b.currentFocus).prevAll("li").not("[data-disabled='true']").first().length;if(-1===b.currentFocus)b.currentFocus+=1;else{if(c&&d)return b.listItems.eq(b.currentFocus+1).blur(),b.moveUp(),void 0;c&&!d?b.currentFocus+=1:(b.listItems.eq(this.currentFocus+1).blur().end().eq(b.currentFocus).focusin(),b._scrollToView("up"),b.triggerEvent("moveUp"))}return b._callbackSupport(a),b},e._setCurrentSearchOption=function(a){var b=this;return(b.options.aggressiveChange||b.options.selectWhenHidden||b.listItems.eq(a).is(":visible"))&&b.listItems.eq(a).data("disabled")!==!0&&(b.listItems.eq(b.currentFocus).blur(),b.currentIndex=a,b.currentFocus=a,b.listItems.eq(b.currentFocus).focusin(),b._scrollToView("search"),b.triggerEvent("search")),b},e._searchAlgorithm=function(a,b){var c,d,e,f,g=this,h=!1,i=g.textArray,j=g.currentText;for(c=a,e=i.length;e>c;c+=1){for(f=i[c],d=0;e>d;d+=1)-1!==i[d].
 search(b)&&(h=!0,d=e);if(h||(g.currentText=g.currentText.charAt(g.currentText.length-1).replace(/[|()\[{.+*?$\\]/g,"\\$0"),j=g.currentText),b=new RegExp(j,"gi"),j.length<3){if(b=new RegExp(j.charAt(0),"gi"),-1!==f.charAt(0).search(b))return g._setCurrentSearchOption(c),(f.substring(0,j.length).toLowerCase()!==j.toLowerCase()||g.options.similarSearch)&&(g.currentIndex+=1),!1}else if(-1!==f.search(b))return g._setCurrentSearchOption(c),!1;if(f.toLowerCase()===g.currentText.toLowerCase())return g._setCurrentSearchOption(c),g.currentText="",!1}return!0},e.search=function(a,b,c){var d=this;c?d.currentText+=a.replace(/[|()\[{.+*?$\\]/g,"\\$0"):d.currentText=a.replace(/[|()\[{.+*?$\\]/g,"\\$0");var e=d._searchAlgorithm(d.currentIndex,new RegExp(d.currentText,"gi"));return e&&d._searchAlgorithm(0,d.currentText),d._callbackSupport(b),d},e._updateMobileText=function(){var a,b,c,d=this;a=d.selectBox.find("option").filter(":selected"),b=a.attr("data-text"),c=b?b:a.text(),d._setText(d.dropdownTe
 xt,c),d.list.find('li[data-val="'+a.val()+'"]').find("i").attr("class")&&d.dropdownImage.attr("class",d.list.find('li[data-val="'+a.val()+'"]').find("i").attr("class")).addClass("selectboxit-default-icon")},e._applyNativeSelect=function(){var a=this;return a.dropdownContainer.append(a.selectBox),a.dropdown.attr("tabindex","-1"),a.selectBox.css({display:"block",visibility:"visible",width:a._realOuterWidth(a.dropdown),height:a.dropdown.outerHeight(),opacity:"0",position:"absolute",top:"0",left:"0",cursor:"pointer","z-index":"999999",margin:a.dropdown.css("margin"),padding:"0","-webkit-appearance":"menulist-button"}),a.originalElem.disabled&&a.triggerEvent("disable"),this},e._mobileEvents=function(){var a=this;a.selectBox.on({"changed.selectBoxIt":function(){a.hasChanged=!0,a._updateMobileText(),a.triggerEvent("option-click")},"mousedown.selectBoxIt":function(){a.hasChanged||!a.options.defaultText||a.originalElem.disabled||(a._updateMobileText(),a.triggerEvent("option-click"))},"enable
 .selectBoxIt":function(){a.selectBox.removeClass("selectboxit-rendering")},"disable.selectBoxIt":function(){a.selectBox.addClass("selectboxit-rendering")}})},e._mobile=function(){var a=this;return a.isMobile&&(a._applyNativeSelect(),a._mobileEvents()),this},e.remove=function(b,c){var d,e,f=this,g=a.type(b),h=0,i="";if("array"===g){for(e=b.length;e-1>=h;h+=1)d=b[h],"number"===a.type(d)&&(i+=i.length?", option:eq("+d+")":"option:eq("+d+")");f.selectBox.find(i).remove()}else"number"===g?f.selectBox.find("option").eq(b).remove():f.selectBox.find("option").remove();return f.dropdown?f.refresh(function(){f._callbackSupport(c)},!0):f._callbackSupport(c),f},e.selectOption=function(b,c){var d=this,e=a.type(b);return"number"===e?d.selectBox.val(d.selectItems.eq(b).val()).change():"string"===e&&d.selectBox.val(b).change(),d._callbackSupport(c),d},e.setOption=function(b,c,d){var e=this;return"string"===a.type(b)&&(e.options[b]=c),e.refresh(function(){e._callbackSupport(d)},!0),e},e.setOptions=f
 unction(b,c){var d=this;return a.isPlainObject(b)&&(d.options=a.extend({},d.options,b)),d.refresh(function(){d._callbackSupport(c)},!0),d},e.wait=function(a,b){var c=this;return c.widgetProto._delay.call(c,b,a),c}});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4f69a4c/js/legacy.js
----------------------------------------------------------------------
diff --git a/js/legacy.js b/js/legacy.js
new file mode 100644
index 0000000..9dfef81
--- /dev/null
+++ b/js/legacy.js
@@ -0,0 +1,308 @@
+//Scripts.js
+//Loads all sorts of random JS functions and instantiates various items site-wide
+//Sliders, modals (fancybox), PPC campaign tracking, etc.
+
+/*
+Hortonworks JS Application "class". Goal is to cleanup and 
+migrate all those random functions into this class.
+*/
+var HWX = (function() {
+
+	var $ = jQuery,
+		menuItem = $('#fat-nav .menu-item'),
+		loginMenuItem = $('.open[data-tool="profile"]'),
+		menuContainer = $('.menu-header-navigation-container'),
+		menuItemID;
+
+	// Retrive query string keys such as "login"
+	qs = function( key ) {
+		key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, "\\$&"); // escape RegEx meta chars
+		var match = location.search.match(new RegExp("[?&]"+key+"=([^&]+)(&|$)"));
+		return match && decodeURIComponent(match[1].replace(/\+/g, " "));
+	};
+
+	disableMenu = function() {
+		menuItem.off( 'mouseenter').off('mouseleave');
+		menuItem.addClass('disabled');
+	};
+
+	enableMenu = function() {
+		menuItem.on( 'mouseenter', function showSubMenu() {
+			var prevMenuID = menuItemID;
+			menuItemID = $(this).attr('id');
+			$('#fat-nav #'+menuItemID+' .sub-menu').fadeIn(100, function(){
+				$('.tools-list .icon-profile').removeClass('hover');
+				$('.tools-list .sub-menu').fadeOut(50);
+				if (prevMenuID && menuItemID != prevMenuID && $('#fat-nav #'+prevMenuID+' .sub-menu').length ) {
+					$('#fat-nav #'+prevMenuID+' .sub-menu').fadeOut(50);
+				}
+			});
+		});
+		menuContainer.on( 'mouseleave', function hideSubMenu() {
+			$('#fat-nav .sub-menu').fadeOut(100);
+			$('.tools-list .icon-profile').removeClass('hover');
+			$('.tools-list .sub-menu').fadeOut(50);
+			menuItemID = false;
+		});
+		menuItem.removeClass('disabled');
+
+		loginMenuItem.on( 'mouseenter', function showLoginMenu() {
+			$('#fat-nav .sub-menu').fadeOut(50);
+			$('.tools-list .icon-profile').addClass('hover');
+			$( '.sub-menu', $(this).closest('li') ).fadeIn(50);
+		});
+	};
+
+	return {
+
+		init: function() {
+			this.setMenuEvents();
+			this.mobileMenuToggle();
+			this.tabs();
+			this.miscHelpers();
+		},
+
+		setMenuEvents: function() {
+			enableMenu();
+		},
+
+		mobileMenuToggle: function() {
+			$('.menu-link').on( 'click', function() {
+				$(this).toggleClass('active');
+				$('#navbar, .mainbody').toggleClass('active');
+				return false;
+			});
+		},
+
+
+		tabs: function() {
+
+			// ================================================================================================
+			// Tab System - Used to delineate sections as the HDP Pages, Sandbox Pages etc.
+			// ================================================================================================
+			function activateTab( $tab, $firstload ) {
+				// First check to see if the tab system is in place!
+				if ( $('.sectionnav.auto ul li').length === 0 ) {
+					return false;
+				}
+
+				if ( window.location.hash && $firstload ) {
+
+					$(window).load( function() {
+						$(this).scrollTop(0);
+					});
+
+					$tab = $('.sectionnav.auto ul li a[href="' + window.location.hash + '"]').parent();
+					console.log(window.location.hash);
+
+					if ( $tab.length < 1 ) {
+						$childtab = $('ul.tabs a[href="' + window.location.hash + '"]').parent();
+						parentid = $childtab.closest( '.panel' ).attr('id');
+
+						$tab = $('.sectionnav.auto ul li a[href="#' + parentid + '"]').parent();
+					}
+					
+				}
+
+				// $tab expects a jquery object in the sectionnav
+				if ( $tab === void(0) || $tab.length < 1 ) {
+					// On page load, there's no object, so choose the first tab.
+					$tab = $('.sectionnav ul li:first-child');
+				}
+
+				var $activeTab = $tab.closest('ul').find('li.active'),
+					contentLocation = $tab.children('a').attr("href");
+
+				// Strip off the current url that IE adds
+				contentLocation = contentLocation.replace(/^.+#/, '#');
+
+				//Make Tab Active
+				$activeTab.removeClass('active');
+				$tab.addClass('active');
+
+				//Show Tab Content
+				$(contentLocation).closest('.panels').children('.panel').removeClass('active').hide();
+				$(contentLocation).css('display', 'block').addClass('active');
+
+			}
+			activateTab( void(0), true );
+
+			// Set up event Handlers for Tabs
+			$( document ).on( 'click', '.sectionnav.auto li a', function ( event ) {
+				event.preventDefault();
+				history.pushState( null, null, $(this).attr('href') );
+				activateTab( $( this ).parent('li'), false );
+			});
+
+			$('.innernav a').on('click', function(evt) {
+				// Used for the Back/Forward buttons inside page sections, such as the tutorials.
+				event.preventDefault();
+				$('html, body').animate({ scrollTop: 0 }, 'fast');
+				var next = $(this).attr('data-target');
+				var newtab = $('.sectionnav.auto ul li a[href="#section_' + next + '"]').parent();
+				activateTab(newtab, false);
+;
+			});
+
+			$('.in-page-anchor').on('click', function(evt) {
+				// Used for in-page anchor links that are not in the left nav (tabs).
+				evt.preventDefault();
+				var next = $(this).attr('href');
+				var newtab = $('.sectionnav.auto ul li a[href="' + next + '"]').parent();
+				history.pushState( null, null, $(this).attr('href') );
+				activateTab(newtab, false);
+				;
+			});
+		},
+
+
+		miscHelpers: function() {
+
+			// Add External link icon to regular links that are external.
+			$('.mainbody a').each(function() {
+				var url = $(this).attr('href');
+				if( url && url.indexOf('hortonworks.com') == -1 &&
+					url.indexOf('hortonworks.dev') == -1 &&
+					url.indexOf('/') !== 0 &&
+					url.indexOf('#') !== 0 &&
+					this.children.length === 0 &&
+					this.className === "") {
+						$(this).addClass('ext-link');
+						$(this).attr('target', '_blank');
+				}
+			});
+
+			// If page contains Gravity Forms complex elements, move the labels above the fields. - This is noticable on the Partner Page.
+			$(".ginput_complex span").each(function(i,e){
+				var $label = $(e).find("label");
+				var $field = $(e).find("input");
+				var label_value = $label.text();
+				$field.attr('placeholder', label_value);
+				$label.remove();
+			});
+
+			// Use when linking to an #anchor on a page to smooth scroll to it
+			$('.smoothscroll').on( 'click', function( e ) {
+				e.preventDefault();
+
+				var target = $(this).attr('href');
+
+				$('html,body').animate({ scrollTop: $(target).offset().top }, 500);
+			});
+
+			// Disable submit if terms and conditions textarea is present
+			// if ( $('#terms_conditions').length > 0 ) {
+			// 	var form = $('#terms_conditions').closest( 'form' );
+
+			// 	$( 'input[type="submit"]', form ).prop( 'disabled', true );
+			// 	$( 'input[type="submit"]', form ).prop( 'title', 'Please Scroll Terms and Conditions' );
+			// 	$( 'input[type="submit"]', form ).addClass( 'disabled' );
+			// }
+
+			// Enable submit after scrolling whole terms and conditions textarea
+			// $('#terms_conditions').scroll( function() {
+			// 	var form = $(this).closest( 'form' );
+
+			// 	if ( $(this).scrollTop() + $(this).height() >= $(this)[0].scrollHeight - 500 ) {
+			// 		$( 'input[type="submit"]', form ).prop( 'disabled', false );
+			// 		$( 'input[type="submit"]', form ).removeClass( 'disabled' );
+			// 	}
+			// });
+
+			// This is used with the product licenses page
+			$('.license_fancybox').on( 'click', function() {
+				var license = $( 'span', this);
+				$.fancybox({
+					content		: $(license).html(),
+					wrapCSS		: 'roundedcorners',
+					maxHeight	: 600,
+					type		: 'inline',
+					padding		: '30'
+				});
+
+				return false;
+			});
+
+			//$('.fancybox-media').fancybox(); // Used for the Partner side-bar links
+		},
+
+	};
+
+} () );
+
+
+jQuery(document).ready(function() {
+	HWX.init();
+});
+
+
+
+/* ================================================================================================
+ * EVALUATE EVERYTHING BELOW THIS LINE FOR PRUNING
+ *
+ * ================================================================================================ */
+
+
+jQuery(document).ready( function($) {
+	//colapse + expand download buttons
+	$('ul.group_parent li li a').fadeOut(0);
+	$('ul.group_parent li a.group_parent_a').bind('click', function(e){
+		e.preventDefault();
+		$(this).toggleClass('active_parent');
+		$(this).parent('li').find('a').not('.group_parent_a').fadeToggle(300);
+	});
+
+	// Adds a class of 'ext-link' to any external link
+	function addClass(url, object) {
+		if( url.indexOf('hortonworks.com') == -1 &&
+			url.indexOf('www.hortonworks.com') == -1 &&
+			url.indexOf('hortonworks.dev') == -1 &&
+			url.indexOf('localhost') == -1 &&
+			url.indexOf('#') !== 0 &&
+			url.indexOf('http') === 0 &&
+			object.children.length === 0
+		) {
+			$( object ).addClass('ext-link');
+			$( object ).attr( 'target', '_blank' );
+		}
+	}
+
+	// I don't know why this is here?
+	$('body').addClass('js');
+
+	var cloakEmails = function() {
+		// Take emails in the format of : <a href="#" class="cloak-email" data-before="sales-emaea" data-after="hortonworks.com"></a>
+		$('a.cloak-email').each(function() {
+			var after = $(this).data("after");
+			var before = $(this).data("before");
+			$(this).attr('href', 'mailto:' + before + '@' + after);
+			if(!($(this).text())) {
+				$(this).text(before + "@" + after);
+			}
+		});
+	}();
+
+	// Draw attention to responses from forms that were submitted
+	$('.response.fadein').fadeIn();
+
+	// Cornify Easter Egg.... for shits and giggles.... only works on James Dev
+	var konami_keys = [38, 38, 40, 40, 37, 39, 37, 39];
+	var konami_index = 0;
+	$(document).keydown(function(e){
+		if(e.keyCode === konami_keys[konami_index++]){
+			if(konami_index === konami_keys.length){
+				$(document).unbind('keydown', arguments.callee);
+				$.getScript('/wp-content/themes/hortonworks/js/libs/cornify.js', function() {
+					cornify_add();
+					$(document).keydown(cornify_add);
+				});
+			}
+		}else{
+			konami_index = 0;
+		}
+	});
+
+
+
+
+});

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4f69a4c/js/local.js
----------------------------------------------------------------------
diff --git a/js/local.js b/js/local.js
new file mode 100644
index 0000000..2e32794
--- /dev/null
+++ b/js/local.js
@@ -0,0 +1,612 @@
+jQuery(document).ready(function () {
+
+
+    /*
+     * Filter Tabs convert to select box on smaller width
+     */
+    jQuery('.tab-filter .toggle-tab').click(function () {
+        jQuery(this).parents('.filter-tab').find('.tabsets').stop(true, true).toggle();
+    });
+    var window_width = jQuery(window).width();
+    if (window_width < 768)
+    {
+        jQuery('.tab-filter .filter-btn li a').click(function () {
+            var active_txt = jQuery(this).html();
+            jQuery(this).parents('.filter-tab').find('.copy-text').html(active_txt);
+            jQuery(this).parents('.filter-tab').find('.tabsets').stop(true, true).hide();
+        });
+    }
+    else if (window_width > 767)
+    {
+        jQuery('.tabsets').removeAttr('style');
+        jQuery('.tab-filter .filter-btn li a').click(function () {
+            jQuery(this).parents('.filter-tab').find('.tabsets').stop(true, true).show();
+        });
+    }
+
+    /*
+     * Accordion on Downloads Page
+     */
+
+    jQuery('.downloads .accordion .opener').click(function () {
+        jQuery(this).parents('.accordion').find('.accordion-content').stop(true, true).slideToggle(200);
+        jQuery(this).parents('.accordion').find('.display').toggleClass('close');
+    });
+    /*
+     * Tabs - Products Page
+     */
+
+    var tab_button = jQuery(".tab-list"),
+            tab_container = jQuery(".tab-content");
+    jQuery(".tab-list li:first-child > a").addClass('active');
+    jQuery(".tab-content > div:first-child").css("display", "block");
+    tab_button.find("a").click(function (e) {
+        e.preventDefault();
+        var button_index = jQuery(this).parent("li").index(".tab-list li");
+        jQuery(this).addClass("active");
+        tab_button.find("a").not(this).removeClass("active");
+        tab_container.find(".tab:eq(" + button_index + ")").css("display", "block");
+        tab_container.find(".tab").not(".tab:eq(" + button_index + ")").css("display", "none");
+    });
+
+    /*Background Image zoom effect on  button hover*/
+
+    jQuery('.cta .button-default').hover(function () {
+        jQuery(this).parents('.v-middle-wrapper').parent().find('.bg-img img').toggleClass('img-zoom');
+    });
+    /*indutries solutions tabs toggle on click*/
+    jQuery(window).on("resize", function () {
+        jQuery('.grid li .tab-logo').each(function () {
+            var parentOffset = jQuery('.grid').offset().left;
+            var tabOffset = jQuery(this).parent().offset().left;
+            var leftMargin = tabOffset - parentOffset;
+            var parent_width = jQuery(this).parents('.grid').width();
+            jQuery(this).parents("li").find('.tabs-content').css("width", parent_width + "px"); /*Assign width to tab*/
+            jQuery(this).parents("li").find('.tabs-content').css("margin-left", "-" + (leftMargin + 2) + "px"); /* Set tab position to start*/
+            var tab_height = jQuery(this).parents("li").find(".tabs-content").outerHeight();
+            jQuery(this).parents("li").find('.tabs-content').attr("data-height", tab_height);
+            jQuery(this).parents("li").find('.tabs-content').css("display", "none");
+            jQuery('.grid > ul > li').css("margin-bottom", "0px");
+            jQuery('.grid li').removeClass("current");
+        });
+    }).resize();
+    /*closes tabs on click anywhere on document*/
+    jQuery(document).click(function () {
+        jQuery(".grid > ul > li .tab-logo").each(function () {
+            jQuery(this).parents("li").find('.tabs-content').stop(true, true).slideUp(300);
+            jQuery(this).parents("li").stop(true, true).animate({"margin-bottom": "0px"}, 300);
+            jQuery(".grid > ul > li").removeClass("current");
+
+        });
+    });
+    /*Grid tabs toggle on click*/
+
+    jQuery(document).on("click", ".grid > ul > li .tab-logo, .customer-search", function (event) {
+        event.stopPropagation();
+
+        /* Select filter for customer featured post */
+        jQuery('.grid > ul > li .tab-logo').each(function () {
+            var parentOffset = jQuery('.grid').offset().left;
+            var tabOffset = jQuery(this).parent().offset().left;
+            var leftMargin = tabOffset - parentOffset;
+            var parent_width = jQuery(this).parents('.grid').width();
+            jQuery(this).parents("li").find('.tabs-content').css("width", parent_width + "px"); /*Assign width to tab*/
+            jQuery(this).parents("li").find('.tabs-content').css("margin-left", "-" + (leftMargin + 2) + "px"); /* Set tab position to start*/
+            var tab_height = jQuery(this).parents("li").find(".tabs-content").outerHeight();
+            jQuery(this).parents("li").find('.tabs-content').attr("data-height", tab_height);
+        });
+
+        var prevIndex = jQuery(".grid > ul > li.current").index();
+        var currentIndex = jQuery(this).parents("li").index();
+        jQuery(".grid > ul > li").not(jQuery(this).parents("li")).removeClass("current");
+        var tabHeight = parseInt(jQuery(this).parents("li").find(".tabs-content").attr("data-height"));
+        if (prevIndex === currentIndex) {
+            jQuery('.grid > ul > li .tab-logo').parents("li").find('.tabs-content').stop(true, true).slideUp(300);
+            jQuery('.grid > ul > li .tab-logo').parents("li").stop(true, true).animate({"margin-bottom": "0px"}, 300);
+            jQuery(".grid > ul > li:eq(" + currentIndex + ")").removeClass("current");
+        }
+        else if (prevIndex >= 0) {
+            jQuery(".grid > ul > li:eq(" + prevIndex + ")").stop(true, true).animate({"margin-bottom": "0px"}, 300, function () {
+                jQuery(".grid > ul > li:eq(" + currentIndex + ")").not('.no-hover').addClass("current");
+                jQuery(".grid > ul > li:eq(" + currentIndex + ")").find('.tabs-content').stop(true, true).slideToggle(300);
+                jQuery(".grid > ul > li:eq(" + currentIndex + ")").stop(true, true).animate({"margin-bottom": (tabHeight + 40) + "px"});
+            });
+            jQuery(".grid > ul > li:eq(" + prevIndex + ")").find(".tabs-content").stop(true, true).slideUp(300);
+        } else if (prevIndex < 0) {
+            jQuery(this).parents("li").not('.no-hover').addClass("current");
+            jQuery(this).parents("li").find('.tabs-content').stop(true, true).slideToggle(300);
+            jQuery(this).parents("li").stop(true, true).animate({"margin-bottom": (tabHeight + 40) + "px"});
+        }
+    });
+    /*cta banner and second level banner img responsive */
+
+    jQuery(window).on("resize", function () {
+        var banner_image = jQuery('.bg-img').find('img');
+        var window_width = jQuery(window).width();
+        if (window_width >= 1400) {
+            banner_image.css({"width": "100%", "left": "0px"});
+        }
+        if (window_width < 1400) {
+            var left_margin = (1400 - window_width) / 2;
+            banner_image.css({"width": "1400px", "left": "-" + left_margin + "px", "max-width": "inherit"});
+        }
+
+        /*feature box img responsive */
+        jQuery('.feature-bg').each(function () {
+            var feat_img = jQuery(this).find('img');
+            var feat_box_wid = jQuery(this).width();
+            var feat_img_wid = jQuery(this).find('img').width();
+            var feat_left = (feat_img_wid - feat_box_wid) / 2;
+            if (window_width >= 1400)
+            {
+                feat_img.css({"width": "100%", "left": "0px"});
+            }
+            if (window_width < 1400 & window_width >= 768)
+            {
+                feat_img.css({'width': 'auto', 'height': 'auto', 'left': '-' + feat_left + 'px', 'max-width': 'inherit'});
+            }
+            if (window_width < 768)
+            {
+                feat_img.css({'width': '100%', 'height': 'auto', 'left': '-' + feat_left + 'px', 'max-width': 'inherit'});
+            }
+        });
+
+    }).resize();
+
+
+});
+/*assign equal height */
+
+/*
+ * Filter Tabs convert to select box on smaller width
+ */
+jQuery(window).on("resize", function () {
+    var window_width = jQuery(window).width();
+    var window_height = jQuery(window).height();
+    if (window_width < 768)
+    {
+        jQuery('.tab-filter .filter-btn li a').click(function () {
+            var active_txt = jQuery(this).html();
+            jQuery(this).parents('.filter-tab').find('.copy-text').html(active_txt);
+            jQuery(this).parents('.filter-tab').find('.tabsets').stop(true, true).hide();
+        });
+    }
+    else if (window_width > 767)
+    {
+        jQuery('.tabsets').removeAttr('style');
+        jQuery('.tab-filter .filter-btn li a').click(function () {
+            jQuery(this).parents('.filter-tab').find('.tabsets').stop(true, true).show();
+        });
+    }
+
+
+}).resize();
+
+jQuery(window).load(function () {
+    jQuery.fn.equalHeight = function () {
+        var maxHeight = 0;
+        return this.each(function (index, box) {
+            var boxHeight = jQuery(box).height();
+            maxHeight = Math.max(maxHeight, boxHeight);
+        }).height(maxHeight);
+    };
+    jQuery.fn.equalOuterHeight = function () {
+        var maxHeight = 0;
+        return this.each(function (index, box) {
+            var boxHeight = jQuery(box).height();
+            maxHeight = Math.max(maxHeight, boxHeight);
+        }).outerHeight(maxHeight);
+    };
+
+    jQuery(window).on('resize', function () {
+        jQuery('.tabular-box .row-data .col-four,.tabular-box .row-data .col-three,.grid-section .col-three,.grid-text .col-inner .col-three,.col-inner .learning-menu, .col-inner .same-height, .comming-soon, .hdp-hadoop .item-content, .hdf-hadoop .item-content').css('height', 'auto');
+        var window_width = jQuery(window).width();
+        jQuery('.hdp-hadoop .item-content, .hdf-hadoop .item-content').equalHeight();
+        if (window_width > 767) {
+            jQuery('.grid-section .col-three').equalHeight();
+            jQuery('.col-inner .learning-menu').equalHeight();
+            jQuery('.comming-soon').equalHeight();
+            //jQuery('.sub-tab-content .col-two').equalHeight();
+            //jQuery('.blue-boxes .col-two').equalHeight();
+            jQuery('.col-inner .same-height').equalHeight();
+            jQuery('.filter-press-release .filter-container > div').equalHeight();
+        } else if (window_width < 768) {
+            jQuery('.grid-section .col-three').css("height", "auto");
+            jQuery('.col-inner .learning-menu').css("height", "auto");
+            jQuery('.comming-soon').css("height", "auto");
+            //jQuery('.sub-tab-content .col-two').css("height", "auto");
+            //jQuery('.blue-boxes .col-two').css("height", "auto");
+            jQuery('.col-inner .same-height').css("height", "auto");
+        }
+        if (window_width > 666) {
+            jQuery('.tabular-box .row-data').each(function () {
+                jQuery(this).find('.col-four').equalHeight();
+                jQuery(this).find('.col-three').equalHeight();
+            });
+        }
+        else {
+            jQuery('.tabular-box .row-data').each(function () {
+                jQuery(this).find('.col-four').css("height", "auto");
+                jQuery(this).find('.col-three').css("height", "auto");
+            });
+        }
+        jQuery('.grid-text .col-inner').each(function () {
+            if (window_width > 767) {
+                jQuery(this).find('.col-three').equalHeight();
+            } else if (window_width < 768) {
+                jQuery(this).find('.col-three').css("height", "auto");
+            }
+        });
+    }).resize();
+
+
+    /**
+     *  Add isotop filter on video and press release section
+     */
+    var activeClass = 'active';
+    jQuery('.isotope-filter').each(function () {
+        var holder = jQuery(this),
+                filterLinks = holder.find('.filter-btn a'),
+                filterButtons = holder.find('.filter-btn li'),
+                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),
+                    linkButton = jQuery(this).parents("li"),
+                    filter = link.data('filter');
+            e.preventDefault();
+            refreshActiveClass(link);
+            refreshActiveClass(linkButton);
+            container.isotope({
+                filter: filter,
+                layoutMode: 'fitRows'
+            });
+
+            // Hide or show no results message
+            if (container.data('isotope').filteredItems.length == 0) {
+                holder.find('.isotope-no-results').show();
+            } else {
+                holder.find('.isotope-no-results').hide();
+            }
+        });
+
+        var refreshActiveClass = function (link) {
+            filterLinks.removeClass(activeClass);
+            filterButtons.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'
+        });
+    });
+
+});
+
+
+
+jQuery(document).ready(function () {
+    /* Remove class "overlay" from footer on window load */
+    jQuery(window).load(function () {
+        jQuery('.footer-nav').removeClass('overlay');
+    });
+
+    /**
+     *  footer expanded overlay close on click footer bar
+     */
+    jQuery(document).on('click', '.footer-nav', function () {
+        //jQuery('.footer-overlay').fadeOut();
+        jQuery('.footer-menu.open').removeClass('open');
+        jQuery('.footer-nav, .newsletter').removeClass('overlay');
+        //jQuery("body").css("overflow-y", "auto");
+        jQuery('body').removeClass('overflow-fix  hw-footer-overlay');
+    });
+
+    /**
+     *  footer expanded overlay close on click close button
+     */
+    jQuery(document).on('click', '.f-close-btn', function () {
+        //jQuery('.footer-overlay, .newsletter-overlay').fadeOut();
+        jQuery(this).parents().find('.footer-menu.open, .newsletter.open').removeClass('open');
+        jQuery(this).parents().find('.footer-nav').removeClass('overlay');
+        jQuery(this).parents().find('.footer-nav').removeClass('news-fix');
+        jQuery('.marketo-form-embed').validationEngine('hideAll');
+//        jQuery("body").css("overflow-y", "auto");
+        jQuery('body').removeClass('overflow-fix hw-search-overlay hw-footer-overlay hw-newsletter-overlay');
+    });
+
+    jQuery('.newsletter').click(function (a) {
+        a.stopPropagation();
+    });
+
+    /*
+     * Common code for resize of overlays
+     */
+    jQuery(window).on("resize", function () {
+        var overlay_hei = jQuery(window).height() - (32);
+        var menu_hei = overlay_hei - 90;
+        var window_width = jQuery(window).width();
+        jQuery('.footer-expand-menu').height(menu_hei);
+        /* To remove footer from overlay & expand overlay to 100vh */
+        if (window_width > 767) {
+
+            if (jQuery('body').hasClass('overflow-fix')) {
+                jQuery('.footer-nav').addClass('overlay');
+//                jQuery('.footer-nav').css({'z-index': '11'});
+            }
+
+            jQuery('.search-box').height(overlay_hei);
+
+            jQuery('.footer-overlay').height(overlay_hei);
+            //jQuery('.footer-expand-menu').height(menu_hei);
+
+            jQuery('.nws-box').height(overlay_hei);
+        } else if (window_width < 768) {
+
+            if (jQuery('body').hasClass('overflow-fix')) {
+//                jQuery('.footer-nav').css({'z-index': '9'});
+            }
+
+            jQuery('.footer-nav').removeClass('overlay');
+
+            jQuery('.search-box').height(jQuery(window).height());
+
+            jQuery('.footer-overlay').height(jQuery(window).height());
+
+            jQuery('.nws-box').height(jQuery(window).height());
+        }
+
+//        jQuery('.footer-nav').removeClass('overlay');  
+//        if (jQuery('.footer-overlay').css('display')  == "none") {
+//            jQuery('.footer-nav').removeClass('overlay');
+//        }
+    }).resize();
+
+    /*
+     *  top search  overlay 
+     */
+    jQuery('.top-menu .search, .fix-search').on('click', function () {
+        //jQuery('.search-overlay').fadeIn();
+        jQuery(this).parents().find('.footer-nav').addClass('overlay');
+        jQuery('body').addClass('overflow-fix hw-search-overlay');
+
+        //To focus on input field
+        setTimeout(function () {
+            jQuery('.top-search-input').focus();
+        }, 100);
+    });
+
+    /*
+     *  footer expanded overlay
+     */
+    jQuery('.footer-menu').on('click', function (event) {
+        event.stopPropagation();
+        jQuery(this).toggleClass('open');
+        jQuery(this).parents().find('.footer-nav').toggleClass('overlay');
+        jQuery('.footer-overlay').toggle();
+//        jQuery("body").css("overflow-y", "hidden");
+        if (jQuery(this).hasClass('open')) {
+            jQuery('body').addClass('overflow-fix hw-footer-overlay');
+        }
+        else {
+            jQuery('body').removeClass('overflow-fix  hw-footer-overlay');
+        }
+    });
+
+    /*
+     *  footer newsletter overlay 
+     */
+    jQuery('.newsletter a').click(function (ev) {
+        ev.preventDefault();
+    });
+    jQuery('.newsletter').on('click', function () {
+        jQuery(this).addClass('open');
+        jQuery(this).parents().find('.footer-nav').addClass('overlay');
+        //jQuery('.newsletter-overlay').fadeIn();
+        jQuery('body').addClass('overflow-fix hw-newsletter-overlay');
+
+        //To focus on input field
+        setTimeout(function () {
+            jQuery('.top-search-input').focus();
+            jQuery('.top-search-input').focus(function () {
+                jQuery(this).attr('placeholder', jQuery(this).data('placeholder'));
+            });
+        }, 100);
+
+    });
+});
+
+
+jQuery(document).ready(function () {
+    /**
+     * 
+     * Video overlay
+     */
+
+    jQuery("body").append("<div class='outer-box'>" +
+            "<div class='overlay-form'>" +
+            "<div id='video'>" +
+            "<span id='close-video' type='button' class='close-video'>" + "close" +
+            "<img src='/wp-content/themes/hortonworks/images/overlay-close.png' alt='Close button'/>" +
+            "</span>" +
+            "<iframe src=''></iframe>" +
+            "</div>" +
+            "</div>" +
+            "<div class='overlay-elephant-logo'>" +
+            "<img src='/wp-content/themes/hortonworks/images/logo1.png' alt='Close button'/>" +
+            "</div>" +
+            "</div>");
+    jQuery('.video-link').on('click', function (e) {
+        var url = jQuery(this).attr('data');
+        jQuery('#video').find('iframe').attr('src', url).addClass('test');
+        //jQuery('.outer-box').fadeIn();
+        jQuery('body').css({'overflow': 'hidden'}).addClass('hw-video-overlay');
+        e.preventDefault();
+    });
+    jQuery('#close-video').click(function () {
+        jQuery('#video').find('iframe').attr('src', '');
+        jQuery('body').css({'overflow': 'scroll'}).removeClass('hw-video-overlay');
+    });
+    jQuery('.outer-box').click(function () {
+        jQuery('#video').find('iframe').attr('src', '');
+        jQuery('body').css({'overflow': 'scroll'}).removeClass('hw-video-overlay');
+    });
+
+});
+
+jQuery(window).resize(function () {
+    var window_width = jQuery(window).width();
+    var window_height = jQuery(window).height();
+
+    var video_width = window_width / 1.5;
+    var video_height = video_width / 1.77;
+    var video_top_margin = (window_height - video_height) / 2 + (10);
+    var video_left_margin = (window_width - video_width) / 2;
+
+    jQuery('#video > iframe').attr('width', video_width + 'px');
+    jQuery('#video > iframe').attr('height', video_height + 'px');
+    jQuery('#video').css({'margin-top': video_top_margin + 'px', 'padding': '0px'});
+
+
+    /**
+     * 
+     * placeholder text show after focus in ie
+     */
+//
+//    var dataPlaceholders = document.querySelectorAll("input[placeholder]"),
+//            l = dataPlaceholders.length,
+//            // Set caret at the beginning of the input
+//            setCaret = function (evt) {
+//                if (this.value === this.getAttribute("data-placeholder")) {
+//                    this.setSelectionRange(0, 0);
+//                    evt.preventDefault();
+//                    evt.stopPropagation();
+//                    return false;
+//                }
+//            },
+//            // Clear placeholder value at user input
+//            clearPlaceholder = function (evt) {
+//                if (!(evt.shiftKey && evt.keyCode === 16) && evt.keyCode !== 9) {
+//                    if (this.value === this.getAttribute("data-placeholder")) {
+//                        this.value = "";
+//                        this.className = "top-search-input";
+//                        if (this.getAttribute("data-type") === "password") {
+//                            this.type = "password";
+//                        }
+//                    }
+//                }
+//            },
+//            restorePlaceHolder = function () {
+//                if (this.value.length === 0) {
+//                    this.value = this.getAttribute("data-placeholder");
+//                    setCaret.apply(this, arguments);
+//                    this.className = "top-search-input";
+//                    if (this.type === "password") {
+//                        this.type = "text";
+//                    }
+//                }
+//            },
+//            clearPlaceholderAtSubmit = function (evt) {
+//                for (var i = 0, placeholder; i < l; i++) {
+//                    placeholder = dataPlaceholders[i];
+//                    if (placeholder.value === placeholder.getAttribute("data-placeholder")) {
+//                        placeholder.value = "";
+//                    }
+//                }
+//            };
+//
+//    for (var i = 0, placeholder, placeholderVal; i < l; i++) {
+//        placeholder = dataPlaceholders[i];
+//        placeholderVal = placeholder.getAttribute("placeholder");
+//        placeholder.setAttribute("data-placeholder", placeholderVal);
+//        placeholder.removeAttribute("placeholder");
+//
+//        if (placeholder.value.length === 0) {
+//            placeholder.value = placeholderVal;
+//            if (placeholder.type === "password") {
+//                placeholder.type = "text";
+//            }
+//        }
+//        else {
+//            placeholder.className = "top-search-input";
+//        }
+//
+//        // Apply events for placeholder handling         
+//        placeholder.addEventListener("focus", setCaret, false);
+//        placeholder.addEventListener("drop", setCaret, false);
+//        placeholder.addEventListener("click", setCaret, false);
+//        placeholder.addEventListener("keydown", clearPlaceholder, false);
+//        placeholder.addEventListener("keyup", restorePlaceHolder, false);
+//        placeholder.addEventListener("blur", restorePlaceHolder, false);
+//
+//        // Clear all default placeholder values from the form at submit
+//        placeholder.form.addEventListener("submit", clearPlaceholderAtSubmit, false);
+//    }
+});
+
+
+/**
+ * 
+ * service page tables responsive
+ */
+
+$(document).ready(function () {
+    var switched = false;
+    var updateTables = function () {
+        if (($(window).width() < 767) && !switched) {
+            switched = true;
+            $(".service-table").each(function (i, element) {
+                splitTable($(element));
+            });
+            return true;
+        }
+        else if (switched && ($(window).width() > 767)) {
+            switched = false;
+            $(".service-table").each(function (i, element) {
+                unsplitTable($(element));
+            });
+        }
+    };
+    $(window).load(updateTables);
+    $(window).bind("resize", updateTables);
+    function splitTable(original)
+    {
+        original.wrap("<div class='table-wrapper' />");
+        var copy = original.clone();
+        copy.find(".row-head .cell-four:not(:first-of-type), .row-data .cell-four:not(:first-of-type),.row-head .cell-three:not(:first-of-type), .row-data .cell-three:not(:first-of-type)").css("display", "none");
+        copy.removeClass("responsive");
+        original.closest(".table-wrapper").append(copy);
+        copy.wrap("<div class='pinned' />");
+        original.wrap("<div class='scrollable' />");
+    }
+    function unsplitTable(original) {
+        original.closest(".table-wrapper").find(".pinned").remove();
+        original.unwrap();
+        original.unwrap();
+    }}
+);

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4f69a4c/js/local6.js
----------------------------------------------------------------------
diff --git a/js/local6.js b/js/local6.js
new file mode 100644
index 0000000..2383a6f
--- /dev/null
+++ b/js/local6.js
@@ -0,0 +1,283 @@
+jQuery(document).ready(function(){
+    
+     /*set the top and left value of video btn solution adversting and developer page on resize*/
+    jQuery(window).on('load',function(){
+        var imgHeight= jQuery('.media-video .video-link img').height(),
+         imgWidth= jQuery('.media-video .video-link img').width(),
+         imgBtnHeight= jQuery('.media-video .video-link .video-btn').height(),
+         imgBtnWidth= jQuery('.media-video .video-link .video-btn').width();
+        var  totalHeight=(imgHeight - imgBtnHeight)/2;
+         var totalWidth=(imgWidth - imgBtnWidth)/2;
+        jQuery('.media-inner .media-video .video-link .video-btn ').css({'top': totalHeight,'left': totalWidth});
+    });
+    
+    //set blog form value on load//
+    setTimeout (function(){
+      if(jQuery('.blog-slider .comment-list input').val()){
+          jQuery('.blog-slider .comment-list input').closest('#comments p').children('label').addClass('used');
+      }
+      else{
+           jQuery('.blog-slider .comment-list input').closest('#comments p').children('label').removeClass('used');
+      }
+      },100);
+      
+          setTimeout (function(){
+      if(jQuery('.legacy input,.legacy textarea').val()){
+          jQuery('.legacy input,.legacy textarea').closest('#comments p').children('label').addClass('used');
+      }
+      else{
+           jQuery('.legacy input,.legacy textarea').closest('#comments p').children('label').removeClass('used');
+      }
+      },100);
+      
+    jQuery(window).resize(function () {
+    /* We slider*/
+    init();
+    /* Multi section slider*/
+    mInit();
+    var window_width = jQuery(window).width();
+    if (jQuery(".multi-section-slider").length) {
+        if (window_width < 767) {
+            jQuery("#horton-webcast-slider .multi-section-slider").attr("data-items", "1");
+        }
+        else {
+            jQuery("#horton-webcast-slider .multi-section-slider").attr("data-items", "2");
+        }
+    }
+});
+//webinar/apache-hive form//
+jQuery('.legacy p').on('click',function(e){
+    jQuery('.legacy .labels-on-top label').css({'top':'22px'});
+    jQuery(this).children('label').css({'top':'5px'});
+     e.stopPropagation();
+});
+jQuery('.legacy').on('click',function(){
+     jQuery('.legacy .labels-on-top label').css({'top':'22px'});
+    
+});
+    $(document).on('blur', '.legacy input,.legacy textarea', function () {
+        if (jQuery(this).val()){
+            jQuery(this).closest('#comments p').children('label').addClass('used');
+        }
+        else
+        {
+             jQuery(this).closest('#comments p').children('label').removeClass('used');
+        }
+    });
+    
+    //BLOG COMMENTS FORM//
+    jQuery('.blog-slider .comment-list p').on('click',function(e){
+    jQuery('.blog-slider .comment-list .labels-on-top label').css({'top':'22px'});
+    jQuery(this).children('label').css({'top':'5px'});
+     e.stopPropagation();
+    });
+    jQuery('.blog-slider').on('click',function(){
+     jQuery('.blog-slider .comment-list .labels-on-top label').css({'top':'22px'});
+    
+});
+    jQuery(document).on('blur', '.blog-slider .comment-list input,.blog-slider .comment-list textarea', function () {
+        if (jQuery(this).val()){
+            jQuery(this).closest('#comments p').children('label').addClass('used');
+        }
+        else
+        {
+             jQuery(this).closest('#comments p').children('label').removeClass('used');
+        }
+    });
+// makes a loader
+    jQuery('.loadcustomer').click(function(){
+     jQuery.ajax({
+     // your ajax code
+      beforeSend: function(){
+       jQuery('.loadcustomer').addClass('loader');
+     },
+      complete: function(){
+      jQuery('.loadcustomer').removeClass('loader');
+     }
+        });
+    });
+      jQuery('.loadentries').click(function(){
+       jQuery.ajax({
+  // your ajax code
+  beforeSend: function(){
+       jQuery('.loadentries').addClass('loader');
+   },
+  complete: function(){
+      jQuery('.loadentries').removeClass('loader');
+  }
+       });
+   });
+   
+         jQuery('.loadevents').click(function(){
+       jQuery.ajax({
+  // your ajax code
+  beforeSend: function(){
+       jQuery('.loadevents').addClass('loader');
+   },
+  complete: function(){
+      jQuery('.loadevents').removeClass('loader');
+  }
+       });
+   });
+   
+    jQuery('.loadwebinar').click(function(){
+       jQuery.ajax({
+  // your ajax code
+  beforeSend: function(){
+       jQuery('.loadwebinar').addClass('loader');
+   },
+  complete: function(){
+      jQuery('.loadwebinar').removeClass('loader');
+  }
+       });
+   });
+   
+       jQuery('.loadondemand').click(function(){
+       jQuery.ajax({
+  // your ajax code
+  beforeSend: function(){
+       jQuery('.loadwebinar').addClass('loader');
+   },
+  complete: function(){
+      jQuery('.loadwebinar').removeClass('loader');
+  }
+       });
+   });
+        //fixed the position of footer-nav
+    jQuery(window).on('scroll', function(){
+        if (jQuery(window).width()>=768){
+        if(jQuery('.footer-wht').length > 0){
+        var stickyFooter=jQuery('.footer-wht').offset().top;
+        var windowHeight=jQuery(window).height();
+        var totalHeight=stickyFooter - windowHeight;
+        var scrollHeight =jQuery(window).scrollTop();
+        
+        if(scrollHeight > totalHeight)
+        {
+            jQuery('.footer-nav').addClass('fixed');
+            jQuery('.footer-wht').css('margin-top','0px');
+        }
+        else
+        {
+            jQuery('.footer-nav').removeClass('fixed');
+            jQuery('.footer-wht').css('margin-top','34px');
+        }
+    }
+        }
+        else{
+            jQuery('.footer-nav').addClass('fixed');
+            jQuery('.footer-wht').css('margin-top','0px');
+        }
+    });
+    jQuery(window).trigger('scroll');
+            //works for tabs on section customer-landing
+            
+         jQuery('.customer-landing li a').click(function(e){
+         e.preventDefault();
+         jQuery("a.active").removeClass("active");
+         jQuery(this).addClass('active');
+         var tab = jQuery(this).attr('href');
+         jQuery(".information-center .four-col-row ").not(tab).css('display','none');
+         jQuery(tab).fadeIn();
+       
+         });
+        jQuery('.share_popup').click(function(event) {
+        var width = 575,
+                height = 400,
+                left = (jQuery(window).width() - width) / 2,
+                top = (jQuery(window).height() - height) / 2,
+                url = this.href,
+                opts = 'status=1' +
+                ',width=' + width +
+                ',height=' + height +
+                ',top=' + top +
+                ',left=' + left;
+
+        window.open(url, 'share_popup', opts);
+        return false;
+    });
+    jQuery(window).on("resize", function () {
+        jQuery('.grid li .logo-container').each(function () {
+            var parentOffset = jQuery('.grid').offset().left;
+            var tabOffset = jQuery(this).parent().offset().left;
+            var leftMargin = tabOffset - parentOffset;
+            var parent_width = jQuery(this).parents('.grid').width();
+            jQuery(this).parents("li").find('.tabs-content').css("width", parent_width + "px"); /*Assign width to tab*/
+            jQuery(this).parents("li").find('.tabs-content').css("margin-left", "-" + (leftMargin + 2) + "px"); /* Set tab position to start*/
+            var tab_height = jQuery(this).parents("li").find(".tabs-content").outerHeight();
+            jQuery(this).parents("li").find('.tabs-content').attr("data-height", tab_height);
+            jQuery(this).parents("li").find('.tabs-content').css("display", "none");
+            jQuery('.grid > ul > li').css("margin-bottom", "0px");
+            jQuery('.grid li').removeClass("current");
+        });
+    }).resize();
+    /*closes tabs on click anywhere on document*/
+    jQuery(document).click(function () {
+        jQuery(".grid > ul > li .logo-container").each(function () {
+            jQuery(this).parents("li").find('.tabs-content').stop(true, true).slideUp(300);
+            jQuery(this).parents("li").stop(true, true).animate({"margin-bottom": "0px"}, 300);
+            jQuery(".grid > ul > li").removeClass("current");
+
+        });
+    });
+    /*Grid tabs toggle on click*/
+
+    jQuery(document).on("click", ".grid > ul > li .logo-container, .customer-search", function (event) {
+        event.stopPropagation();
+
+        /* Select filter for customer featured post */
+        jQuery('.grid > ul > li .logo-container').each(function () {
+            var parentOffset = jQuery('.grid').offset().left;
+            var tabOffset = jQuery(this).parent().offset().left;
+            var leftMargin = tabOffset - parentOffset;
+            var parent_width = jQuery(this).parents('.grid').width();
+            jQuery(this).parents("li").find('.tabs-content').css("width", parent_width + "px"); /*Assign width to tab*/
+            jQuery(this).parents("li").find('.tabs-content').css("margin-left", "-" + (leftMargin + 2) + "px"); /* Set tab position to start*/
+            var tab_height = jQuery(this).parents("li").find(".tabs-content").outerHeight();
+            jQuery(this).parents("li").find('.tabs-content').attr("data-height", tab_height);
+        });
+
+        var prevIndex = jQuery(".grid > ul > li.current").index();
+        var currentIndex = jQuery(this).parents("li").index();
+        jQuery(".grid > ul > li").not(jQuery(this).parents("li")).removeClass("current");
+        var tabHeight = parseInt(jQuery(this).parents("li").find(".tabs-content").attr("data-height"));
+        if (prevIndex === currentIndex) {
+            jQuery('.grid > ul > li .tab-logo').parents("li").find('.tabs-content').stop(true, true).slideUp(300);
+            jQuery('.grid > ul > li .tab-logo').parents("li").stop(true, true).animate({"margin-bottom": "0px"}, 300);
+            jQuery(".grid > ul > li:eq(" + currentIndex + ")").removeClass("current");
+        }
+        else if (prevIndex >= 0) {
+            jQuery(".grid > ul > li:eq(" + prevIndex + ")").stop(true, true).animate({"margin-bottom": "0px"}, 300, function () {
+                jQuery(".grid > ul > li:eq(" + currentIndex + ")").not('.no-hover').addClass("current");
+                jQuery(".grid > ul > li:eq(" + currentIndex + ")").find('.tabs-content').stop(true, true).slideToggle(300);
+                jQuery(".grid > ul > li:eq(" + currentIndex + ")").stop(true, true).animate({"margin-bottom": (tabHeight + 40) + "px"});
+            });
+            jQuery(".grid > ul > li:eq(" + prevIndex + ")").find(".tabs-content").stop(true, true).slideUp(300);
+        } else if (prevIndex < 0) {
+            jQuery(this).parents("li").not('.no-hover').addClass("current");
+            jQuery(this).parents("li").find('.tabs-content').stop(true, true).slideToggle(300);
+            jQuery(this).parents("li").stop(true, true).animate({"margin-bottom": (tabHeight + 40) + "px"});
+        }
+    });
+
+         });
+         /*remove fixed class from footer below 767px*/
+jQuery(window).resize(function(){
+   if (jQuery(window).width()<=767){
+        jQuery('.footer-nav').addClass('fixed');
+        jQuery('.footer-wht').css('margin-top','0px');
+    }
+    /*set the top and left value of video btn solution adversting and developer page on resize*/
+        var imgHeight= jQuery('.media-video .video-link img').height(),
+         imgWidth= jQuery('.media-video .video-link img').width(),
+         imgBtnHeight= jQuery('.media-video .video-link .video-btn').height(),
+         imgBtnWidth= jQuery('.media-video .video-link .video-btn').width();
+        var  totalHeight=(imgHeight - imgBtnHeight)/2;
+         var totalWidth=(imgWidth - imgBtnWidth)/2;
+        jQuery('.media-inner .media-video .video-link .video-btn ').css({'top': totalHeight,'left': totalWidth});
+});
+
+  jQuery(document).on({
+    ready: function() { jQuery('#video iframe').addClass("loader");    },
+        load: function() { jQuery('#video iframe').removeClass("loader"); }    
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4f69a4c/js/munchkin-beta.js
----------------------------------------------------------------------
diff --git a/js/munchkin-beta.js b/js/munchkin-beta.js
new file mode 100644
index 0000000..0d4cd5e
--- /dev/null
+++ b/js/munchkin-beta.js
@@ -0,0 +1,8 @@
+/*
+ * Copyright (c) 2007-2015, Marketo, Inc. All rights reserved.
+ * Marketo marketing automation web activity tracking script
+ * Version: beta r613
+ */
+ (function(b){if(!b.Munchkin){var c=b.document,e=[],k,l={fallback:"151"},g=[],m=function(){if(!k){for(;0<e.length;){var f=e.shift();b.MunchkinTracker[f[0]].apply(b.MunchkinTracker,f[1])}k=!0}},n=function(f){var a=c.createElement("script"),b=c.getElementsByTagName("base")[0]||c.getElementsByTagName("script")[0];a.type="text/javascript";a.async=!0;a.src=f;a.onreadystatechange=function(){"complete"!==this.readyState&&"loaded"!==this.readyState||m()};a.onload=m;b.parentNode.insertBefore(a,b)},h={ASSOCIATE_LEAD:"ASSOCIATE_LEAD",
+CLICK_LINK:"CLICK_LINK",VISIT_WEB_PAGE:"visitWebPage",init:function(b){var a;a=l[b];if(!a&&0<g.length){a=b;var c=0,d;if(0!==a.length)for(d=0;d<a.length;d+=1)c+=a.charCodeAt(d);a=g[c%g.length]}a||(a=l.fallback);e.push(["init",arguments]);"150"===a?n("//munchkin-cdn.marketo.net/"+a+"/munchkin.js"):n("//munchkin.marketo.net/"+a+"/munchkin.js")}},p=function(b){return h[b]=function(){e.push([b,arguments])}};b.mktoMunchkinFunction=p("munchkinFunction");p("createTrackingCookie");b.Munchkin=h;b.mktoMunchkin=
+h.init}})(window);