Skip to content

Instantly share code, notes, and snippets.

@renaco
Created January 11, 2018 23:09
Show Gist options
  • Save renaco/dcd827e9f4514c89a5484651d183fbb0 to your computer and use it in GitHub Desktop.
Save renaco/dcd827e9f4514c89a5484651d183fbb0 to your computer and use it in GitHub Desktop.
Improvement consult sunat ruc
var getFrame = document.getElementsByName('leftFrame')[0];
var getImage = getFrame.contentWindow.document.querySelectorAll("[name='imagen']")[0];
var getButton = getFrame.contentWindow.document.querySelectorAll(".form-button")[0];
var getInput = getFrame.contentWindow.document.querySelectorAll("input[name='codigo']")[0];
getImage.parentElement.align = 'right';
getInput.parentElement.width = '';
getInput.style.fontSize = 15 + 'px';
getInput.style.width = 95 + '%';
getInput.style.padding = 5 + 'px';
getButton.style.border = 'none';
getButton.style.paddingTop = 5 + 'px';
getButton.style.paddingBottom = 5 + 'px';
getButton.style.width = 120 + 'px';
getButton.style.color = 'white';
getButton.style.backgroundColor = 'red';
getButton.style.fontSize = 15 + 'px';
getButton.style.textTransform = 'uppercase';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment