wnw_show 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module WnwShow
2
2
  module Rails
3
- VERSION = "1.1.2"
3
+ VERSION = "1.1.3"
4
4
  end
5
5
  end
Binary file
@@ -13,10 +13,19 @@
13
13
  var imageUrlList = [ "image/1.png","image/2.png","image/3.png","image/4.png","image/5.png","image/6.png","image/7.png","image/8.png","image/9.png","image/10.png"];
14
14
 
15
15
  // メッセージ
16
- var message = "AさんBさん結婚おめでとう!<br/>みんなからのメッセージが届いています"
17
-
16
+ var message = {
17
+ html :"AさんBさん結婚おめでとう!<br/>みんなからのメッセージが届いています",
18
+ top : 50,
19
+ left : 150
20
+ }
18
21
  // ロゴ
19
- var logoUrl = "image/list_logo.png"
22
+ var logo = {
23
+ url : "image/list_logo.png",
24
+ width : 100,
25
+ height : 100,
26
+ top : 50,
27
+ left : 50
28
+ }
20
29
 
21
30
  // libが呼ばれるURLコンテキストパスを設定する
22
31
  // 例) "file:///C:/Users/fetaro/git/wnw_list"
@@ -28,7 +37,7 @@
28
37
  };
29
38
 
30
39
  //呼び出し
31
- wnw.list.display(imageUrlList,message,logoUrl,contextPath);
40
+ wnw.list.display(imageUrlList,message,logo,contextPath);
32
41
  };
33
42
  </script>
34
43
  <style type=text/css>
@@ -66,15 +66,9 @@ if (!wnw.list) wnw.list = {};
66
66
  var NEXT_BUTTON_ID = "nextButton";
67
67
  var PREV_BUTTON_ID = "prevButton";
68
68
  // ロゴ
69
- //var LOGO_HEIGHT = 150;
70
- var LOGO_WIDTH = 140;
71
- var LOGO_LEFT = 50;
72
- var LOGO_TOP = 30;
73
69
  var LOGO_Z_INDEX = 0;
74
70
  // 文字
75
71
  var MOJI_Z_INDEX = 0;
76
- var MOJI_TOP = 35;
77
- var MOJI_LEFT = 200;
78
72
  var MOJI_SIZE = 40;
79
73
  var MOJI_WIDTH= 1000;
80
74
  //var SOUND_FILE = "/sounds/SoundUnit.swf";//ピンが抜ける音
@@ -355,12 +349,11 @@ if (!wnw.list) wnw.list = {};
355
349
  // @param
356
350
  // imgUrlList : 画像のURLのリスト
357
351
  // msg : 画面上部に表示されるメッセージ
358
- // logoUrl : ロゴのURL
352
+ // logo : ロゴのオブジェクト
359
353
  // contextPath : ロードするhtmlのコンテキストパス
360
- function display(imgUrlList,msg,logoUrl,contextPath){
354
+ function display(imgUrlList,msg,logo,contextPath){
361
355
  gContextPath = contextPath;
362
356
  gMessage = msg;
363
-
364
357
  //背景
365
358
  $("body").css("background","url(" + wnw.list.assetPath(BACKGROUND_IMAGE) + ")")
366
359
  .append($("<div/>").attr("id","bord"))
@@ -383,25 +376,25 @@ if (!wnw.list) wnw.list = {};
383
376
  // ロゴ
384
377
  $("#bord").append(
385
378
  $("<img />")
386
- .attr("src",logoUrl)
379
+ .attr("src",logo.url)
387
380
  .css({
388
381
  "position" : "absolute",
389
- "top":LOGO_TOP,
390
- "left":LOGO_LEFT,
391
- "width":LOGO_WIDTH,
392
- //"height":LOGO_HEIGHT,
382
+ "top":logo.top,
383
+ "left":logo.left,
384
+ "width":logo.width,
385
+ "height":logo.height,
393
386
  "z-index":LOGO_Z_INDEX
394
387
  }));
395
388
 
396
389
  //文字
397
390
  $("body").append(
398
391
  $("<div />")
399
- .html(gMessage)
392
+ .html(msg.html)
400
393
  .css({
401
394
  "color":"#FFFFFF",
402
395
  "text-shadow": "0px 0px 10px gray",
403
- "top":MOJI_TOP,
404
- "left":MOJI_LEFT,
396
+ "top":msg.top,
397
+ "left":msg.left,
405
398
  "font-size":MOJI_SIZE,
406
399
  "width":MOJI_WIDTH,
407
400
  "opacity": 1,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wnw_show
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-20 00:00:00.000000000 Z
12
+ date: 2013-01-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Slideshow the images with Rails 3
15
15
  email: