User:Kiokurashi/common.js
From IdleOn MMO Wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
$(document).ready(function() {
$.each($('.InputUsername'), function(){
var container = $(this);
$(this).text('Hello');
});
});
/* $(document).ready(function(){
$.each($('.bleh'), function(){
var container = $(this);
var url = 'https://raw.githubusercontent.com/BigCoight/IdleonWikiBot3.0/master/builds/templates/Warrior_template.json';
var x2 = parseFloat($(this).data('x2'));
var max = parseFloat($(this).data('max'));
var func1 = $(this).data('func1');
var y1 = parseFloat($(this).data('y1'));
var y2 = parseFloat($(this).data('y2'));
var func2 = $(this).data('func2');
$('.result1', container).text(0);
$('.result2', container).text(0);
$('.valInput', this).html('(<input id="inField" type="number" min="0" max="'+max+'" placeholder=" Level "/>) ');
$("#inField", this).change(function(){
var inVal = parseInt($(this).val());
$('.result1', container).text(lavaFunc(func1,inVal,x1,x2));
$('.result2', container).text(lavaFunc(func2,inVal,y1,y2));
});
});
}); */