Modified: brooklyn/site/index.html URL: http://svn.apache.org/viewvc/brooklyn/site/index.html?rev=1795513&r1=1795512&r2=1795513&view=diff ============================================================================== --- brooklyn/site/index.html (original) +++ brooklyn/site/index.html Thu May 18 12:37:51 2017 @@ -1,391 +1,373 @@ <!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> - + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<!DOCTYPE html> +<html lang="en"> <head> + <title>Home - Apache Brooklyn</title> - -<title>Home - Apache Brooklyn</title> - -<meta http-equiv="content-type" content="text/html; charset=utf-8"> -<meta name="viewport" content="width=device-width, initial-scale=1"> - -<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"> -<link href="/style/deps/octicons/octicons.css" rel="stylesheet"> -<link href="/style/deps/bootstrap-theme.css" rel="stylesheet"> - -<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> -<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> -<script type="text/javascript" src="/style/deps/jquery.cookie.js"></script> - - - -<link rel="stylesheet" href="/style/css/code.css" type="text/css" media="screen" /> -<link href="/style/css/website.css" rel="stylesheet"> - +<meta http-equiv="content-type" content="text/html; charset=utf-8" /> +<meta name="viewport" content="width=device-width, initial-scale=1" /> +<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" /> +<link href="/style/deps/octicons/octicons.css" rel="stylesheet" /> +<link href="/style/deps/bootstrap-theme.css" rel="stylesheet" /> +<link href="/style/deps/font-awesome-4.2.0/css/font-awesome.min.css" rel="stylesheet" /> +<link href="/style/deps/tooltip.css" rel="stylesheet" /> +<link href="/style/css/code.css" rel="stylesheet" /> +<link href="/style/css/website.css" rel="stylesheet" /> +<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> </head> +<body class="home"> +<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-menu" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a href="/" class="navbar-brand"> + <img src="/style/img/apache-brooklyn-logo-244px-wide.png" alt="Apache Brooklyn" /> + </a> + </div> + <div class="collapse navbar-collapse" id="main-menu"> + <ul class="nav navbar-nav navbar-right"> + + <li class="dropdown"> + + <a href="/learnmore/index.html" data-toggle="dropdown">learn more <span class="caret"></span></a> + + <ul class="dropdown-menu" role="menu"> + <li> + <a href="/learnmore/index.html">Learn More</a> + </li> + <li class="divider"></li> + + + <li > + <a href="/learnmore/blueprint-tour.html">Blueprint Tour + </a> + </li> + + + + <li > + <a href="/learnmore/features/index.html">Features + </a> + </li> + + + + <li > + <a href="/learnmore/theory.html">Theory + </a> + </li> + + + + <li > + <a href="/learnmore/catalog/index.html">Browse Catalog + </a> + </li> + + + </ul> + + + </li> + + <li class="dropdown"> + + <a href="/v/latest/start/index.html" data-toggle="dropdown">get started <span class="caret"></span></a> + + <ul class="dropdown-menu" role="menu"> + <li> + <a href="/v/latest/start/index.html">Get Started</a> + </li> + <li class="divider"></li> + + + <li > + <a href="/v/latest/start/running.html">Running Apache Brooklyn + </a> + </li> + + + + <li > + <a href="/v/latest/start/blueprints.html">Deploying Blueprints + </a> + </li> + + + + <li > + <a href="/v/latest/start/managing.html">Monitoring and Managing Applications + </a> + </li> + + + + <li > + <a href="/v/latest/start/policies.html">Policies + </a> + </li> + + + + <li > + <a href="/v/latest/start/concept-quickstart.html">Brooklyn Concepts Quickstart + </a> + </li> + + + </ul> + + + </li> + + <li class="dropdown"> + + <a href="/documentation/index.html" data-toggle="dropdown">documentation <span class="caret"></span></a> + + <ul class="dropdown-menu" role="menu"> + <li> + <a href="/documentation/index.html">Documentation</a> + </li> + <li class="divider"></li> + + + <li class="section"> + <a href="/v/latest/index.html">User Guide + </a> + </li> + <li class="divider"></li> + + + <li > + <a href="/v/latest/blueprints/creating-yaml.html">Writing Blueprints + </a> + </li> + + + + <li > + <a href="/v/latest/locations/index.html">Deploying Blueprints + </a> + </li> + + + + <li class="section"> + <a href="/v/latest/ops/index.html">Reference Guide + </a> + </li> + <li class="divider"></li> + + + <li > + <a href="/v/latest/dev/index.html">Developer Guide + </a> + </li> + + + <li class="divider"></li> + <li > + <a href="/meta/versions.html">Versions + </a> + </li> + + + + <li > + <a href="/documentation/other-docs.html">Other Resources + </a> + </li> + + + </ul> + + + </li> + + <li class="dropdown"> + + <a href="/community/index.html" data-toggle="dropdown">community <span class="caret"></span></a> + + <ul class="dropdown-menu" role="menu"> + <li> + <a href="/community/index.html">Community</a> + </li> + <li class="divider"></li> + + + <li > + <a href="/community/mailing-lists.html">Mailing Lists + </a> + </li> + + + + <li > + <a href="/community/irc.html">IRC + </a> + </li> + + + + <li > + <a href="/community/security/index.html">Security Advisories + </a> + </li> + + + + <li > + <a href="https://issues.apache.org/jira/browse/BROOKLYN">Bug Tracker (JIRA) + <span class="octicon octicon-link-external"></span></a> + </li> + + + + <li > + <a href="/community/how-to-contribute-docs.html">Contributing Documentation + </a> + </li> + + + </ul> + + + </li> + + <li class="dropdown"> + + <a href="/developers/index.html" data-toggle="dropdown">developers <span class="caret"></span></a> + + <ul class="dropdown-menu" role="menu"> + <li> + <a href="/developers/index.html">Developers</a> + </li> + <li class="divider"></li> + + + <li > + <a href="/developers/code/index.html">Get the Code + </a> + </li> + + + + <li > + <a href="/developers/how-to-contribute.html">How to Contribute + </a> + </li> + + + + <li > + <a href="/v/latest/dev/index.html">Developer Guide + </a> + </li> + + + + <li > + <a href="/developers/committers/index.html">Committer Guide + </a> + </li> + + + + <li > + <a href="/developers/code-standards.html">Code Standards + </a> + </li> + + + + <li > + <a href="/developers/links.html">Handy Places + </a> + </li> + + + + <li > + <a href="http://github.com/apache/brooklyn">GitHub + <span class="octicon octicon-link-external"></span></a> + </li> + + + + <li > + <a href="https://issues.apache.org/jira/browse/BROOKLYN">Bug Tracker (JIRA) + <span class="octicon octicon-link-external"></span></a> + </li> + + + </ul> + + + </li> + + <li class="dropdown"> + + <a href="/download/index.html" class="btn btn-default navbar-btn">download</a> + + </li> + + </ul> + </div> + </div> +</nav> -<body> - -<nav class="navbar navbar-default navbar-fixed-top" id="header" role="navigation"> - <div class="container-and-sidebars"> - <div class="container-sidebar-left feather landing"> - <a href="http://www.apache.org/"> - <img src="/style/img/feather.png" alt="[Apache]" width="80" class="flip navbar-feather"> - </a> - </div> +<main> + <section class="text-center hero"> - <div class="container container-between-sidebars top-menu"> - <div class="container-fluid"> - <!-- Brand and toggle get grouped for better mobile display --> - <div class="navbar-header"> - <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> - <span class="sr-only">Toggle navigation</span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - - </div> + <h1 id="span-classtext-apacheapachespan-span-classtext-brooklynbrooklynspan"><span class="text-apache">apache</span> <span class="text-brooklyn">brooklyn</span></h1> - <!-- Collect the nav links, forms, and other content for toggling --> - <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> - <ul class="nav navbar-nav navbar-right"> - - - <li class="dropdown"> - <a href="/learnmore/index.html">learn more</a> - <ul class="dropdown-menu" role="menu"> - <li> - <a href="/learnmore/index.html">Learn More</a> - </li> - <li class="divider"></li> - - <li> - - <a href="/learnmore/blueprint-tour.html">Blueprint Tour - </a> - - </li> - - <li> - - <a href="/learnmore/features/index.html">Features - </a> - - </li> - - <li> - - <a href="/learnmore/theory.html">Theory - </a> - - </li> - - <li> - - <a href="/learnmore/catalog/index.html">Browse Catalog - </a> - - </li> - - </ul> - </li> - - - - <li class=""> - <a href="/download/index.html">download</a> - </li> - - - - <li class="dropdown"> - <a href="/v/latest/start/index.html">get started</a> - <ul class="dropdown-menu" role="menu"> - <li> - <a href="/v/latest/start/index.html">Get Started</a> - </li> - <li class="divider"></li> - - <li> - - <a href="/v/latest/start/running.html">Running Apache Brooklyn - </a> - - </li> - - <li> - - <a href="/v/latest/start/blueprints.html">Deploying Blueprints - </a> - - </li> - - <li> - - <a href="/v/latest/start/managing.html">Monitoring and Managing Applications - </a> - - </li> - - <li> - - <a href="/v/latest/start/policies.html">Policies - </a> - - </li> - - <li> - - <a href="/v/latest/start/concept-quickstart.html">Brooklyn Concepts Quickstart - </a> - - </li> - - </ul> - </li> - - - - <li class="dropdown"> - <a href="/documentation/index.html">documentation</a> - <ul class="dropdown-menu" role="menu"> - <li> - <a href="/documentation/index.html">Documentation</a> - </li> - <li class="divider"></li> - - <li> - - <a href="/v/latest/index.html">User Guide - </a> - - <div class="dropdown_section_header"><hr></div> - - </li> - - <li> - - <a href="/v/latest/yaml/creating-yaml.html">YAML Blueprints - </a> - - </li> - - <li> - - <a href="/v/latest/java/index.html">Java Blueprints - </a> - - </li> - - <li> - - <a href="/v/latest/ops/index.html">Operations - </a> - - <div class="dropdown_section_header"><hr></div> - - </li> - - <li> - - <a href="/v/latest/dev/index.html">Developer Guide - </a> - - </li> - - <li> - - <div class="dropdown_new_section"><hr></div> - - <a href="/meta/versions.html">Versions - </a> - - </li> - - <li> - - <a href="/documentation/other-docs.html">Other Resources - </a> - - </li> - - </ul> - </li> - - - - <li class="dropdown"> - <a href="/community/index.html">community</a> - <ul class="dropdown-menu" role="menu"> - <li> - <a href="/community/index.html">Community</a> - </li> - <li class="divider"></li> - - <li> - - <a href="/community/mailing-lists.html">Mailing Lists - </a> - - </li> - - <li> - - <a href="/community/irc.html">IRC - </a> - - </li> - - <li> - - <a href="/community/security/index.html">Security Advisories - </a> - - </li> - - <li> - - <a href="https://issues.apache.org/jira/browse/BROOKLYN">Bug Tracker (JIRA) - <span class="octicon octicon-link-external"></span></a> - - </li> - - <li> - - <a href="/community/how-to-contribute-docs.html">Contributing Documentation - </a> - - </li> - - </ul> - </li> - - - - <li class="dropdown"> - <a href="/developers/index.html">developers</a> - <ul class="dropdown-menu" role="menu"> - <li> - <a href="/developers/index.html">Developers</a> - </li> - <li class="divider"></li> - - <li> - - <a href="/developers/code/index.html">Get the Code - </a> - - </li> - - <li> - - <a href="/developers/how-to-contribute.html">How to Contribute - </a> - - </li> - - <li> - - <a href="/v/latest/dev/index.html">Developer Guide - </a> - - </li> - - <li> - - <a href="/developers/committers/index.html">Committer Guide - </a> - - </li> - - <li> - - <a href="/developers/code-standards.html">Code Standards - </a> - - </li> - - <li> - - <a href="/developers/links.html">Handy Places - </a> - - </li> - - <li> - - <a href="http://github.com/apache/brooklyn">GitHub - <span class="octicon octicon-link-external"></span></a> - - </li> - - <li> - - <a href="https://issues.apache.org/jira/browse/BROOKLYN">Bug Tracker (JIRA) - <span class="octicon octicon-link-external"></span></a> - - </li> - - </ul> - </li> - - - </ul> - </div><!-- /.navbar-collapse --> - </div><!-- /.container-fluid --> - </div><!-- /.container --> - - <div class="container-sidebar-right"> - <div class="navbar-sidebar-right-icons"> - <a href="https://github.com/apache/brooklyn" class="navbar-icon navbar-icon-shift icon-github" - data-toggle="tooltip" data-placement="bottom" title="GitHub: apache/brooklyn"/> - <a href="https://twitter.com/#!/search?q=brooklyncentral" class="navbar-icon navbar-icon-shift icon-twitter" - data-toggle="tooltip" data-placement="bottom" title="Twitter: @brooklyncentral"/> - <a href="http://webchat.freenode.net/?channels=brooklyncentral" class="navbar-icon icon-irc" - data-toggle="tooltip" data-placement="bottom" title="IRC: freenode #brooklyncentral"/> - <!-- extra a element seems needed as landing page seems to copy the last element here (!?) - --> - <a href="/" style="width: 0px; height: 0px;"></a> - </div> - </div> - - </div> -</nav> + <h2 id="your-applications-any-clouds-any-containers-anywhere">Your applications, any clouds, any containers, anywhere.</h2> + <p><a href="#get-started" class="btn btn-primary btn-lg">Get started</a> +<a href="https://github.com/apache/brooklyn" class="btn btn-link btn-lg"><i class="fa fa-fw fa-github"></i> View code</a></p> -<div class="container slightlyNarrowContainer"> - <div class="jumbotron"> -<div id="apachebrooklynbanner"> </div> +</section> +<section class="container about"> +<h3 class="text-center">Use Apache brooklyn for …</h3> <div class="row"> + <div class="col-md-4"> + <p> +<span class="fa-stack fa-2x"> +<i class="fa fa-circle-thin fa-stack-2x "></i> +<i class="fa fa-archive fa-stack-1x modeling"></i> +</span> +</p> - <h3 id="model">model</h3> + <h4 id="modeling">Modeling</h4> <p><em>Blueprints</em> describe your application, stored as <em>text files</em> in <em>version control</em></p> @@ -394,11 +376,17 @@ under the License. <div class="text-muted"> <h4 id="jboss-bull-cassandra-bull-qpid-bull-nginx-bull-many-morelearnmorecatalog">JBoss ⢠Cassandra ⢠QPid ⢠nginx ⢠<a href="learnmore/catalog/">many more</a></h4> </div> - </div> + <div class="col-md-4"> + <p> +<span class="fa-stack fa-2x"> +<i class="fa fa-circle-thin fa-stack-2x "></i> +<i class="fa fa-rocket fa-stack-1x deploying"></i> +</span> +</p> - <h3 id="deploy">deploy</h3> + <h4 id="deploying">Deploying</h4> <p>Components <em>configured & integrated</em> across <em>multiple machines</em> automatically</p> @@ -407,11 +395,17 @@ under the License. <div class="text-muted"> <h4 id="amazon-ec2-bull-cloudstack-bull-openstack-bull-softlayer-bull-many-more">Amazon EC2 ⢠CloudStack ⢠OpenStack ⢠SoftLayer ⢠many more</h4> </div> - </div> + <div class="col-md-4"> + <p> +<span class="fa-stack fa-2x"> +<i class="fa fa-circle-thin fa-stack-2x "></i> +<i class="fa fa-cog fa-stack-1x managing"></i> +</span> +</p> - <h3 id="manage">manage</h3> + <h4 id="managing">Managing</h4> <p><em>Monitor</em> key application <em>metrics</em>; <em>scale</em> to meet demand; <em>restart</em> and <em>replace</em> failed components</p> @@ -422,206 +416,126 @@ under the License. </div> </div> -</div><!-- row --> - -<div style="text-align: center"> +</div> +</section> - <p><a class="btn btn-primary btn-lg" role="button" href="learnmore/">learn more</a> -<a class="btn btn-primary btn-lg" role="button" href="/v/latest/start/running.html">get started</a></p> +<section class="jumbotron get-started" id="get-started"> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <h3 class="text-center">Get started</h3> + <div class="shell"> + <div class="shell-toolbar"> + <i class="red"></i> + <i class="yellow"></i> + <i class="green"></i> + <span>bash</span> + </div> + +<div class="highlight"><pre><code class="language-bash" data-lang="bash">curl -SL --output apache-brooklyn-0.12.0-SNAPSHOT-vagrant.tar.gz <span class="s2">"https://repository.apache.org/service/local/artifact/maven/redirect?r=snapshots&g=org.apache.brooklyn&a=brooklyn-vagrant&v=0.12.0-SNAPSHOT&c=dist&e=zip"</span> +tar xvf apache-brooklyn-0.12.0-SNAPSHOT-vagrant.tar.gz +<span class="nb">cd </span>apache-brooklyn-0.12.0-SNAPSHOT-vagrant +vagrant up brooklyn</code></pre></div> + </div> + <div class="text-muted row"> + <div class="col-md-9">Paste the above at a Terminal prompt. It will download and start Brooklyn automatically.</div> + <div class="col-md-3 text-rigth">Looking for <a href="/v/latest/start/running.html">more installation options?</a></div> + </div> + <p>Congratulation! Next, let's <a href="/v/latest/start/blueprints.html">deploy a blueprint</a>.</p> + </div> + </div> </div> +</section> -</div> -<!-- jumbotron --> - -</div> - -<div id="footer"> - <div class="container"> - <div class="row"> - <div class="col-md-9 text-muted"> - Apache Brooklyn is distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License v2.0</a>. - </div> - <div class="col-md-3"> +<section class="container text-center social"> + <div class="row"> + <div class="col-md-12"> + <h3 class="text-center">Get in touch</h3> + <p>The community is available on the following channels in case you need anything</p> + </div> + <div class="col-sm-4"> + <a href="http://webchat.freenode.net/?channels=brooklyncentral" data-toggle="tooltip" data-placement="bottom" title="IRC: freenode #brooklyncentral"> <p> + <span class="fa-stack fa-2x"> + <i class="fa fa-circle-thin fa-stack-2x"></i> + <i class="fa fa-slack fa-stack-1x"></i> + </span> + </p> + <h4 id="deploy">IRC</h4> + </a> + </div> + <div class="col-sm-4"> + <a href="https://lists.apache.org/list.html?d...@brooklyn.apache.org" data-toggle="tooltip" data-placement="bottom" title="Mailing list: d...@brooklyn.apache.org"> + <p> + <span class="fa-stack fa-2x"> + <i class="fa fa-circle-thin fa-stack-2x"></i> + <i class="fa fa-envelope-o fa-stack-1x"></i> + </span> + </p> + <h4 id="deploy">Mailing list</h4> + </a> + </div> + <div class="col-sm-4"> + <a href="https://twitter.com/#!/search?q=brooklyncentral" data-toggle="tooltip" data-placement="bottom" title="Twitter: @brooklyncentral" /> + <p> + <span class="fa-stack fa-2x"> + <i class="fa fa-circle-thin fa-stack-2x"></i> + <i class="fa fa-twitter fa-stack-1x"></i> + </span> + </p> + <h4 id="deploy">Twitter</h4> + + </div> + </div> +</section> + +</main> +<footer class="container"> + <div class="row"> + <div class="col-md-9"> + <p>Apache Brooklyn is distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License v2.0</a>.</p> + </div> + <div class="col-md-3 text-right"> + <p> <a class="btn btn-sm btn-default" href="https://github.com/apache/brooklyn-docs/edit/master/website/index.md">Edit This Page</a> <a href="https://brooklyn.apache.org/community/how-to-contribute-docs.html" - data-toggle="tooltip" data-placement="top" title="How to Edit Documentation" data-delay="400"/> - <span class="octicon octicon-question octicon-footer"></span> + data-toggle="tooltip" data-placement="top" title="" data-delay="400" data-original-title="How to Edit Documentation"> + <span class="octicon octicon-question octicon-footer"></span> </a> - </p> - </div> + </p> </div> </div> -</div> - - - -<script language="JavaScript" type="application/javascript"> - - fix_padding_function = function () { - $('body').css('padding-top', parseInt($('#header').css("height"))+10); - $('body').css('padding-bottom', parseInt($('#footer').css("height"))+10); - }; - $(window).resize(fix_padding_function); - $(window).load(fix_padding_function); - - $(function () { - $('[data-toggle="tooltip"]').tooltip({ delay: { show: 600, hide: 100 }}) - }); - -/* generate anchors for headers, a la github and http://blog.parkermoore.de/2014/08/01/header-anchor-links-in-vanilla-javascript-for-github-pages-and-jekyll/ */ -var anchorForId = function (id, text) { - var anchor = document.createElement("a"); - anchor.className = "header-link"; - anchor.href = "#" + id; - anchor.innerHTML = "<i class=\"fa fa-link\"></i>"; - return anchor; -}; - -var linkifyAnchors = function (level, containingElement) { - var headers = contentBlock.find("h" + level); - for (var h = 0; h < headers.length; h++) { - var header = headers[h]; - if (typeof header.id !== "undefined" && header.id !== "") { - header.appendChild(anchorForId(header.id, $(header).text())); - } - } -}; - -$(function () { - contentBlock = $("#content_container"); - if (!contentBlock) return; - for (var level = 1; level <= 6; level++) { - linkifyAnchors(level, contentBlock); - } -}); - -<!-- Copying and clipboard support --> - -// first make the $% line starts not selectable - -$(function() { - $('div.highlight').attr('oncopy', 'handleHideCopy(this)'); - $('div.highlight').each(function(index,target) { - if ($(target).find('code.bash')) { - // Mark bash prompts from the start of each line (i.e. '$' or '%' characters - // at the very start, or immediately following any newline) as not-selectable. - // Handle continuation lines where a leading '$' or '%' is *not* a prompt character. - // (If example wants to exclude output, it can manually use class="nocopy".) - target.innerHTML = target.innerHTML.replace(/(^\s*|[^\\]\n)(<.*>)?([$%]|>) /g, '$1$2<span class="nocopy bash_prompt">$3 </span>'); - } - }); -}); - -// normal cmd-C (non-icon) copying - -function handleHideCopy(el) { -// var origHtml = $(el).clone(); - console.log("handling copy", el); - $(el).addClass('copying'); - $(el).find('.nocopy').hide(); - $(el).find('.clipboard_button').addClass('manual-clipboard-is-active'); - setTimeout(function(){ - $(el).removeClass('copying'); - $(el).find('.clipboard_button').removeClass('manual-clipboard-is-active'); - $(el).find('.nocopy').show(); -// $(el).html(origHtml); - }, 600); -} - -// and icon (flash) copying +</footer> -</script> - -<script src="/style/js/zeroclipboard/ZeroClipboard.min.js"></script> - -<script language="JavaScript" type="application/javascript"> +</body> -ZeroClipboard.config({ moviePath: '/style/js/zeroclipboard/ZeroClipboard.swf' }); +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> -$(function() { - $('div.highlight').prepend( - $('<div class="clipboard_container" title="Copy to Clipboard">'+ - '<div class="fa clipboard_button">'+ - '<div class="on-active"><div>Copied to Clipboard</div></div>'+ - '</div></div>')); - $('div.clipboard_container').each(function(index) { - var clipboard = new ZeroClipboard(); - clipboard.clip( $(this).find(":first")[0], $(this)[0] ); - var target0 = $(this).next(); - var target = target0.clone(); - target.find('.nocopy').remove(); - var txt = target.text(); - clipboard.on( 'dataRequested', function (client, args) { - handleHideCopy( target0.closest('div.highlight') ); //not necessary but nicer feedback - client.setText( txt ); - }); - }); -}); - - -<!-- search --> - $(function() { - $('#simple_google') - .submit(function() { - $('input[name="q"]').val("site:" + document.location.hostname + " " + $('input[name="brooklyn-search"]').val()); - return true; - }); - $('input[name="brooklyn-search"]').focus(function() { - if ($(this).val() === $(this).attr('placeholder')) { - $(this).val(''); - } - }) - .blur(function() { - if ($(this).val() === '') { - $(this).val($(this).attr('placeholder')); - } - }) - .blur(); - }); - - - <!-- analytics --> - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-30530918-1']); - _gaq.push(['_trackPageview']); - - (function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); - - -<!-- page warning (for archive pages) --> - - - function get_user_versions() { - return $.cookie("brooklyn_versions") ? $.cookie("brooklyn_versions").split(",") : []; - }; - function set_user_version(version) { - var version_cookie = get_user_versions(); - version_cookie.push(version); - $.cookie('brooklyn_versions', version_cookie, { expires: 365, path: '/' }); - $('#page_notes').fadeOut(); - event.preventDefault ? event.preventDefault() : event.returnValue = false; - }; - function set_user_versions_all() { - var version_cookie = get_user_versions(); - version_cookie.push("ALL"); - $.cookie('brooklyn_versions', version_cookie, { expires: 365, path: '/' }); - $('#page_notes').fadeOut(); - event.preventDefault ? event.preventDefault() : event.returnValue = false; - }; - function clear_user_versions() { - $.removeCookie('brooklyn_versions', { path: '/' }); - $('#page_notes').fadeIn('slow'); - event.preventDefault ? event.preventDefault() : event.returnValue = false; - }; +<script type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> +<script type="text/javascript" src="/style/deps/jquery.cookie.js"></script> +<script type="text/javascript" src="/style/js/zeroclipboard/ZeroClipboard.min.js"></script> +<script type="text/javascript" src="/style/deps/tooltip.js"></script> +<script type="text/javascript"> + ZeroClipboard.config({ moviePath: '/style/js/zeroclipboard/ZeroClipboard.swf' }); </script> - -</body> - -</html> +<script src="/style/js/public.js"></script> +</html> \ No newline at end of file