You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metron.apache.org by rm...@apache.org on 2016/06/10 20:46:32 UTC

incubator-metron git commit: METRON-208 Add Google Analytics tags to Metron Home Pages (iraghumitra via merrimanr) closes apache/incubator-metron#147

Repository: incubator-metron
Updated Branches:
  refs/heads/master e15ed5622 -> 9041615a7


METRON-208 Add Google Analytics tags to Metron Home Pages (iraghumitra via merrimanr) closes apache/incubator-metron#147


Project: http://git-wip-us.apache.org/repos/asf/incubator-metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-metron/commit/9041615a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-metron/tree/9041615a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-metron/diff/9041615a

Branch: refs/heads/master
Commit: 9041615a7957a08d3445709e2fe1c0b0ccf626eb
Parents: e15ed56
Author: iraghumitra <ra...@gmail.com>
Authored: Fri Jun 10 15:42:37 2016 -0500
Committer: rmerriman <rm...@hortonworks.com>
Committed: Fri Jun 10 15:42:37 2016 -0500

----------------------------------------------------------------------
 site/_includes/footer.html     |  22 +-
 site/_includes/top.html        |  13 +-
 site/community/index.md        |  14 +-
 site/css/default.css           |  64 +---
 site/documentation/index.md    |  50 +--
 site/js/angular-animate.min.js |   1 -
 site/js/angular.min.js         |   1 -
 site/js/local.js               | 612 ------------------------------------
 8 files changed, 65 insertions(+), 712 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/9041615a/site/_includes/footer.html
----------------------------------------------------------------------
diff --git a/site/_includes/footer.html b/site/_includes/footer.html
index 3350910..c5ec70b 100644
--- a/site/_includes/footer.html
+++ b/site/_includes/footer.html
@@ -1,16 +1,12 @@
 </section>
-<section class="hero-second-level darken">
-
-    <div class="v-middle-wrapper">
-        <div class="v-middle-inner">
-            <div class="v-middle text-center">
-                <p><img src="/img/incubator_logo.png"></p>
-              
-                      
-            <p>The contents of this website are � 2016 Apache Software Foundation under the terms of<br /> the Apache License v2. Apache Metron and its logo are trademarks of the Apache Software Foundation.</p>
-        
-                               
-            </div>
-        </div>
+<section class="intro-block darken" id="docshome">
+    <div class="text-center">
+        <img class="v-middle img82" src="/img/incubator_logo.png" alt="Apache" style="margin:0 auto;left: 0px;">
+    </div>
+    <br>
+    <div class="content-960 hover-btn text-center disclaimer">
+        <b>Disclaimer:</b> Apache Metron is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Hortonworks. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+        <br>
+        The contents of this website are � 2016 Apache Software Foundation under the terms of the Apache License v2. Apache Metron and its logo are trademarks of the Apache Software Foundation.
     </div>
 </section>

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/9041615a/site/_includes/top.html
----------------------------------------------------------------------
diff --git a/site/_includes/top.html b/site/_includes/top.html
index b08eb66..d70c653 100644
--- a/site/_includes/top.html
+++ b/site/_includes/top.html
@@ -20,6 +20,18 @@
                 padding: 0 !important;
             }
         </style>
+
+    <script>
+        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+                    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+                m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+        })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+
+        ga('create', 'UA-78972211-1', 'auto');
+        ga('send', 'pageview');
+
+    </script>
+
     <link rel="stylesheet" id="default-css" href="/css/default.css" type="text/css" media="all">
     <link rel="stylesheet" id="legacy-css" href="/css/legacy.css" type="text/css" media="all">
     <link rel="stylesheet" id="gravityforms-css" href="/css/gravityforms.css" type="text/css" media="all">
@@ -39,7 +51,6 @@
     <script type="text/javascript" src="/js/local6.js"></script>
     <script type="text/javascript" src="/js/select-list.js"></script>
     <script type="text/javascript" src="/js/legacy.js"></script>
