/*
* pettanR system.js
- * version 0.4.23
+ * version 0.4.24
*
* author:
* itozyun
* 3-clause BSD
*/
-
-pettanr.log = ( function(){
- return {
- init: function(){}
- }
-})();
-
-pettanr.io = ( function(){
-
- return {
- init: function(){}
- }
-})();
-
/*
* 画像一覧は
* お気に入り画像一覧 > tag:ペン次郎 > ペン次郎:笑う
pettanr.finder = ( function(){
var FINDER_ARRAY = [],
ELM_ORIGIN_FINDER_LOCATION_ITEM = pettanr.util.pullHtmlAsTemplete( 'templete-finder-location-item'),
- ELM_ORIGIN_FINDER_ICON = pettanr.util.pullHtmlAsTemplete( 'templete-finder-icon'),
+ ELM_ORIGIN_FINDER_ICON = ( function(){
+ var forIE = pettanr.util.pullHtmlAsTemplete( 'templete-finder-icon-ie'),
+ modern = pettanr.util.pullHtmlAsTemplete( 'templete-finder-icon');
+ return pettanr.ua.isIE === true && pettanr.ua.ieVersion < 8 ? forIE : modern;
+ })(),
ELM_ORIGIN_CONTAINER = pettanr.util.pullHtmlAsTemplete( 'templete-finder-container'),
ICON_HEIGHT = pettanr.util.getElementSize( ELM_ORIGIN_FINDER_ICON).height,
ICON_CLASSNAME = 'finder-icon-thumbnail',
file, w, index, style, instansce,
onDownCallback, onEditorCallback, onViewerCallback, onActionCallback,
viewerList, editorList;
- ELM_WRAPPER.onmouseover = onOver;
- function onOver(){
- ELM_WRAPPER.style.backgroundColor = '#eee';
- }
- ELM_WRAPPER.onmouseout = onOut;
- function onOut(){
- ELM_WRAPPER.style.backgroundColor = '';
- }
ELM_WRAPPER.onclick = onDownClick;
function onDownClick(){
};
}
function resize(){
- ELM_WRAPPER.style.top = (index * ICON_HEIGHT) +'px';
+ // ELM_WRAPPER.style.top = (index * ICON_HEIGHT) +'px';
}
function onCollect(){
elmContainer.removeChild( ELM_WRAPPER );
})();
pettanr.entrance = pettanr.view.registerApplication( function(){
+ var wrap = document.getElementById('inner-wrapper'),
+ pageHeaderH = pettanr.util.getElementSize( document.getElementById( 'header' ) ).height,
+ instance = this;
this.displayName = 'Home';
this.ID = 'Home';
this.rootElement = document.getElementById('entrance');
this.onOpen = function( _w, _h, _option ){
- var pageHeaderH = pettanr.util.getElementSize( document.getElementById( 'header' ) ).height;
- document.getElementById('inner-wrapper').style.height = ( _h - pageHeaderH ) + 'px';
+ wrap.style.display = '';
+ wrap.style.height = ( _h - pageHeaderH ) + 'px';
}
this.onClose = function(){
- document.getElementById('inner-wrapper').style.height = '0px';
+ wrap.style.display = 'none';
}
this.onPaneResize = function( _w, _h){
- this.onOpen( _w, _h );
+ instance.onOpen( _w, _h );
}
});
pettanr.entrance.addToLancher();
elmDl.appendChild( elmDt);
elmDl.appendChild( elmDd);
}
+
+ var wrap = document.getElementById('inner-wrapper'),
+ pageHeaderH = pettanr.util.getElementSize( document.getElementById( 'header' )).height,
+ instance = this;
+
this.displayName = 'Debug';
this.ID = 'debug';
this.rootElement = document.getElementById( 'debug' );
this.onOpen = function( _w, _h, _option ){
- var pageHeaderH = pettanr.util.getElementSize( document.getElementById( 'header' )).height;
- document.getElementById( 'inner-wrapper' ).style.height = ( _h - pageHeaderH ) + 'px';
+ wrap.style.display = '';
+ wrap.style.height = ( _h - pageHeaderH ) + 'px';
}
this.onClose = function(){
- document.getElementById( 'inner-wrapper' ).style.height = '0px';
+ wrap.style.display = 'none';
}
this.onPaneResize = function( _w, _h ){
- pettanr.debug.onOpen( _w, _h );
+ instance.onOpen( _w, _h );
}
});
pettanr.debug.addToLancher();
elmIconTitle.firstChild.data = imgW + 'x' + imgH;
var zoom = 128 /( imgW > imgH ? imgW : imgH),
MATH_FLOOR = Math.floor
- h = MATH_FLOOR( imgH *zoom ),
- w = MATH_FLOOR( imgW *zoom );
+ h = MATH_FLOOR( imgH *zoom ),
+ w = MATH_FLOOR( imgW *zoom );
reversibleImage.elm.style.cssText = [
'width:', w, 'px;',
'height:', h +'px;',