Vorlage:ButtonOpenTab: Unterschied zwischen den Versionen
Aus DIQA-Homepage
(Added to the wiki via WikiImport-Script.) |
(Added to the wiki via WikiImport-Script.) |
||
Zeile 10: | Zeile 10: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | {| | + | {{#ifeq:{{{solid|}}}||<!-- |
− | + | solid background --><div class="diqabutton" style="background-color: {{{color|#A0B844}}}; margin: 0.4em;"><span class="buttontext {{#ifeq:{{{fontsize|}}}|small|small|}}"><html><a href="http://</html>{{SERVERNAME}}{{localurl:{{PAGENAME}}|expandsection={{{expandsection|}}}}}"<html> target="_self" class="openTab"> ▶ </html>{{{text|}}}<html></a></html></span></div>|<!-- | |
− | |}</includeonly> | + | transparent background --> |
+ | <span class="{{#ifeq:{{{fontsize|}}}|small|small|}}" style="color: black; margin: 0.4em;">▶ <html><a href="</html><nowiki>http://</nowiki>{{SERVERNAME}}{{localurl:{{PAGENAME}}|{{#ifeq:{{{expandsection|}}}|||expandsection={{{expandsection|}}}}}}}<html>" target="_self" style="color: black;" class="openTab"></html>{{{text|}}}<html></a></html></span> | ||
+ | }}</includeonly> |
Version vom 19. September 2018, 22:21 Uhr
opens an accordion tab.
uses a js-method to open the tab,as soon as jquery.ui has been loaded (the event handler is replaced in this case!) reloads the entire page if jquery has not been loaded.
requires:
- downloadpage.js
- #accordion on the page