{"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2F01240527.hateblo.jp%2Fentry%2F2014%2F07%2F04%2F010412\" title=\"\u304a\u8cb7\u3044\u7269\u30b2\u30fc\u30e0 JS - Reference\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Reference","version":"1.0","image_url":null,"url":"https://01240527.hateblo.jp/entry/2014/07/04/010412","author_name":"Python1992","published":"2014-07-04 01:04:12","blog_url":"https://01240527.hateblo.jp/","title":"\u304a\u8cb7\u3044\u7269\u30b2\u30fc\u30e0 JS","description":">\u8981\u7d20\u306e\u8ffd\u52a0\uff1avar imgElem =document.createElement('img'); appendChild(imgElem); >\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u304b\u3069\u3046\u304b\u7a7a\u306e\u914d\u5217\u3067\u5224\u5b9a var money = 1400; var num; var count = 0; var soldOut = []; //\u8cfc\u5165\u6e08\u307f\u304b\u3069\u3046\u304b\u5224\u5b9a\u3055\u305b\u308b\u305f\u3081\u306e\u914d\u5217 function buy(id,price){ //\u6240\u6301\u91d1\u3088\u308a\u9ad8\u3044\u3082\u306e\u306f\u8cb7\u3048\u306a\u3044 if(money - price<0 || soldOut[id] == 100){ //\u58f2\u308a\u5207\u308c\u306e\u6642\u3082\u8cb7\u3048\u306a\u3044\u3088\u3046\u306b alert('\u8cb7\u3048\u306a\u3044\u3088\uff01'); return; \u2026","categories":["\u3068\u3082\u307f"],"height":"190","type":"rich","provider_url":"https://hatena.blog","width":"100%","author_url":"https://blog.hatena.ne.jp/Python1992/"}