You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2017/08/05 17:06:46 UTC
[3/5] incubator-guacamole-website git commit: GUACAMOLE-359:
Reorganize menu. Add links to required ASF resources.
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/89516b00/content/releases/0.9.9/index.html
----------------------------------------------------------------------
diff --git a/content/releases/0.9.9/index.html b/content/releases/0.9.9/index.html
index 6d63419..41771f4 100644
--- a/content/releases/0.9.9/index.html
+++ b/content/releases/0.9.9/index.html
@@ -17,83 +17,364 @@
<h1><a href="/">Apache Guacamole (incubating)</a></h1>
<ul id="navigation" class="menu">
+
+
+
+
+ <li>
+ <a href="/releases/"
+
+ class="download"
+ >Downloads</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="dropdown">
+
+ <a class="dropdown-toggle "
+ href="#">Docs</a>
+ <ul class="dropdown-menu">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="/api-documentation/"
+ >API</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="/doc/gug/"
+ >Manual</a>
+ </li>
+
+
+
+
+
+
+
+
+
+ </ul>
+ </li>
+
+
+
+
+
+
+
+
+ <li class="dropdown">
+
+ <a class="dropdown-toggle "
+ href="#">Community</a>
+ <ul class="dropdown-menu">
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="https://github.com/search?utf8=%E2%9C%93&q=repo%3Aapache%2Fincubator-guacamole-server+repo%3Aapache%2Fincubator-guacamole-client+repo%3Aapache%2Fincubator-guacamole-website&type=Repositories&ref=searchresults"
+ >GitHub</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="/open-source/"
+ >Contributing</a>
+ </li>
+
+
+
+
+
- <li><a
-
- href="/releases/"
-
-
- class="download"
- >Downloads</a></li>
+ <li>
+ <a href="/support/"
+ >Help / Support</a>
+ </li>
+
+
+
+ </ul>
+ </li>
- <li><a
-
- href="https://github.com/search?utf8=%E2%9C%93&q=repo%3Aapache%2Fincubator-guacamole-server+repo%3Aapache%2Fincubator-guacamole-client+repo%3Aapache%2Fincubator-guacamole-website&type=Repositories&ref=searchresults"
-
-
- class="github"
- >GitHub</a></li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="https://issues.apache.org/jira/browse/GUACAMOLE/"
+ >JIRA</a>
+ </li>
+
+
+
+
+
+
+
+
- <li><a
-
- href="/api-documentation/"
-
- >API</a></li>
+ <li>
+ <a href="http://www.apache.org/security/"
+ >Security</a>
+ </li>
+
+
+
+
+
- <li><a
-
- href="https://issues.apache.org/jira/browse/GUACAMOLE/"
+ <li class="dropdown">
- >JIRA</a></li>
+ <a class="dropdown-toggle apache"
+ href="#">Apache Software Foundation</a>
+ <ul class="dropdown-menu">
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="http://www.apache.org/"
+ >ASF Homepage</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
- <li><a
-
- href="/doc/gug/"
-
- >Manual</a></li>
+ <li>
+ <a href="http://www.apache.org/licenses/"
+ >License</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="http://www.apache.org/foundation/thanks.html"
+ >Thanks</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
- <li><a
-
- href="/open-source/"
-
- >Contributing</a></li>
+ <li>
+ <a href="http://www.apache.org/foundation/sponsorship.html"
+ >Sponsorship</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
- <li><a
-
- href="/support/"
-
- >Help / Support</a></li>
+ <li>
+ <a href="http://www.apache.org/foundation/policies/conduct.html"
+ >Code of Conduct</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ </ul>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
</ul>
</div>
@@ -457,5 +738,11 @@ interface layout and behavior, and improved support for Microsoft Edge.</p>
</script>
+ <!-- jQuery -->
+ <script src="/scripts/jquery.min.js" type="text/javascript"></script>
+
+ <!-- Dropdown toggle -->
+ <script src="/scripts/dropdown.js" type="text/javascript"></script>
+
</body>
</html>
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/89516b00/content/releases/index.html
----------------------------------------------------------------------
diff --git a/content/releases/index.html b/content/releases/index.html
index b2b2663..2a37ebc 100644
--- a/content/releases/index.html
+++ b/content/releases/index.html
@@ -17,83 +17,364 @@
<h1><a href="/">Apache Guacamole (incubating)</a></h1>
<ul id="navigation" class="menu">
+
+
+
+
+ <li>
+ <a href="/releases/"
+
+ class="download"
+ >Downloads</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="dropdown">
+
+ <a class="dropdown-toggle "
+ href="#">Docs</a>
+ <ul class="dropdown-menu">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="/api-documentation/"
+ >API</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="/doc/gug/"
+ >Manual</a>
+ </li>
+
+
+
+
+
+
+
+
+
+ </ul>
+ </li>
+
+
+
+
+
+
+
+
+ <li class="dropdown">
+
+ <a class="dropdown-toggle "
+ href="#">Community</a>
+ <ul class="dropdown-menu">
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="https://github.com/search?utf8=%E2%9C%93&q=repo%3Aapache%2Fincubator-guacamole-server+repo%3Aapache%2Fincubator-guacamole-client+repo%3Aapache%2Fincubator-guacamole-website&type=Repositories&ref=searchresults"
+ >GitHub</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="/open-source/"
+ >Contributing</a>
+ </li>
+
+
+
+
+
- <li><a
-
- href="/releases/"
-
-
- class="download"
- >Downloads</a></li>
+ <li>
+ <a href="/support/"
+ >Help / Support</a>
+ </li>
+
+
+
+ </ul>
+ </li>
- <li><a
-
- href="https://github.com/search?utf8=%E2%9C%93&q=repo%3Aapache%2Fincubator-guacamole-server+repo%3Aapache%2Fincubator-guacamole-client+repo%3Aapache%2Fincubator-guacamole-website&type=Repositories&ref=searchresults"
-
-
- class="github"
- >GitHub</a></li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="https://issues.apache.org/jira/browse/GUACAMOLE/"
+ >JIRA</a>
+ </li>
+
+
+
+
+
+
+
+
- <li><a
-
- href="/api-documentation/"
-
- >API</a></li>
+ <li>
+ <a href="http://www.apache.org/security/"
+ >Security</a>
+ </li>
+
+
+
+
+
- <li><a
-
- href="https://issues.apache.org/jira/browse/GUACAMOLE/"
+ <li class="dropdown">
- >JIRA</a></li>
+ <a class="dropdown-toggle apache"
+ href="#">Apache Software Foundation</a>
+ <ul class="dropdown-menu">
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="http://www.apache.org/"
+ >ASF Homepage</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
- <li><a
-
- href="/doc/gug/"
-
- >Manual</a></li>
+ <li>
+ <a href="http://www.apache.org/licenses/"
+ >License</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li>
+ <a href="http://www.apache.org/foundation/thanks.html"
+ >Thanks</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
- <li><a
-
- href="/open-source/"
-
- >Contributing</a></li>
+ <li>
+ <a href="http://www.apache.org/foundation/sponsorship.html"
+ >Sponsorship</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
- <li><a
-
- href="/support/"
-
- >Help / Support</a></li>
+ <li>
+ <a href="http://www.apache.org/foundation/policies/conduct.html"
+ >Code of Conduct</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ </ul>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
</ul>
</div>
@@ -366,5 +647,11 @@
</script>
+ <!-- jQuery -->
+ <script src="/scripts/jquery.min.js" type="text/javascript"></script>
+
+ <!-- Dropdown toggle -->
+ <script src="/scripts/dropdown.js" type="text/javascript"></script>
+
</body>
</html>
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/89516b00/content/scripts/dropdown.js
----------------------------------------------------------------------
diff --git a/content/scripts/dropdown.js b/content/scripts/dropdown.js
new file mode 100644
index 0000000..0cc62e7
--- /dev/null
+++ b/content/scripts/dropdown.js
@@ -0,0 +1,57 @@
+/*
+ * 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.
+ */
+
+/**
+ * Assigns click event handlers to all elements with the "dropdown-toggle"
+ * class which toggle the "open" class of the nearest ancestor element with the
+ * "dropdown" class. An additional click event handler is added to the body
+ * element which removes the "open" class of all "dropdown" elements, thus
+ * closing all open dropdowns when the user clicks outside the menu.
+ */
+(function initDropdowns() {
+
+ // Automatically toggle the open state of dropdowns when their trigger
+ // element is clicked
+ $('.dropdown-toggle').click(function dropdownClicked(e) {
+
+ // Find the relevant dropdown element
+ var clicked = $(e.target).closest('.dropdown');
+
+ // Close all other open dropdowns
+ $('.dropdown').not(clicked).removeClass('open');
+
+ // Toggle the open state of the clicked dropdown
+ clicked.toggleClass('open');
+ e.preventDefault();
+
+ });
+
+ // Prevent clicks within the menu from propogating to ancestor elements
+ $('.dropdown').click(function dropdownClicked(e) {
+ e.stopPropagation();
+ });
+
+ // Automatically close any open dropdown menus when the user clicks
+ // elsewhere
+ $('body').click(function closeDropdowns() {
+ $('.dropdown').removeClass('open');
+ });
+
+})();
+