Kamel:J*/Spielwüste

aus Kamelopedia, der wüsten Enzyklopädie
Wechseln zu: Navigation, Suche

JQuery Klappdings[bearbeiten]

Visible. TRIG

Inline Test[bearbeiten]

Lorem Visible. TRIG ipsum.

jQuery(".jq_tr").click( function () {
    var $this = jQuery(this);
    var speed = "fast";
    if ($this.parents(".jq_k").hasClass("fade_slow"))
        speed = "slow";
    else if ($this.parents(".jq_k").hasClass("fade_immediate"))
        speed = 0;
    $this.parents(".jq_k").children(".jq_kd").show(speed);
    $this.parents(".jq_kd").hide(speed);
});

Akkordeon[bearbeiten]

Head 1

Body 1

Head 2

Head 3

Inline Test[bearbeiten]

Test | Head 1 Body 1 | Head 2 | Bla

jQuery('.jq_z .jq_h').click(function() {
    var $this = jQuery(this);
    var speed = "fast";
    if ($this.parents(".jq_z").hasClass("fade_slow"))
        speed = "slow";
    else if ($this.parents(".jq_z").hasClass("fade_immediate"))
        speed = 0;
    var $this = jQuery(this);
    $this.parents(".jq_z").children(".jq_a").hide(speed);
    $this.next(".jq_a").show(speed);
});