[Commits] r1442 - in core/trunk/docsrc/_theme/geoext: . static
commits at geoext.org
commits at geoext.org
Thu Oct 15 15:49:03 CEST 2009
Author: tschaub
Date: 2009-10-15 15:49:03 +0200 (Thu, 15 Oct 2009)
New Revision: 1442
Added:
core/trunk/docsrc/_theme/geoext/static/examples.js
Modified:
core/trunk/docsrc/_theme/geoext/layout.html
core/trunk/docsrc/_theme/geoext/static/geoext.css
Log:
Add anchors to example blocks.
Modified: core/trunk/docsrc/_theme/geoext/layout.html
===================================================================
--- core/trunk/docsrc/_theme/geoext/layout.html 2009-10-15 09:43:37 UTC (rev 1441)
+++ core/trunk/docsrc/_theme/geoext/layout.html 2009-10-15 13:49:03 UTC (rev 1442)
@@ -40,6 +40,10 @@
<script src="{{ pathto('_static/GeoExt.js', 1) }}"></script>
<script src="{{ pathto('_static/front-page.js', 1) }}"></script>
{% endif %}
+ {% if pagename == "examples" %}
+ <script type="text/javascript" src="http://extjs.cachefly.net/builds/ext-cdn-771.js"></script>
+ <script src="{{ pathto('_static/examples.js', 1) }}"></script>
+ {% endif %}
{% endblock %}
{% block header %}
Added: core/trunk/docsrc/_theme/geoext/static/examples.js
===================================================================
--- core/trunk/docsrc/_theme/geoext/static/examples.js (rev 0)
+++ core/trunk/docsrc/_theme/geoext/static/examples.js 2009-10-15 13:49:03 UTC (rev 1442)
@@ -0,0 +1,15 @@
+Ext.onReady(function() {
+ var blocks = Ext.select("div.exampleblock");
+ var exbase = "http://dev.geoext.org/trunk/geoext/examples/";
+ blocks.each(function(el) {
+ el.wrap({
+ tag: "a",
+ href: el.first().id.replace(
+ /^example-(.*)/,
+ exbase + "$1.html"
+ ),
+ cls: "examplelink",
+ target: "_blank"
+ });
+ });
+});
\ No newline at end of file
Modified: core/trunk/docsrc/_theme/geoext/static/geoext.css
===================================================================
--- core/trunk/docsrc/_theme/geoext/static/geoext.css 2009-10-15 09:43:37 UTC (rev 1441)
+++ core/trunk/docsrc/_theme/geoext/static/geoext.css 2009-10-15 13:49:03 UTC (rev 1442)
@@ -193,11 +193,22 @@
.exampleblock {
width: 225px;
- float: left;
- margin: 10px;
- height: 130px;
+ margin: 5px;
+ height: 110px;
overflow: auto;
}
.exampleblock h2 {
+ margin-top: 0px;
font-size: 1em;
}
+a.examplelink {
+ margin: 5px;
+ text-decoration: none !important;
+ float: left;
+ display: block;
+ border: 1px solid #FFFFFF;
+}
+a.examplelink:hover {
+ border: 1px solid #E5EDD3;
+ background-color: #F5FDE3
+}
More information about the Commits
mailing list