• Y
  • List All
  • Feedback
    • This Project
    • This Group
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
itnAdmin / itsm_sync star
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB
  • Files
  • Commit
  • Branches
itsm_syncsrcmainwebappWEB-INFjspcmmchptchacaptchaTest_back.jsp
Download as .zip file
File name
Commit message
Commit date
DATABASE
첫번째 커밋
07-30
service/impl
첫번째 커밋
07-30
src/main
첫번째 커밋
07-30
web
첫번째 커밋
07-30
.gitignore
첫번째 커밋
07-30
pom.xml
첫번째 커밋
07-30
searchQuery.sql
첫번째 커밋
07-30
File name
Commit message
Commit date
java/egovframework
첫번째 커밋
07-30
resources
첫번째 커밋
07-30
webapp
첫번째 커밋
07-30
File name
Commit message
Commit date
META-INF
첫번째 커밋
07-30
WEB-INF
첫번째 커밋
07-30
common
첫번째 커밋
07-30
crosseditor/binary/images
첫번째 커밋
07-30
css
첫번째 커밋
07-30
direct
첫번째 커밋
07-30
font-flexslider
첫번째 커밋
07-30
fonts
첫번째 커밋
07-30
html
첫번째 커밋
07-30
images
첫번째 커밋
07-30
img
첫번째 커밋
07-30
js
첫번째 커밋
07-30
passni5
첫번째 커밋
07-30
se2
첫번째 커밋
07-30
sso
첫번째 커밋
07-30
email.txt
첫번째 커밋
07-30
engleftmenu03.html
첫번째 커밋
07-30
engleftmenu04.html
첫번째 커밋
07-30
engleftmenu05.html
첫번째 커밋
07-30
engleftmenu06.html
첫번째 커밋
07-30
index.jsp
첫번째 커밋
07-30
File name
Commit message
Commit date
META-INF
첫번째 커밋
07-30
config/egovframework/springmvc
첫번째 커밋
07-30
jsp
첫번째 커밋
07-30
lib
첫번째 커밋
07-30
decorators.xml
첫번째 커밋
07-30
sitemesh.xml
첫번째 커밋
07-30
web.xml
첫번째 커밋
07-30
web.xml_230221
첫번째 커밋
07-30
web.xml_250726
첫번째 커밋
07-30
weblogic.xml
첫번째 커밋
07-30
File name
Commit message
Commit date
cmm
첫번째 커밋
07-30
cnt
첫번째 커밋
07-30
com/utl/wed
첫번째 커밋
07-30
cop
첫번째 커밋
07-30
egovframework/com/uss/ion/bnr
첫번째 커밋
07-30
kopost/search
첫번째 커밋
07-30
layout
첫번째 커밋
07-30
main
첫번째 커밋
07-30
sec
첫번째 커밋
07-30
sounds/ko/numbers
첫번째 커밋
07-30
sts/cst
첫번째 커밋
07-30
sym
첫번째 커밋
07-30
test/insa
첫번째 커밋
07-30
uat
첫번째 커밋
07-30
uss
첫번째 커밋
07-30
blank.jsp
첫번째 커밋
07-30
blankUserDirect.jsp
첫번째 커밋
07-30
File name
Commit message
Commit date
chptcha
첫번째 커밋
07-30
error
첫번째 커밋
07-30
fms
첫번째 커밋
07-30
sym
첫번째 커밋
07-30
uss/umt
첫번째 커밋
07-30
validator.jsp
첫번째 커밋
07-30
File name
Commit message
Commit date
captchaAudio.jsp
첫번째 커밋
07-30
captchaImg.jsp
첫번째 커밋
07-30
captchaTest.jsp
첫번째 커밋
07-30
captchaTest_back.jsp
첫번째 커밋
07-30
rosewiper 07-30 f66105a 첫번째 커밋 UNIX
Raw Open in browser Change history
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% String ctx = request.getContextPath(); //콘텍스트명 얻어오기. response.setHeader("Pragma-directive", "no-cache"); response.setHeader("Cache-directive", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("Expires",0); %> <!DOCTYPE html> <html> <head> <title>CaptCha 예제3</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Imagetoolbar" content="no" /> <script type="text/javascript"> var rand; //캡차 오디오 요청 function audioCaptcha(type) { var kor = (type > 0) ? "lan=kor&":""; $.ajax({ url: '/captcha/captchaAudio.do', type: 'POST', dataType: 'text', data: 'rand=' + rand + '&ans=y', async: false, success: function(resp) { var uAgent = navigator.userAgent; var soundUrl = '/captcha/captchaAudio.do?' + kor + 'rand=' + rand + '&ans=' + resp; //console.log(soundUrl); if (uAgent.indexOf('Trident') > -1 || uAgent.indexOf('MSIE') > -1) { winPlayer(soundUrl+'&agent=msie'); } else if (!!document.createElement('audio').canPlayType) { try { new Audio(soundUrl).play(); } catch(e) { winPlayer(soundUrl); } } else window.open(soundUrl, '', 'width=1,height=1'); } }); } function winPlayer(objUrl) { $('#audiocatpch').html(' <bgsound src="' + objUrl + '">'); } //캡차 이미지 요청 (캐쉬문제로 인해 이미지가 변경되지 않을수있으므로 요청시마다 랜덤숫자를 생성하여 요청) function changeCaptcha() { rand = Math.random(); $('#catpcha').html('<img src="<%=ctx%>/captcha/captchaImg.do?rand=' + rand + '"/>'); } $(document).ready(function() { changeCaptcha(); //캡차 이미지 요청 $('#reLoad').click(function(){ changeCaptcha(); }); //새로고침버튼에 클릭이벤트 등록 $('#soundOn').click(function(){ audioCaptcha(0); }); //음성듣기버튼에 클릭이벤트 등록 $('#soundOnKor').click(function(){ audioCaptcha(1); }); //한글음성듣기 버튼에 클릭이벤트 등록 //확인 버튼 클릭시 $('#frmSubmit').click(function(){ if ( !$('#answer').val() ) { alert('이미지에 보이는 숫자 또는 스피커를 통해 들리는 숫자를 입력해 주세요.'); } else { $.ajax({ url: '/captcha/captchaSubmit.jsp', type: 'POST', dataType: 'text', data: 'answer=' + $('#answer').val(), async: false, success: function(resp) { alert(resp); $('#reLoad').click(); $('#answer').val(''); } }); } }); }); </script> </head> <body> <div id="catpcha"></div> <div id="audiocatpch" style="display: none;"></div> <input id="reLoad" type="button" value="새로고침" /> <input id="soundOn" type="button" value="음성듣기" /> <input id="soundOnKor" type="button" value="한글음성" /> <br /> <input type="text" id="answer" name="answer" value="" /> <input type="button" id="frmSubmit" value="확인" /> </body> </html>

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
Sign in with github login with Google Sign in with Google
Reset password | Sign up