| | |
| | | <replacevalue> |
| | | <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> |
| | | <script type="text/javascript"> |
| | | // On click, reformat <screen> commands for easier copying. |
| | | $(document).ready(function(){ |
| | | $(".screen").click(function(event){ |
| | | $(this).replaceWith( |
| | | "<pre class=\"screen\">" + |
| | | $(this).text().replace(/\n /g," ") + |
| | | "</pre>"); |
| | | }); |
| | | // On click, reformat <pre class="screen"> for easy copying. |
| | | $(".screen").live("click", function() { |
| | | $(this).replaceWith( |
| | | "<pre class=\"flat\">" + |
| | | $(this).text().replace(/\n /g," ") + "\n<!--" + $(this).text() + "-->" + |
| | | "</pre>"); |
| | | }); |
| | | $(".flat").live("click", function() { |
| | | $(this).replaceWith( |
| | | "<pre class=\"screen\">" + |
| | | $(this).html().replace(/(.|\n)+<!\-\-/m,"").replace(/\-\-\>/,"") + |
| | | "</pre>"); |
| | | </script> |
| | | <link rel="shortcut icon" href="http://forgerock.org/favicon.ico"> |
| | | </head></replacevalue> |
| | |
| | | <replacevalue> |
| | | <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> |
| | | <script type="text/javascript"> |
| | | // On click, reformat <screen> commands for easier copying. |
| | | $(document).ready(function(){ |
| | | $(".screen").click(function(event){ |
| | | $(this).replaceWith( |
| | | "<pre class=\"screen\">" + |
| | | $(this).text().replace(/\n /g," ") + |
| | | "</pre>"); |
| | | }); |
| | | // On click, reformat <pre class="screen"> for easy copying. |
| | | $(".screen").live("click", function() { |
| | | $(this).replaceWith( |
| | | "<pre class=\"flat\">" + |
| | | $(this).text().replace(/\n /g," ") + "\n<!--" + $(this).text() + "-->" + |
| | | "</pre>"); |
| | | }); |
| | | </script> |
| | | $(".flat").live("click", function() { |
| | | $(this).replaceWith( |
| | | "<pre class=\"screen\">" + |
| | | $(this).html().replace(/(.|\n)+<!\-\-/m,"").replace(/\-\-\>/,"") + |
| | | "</pre>"); |
| | | });</script> |
| | | <link rel="shortcut icon" href="http://forgerock.org/favicon.ico"> |
| | | </head></replacevalue> |
| | | </replace> |