OSDN Git Service

client is version0.4.22, update pettanr.outputConsole.
[pettanr/pettanr.git] / public / assets / common.js
index 23649d6..3ce68ba 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
  * pettanR common.js\r
- *   version 0.4.21\r
+ *   version 0.4.22\r
  * \r
  * author: itozyun\r
  */\r
@@ -1616,7 +1616,7 @@ pettanr.balloon = ( function() {
                vectorEnabled = ELM_BALLOON_ORIGIN !== null && pettanr.URL_PARAMS.vector !== false;\r
        if( IS_VML === true && pettanr.ua.VML === false) vectorEnabled = false;\r
 \r
-       var XBROWSER_BALLOON_CLASS = function( w, h, a){\r
+       var XBROWSER_BALLOON_CLASS = function( w, h, a ){\r
                var balloonElm = vectorEnabled === true ? ELM_BALLOON_ORIGIN.cloneNode( true) : document.createElement( 'img'), // pettanr.imageに変更\r
                        path = balloonElm.getElementsByTagName( 'path')[ 0],\r
                        shape = balloonElm.getElementsByTagName( 'shape')[ 0],\r
@@ -1628,12 +1628,12 @@ pettanr.balloon = ( function() {
                        DEG_TO_RAD = Math.PI / 180,\r
                        l = ',';\r
                \r
-               draw( a, w, h);\r
+               draw( a, w, h );\r
                \r
-               function draw( _a, _w, _h){\r
+               function draw( _a, _w, _h ){\r
                        a = _a !== undefined ? _a : a;\r
-                       w = _w !== undefined ? _w -PADDING_TOP *2 : w;\r
-                       h = _h !== undefined ? _h -PADDING_LEFT *2 : h;\r
+                       w = _w !== undefined ? _w - PADDING_TOP *2 : w;\r
+                       h = _h !== undefined ? _h - PADDING_LEFT *2 : h;\r
 \r
                        if( vectorEnabled === false){\r
                                balloonElm.setAttribute( 'src', balloonUrlBuilder( a));\r
@@ -1716,7 +1716,7 @@ pettanr.balloon = ( function() {
                        }\r
                }\r
                \r
-               function balloonUrlBuilder( _a){\r
+               function balloonUrlBuilder( _a ){\r
                        var d = 360 /NUM_BALLOON_IMAGE;\r
                        _a += 90 +d /2;\r
                        return [ 'system_pictures\/_w', _a < 360 -d /2 ? floor( _a /d) : 0, '.gif'].join( '');\r
@@ -1733,7 +1733,7 @@ pettanr.balloon = ( function() {
                                //draw( _a);\r
                        },\r
                        getURL: function(){\r
-                               return balloonUrlBuilder( a);\r
+                               return balloonUrlBuilder( a );\r
                        },\r
                        destroy: function(){\r
                                balloonElm.parentNode && balloonElm.parentNode.removeChild( balloonElm);\r