Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onload = () => {
- let script = null;
- script = document.createElement('script');
- document.body.appendChild(script);
- script.src = 'https://cdn.rawgit.com/MikeMcl/big.js/e6847e9d/big.min.js';
- let eq = document.querySelector('form p').innerHTML.split(' ')[0].replace('<sup>', 'e+').slice(0, -6);
- script.onload = () => {
- let result = new Big(eq).toFixed(0);
- console.log(result);
- document.querySelector('input[type=number]').value = result;
- // document.querySelector('input[type=submit]').click();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement