MediaWiki: Common.js: Unterschied zwischen den Versionen

Aus Joachim Camerarius (1500-1574)
Wechseln zu: Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* Das folgende JavaScript wird für alle Benutzer geladen. */
/* Das folgende JavaScript wird für alle Benutzer geladen. */
/**********************************/
$("#testDiv").load("http://microsoft.com");





Version vom 13. November 2018, 13:56 Uhr

/* Das folgende JavaScript wird für alle Benutzer geladen. */

/**********************************/
$("#testDiv").load("http://microsoft.com");


/***************************************************************/
/********* Animate stat-counter on main page ******************/
/**************************************************************/

$('.counting').each(function() {
  var $this = $(this),
      countTo = $this.attr('data-count');
  
  $({ countNum: $this.text()}).animate({
    countNum: countTo
  },

  {

    duration: 2000,
    easing:'linear',
    step: function() {
      $this.text(Math.floor(this.countNum));
    },
    complete: function() {
      $this.text(this.countNum);
      //alert('finished');
    }

  });  

});