イベント定義：iPhone加速度
508941
function devicemotion(mx,my,mz) {
    gra.x = mx;
    gra.y = my;
    gra.z = mz;
}
870212
function open(opts, callback) {
        var that = void 0;
        jQuery(document.body).append(getContent.call(this, opts.id, opts));

        this.activeModal = jQuery("#" + opts.id);
        // 파트수집
        this.$ = {
          root: this.activeModal,
          header: this.activeModal.find('[data-modal-els="header"]'),
          body: this.activeModal.find('[data-modal-els="body"]')
        };

        if (opts.iframe) {
          this.$["iframe-wrap"] = this.activeModal.find('[data-modal-els="iframe-wrap"]');
          this.$["iframe"] = this.activeModal.find('[data-modal-els="iframe"]');
          this.$["iframe-form"] = this.activeModal.find('[data-modal-els="iframe-form"]');
          this.$["iframe-loading"] = this.activeModal.find('[data-modal-els="iframe-loading"]');
        } else {
          this.$["body-frame"] = this.activeModal.find('[data-modal-els="body-frame"]');
        }

        //- position 정렬
        this.align();

        that = {
          self: this,
          id: opts.id,
          theme: opts.theme,
          width: opts.width,
          height: opts.height,
          state: "open",
          $: this.$
        };

        if (opts.iframe) {
          this.$["iframe-wrap"].css({ height: opts.height });
          this.$["iframe"].css({ height: opts.height });

          // iframe content load
          this.$["iframe-form"].attr({ method: opts.iframe.method });
          this.$["iframe-form"].attr({ target: opts.id + "-frame" });
          this.$["iframe-form"].attr({ action: opts.iframe.url });
          this.$["iframe"].on("load", function () {
            that.state = "load";
            if (opts.iframeLoadingMsg) {
              this.$["iframe-loading"].hide();
            }
            onStateChanged.call(this, opts, that);
          }.bind(this));
          if (!opts.iframeLoadingMsg) {
            this.$["iframe"].show();
          }
          this.$["iframe-form"].submit();
        }

        if (callback) callback.call(that, that);

        if (!this.watingModal) {
          onStateChanged.call(this, opts, that);
        }

        // bind key event
        if (opts.closeToEsc) {
          jQuery(window).bind("keydown.ax-modal", function (e) {
            onkeyup.call(this, e || window.event);
          }.bind(this));
        }

        jQuery(window).bind("resize.ax-modal", function (e) {
          this.align(null, e || window.event);
        }.bind(this));

        this.$.header.off(ENM["mousedown"]).off("dragstart").on(ENM["mousedown"], function (e) {
          /// 이벤트 필터링 추가 : 버튼엘리먼트로 부터 발생된 이벤트이면 moveModal 시작하지 않도록 필터링
          var isButton = U.findParentNode(e.target, function (_target) {
            if (_target.getAttribute("data-modal-header-btn")) {
              return true;
            }
          });

          if (!opts.isFullScreen && !isButton && opts.disableDrag != true) {
            self.mousePosition = getMousePosition(e);
            moveModal.on.call(self);
          }
          if (isButton) {
            btnOnClick.call(self, e || window.event, opts);
          }
        }).on("dragstart", function (e) {
          U.stopEvent(e.originalEvent);
          return false;
        });

        this.activeModal.off(ENM["mousedown"]).off("dragstart").on(ENM["mousedown"], "[data-ax5modal-resizer]", function (e) {
          if (opts.disableDrag || opts.isFullScreen) return false;
          self.mousePosition = getMousePosition(e);
          resizeModal.on.call(self, this.getAttribute("data-ax5modal-resizer"));
        }).on("dragstart", function (e) {
          U.stopEvent(e.originalEvent);
          return false;
        });
      }
101312
function(){
		var pzl = this, col = pzl.cols, row = pzl.rows, out = [];

		/* URLにつけるオプション */
		if(pzl.type!==URL_KANPEN && pzl.type!==URL_HEYAAPP){
			if(pzl.type===URL_KANPENP || !!pzl.pflag){ out.push(pzl.pflag);}
		}

		/* サイズを表す文字列 */
		if(pzl.type===URL_KANPEN){
			if(pzl.pid==="kakuro"){
				out.push(row + 1);
				out.push(col + 1);
			}
			else if(pzl.pid==="sudoku"){
				out.push(col);
			}
			else{
				out.push(row);
				out.push(col);
			}
		}
		else if(pzl.type===URL_HEYAAPP){
			out.push([col, row].join("x"));
		}
		else{
			out.push(col);
			out.push(row);
		}

		/* サイズ以降のデータを設定 */
		out.push(pzl.body);

		/* 末尾が0-9,a-z,A-Z以外の時にt.coで情報が欠落しないよう/を追加 */
		var body = out.join("/");
		if(!body.charAt(body.length-1).match(/[a-zA-Z0-9]/)){ body+='/';}
		return body;
	}
