Różnica pomiędzy stronami "MediaWiki:Common.js" i "MediaWiki:Common.css"

Z Henryk Dąbrowski
(Różnica między stronami)
Przejdź do nawigacji Przejdź do wyszukiwania
(Utworzono nową stronę "$('.spoiler').click( function(e) { var $this, $next, hidden; $this = $(this); $next = $this.next(); hidden = ($next.css('display') === 'none'); $ne…")
 
(Utworzono nową stronę "#bodyContent { text-align: justify; font-size: 0.92em; color: #3b2d23; } #contentSub { display: none !important; } #content { background-color: #fa…")
 
Linia 1: Linia 1:
$('.spoiler').click(
+
#bodyContent {
  function(e) {
+
     text-align: justify;
     var $this, $next, hidden;
+
     font-size: 0.92em;
     $this = $(this);
+
     color: #3b2d23;
     $next = $this.next();
+
}
    hidden = ($next.css('display') === 'none');
+
 
     $next.css('display', hidden ? 'inline-block' : 'none');
+
#contentSub {
    $this.text(
+
     display: none !important;
        hidden ?
+
}
            $this.data('hide') || 'Hide' :
+
 
            $this.data('show') || 'Show'
+
#content {
     );
+
     background-color: #faf2de;
  }
+
}
);
 
$('.spoilerText').hide();
 

Aktualna wersja na dzień 22:33, 18 wrz 2022

#bodyContent {
    text-align: justify;
    font-size: 0.92em;
    color: #3b2d23;
}

#contentSub {
    display: none !important;
}

#content {
    background-color: #faf2de;
}