모바일: 음성캡챠 audio #412 에 따른 처리

This commit is contained in:
whitedot
2013-03-28 09:44:51 +09:00
parent f291e9f0c4
commit 203792bd6d
2 changed files with 4 additions and 6 deletions

View File

@ -183,12 +183,9 @@ function captcha_html($class='captcha')
$html .= "\n".'<script src="'.G4_GCAPTCHA_URL.'/gcaptcha.js"></script>';
$html .= '<fieldset id="captcha" class="'.$class.'">';
$html .= '<legend class="sound_only">자동등록방지</legend>';
if (G4_IS_MOBILE) $html .= '<audio src="'.$mp3_file_url.'?_='.$rand.'" controls></audio>';
$html .= '<img src="'.$jpg_file_url.'?_='.$rand.'" alt="자동등록방지 숫자">';
if (G4_IS_MOBILE) {
$html .= '<audio src="'.$mp3_file_url.'?_='.$rand.'" controls></audio>';
} else {
$html .= '<a href="'.$mp3_file_url.'?_='.$rand.'" id="captcha_mp3" target="_blank"><img src="'.G4_GCAPTCHA_URL.'/img/sound.gif" alt="숫자를 음성으로 듣기"></a>';
}
if (!G4_IS_MOBILE) $html .= '<a href="'.$mp3_file_url.'?_='.$rand.'" id="captcha_mp3" target="_blank"><img src="'.G4_GCAPTCHA_URL.'/img/sound.gif" alt="숫자를 음성으로 듣기"></a>';
$html .= '<input type="text" id="captcha_key" name="captcha_key" class="captcha_box frm_input" size="6" maxlength="6" required title="자동등록방지 숫자 입력">';
$html .= '<p class="sound_only">자동등록방지 숫자를 순서대로 입력하세요.</p>';
$html .= '</fieldset>';

View File

@ -32,8 +32,9 @@ pre {overflow-x:scroll;font-size:1.1em}
.img_fix {width:100%;height:auto}
/* 캡챠 자동등록(입력)방지 기본 */
#captcha audio {display:block;margin:0 0 0.5em}
#captcha input[type=text] {position:relative;top:0;left:-4px}
#captcha img {height:1.8em;border:1px solid #cfded8;border-right:0}
#captcha_mp3 img {padding:0.2em;height:22px !important;border:1px solid #cfded8;border-left:0;background:#494949}
/* 상단 레이아웃 */
#hd {background:#fff}