logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1212988 [1/4] - in /logging/log4php/trunk/src/site: ./ resources/css/ resources/js/ xdoc/docs/appenders/ xdoc/docs/layouts/
Date Sun, 11 Dec 2011 10:43:20 GMT
Author: ihabunek
Date: Sun Dec 11 10:43:19 2011
New Revision: 1212988

URL: http://svn.apache.org/viewvc?rev=1212988&view=rev
Log:
Added tabs to docs and added jquery which was required for bootstrap's implementation of tabs.

Added:
    logging/log4php/trunk/src/site/resources/js/bootstrap-tabs.js
    logging/log4php/trunk/src/site/resources/js/bootstrap-tabs.min.js
    logging/log4php/trunk/src/site/resources/js/jquery.js
    logging/log4php/trunk/src/site/resources/js/jquery.min.js
Modified:
    logging/log4php/trunk/src/site/resources/css/site.css
    logging/log4php/trunk/src/site/resources/js/site.js
    logging/log4php/trunk/src/site/site.vm
    logging/log4php/trunk/src/site/xdoc/docs/appenders/console.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/daily-file.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/echo.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/file.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/mail-event.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/mail.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/mongodb.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/null.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/pdo.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/php.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/rolling-file.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/socket.xml
    logging/log4php/trunk/src/site/xdoc/docs/appenders/syslog.xml
    logging/log4php/trunk/src/site/xdoc/docs/layouts/html.xml
    logging/log4php/trunk/src/site/xdoc/docs/layouts/pattern.xml
    logging/log4php/trunk/src/site/xdoc/docs/layouts/serialized.xml
    logging/log4php/trunk/src/site/xdoc/docs/layouts/simple.xml
    logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml
    logging/log4php/trunk/src/site/xdoc/docs/layouts/xml.xml

Modified: logging/log4php/trunk/src/site/resources/css/site.css
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/resources/css/site.css?rev=1212988&r1=1212987&r2=1212988&view=diff
==============================================================================
--- logging/log4php/trunk/src/site/resources/css/site.css (original)
+++ logging/log4php/trunk/src/site/resources/css/site.css Sun Dec 11 10:43:19 2011
@@ -65,6 +65,10 @@ a.newWindow {
 	background: url(../images/newwindow.png) right center no-repeat;
 	padding-right: 18px;
 }
+ul.tabs {
+	height: 35px;
+	margin-bottom: 8px;	
+}
 
 /* Sidebar menu 
 ----------------- */

Added: logging/log4php/trunk/src/site/resources/js/bootstrap-tabs.js
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/resources/js/bootstrap-tabs.js?rev=1212988&view=auto
==============================================================================
--- logging/log4php/trunk/src/site/resources/js/bootstrap-tabs.js (added)
+++ logging/log4php/trunk/src/site/resources/js/bootstrap-tabs.js Sun Dec 11 10:43:19 2011
@@ -0,0 +1,80 @@
+/* ========================================================
+ * bootstrap-tabs.js v1.4.0
+ * http://twitter.github.com/bootstrap/javascript.html#tabs
+ * ========================================================
+ * Copyright 2011 Twitter, Inc.
+ *
+ * Licensed 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( $ ){
+
+  "use strict"
+
+  function activate ( element, container ) {
+    container
+      .find('> .active')
+      .removeClass('active')
+      .find('> .dropdown-menu > .active')
+      .removeClass('active')
+
+    element.addClass('active')
+
+    if ( element.parent('.dropdown-menu') ) {
+      element.closest('li.dropdown').addClass('active')
+    }
+  }
+
+  function tab( e ) {
+    var $this = $(this)
+      , $ul = $this.closest('ul:not(.dropdown-menu)')
+      , href = $this.attr('href')
+      , previous
+      , $href
+
+    if ( /^#\w+/.test(href) ) {
+      e.preventDefault()
+
+      if ( $this.parent('li').hasClass('active') ) {
+        return
+      }
+
+      previous = $ul.find('.active a').last()[0]
+      $href = $(href)
+
+      activate($this.parent('li'), $ul)
+      activate($href, $href.parent())
+
+      $this.trigger({
+        type: 'change'
+      , relatedTarget: previous
+      })
+    }
+  }
+
+
+ /* TABS/PILLS PLUGIN DEFINITION
+  * ============================ */
+
+  $.fn.tabs = $.fn.pills = function ( selector ) {
+    return this.each(function () {
+      $(this).delegate(selector || '.tabs li > a, .pills > li > a', 'click', tab)
+    })
+  }
+
+  $(document).ready(function () {
+    $('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a')
+  })
+
+}( window.jQuery || window.ender );

Added: logging/log4php/trunk/src/site/resources/js/bootstrap-tabs.min.js
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/resources/js/bootstrap-tabs.min.js?rev=1212988&view=auto
==============================================================================
--- logging/log4php/trunk/src/site/resources/js/bootstrap-tabs.min.js (added)
+++ logging/log4php/trunk/src/site/resources/js/bootstrap-tabs.min.js Sun Dec 11 10:43:19
2011
@@ -0,0 +1,18 @@
+/* ========================================================
+ * bootstrap-tabs.js v1.4.0
+ * http://twitter.github.com/bootstrap/javascript.html#tabs
+ * ========================================================
+ * Copyright 2011 Twitter, Inc.
+ *
+ * Licensed 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(a){function b(a,b){b.find(">
.active").removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),a.addClass("active"),a.parent(".dropdown-menu")&&a.closest("li.dropdown").addClass("active")}function
c(c){var d=a(this),e=d.closest("ul:not(.dropdown-menu)"),f=d.attr("href"),g,h;if(/^#\w+/.test(f)){c.preventDefault();if(d.parent("li").hasClass("active"))return;g=e.find(".active
a").last()[0],h=a(f),b(d.parent("li"),e),b(h,h.parent()),d.trigger({type:"change",relatedTarget:g})}}"use
strict",a.fn.tabs=a.fn.pills=function(b){return this.each(function(){a(this).delegate(b||".tabs
li > a, .pills > li > a","click",c)})},a(document).ready(function(){a("body").tabs("ul[data-tabs]
li > a, ul[data-pills] > li > a")})}(window.jQuery||window.ender);
\ No newline at end of file



Mime
View raw message