sinatra-strap 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80d43da789a1eab90918dc91270fe1e849241ac9
4
- data.tar.gz: 903c0fb77dd5defed9ca1d257f99116a8797a69c
3
+ metadata.gz: d5b9b0be61b8f1302b676ebd057c4abc18e593c4
4
+ data.tar.gz: 88ded7f6cd4474747675f5e2133b4c6db53454ce
5
5
  SHA512:
6
- metadata.gz: a4741118c645e1243590b0277137234eaa7dcad7c04a1a384ecfd2de9d7b83c235ab7298ef755087ed66ce996dd78a53ae6c1309cdc5ceee65e59839f3998462
7
- data.tar.gz: 97d4eba0ac11e0fc7115f7e69ca3698d4be09e8d6ce504837003d7bca8bcccc0eb353038e4daa950df0a2c9c2bf5af95c8bd94c644ecfbdd51612f802c53ca4e
6
+ metadata.gz: 0a4b417ab6d42a088d661ba926ef93de4a45a4fb7fcc95d3a8aa31921af962549f48e708748a45500ca2a73167126316ead15d52cdf1f3bf5ba54c96a4e5991f
7
+ data.tar.gz: 6357a19b2f31ef8a7102a588b214b0059fbeb471bf222df6cd9fce5d63410abc1f2bc61737567a3d0abca9d4bff27f845f1d51e8041692d51baffed81d93482c
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Sinatra::Strap
1
+ # sinatra-strap
2
2
 
3
3
 
4
4
  ## Installation
@@ -18,4 +18,4 @@ open [http://localhost:4557]()
18
18
 
19
19
 
20
20
  ## Author
21
- Shohei Aoki <<shoaok@gmail.com>>
21
+ Shohei Aoki <<shoaok@gmail.com>>
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module Strap
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
@@ -1,58 +1,4 @@
1
1
  $(function(){
2
2
 
3
- $("td").on("click",function(){
4
- var id = $(this).attr("id");
5
- var num = id.split('-')[1];
6
- if($(this).data("clicked") == false){
7
- $(this).css("background-color","#99ff99");
8
- $(this).data("clicked",true);
9
- } else {
10
- $(this).css("background-color","#ffffff");
11
- $(this).data("clicked",false);
12
- }
13
- });
14
-
15
- $("#btn-erase").on("click",function(){
16
- $.each($("td"),function(index,td){
17
- $(td).css("background-color","#ffffff");
18
- $(td).data("clicked",false);
19
- })
20
- });
21
-
22
- $("#btn-init").on("click",function(){
23
- $.ajax({
24
- type: 'POST',
25
- url: '/initialize',
26
- data: "data",
27
- success: "success"
28
- });
29
- });
30
-
31
- $("#btn-rand").on("click",function(){
32
- $.ajax({
33
- type: 'POST',
34
- url: '/random',
35
- data: "data",
36
- success: "success"
37
- });
38
- });
39
-
40
- $("#btn-memory").on("click",function(){
41
- $.ajax({
42
- type: 'POST',
43
- url: '/memorize',
44
- data: "data",
45
- success: "success"
46
- });
47
- });
48
-
49
- $("#btn-img").on("click",function(){
50
- $.ajax({
51
- type: 'POST',
52
- url: '/imagine',
53
- data: "data",
54
- success: "success"
55
- });
56
- });
57
3
 
58
4
  });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-strap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shohei Aoki
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.4.5
114
+ rubygems_version: 2.5.0
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Sinatra app generator