73680
function __init(opts) {
    //扩展参数
    extend(this.options, opts || (opts = {}));
    //获取目标元素
    this.appearWatchElements = this.appearWatchElements || __getElements.call(this, '.' + this.options.cls);
    //初始化位置信息
    __initBoundingRect.call(this, this.appearWatchElements);
    //绑定事件
    __bindEvent.call(this);
  }
12954
function attachMiddleware(app, options) {
    // 日志中间件
    app.use(log.express());
    // 初始化中间件
    app.use(require('./lib/middleware/init'));
    // 设置上下文
    app.use(setContext);

    // 附加自定义中间件
    beforeMiddlewares.forEach(function (fn) {
        app.use(fn);
    });

    // 路由绑定
    router.use(app);

    // 附加自定义中间件
    afterMiddlewares.forEach(function (fn) {
        app.use(fn);
    });

    // 页面渲染中间件
    var renderHTML = require('./lib/middleware/renderHTML');
    app.use(renderHTML({
        templateData: options.templateData,
        indexFile: options.indexFile
    }));
    // 错误处理
    app.use(require('./lib/middleware/error'));
}
645263
void add(AppMsg appMsg) {
        msgQueue.add(appMsg);
        if (appMsg.mInAnimation == null) {
            appMsg.mInAnimation = AnimationUtils.loadAnimation(appMsg.getActivity(),
                    android.R.anim.fade_in);
        }
        if (appMsg.mOutAnimation == null) {
            appMsg.mOutAnimation = AnimationUtils.loadAnimation(appMsg.getActivity(),
                    android.R.anim.fade_out);
        }
        displayMsg();
    }
837427
function(){
		var cell0 = this.mouseCell;

		this.mouseCell = // 下の行へ続く
		this.firstCell = this.board.emptycell;

		this.firstPoint.reset();
		this.prevPos.reset();

		this.btn = '';
		this.inputData = null;

		this.bordermode = false;

		this.mousestart = false;
		this.mousemove  = false;
		this.mouseend   = false;
		
		if(this.puzzle.execConfig('dispmove') && !!cell0 && !cell0.isnull){ cell0.draw();}
	}
824143
function bindToggles() {
  // Watch for changes on the checkboxes in the device dropdown
  var iphone = $('#device-iphone');
  var android = $('#device-android');
  var windows = $('#device-windows');

  var devices = [iphone, android, windows];
  for(var i in devices) {
    devices[i].addEventListener('change', function(e) {
      var device = this.name;
      console.log('Device changed', device, this.checked);

      showDevice(device, this.checked);
      saveLastDevices(device, this.checked);
    });
  }
}
289025
function task () {
  run = true;
  var item = messages.shift();
  if (!item) {
    run = false;

  // 書き込み
  } else if ('message' in item) {
    if (output_) {
      write(item);
    } else {
      task();
    }

  // パスの変更
  } else if (item.path) {
    p_ = path.resolve(p_, item.path);
    task();

  // 出力のコントロール
  } else if ('output' in item) {
    output_ = item.output;
    task();

  } else {
    task();
  }
}
259116
function (el) {
            $el = $(el);
            $el.on('scroll', handleScroll);
            $el.on('touchstart', handleTouchstart);
            $el.on('touchmove', handleTouchmove);
            $el.on('touchend', handleTouchend);
        }
1224400
function __bindEvent() {
    var self = this;
    var handle = throttle(function () {
      __fire.apply(self, arguments);
    }, this.options.wait);
    if (this.__handle) {
      //避免重复绑定
      this.container.removeEventListener('scroll', this.__handle);
      this.__handle = null;
    }
    this.__handle = handle;
    this.container.addEventListener('scroll', handle, false);
    this.container.addEventListener('resize', function(ev) {
      __fire.apply(self, arguments);
    }, false);
    this.container.addEventListener('animationEnd', function() {
      __fire.apply(self, arguments);
    }, false);
    // android4.0以下
    this.container.addEventListener('webkitAnimationEnd', function() {
      __fire.apply(self, arguments);
    }, false);
    this.container.addEventListener('transitionend', function() {
      __fire.apply(self, arguments);
    }, false);
  }
362958
function () {
        var me = this
        var options = me._options
        me.loading = false
        if (me.direction == 'up') {

          fnTransition(options.domUp.dom, 300)
          options.domUp.dom.style.height = '0px'
          options.domUp.loadEndCall()
          // 下拉刷新后，加载更多的数据状态需要更新

        } else {
        }
        if (me.isData) {
          // 加载区修改样式
          options.domDown.initialCall()
        } else {
          // 如果没数据
          options.domDown.domNoData()
        }
      }
1139187
private void setupListenerCallbackMethods(final RecordMethodCache recordMethod, final Class<?> recordClass) {

        // リスナーオブジェクトに定義されたコールバックメソッドの抽出
        final XlsListener listenerAnno = annoReader.getAnnotation(recordClass, XlsListener.class);
        if(listenerAnno == null) {
            return;
        }

        final Class<?>[] listenerClasses = listenerAnno.value();

        for(Class<?> listenerClass : listenerClasses) {

            ListenerClassCache listenerCache = new ListenerClassCache(config.createBean(listenerClass));
            recordMethod.lisnterClasses.add(listenerCache);

            for(Method method : listenerClass.getMethods()) {
                method.setAccessible(true);

                if(annoReader.hasAnnotation(method, XlsPreLoad.class)) {
                    listenerCache.preLoadMethods.add(method);

                } else if(annoReader.hasAnnotation(method, XlsPostLoad.class)) {
                    listenerCache.postLoadMethods.add(method);

                } else if(annoReader.hasAnnotation(method, XlsPreSave.class)) {
                    listenerCache.preSaveMethods.add(method);

                } else if(annoReader.hasAnnotation(method, XlsPostSave.class)) {
                    listenerCache.postSaveMethods.add(method);

                }

            }
        }

    }
798157
function(iscount, type, code){ // type = 0:違う 1:numより小さい 2:numより大きい
		for(var c=0;c<this.board.cell.length;c++){
			var cell = this.board.cell[c];
			if(!cell.isValidNum()){ continue;}
			var num = cell.getNum(), count=cell.countDir4Cell(iscount);
			if((type===0 && num===count) || (type===1 && num<=count) || (type===2 && num>=count)){ continue;}
			
			this.failcode.add(code);
			if(this.checkOnly){ break;}
			cell.seterr(1);
		}
	}
1132958
function( HTMLCode ){
        var values = {},
            $parent = cheerio.load( utils.activateInstanceTags( HTMLCode ), { decodeEntities: false } ),
            $self = cheerio.load( utils.activateTemplateTags( HTMLCode ), { decodeEntities: false } ),
            templateAttr;

        // まず、親テンプレートから継承したプレースホルダから値を抽出する。
        // 次に、自身のプレースホルダから値を抽出する。
        // 親テンプレートから継承したプレースホルダがある場合、自身の値で上書きする。
        [
            [ $parent, [ "InstanceEditable" ] ],
            [ $self, [ "TemplateEditable" ] ]
        ]
            .map( function( testSet ){
                var $doc = testSet[0 ],
                    selectors = testSet[ 1 ];

                selectors.map( function( selector ){
                    $doc( selector ).each( function( index, element ){
                        values[ $doc( element ).attr( "name" ) ] =
                            this.convertResourcePathFormat( $doc( element ).html() );
                    }.bind( this ) );
                }, this );
            }, this );

        // <!-- InstanceBegin template --> の属性を取得
        templateAttr = HTMLCode.match( /<!-- InstanceBegin template="[^"]+"([^>]*) -->/i );
        if( templateAttr ){
            values[ "__template_attr__" ] = templateAttr[ 1 ];
        }

        utils.log( this.id, "defaultValues", values );

        return values;
    }
1262511
function Push(phonegap) {
        "use strict";
    
        var events = new Events({'bind': this});
    
        var push;
    
        var registrationId;
        Object.defineProperty(this, 'registrationId', {
            'get': function () {
                return registrationId;
            }
        });
    
        var device = 'android';
        var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
        if (iOS) device = 'ios';
    
        Object.defineProperty(this, 'device', {
            'get': function () {
                return device;
            }
        });
    
        function onRegistration(data) {
            if (!data) {
                return;
            }
            registrationId = data.registrationId;
            events.trigger('registration', registrationId);
        }
    
        function onNotification(data) {
    
            // var type = data.additionalData.type;
            // var coldstart = data.additionalData.coldstart;
            // var foreground = data.additionalData.foreground;
    
            events.trigger('notification', data);
            push.finish();
    
        }
    
        function onError(error) {
            beyond.logs.append('Push notification error: ' + error);
        }
    
        function onPhonegapDone() {
    
            if (typeof PushNotification !== 'object') {
                return;
            }
    
            var config = {
                "android": {
                    "senderID": beyond.params.pushNotifications.senderID
                },
                "ios": {
                    "alert": "true",
                    "badge": "true",
                    "sound": "true"
                    /*
                     "senderID": "...",
                     "gcmSandbox": "true"
                     */
                },
                "windows": {}
            };
    
            push = PushNotification.init(config);
    
            push.on('registration', onRegistration);
            push.on('notification', onNotification);
            push.on('error', onError);
    
        }
    
        if (phonegap.isPhonegap && beyond.params.pushNotifications) {
            phonegap.done(onPhonegapDone);
        }
    
    }
194225
function onClicksetPresetData(){
$("#onClicksetPresetDataBtn").prop('disabled', true);
    setPresetData().then(()=>{
        alert("書き込み完了");
        $("#onClicksetPresetDataBtn").prop('disabled', false);
        $("#onplayPresetDataBtn").prop('disabled', false);

    }).catch((e)=>{
        alert(e);
        $("#onClicksetPresetDataBtn").prop('disabled', false);
    })
}