User:Xenwolf/vector.js: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Xenwolf (talk | contribs)
m testing...
Xenwolf (talk | contribs)
m testing...
Line 4: Line 4:
   $("#firstHeading").text(header + " (" + numWords + " words)");
   $("#firstHeading").text(header + " (" + numWords + " words)");
   $("#firstHeading").click(function(){
   $("#firstHeading").click(function(){
     let text = "text from";
     var text = "hello";
     alert(text);
     alert(text);
   });  
   });  


});
});

Revision as of 21:50, 29 May 2020

$(document).ready(function(){
  var numWords = $("#mw-content-text > div").text().split(" ").length;
  var header = $("#firstHeading").text();
  $("#firstHeading").text(header + " (" + numWords + " words)");
  $("#firstHeading").click(function(){
    var text = "hello";
    alert(text);
  }); 

});