From 60bfddd269710302c9a033ea63e6a5a744eda9b0 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Mon, 03 Mar 2014 16:54:49 +0000
Subject: [PATCH] Temp experiment for DOCS-117
---
src/site/resources/test.html | 81 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 81 insertions(+), 0 deletions(-)
diff --git a/src/site/resources/test.html b/src/site/resources/test.html
new file mode 100644
index 0000000..2f541b5
--- /dev/null
+++ b/src/site/resources/test.html
@@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<!--
+ ! CCPL HEADER START
+ !
+ ! This work is licensed under the Creative Commons
+ ! Attribution-NonCommercial-NoDerivs 3.0 Unported License.
+ ! To view a copy of this license, visit
+ ! http://creativecommons.org/licenses/by-nc-nd/3.0/
+ ! or send a letter to Creative Commons, 444 Castro Street,
+ ! Suite 900, Mountain View, California, 94041, USA.
+ !
+ ! You can also obtain a copy of the license at
+ ! trunk/opendj3/legal-notices/CC-BY-NC-ND.txt.
+ ! See the License for the specific language governing permissions
+ ! and limitations under the License.
+ !
+ ! If applicable, add the following below this CCPL HEADER, with the fields
+ ! enclosed by brackets "[]" replaced with your own identifying information:
+ ! Portions Copyright [yyyy] [name of copyright owner]
+ !
+ ! CCPL HEADER END
+ !
+ ! Copyright 2014 ForgeRock AS
+ !
+-->
+<html>
+<head>
+ <title>DOCS-117: Advertise latest stable doc release in in-progress documentation</title>
+ <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
+ <script type="text/javascript">
+ var product = "opendj";
+
+ $.getJSON( "http://mcraig.org/fr/latest.php", function( data ) {
+ var latest = data[product];
+ var url = "http://docs.forgerock.org/en/" + product + "/" + latest + "/";
+ $("<div><p class=\"latest\"><a href=\"" + url + "\">Stable release: " + latest + "</a></p></div>").appendTo("body");
+ });
+ </script>
+ <style type="text/css">
+ .latest {
+ color: white;
+ background-color: #111;
+ -moz-box-shadow: 2px 2px 20px #868686;
+ -moz-transform: rotate(45deg);
+ -moz-transform-origin: 50% 50%;
+ -webkit-transform: rotate(45deg);
+ -webkit-transform-origin: 50% 50%;
+ -ms-transform: rotate(45deg);
+ -ms-transform-origin: 50% 50%;
+ position: fixed;
+ width: 300px;
+ top: 45px;
+ right: -95px;
+ text-align: center;
+ }
+
+ .latest a {
+ color: white;
+ text-decoration: none;
+ }
+
+ .latest a:hover {
+ color: #f58220;
+ }
+ </style>
+</head>
+
+<body>
+
+ <h3>DOCS-117: Advertise latest stable doc release in in-progress documentation</h3>
+
+ <p>
+ This is an experiment using JSON from another domain.
+ </p>
+
+ <p>
+ In the upper right corner a banner should appear
+ with a link to the latest stable release of the "opendj" product docs.
+ </p>
+</body>
+</html>
\ No newline at end of file
--
Gitblit v1.10.0