MediaWiki:Mobile.js: Unterschied zwischen den Versionen

 

/* $( document ).ready(function() {

   if(document.getElementById("content-collapsible-block-0")) {

document.getElementById("content-collapsible-block-0").className = "mf-section-1 collapsible-block open-block";

   }

}); */

$('#mw-mf-main-menu-button').ready(function() {

                   $('#mw-mf-main-menu-button')
      .attr('href', 'http://intimewiki.intime.de'+ document.location.host +'/DriverApp/')
      .attr('titleonclick', 'Zur Startseite');
   $('#mw-mf-main-menu-button')window.location.href = "http://"+ document.location.host +"/DriverApp/";')
      .removeAttr('class');
   $('#mw-mf-main-menu-button').html('');

            

});

$('#mw-mf-main-menu-button').click(function() {

                   window.location.href = "http://intimewiki.intime.de/DriverApp/"   .attr('title', 'Zur Startseite')
      .html('');

            

});


/*

$('#content-collapsible-block-0').on( 'ready', function( e ) {

    $('#content-collapsible-block-0').addClass('mf-section-1 collapsible-block open-block');

});

  • /


$( '.transclusion-container .additional' ).each(function() {

   var $elem = $(this);
   var $toggle = $('<a href="#" class="bs-icon-arrow-down"></a>');
   $toggle.on( 'click', function( e ) {
       $elem.toggleClass( 'show' );
       e.defaultPrevented = true;
       return false;
   });
   $toggle.insertBefore( $elem );

});

$( '.languageselector' ).each(function() {

   var languages = [ 'de', 'en', 'cz', 'pl', 'hu' ];
   var $selector = $('<select>');
   for( var i = 0; i < languages.length; i++ ) {
       var language = languages[i];
       var $option = $('<option>');
       $option.html( language  );
       $option.val( language  );
       $selector.append( $option );
   }
   $(this).append( $selector );

});

/* $( ).no-js-only, .client-js .jsonly {

   display: none;

}

  • /
/* $( document ).ready(function() {
        
            if(document.getElementById("content-collapsible-block-0")) {
        
        		document.getElementById("content-collapsible-block-0").className = "mf-section-1 collapsible-block open-block";
        
            }
        
        }); */
        
        
        
        $('#mw-mf-main-menu-button').ready(function() {
        
            $('#mw-mf-main-menu-button')
        
               .attr('href', 'http://intimewiki.intime.de/DriverApp/')
            
                   .attr('title', 'Zur Startseite');
            
                $('#mw-mf-main-menu-button').removeAttr('class');
            
                $('#mw-mf-main-menu-button').html('<i class="fas fa-home" style="font-size: 28px; margin-top: 2px; color: black !important;"></i>');
            
            });
            
            
            
            $('#mw-mf-main-menu-button').click(function() {
            
                window.location.href = "http://intimewiki.intime.de/DriverApp/"'+ document.location.host +'/DriverApp/')
            
                   .attr('onclick', 'window.location.href = "http://"+ document.location.host +"/DriverApp/";')
            
                   .removeAttr('class')
            
                   .attr('title', 'Zur Startseite')
            
                   .html('<i class="fas fa-home" style="font-size: 28px; margin-top: 2px; color: #7b7673 !important;"></i>');
        
        });
        
        
        
        
        
        /*
        
        
        
        $('#content-collapsible-block-0').on( 'ready', function( e ) {
        
             $('#content-collapsible-block-0').addClass('mf-section-1 collapsible-block open-block');
        
        });
        
        */
        
        
        
        
        
        
        
        $( '.transclusion-container .additional' ).each(function() {
        
            var $elem = $(this);
        
            var $toggle = $('<a href="#" class="bs-icon-arrow-down"></a>');
        
            $toggle.on( 'click', function( e ) {
        
                $elem.toggleClass( 'show' );
        
                e.defaultPrevented = true;
        
                return false;
        
            });
        
            $toggle.insertBefore( $elem );
        
        });
        
        
        
        $( '.languageselector' ).each(function() {
        
            var languages = [ 'de', 'en', 'cz', 'pl', 'hu' ];
        
            var $selector = $('<select>');
        
            for( var i = 0; i < languages.length; i++ ) {
            
                    var language = languages[i];
            
                    var $option = $('<option>');
        
                $option.html( language  );
        
                $option.val( language  );
        
        
        
                $selector.append( $option );
        
            }
        
            $(this).append( $selector );
        
        });
        
        
        
        /*
        
        $( ).no-js-only, .client-js .jsonly {
        
            display: none;
        
        }
        
        */
(8 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 7: Zeile 7:
 
$('#mw-mf-main-menu-button').ready(function() {
 
$('#mw-mf-main-menu-button').ready(function() {
 
     $('#mw-mf-main-menu-button')
 
     $('#mw-mf-main-menu-button')
       .attr('href', 'http://intimewiki.intime.de/DriverApp/')
+
       .attr('href', 'http://'+ document.location.host +'/DriverApp/')
       .attr('title', 'Zur Startseite');
+
       .attr('onclick', 'window.location.href = "http://"+ document.location.host +"/DriverApp/";')
    $('#mw-mf-main-menu-button').removeAttr('class');
+
      .removeAttr('class')
    $('#mw-mf-main-menu-button').html('<i class="fas fa-home" style="font-size: 28px; margin-top: 2px; color: black !important;"></i>');
+
      .attr('title', 'Zur Startseite')
});
+
      .html('<i class="fas fa-home" style="font-size: 28px; margin-top: 2px; color: #7b7673 !important;"></i>');
 
 
$('#mw-mf-main-menu-button').click(function() {
 
    window.location.href = "http://intimewiki.intime.de/DriverApp/";
 
 
});
 
});