Skip to content

Instantly share code, notes, and snippets.

@hogashi
Last active August 23, 2018 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hogashi/1a596fcb294a2957f35440904ec2b151 to your computer and use it in GitHub Desktop.
Save hogashi/1a596fcb294a2957f35440904ec2b151 to your computer and use it in GitHub Desktop.
藁半紙みたいな色ムラ出すやつ
document.body.insertAdjacentHTML('afterbegin',
[
'<div style="',
'position: fixed;',
'top: 10%;',
'left: 10%;',
'width: 80%;',
'height: 80%;',
'margin: 0;',
'padding: 0;',
'opacity: 0.3;',
'z-index: 9999;',
'background-image: linear-gradient(120deg, #faeb88, #f6f1d3, #faeb88, #f6f1d3, #faeb88, #f6f1d3, #faeb88, #f6f1d3, #faeb88, #f6f1d3, #faeb88, #f6f1d3);',
'"></div>'
].join('')
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment