From 791d43ee34545849f8723f64d585dac68cef661c Mon Sep 17 00:00:00 2001 From: Kuniwak Date: Tue, 10 Mar 2015 10:08:37 +0900 Subject: [PATCH 1/5] Implement jQuery training --- test/stage1/index.html | 6 +- test/stage1/style.css | 4 +- test/stage1/tests.js | 244 +++++++++++++++++++++++++++++++++++------ 3 files changed, 216 insertions(+), 38 deletions(-) diff --git a/test/stage1/index.html b/test/stage1/index.html index 77cfa43c..6c354c82 100644 --- a/test/stage1/index.html +++ b/test/stage1/index.html @@ -16,7 +16,7 @@
  • 4
  • 4
  • 5
  • -
  • 6
  • +
  • 6
  • + + diff --git a/test/stage1/secret.js b/test/stage1/secret.js deleted file mode 100644 index 985e4279..00000000 --- a/test/stage1/secret.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -function secret(str) { - return Array.prototype.map.call(str, function(char) { - if(!char.match(/[A-Za-z]/)) return char; - - var charCode = char.charCodeAt(0); - if(charCode < 97) { - charCode = (charCode - 52) % 26 + 65; - } else { - charCode = (charCode - 84) % 26 + 97; - } - return String.fromCharCode(charCode); - }).join(''); -}; diff --git a/test/stage1/tests.js b/test/stage1/tests.js index ba6fab4a..2ccc6497 100644 --- a/test/stage1/tests.js +++ b/test/stage1/tests.js @@ -1,4 +1,3 @@ -/* global $, jQuery, HTMLCollection */ 'use strict'; describe('ステージ1(意図した DOM 要素を取得できるようになる)', function(){