사용자: 임시저장 레이어 스크롤 및 안드로이드 대응
This commit is contained in:
@ -75,6 +75,7 @@ if ($is_admin) {
|
|||||||
<?php
|
<?php
|
||||||
if(G4_IS_MOBILE) {
|
if(G4_IS_MOBILE) {
|
||||||
echo '<script> set_cookie("device_width", screen.width, 6, g4_cookie_domain); </script>'.PHP_EOL;
|
echo '<script> set_cookie("device_width", screen.width, 6, g4_cookie_domain); </script>'.PHP_EOL;
|
||||||
|
echo '<script src="<?php echo G4_URL; ?>/js/modernizr.custom.70111.js"></script>'.PHP_EOL; // overflow scroll 감지
|
||||||
}
|
}
|
||||||
//if(!defined('G4_IS_ADMIN'))
|
//if(!defined('G4_IS_ADMIN'))
|
||||||
echo $config['cf_add_script'];
|
echo $config['cf_add_script'];
|
||||||
|
|||||||
4
js/modernizr.custom.70111.js
vendored
Normal file
4
js/modernizr.custom.70111.js
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
|
||||||
|
* Build: http://modernizr.com/download/#-cssclasses-testallprops-css_overflow_scrolling
|
||||||
|
*/
|
||||||
|
;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(prefixes.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a){var e=a[d];if(!A(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+n.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),C(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().split(" "),p={},q={},r={},s=[],t=s.slice,u,v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e});for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},x(""),i=k=null,e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),Modernizr.addTest("overflowscrolling",function(){return Modernizr.testAllProps("overflowScrolling")});
|
||||||
@ -35,7 +35,9 @@
|
|||||||
|
|
||||||
/* 게시판 쓰기 */
|
/* 게시판 쓰기 */
|
||||||
#autosave_wrapper {position:relative}
|
#autosave_wrapper {position:relative}
|
||||||
#autosave_pop {z-index:10;position:absolute;top:24px;right:117px;padding:8px;width:300px;border:1px solid #565656;background:#fff}
|
#autosave_pop {z-index:10;position:absolute;top:24px;right:117px;padding:8px;width:300px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;overflow-y:scroll}
|
||||||
|
html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */
|
||||||
|
#autosave_pop strong {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
#autosave_pop div {text-align:right}
|
#autosave_pop div {text-align:right}
|
||||||
#autosave_pop button {margin:0;padding:0;border:0;background:transparent}
|
#autosave_pop button {margin:0;padding:0;border:0;background:transparent}
|
||||||
#autosave_pop ul {margin:10px 0;padding:0;border-top:1px solid #e9e9e9;list-style:none}
|
#autosave_pop ul {margin:10px 0;padding:0;border-top:1px solid #e9e9e9;list-style:none}
|
||||||
|
|||||||
@ -111,13 +111,13 @@ echo $option_hidden;
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div id="autosave_pop">
|
<div id="autosave_pop">
|
||||||
<strong class="sound_only">임시 저장된 글 목록</strong>
|
<strong>임시 저장된 글 목록</strong>
|
||||||
<div><button type="button" class="autosave_close"><img src="<?php echo $board_skin_url; ?>/img/btn_close.gif" alt="닫기"></button></div>
|
<div><button type="button" class="autosave_close"><img src="<?php echo $board_skin_url; ?>/img/btn_close.gif" alt="닫기"></button></div>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
// for 시작
|
// for 시작
|
||||||
?>
|
?>
|
||||||
<li><a href="">저장제목</a><span>일시 <button type="button" class="autosave_del">삭제</button></span></li>
|
<li><a href="#none" class="autosave_load">저장제목</a><span>일시 <button type="button" class="autosave_del">삭제</button></span></li>
|
||||||
<?php
|
<?php
|
||||||
// for 끝
|
// for 끝
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user