12345910
anonymous No title
JavaScript
var memo = "";

module.exports = async function (context, req) {
    memo = memo  +  req.query.memo;
    context.res = {
        body: memo
    };
}
anonymous No title
JavaScript
function licencer_aws() {
  chrome.storage.sync.get("keyword", function (arrayInfo_result) {
    var array = arrayInfo_result.keyword;
    var param = "?LdKmkrASo=" + 'testkey' + "&Type=get";
    let sendParams = {
      AcountName: array[0],
      AcountID: array[1],
      ItemName: array[2],
      RakusatushaAcountName:array[3],
      RakusatushaName:array[4],
      AdressNum:array[5],
      Adress:array[6],
      PhoneNum:array[7],
      ItemAmt:array[8],
      Money:array[9],
      Shipping:array[10],
      Day:array[11],
      OrderNum:array[12],
      SubTotal:array[13],
      Shipping2:array[14],
      Total:array[15],
      Gift:array[16],
      TotalSum:array[17]
    }
    var requestURL = "https://xctz9p0pw6.execute-api.ap-northeast-1.amazonaws.com/dev";
    var request = new XMLHttpRequest();

    request.onreadystatechange = function()
    {
        var READYSTATE_COMPLETED = 4;
        var HTTP_STATUS_OK = 200;

        if( this.readyState == READYSTATE_COMPLETED
         && this.status == HTTP_STATUS_OK )
        {
            // レスポンスの表示
            alert( this.responseText );
        }
    }

    request.open( 'POST', requestURL);

    // サーバに対して解析方法を指定する
    request.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' );

    // データをリクエスト ボディに含めて送信する
    request.send( EncodeHTMLForm( sendParams ) );
  });
}

// HTMLフォームの形式にデータを変換する
function EncodeHTMLForm( data )
{
    var params = [];

    for( var name in data )
    {
        var value = data[ name ];
        var param = encodeURIComponent( name ) + '=' + encodeURIComponent( value );

        params.push( param );
    }

    return params.join( '&' ).replace( /%20/g, '+' );
}
anonymous No title
JavaScript
  let gameTabs = document.getElementsByClassName('gameTab');
  for (var i = 0; i < gameTabs.length; i++) {
    gameTabs[i].onclick = function() {
      console.log(this.innerText);
      if(this.innerHTML.match(/スプレッド/)){
        set_onclick();
        aws_send_message(this.innerText + 'スプレッド');
      } else {
        set_onclick();
        aws_send_message(this.innerText);
      }
    };
  }
anonymous No title
JavaScript
<html>
<head>
    <style> 
    textarea{border:none;}
    textarea{width: 600px;}
    textarea{height: 600px;}
    textarea{resize: none;}
    </style>
</head> 
<body>
 
<script type="text/javascript">
myMsg = "1988年に北海道壮瞥町で公式ルールが定められ、毎年2月に同町の昭和新山の麓で国際大会が行われている、7人ずつの2チームの競技者が互いに雪玉をぶつけ合うウィンタースポーツは何でしょう?";
myCnt = 0;
function myFunc(){
     document.myForm.myFormMes.value = myMsg.substring( 0 , myCnt ) + "_";
     myCnt = myCnt + 1;
}
</script>
<form name="myForm" style="resize:none;">
    <textarea  type="text" size="500" name="myFormMes" >
    </textarea>
</form>
<script type="text/javascript">
setInterval("myFunc()",200);
</script>
 
 </body>
</html>
anonymous No title
JavaScript
<html>
 <body>
 
<script type="text/javascript">
myMsg = "{{表面}}";
myCnt = 0;
function myFunc(){
     document.myForm.myFormMes.value = myMsg.substring( 0 , myCnt ) + "_";
     myCnt = myCnt + 1;
}
</script>
<form name="myForm"  >
    <input type="text" size="50" name="myFormMes" style="border:none" style="max-width:600px">
    </form>
<script type="text/javascript">
setInterval("myFunc()",200);
</script>
 
 </body>
</html>
anonymous No title
JavaScript
<html>
 <body>
 
<script type="text/javascript">
myMsg = "{{表面}}";
myCnt = 0;
function myFunc(){
     document.myForm.myFormMes.value = myMsg.substring( 0 , myCnt ) + "_";
     myCnt = myCnt + 1;
}
</SCRIPT>
<form name="myForm">
    <input type="text" size="500" name="myFormMes" style="border:none">
    </form>
<script type="text/javascript"><!--
setInterval("myFunc()",200);
</script>
 
 </body>
</html>
anonymous No title
JavaScript
<html>
 <body>
 
<script type="text/javascript">
myMsg = "{{表面}}";
myCnt = 0;

function myFunc(){
     document.myForm.myFormMes.value = myMsg.substring( 0 , myCnt ) + "_";
     myCnt = myCnt + 1;
}
</SCRIPT>

<form name="myForm">
<input type="text" size="500" name="myFormMes">
</form>
<script type="text/javascript"><!--
setInterval("myFunc()",200);
</script>
 
 </body>
</html>
anonymous YoutubeをDLできるやーつ
JavaScript
// コンソールに貼り付けて動画をシークすると…?
(function() {
  const downloaded = {};
  const origin = new URL([...document.head.getElementsByTagName('link')]
    .find(v => v.rel === 'preload' && v.href.indexOf('googlevideo') !== -1).href)
    .origin;
  const title = [...document.body.getElementsByTagName('meta')]
    .find(v => v.name === 'title')
    .content;

  function parseURL(url) {
    if (url.indexOf('videoplayback') === -1) return null;
    const range = url.match(/range=(\d+)-(\d+)/);
    return {
      type: url.indexOf('mime=video') !== -1 ? 'video' : 'audio',
      start: Number(range[1]),
      end: Number(range[2]),
    };
  }

  function stripRange(url) {
    return url.replace(/&range=\d+-\d+/, '');
  }

  function downloadLink(name, link) {
    const a = document.createElement('a');
    a.href = link;
    a.download = name;
    a.textContent = name;

    const player = document.body.getElementsByTagName('ytd-video-primary-info-renderer')[0];
    player.parentNode.insertBefore(document.createElement('br'), player);
    player.parentNode.insertBefore(a, player);
    console.log(a);
  }
  
  var origOpen = XMLHttpRequest.prototype.open;
  XMLHttpRequest.prototype.open = function(method, url) {
      const meta = parseURL(url);
      if (meta !== null) {
        this.addEventListener('load', function() {
          const mime = this.getResponseHeader('Content-Type');
          const match = mime.match(/(video|audio)\/(webm|mp4)/);
          if (match) {
            if (downloaded[meta.type] === undefined) {
              downloaded[meta.type] = true;
              downloadLink(`${title}.${meta.type[0]}.${match[2]}`, stripRange(url));
            }
          }
        });
      }
      origOpen.apply(this, arguments);
  };
})();

anonymous No title
JavaScript
function() {
  var _ret = document.querySelector('[data-checkout-payment-due-target]').dataset.checkoutPaymentDueTarget;
  if(_ret === undefined){
  	return _ret;
  }
  else{
  	return _ret / 100;
  }

}
anonymous FizzBuzz
JavaScript
(卑=猥=>猥?卑(猥-1).concat(((猥%3?'':'Fizz')+(猥%5?'':'Buzz'))||猥):[])(100).join(',')
Don't you submit code?
Submit
12345910
年末年始は機械学習・深層学習を勉強しませんか?
広告
未経験から最短でエンジニアへの転職を目指すなら