A Pen by 擬音の妖精さん of neko

Thumbnail
This awesome code was written by neko_sugar310gb, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright neko_sugar310gb ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  擬音の妖精さん of neko</title>
  
  
  
  
  
</head>

<body>

  <button onclick="resetbtn();">リセット</button>
<div id="jsResult1"></div>
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/neko_sugar310gb/a-pen-by-andx64ecandx97f3andx306eandx5996andx7cbeandx3055andx3093-of-neko-RyXqMv */
var getStrageResult1 = document.getElementById('jsResult1').innerHTML;

// 引数のキー名のローカルストレージを作成
var storageResult1 = localStorage.setItem("storageResult1", getStrageResult1);
console.log(storageResult1);


// 引数のキー名のローカルストレージを作成

function resetbtn(){
  console.log("ok");
  localStorage.removeItem("storageResult1");
  localStorage.removeItem("storageResult2");
  localStorage.removeItem("storageResult3");
  localStorage.removeItem("storageResult4");
  localStorage.removeItem("storageResult5");
};

Comments