User:Kiokurashi/common.js: Difference between revisions
From IdleOn MMO Wiki
Kiokurashi (talk | contribs) No edit summary |
Kiokurashi (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
$.each($('.InputUsername'), function(){ | $.each($('.InputUsername'), function(){ | ||
var container = $(this); | var container = $(this); | ||
$(this).html( | $(this).html('<span>Hello</span>'); | ||
}); | }); | ||
}); | }); |
Revision as of 09:15, 7 December 2022
$(document).ready(function() {
$.each($('.InputUsername'), function(){
var container = $(this);
$(this).html('<span>Hello</span>');
});
});
/* $(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));
});
});
}); */