-    <script type="text/javascript" src="/js/local.js"></script>
     <script type="text/javascript" src="/js/paralax-scroll.js"></script>
     <script type="text/javascript" src="/js/jquery-ui.min.js"></script>
     <script type="text/javascript" src="/js/jquery.selectBoxIt.min.js"></script>

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/9041615a/site/community/index.md
----------------------------------------------------------------------
diff --git a/site/community/index.md b/site/community/index.md
index aa836c9..a616e67 100644
--- a/site/community/index.md
+++ b/site/community/index.md
@@ -51,6 +51,8 @@ title: Apache Metron Community
     <tr>
       <td style="text-align: left">George Vetticaden</td> <td style="text-align: left">gvetticaden</td> <td style="text-align: left">PMC</td> </tr>
     <tr>
+       <td style="text-align: left">Ryan Merriman</td> <td style="text-align: left">rmerriman</td> <td style="text-align: left">PMC</td> </tr>
+    <tr>
       <td style="text-align: left">P. Taylor Goetz</td> <td style="text-align: left">ptgoetz</td> <td style="text-align: left">PMC</td> </tr>
     <tr>
       <td style="text-align: left">Jim Baker</td> <td style="text-align: left">jimbaker</td> <td style="text-align: left">PMC</td> </tr>
@@ -68,22 +70,22 @@ title: Apache Metron Community
 </table>
 </section>
 
-<section class="events-section feature darken" id="communityresources">
+<section class="intro-block darken" id="communityresources">
         <div class="text-center">
           <h2>Community Resources</h2>
         </div>
-        <div class="hover-btn text-center">
-            <p>Apache Community Resources - GitHub and Mailing List's </p>
+        <div class="content-960 hover-btn text-center">
+            <p>Apache Metron provides user and development mailing lists, a Github repository, a JIRA site, and list of community members to enable you to learn more about Metron. Feel free to join any of the mailing lists and the Metron IRC channel, and view the code on Github.</p>
             <a class="button-default" href="https://cwiki.apache.org/confluence/display/METRON/Community+Resources#CommunityResources-ApacheMetronCommunityResources" target="_blank">LEARN MORE</a>
         </div>
 </section>
 
-<section class="events-section feature" id="getinvolved">
+<section class="intro-block" id="getinvolved">
         <div class="text-center">
           <h2>Get Involved</h2>
         </div>
-        <div class="hover-btn text-center">
-            <p>Wish to contribute to Apache Metron?. Follow these simple steps.</p>
+        <div class="content-960 hover-btn text-center">
+            <p> Do you want to contribute to Apache Metron? Follow these simple steps to subscribe to the user and development mailing lists, familiarize yourself with the Metron code, set up your development environment, and start contributing.</p>
             <a class="button-default" href="https://cwiki.apache.org/confluence/display/METRON/Community+Resources#CommunityResources-JointheCommunity-GetingStarted" target="_blank">Take Me There</a>
         </div>
 </section>

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/9041615a/site/css/default.css
----------------------------------------------------------------------
diff --git a/site/css/default.css b/site/css/default.css
index 5a84bf8..c1930de 100644
--- a/site/css/default.css
+++ b/site/css/default.css
@@ -4272,61 +4272,6 @@ svg {
 .content-carousal .learn-more {
   font-size: 16px; }
 
-/*overlay */
-.outer-box {
-  display: none;
-  position: fixed;
-  left: 0;
-  top: 0;
-  background: url(../images/footer-overlay-bg.jpg) repeat;
-  width: 100%;
-  height: 100%;
-  float: left;
-  z-index: 11;
-  overflow-y: auto; }
-  .outer-box .overlay-form {
-    text-align: center;
-    height: 100%;
-    overflow: scroll; }
-  .outer-box .close-video {
-    position: absolute;
-    top: 30px;
-    right: 22px;
-    background: white url(../images/close-icon.png);
-    height: 36px;
-    width: 36px;
-    border-radius: 50%;
-    text-indent: -9999px;
-    background-position: 0 36px;
-    cursor: pointer; }
-    .outer-box .close-video > img {
-      width: 24px;
-      height: 24px;
-      cursor: pointer;
-      position: relative;
-      top: -3px; }
-      @media (min-width: 596px) and (max-width: 749px) {
-        .outer-box .close-video > img {
-          width: 20px;
-          height: 20px; } }
-      @media (min-width: 480px) and (max-width: 595px) {
-        .outer-box .close-video > img {
-          width: 16px; } }
-      @media (min-width: 300px) and (max-width: 479px) {
-        .outer-box .close-video > img {
-          width: 15px;
-          height: 15px; } }
-  .outer-box .video iframe {
-    width: 560px;
-    height: 315px; }
-  .outer-box .loader {
-    position: relative;
-    top: 0;
-    bottom: 0;
-    background: url("../images/loader1.gif") no-repeat;
-    text-align: center;
-    background-position: 50%; }
-
 #video {
   margin: auto; }
   #video iframe {
