MediaWiki:Common.js: Difference between revisions

From FuturePath
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
$('#mw-mywiki-test').html('<!DOCTYPE html>
$('#mw-mywiki-test').html('<!DOCTYPE html>
<html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js" type="text/javascript"></script>
  <script src='https://cdn.tinymce.com/4/tinymce.min.js'></script>
<script src="http://dev.d20futurepath.com/roller.js" type="text/javascript"></script>
  <script>
<body>
  tinymce.init({
 
    selector: '#mytextarea'
<h1>Future Path Dice Rolling Tool</h1>
  });
 
  </script>
<p>Please input the dice IE: d20+d4:</p>
</head>
 
<input id="dice">
 
<button type="button" onclick="myFunction()">Submit</button>
 
<p id="diceRoll"></p>


<body>
<h1>TinyMCE Quick Start Guide</h1>
  <form method="post">
    <textarea id="mytextarea">Hello, World!</textarea>
  </form>
</body>
</body>
</html>');
</html>');

Revision as of 06:26, 10 August 2016

/* Any JavaScript here will be loaded for all users on every page load. */
$('#mw-mywiki-test').html('<!DOCTYPE html>
<html>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js" type="text/javascript"></script>
<script src="http://dev.d20futurepath.com/roller.js" type="text/javascript"></script>
<body>

<h1>Future Path Dice Rolling Tool</h1>

<p>Please input the dice IE: d20+d4:</p>

<input id="dice">

<button type="button" onclick="myFunction()">Submit</button>

<p id="diceRoll"></p>

</body>
</html>');