Difference between revisions of "MediaWiki:Common.js"

From Morloch Wiki
Jump to: navigation, search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
 
 
 
$(function () {
 
$(function () {
  
   var myElement = document.getElementById('cf');
+
   var myElement = document.getElementById('mw-coords-form');
   myElement.innerHTML = '<img src="http://morloch.shadowbaneemulator.com/images/6/6b/Whitemapvor.png">';
+
   myElement.innerHTML = '
 +
<form name="myForm" action="/action_page.php" onsubmit="return validateForm()" method="post">
 +
Name: <input type="text" name="fname">
 +
<input type="submit" value="Submit">
 +
</form>
 +
';
  
 
}());
 
}());

Latest revision as of 22:58, 6 February 2018

$(function () {

  var myElement = document.getElementById('mw-coords-form');
  myElement.innerHTML = '
<form name="myForm" action="/action_page.php" onsubmit="return validateForm()" method="post">
Name: <input type="text" name="fname">
<input type="submit" value="Submit">
</form>
';

}());