@@ -7913,7 +7858,7 @@ nav .main-menu > li.mobile-only {
   max-width: 960px;
   margin: 0 auto; }
 .intro-block h2 {
-  color: #404041;
+  color: #d4d4d7;
   margin-bottom: 12px; }
 .intro-block h5 {
   line-height: 27px;
@@ -11140,7 +11085,7 @@ nav .main-menu > li.mobile-only {
     margin-top: 20px;
     line-height: inherit; }
   .hero-second-level .bg-img {
-    height: 250px; }
+    height: 265px; }
     .hero-second-level .bg-img img {
       width: auto; }
 
@@ -11452,5 +11397,6 @@ nav .main-menu > li.mobile-only {
 	.darken {
 		background: #1f212a;
 		}
-
-/*# sourceMappingURL=default.css.map */
+    .disclaimer{
+      font-size:13px;
+    }

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/9041615a/site/documentation/index.md
----------------------------------------------------------------------
diff --git a/site/documentation/index.md b/site/documentation/index.md
index 6640f7b..956cbf3 100644
--- a/site/documentation/index.md
+++ b/site/documentation/index.md
@@ -28,32 +28,44 @@ title: Apache Metron Documentation
     </div>  
 </section>
 
-<section class="events-section feature" id="quickstart">
-    <div class="text-center">
-        <h2>Quick Start</h2>
-    </div>
-    <div class="hover-btn text-center">
-        <p>Get started on setting up a Dev Environment</p>
-        <a class="button-default" href="https://cwiki.apache.org/confluence/display/METRON/Quick+Start" target="_blank">LEARN MORE</a>
+<section class="intro-block" id="quickstart">
+    <div class="wrapper">
+        <div class="text-center">
+            <h2>Quick Start</h2>
+        </div>
+        <div class="content-960 hover-btn text-center">
+            <p>The Quick Start installation fully automates the provisioning and deployment of Apache Metron and all necessary prerequisites on a single, virtualized host running on VirtualBox.</p>
+            <br>
+            <p> This image is designed for quick deployment of a single node Metron cluster running on VirtualBox. This platform is ideal for use by Metron developers. It uses a base image that has been pre-loaded with Ambari and HDP.</p>
+            <a class="button-default" href="https://cwiki.apache.org/confluence/display/METRON/Quick+Start" target="_blank">LEARN MORE</a>
+        </div>
     </div>
 </section>
 
-<section class="events-section feature darken" id="installation">
-    <div class="text-center">
-        <h2>Installation</h2>
-    </div>
-    <div class="hover-btn text-center">
-        <p>Steps to quickly spin up a Metron Instance</p>
-        <a class="button-default" href=" https://cwiki.apache.org/confluence/display/METRON/Installation" target="_blank">LEARN MORE</a>
-    </div>
+<section class="events-section info-block darken" id="installation">
+    <div class="wrapper"><div class="text-center">
+                <h2>Installation</h2>
+            </div>
+            <div class="col-two text-center">
+                <h5 class="bold blue-text">Ansible-based Vagrant single node VM install</h5> <br>      
+                <p>This is the best place to play with Metron first. This approach uses the Quick Start installation which automates the provisioning and deployment of Apache Metron on a single, virtualized host running on VirtualBox.</p>
+            </div>
+            <div class="col-two text-center">
+                <h5 class="bold blue-text">Fully automated 10 Node Ansible-based install on AWS using Ambari blueprints and AWS APIs</h5> <br>                
+                <p>If you want a more realistic setup of the Metron application, use this approach. This install creates a full-functioning, end-to-end, multi-node cluster running Apache Metron. Keep in mind that this install will spin up 10 m4.xlarge EC2 instances by default.</p>
+            </div>
+            </div>
+<div class="hover-btn text-center">
+    			<a class="button-default" href=" https://cwiki.apache.org/confluence/display/METRON/Installation" target="_blank">LEARN MORE</a>
+    		</div>
 </section>
 
-<section class="events-section feature" id="docshome">
+<section class="intro-block" id="docshome">
     <div class="text-center">
         <h2>DOCS Home</h2>
     </div>
-    <div class="hover-btn text-center">
-            <p>Apache Metron Documents</p>
-            <a class="button-default" href=" https://cwiki.apache.org/confluence/display/METRON/Documentation" target="_blank">LEARN MORE</a>
+    <div class="content-960 hover-btn text-center">
+        <p> Apache Metron documentation provides information on quickly getting started with Metron, performing a full installation, adding additional data sources, and using Metron to triage alerts. Metron documentation is currently a work in progress. Please check back again later as we continue to grow this documentation set.</p>
+        <a class="button-default" href=" https://cwiki.apache.org/confluence/display/METRON/Documentation" target="_blank">LEARN MORE</a>
     </div>
 </section>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/9041615a/site/js/angular-animate.min.js
----------------------------------------------------------------------
diff --git a/site/js/angular-animate.min.js b/site/js/angular-animate.min.js
index a7d2f27..62eff5e 100644
--- a/site/js/angular-animate.min.js
+++ b/site/js/angular-animate.min.js
@@ -53,4 +53,3 @@ g=D(k,a,b,d,function(a){h(!1===a)});return e})});return f}function C(a,b,d,e,g){
 b.cancel():b.end()})}}}var w=!1;3===arguments.length&&va(d)&&(v=d,d=null);v=pa(v);d||(d=a.attr("class")||"",v.addClass&&(d+=" "+v.addClass),v.removeClass&&(d+=" "+v.removeClass));var x=v.addClass,G=v.removeClass,J=e(d),k,p;if(J.length){var L,O;"leave"==b?(O="leave",L="afterLeave"):(O="before"+b.charAt(0).toUpperCase()+b.substr(1),L=b);"enter"!==b&&"move"!==b&&(k=C(a,b,v,J,O));p=C(a,b,v,J,L)}if(k||p){var l;return{$$willAnimate:!0,end:function(){l?l.end():(w=!0,q(),ga(a,v),l=new c,l.complete(!0));return l},
 start:function(){function b(c){w=!0;q();ga(a,v);l.complete(c)}if(l)return l;l=new c;var d,e=[];k&&e.push(function(a){d=k(a)});e.length?e.push(function(a){q();a(!0)}):q();p&&e.push(function(a){d=p(a)});l.setHost({end:function(){w||((d||Q)(void 0),b(void 0))},cancel:function(){w||((d||Q)(!0),b(!0))}});c.chain(e,b);return l}}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(a,c){function d(c){return a(c.element,
 c.event,c.classes,c.options)}return function(a){if(a.from&&a.to){var b=d(a.from),q=d(a.to);if(b||q)return{start:function(){function a(){return function(){r(d,function(a){a.end()})}}var d=[];b&&d.push(b.start());q&&d.push(q.start());c.all(d,function(a){e.complete(a)});var e=new c({end:a(),cancel:a()});return e}}}else return d(a)}}]}])})(window,window.angular);
-//# sourceMappingURL=angular-animate.min.js.map

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/9041615a/site/js/angular.min.js
----------------------------------------------------------------------
diff --git a/site/js/angular.min.js b/site/js/angular.min.js
index ecdf967..ab26fbb 100644
--- a/site/js/angular.min.js
+++ b/site/js/angular.min.js
@@ -308,4 +308,3 @@ b.length<=e}}}}},Gc=function(){return{restrict:"A",require:"?ngModel",link:funct
 "PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,
 6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-\u00a4",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(a,
 c){var e=a|0,f=c;u===f&&(f=Math.min(b(a),3));Math.pow(10,f);return 1==e&&0==f?"one":"other"}})}]),H(P).ready(function(){de(P,yc)}))})(window,document);!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>');
-//# sourceMappingURL=angular.min.js.map

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/9041615a/site/js/local.js
----------------------------------------------------------------------
diff --git a/site/js/local.js b/site/js/local.js
deleted file mode 100644
index 2e32794..0000000
--- a/site/js/local.js
+++ /dev/null
@@ -1,612 +0,0 @@
-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();
-    }}
-);