Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
19:01:12
..
19:01:21
Vivek Jha
"Thank you for contacting Samsung online chat support. Have a wonderful day. If you have more questions, you may again
contact us via same channel on Live Chat Support(http://livechat.support.samsung.com/Customer_new/IN).
"
19:01:44
Chatting Finished.
<html lang="ko"><head>
<meta charset="utf-8">
<script src="../Common/js/jquery-1.9.1.min.js"></script>
<script src="../Common/js/common.js"></script>
<script src="../Common/js/livechat_both.js"></script>
<!--[if lt IE 9]>
<script src="../Common/js/html5shiv.min.js"></script>
<![endif]-->
<script type="text/javascript">
//195
var surveycnt = 0;
// Proactive 10 Keyin
var vLiveChatDelayCnt = 0;
var flag = 0;
function disableInputs() {
jQuery('#btnSend').attr("disabled", "disabled");
jQuery('#btnFinish').attr("disabled", "disabled");
jQuery('#txtNewMessage').attr("disabled", "disabled");
/*******************************************************************************
* FUNCTION : fncOnload
*******************************************************************************/
function fncOnload() {
fncInitControls();
/*******************************************************************************
* Event
*******************************************************************************/
function fncSetEvent() {
jQuery(".btn-font.larger").click(function () {
zoomIn();
})
jQuery(".btn-font.smaller").click(function () {
zoomOut();
})
jQuery("#btnFinish, #closeBtn").click(function () {
fncExit();
})
//
jQuery("#txtNewMessage").keypress(function (e) {
jQuery('#hidProactiveKeyIn').val("Y");
SetCookie("PROACTIVEKEYIN", "Y");
if (code == 13) {
fncSendMessage('2', '');
return false;
}
});
jQuery(".btn-send").click(function () {
flag = 0;
fncMsgFlag(flag);
fncSendMessage('2', '');
});
/* //Font-Controls */
function zoomIn() {
size++;
return false;
function zoomOut() {
size--;
return false;
}
function oriGin() {
size = 12;
/*******************************************************************************
* FUNCTION : fncSendMessage()
* FUNCTION : .
*******************************************************************************/
//
jQuery('#txtNewMessage').val('');
jQuery('#txtNewMessage').focus();
return false;
txtNewMessage.focus();
return false;
//jo
var tempMsg = [{
}];
txtNewMessage.val('');
txtNewMessage.focus();
if (msgProc == '') {
msgProc = sss;
fncSetRcvData(tempMsg);
}
fncSend(msgType, msgProc, sendMsg);
jQuery.ajax({
type: 'post',
url: "/Handler/ChatHandlerSend.ashx",
dataType: 'json',
data: {
RoomNo: jQuery('#hidRoomNo').val(),
NewMsg: msg,
MsgType: msgType,
MsgProc: msgProc,
SiteCd: jQuery('#hidSiteCd').val(),
ExpertNo: jQuery('#hidExpertNo').val()
},
async: true,
// jQuery('#txtNewMessage').val('');
// jQuery('#txtNewMessage').focus();
// fncRcvNewMessage();
//}
},
});
function fncSetProactive() {
jQuery.ajax({
type: 'post',
url: "/Handler/Proactive.ashx",
dataType: 'jsonp',
jsonp: "callback",
data: {
Mode: 'start',
Site: jQuery('#hidSiteCd').val(),
CustNo: jQuery('#hidRoomNo').val()
},
async: false,
});
if (hidProactive.val() == "P") {
vLiveChatDelayCnt ++;
clearInterval(timerConfirmClose);
if(jQuery('#hidProactiveKeyIn').val() == "N") {
fncExit();
}, 1000);
/*******************************************************************************
* FUNCTION : fncRcvNewMessage()
* FUNCTION : .
*******************************************************************************/
var stateErrCnt = 0;
function fncRcvNewMessage() {
// AJAX.
// AJAX.
jQuery.ajax({
type: 'post',
url: "/Handler/ChatHandlerRecv.ashx",
dataType: 'json',
data: {
RecvType: 'MSG2',
SiteCd: jQuery('#hidSiteCd').val(),
RoomNo: jQuery('#hidRoomNo').val(),
MsgNo: jQuery('#hidMsgNo').val(),
ExpertNo: ""
},
async: true,
fncSetRcvData(data);
IsbRun = false;
var tid = setInterval(function () { clearInterval(tid); }, 2000);
},
IsbRun = false;
});
/**
**/
+ ";expires=" + expire.toGMTString();
/*******************************************************************************
* FUNCTION : fncSetRcvData()
* FUNCTION : CHAT
*******************************************************************************/
function fncSetRcvData(data) {
MsgNo = entry["NO"];
LastTime = entry["Time"];
newMsg = unescapeForPlainToJson(entry["Msg"].toString());
if (entry["MsgProc"] == "WINDOW") {
fncViewLink(unescapeForPlainToJson(entry["Msg"].toString()));
} else if (entry["MsgProc"] == "LINK") {
surveycnt++;
// parent.fncOpenSurvey(entry["ExpertNo"]);
//} else
//{
if (jQuery('#hidSiteCd').val() == "TR") {
} else{
}
fncViewChatMsg(entry["Type"], entry["MsgNm"], entry["Time"], newMsg);
jQuery('#HidisSurvey').val("Y");
if (jQuery('#HidisFinish').val() == "Y") {
disableInputs();
//}
//}
disableInputs();
disableInputs();
disableInputs();
jQuery('#HidisFinish').val("Y");
disableInputs();
jQuery('#HidisFinish').val("Y");
}else {
newMsg = linkify(newMsg);
});
if (MsgNo != "-99") {
//
jQuery('#hidMsgNo').val(MsgNo);
IsbRun = false;
function linkify(inputText) {
replacePattern1 = /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim;
replacePattern2 = /(^|[^\/])(www\.[\S]+(\b|$))/gim;
//replacePattern3 = /(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim;
return replacedText;
/*******************************************************************************
* FUNCTION : fncOpenSurvey()
* FUNCTION : .
*******************************************************************************/
/*******************************************************************************
* FUNCTION : fncViewLink()
* FUNCTION : .
*******************************************************************************/
function fncViewLink(link) {
var a = "<";
var b = ">";
/*******************************************************************************
* FUNCTION : fncViewLink()
* FUNCTION : .
*******************************************************************************/
function fncGoLink(link) {
window.open(link, null,
"width=800,height=600,menubar=yes,location=yes,resizable=yes,status=yes,scrollbars=yes");
/*******************************************************************************
* FUNCTION : fncGoFile()
* FUNCTION : .
*******************************************************************************/
function fncGoFile(no) {
window.open(url, null,
"width=0,height=0,menubar=no,location=no,resizable=no,status=no,scrollbars=no");
}
/*******************************************************************************
* FUNCTION : ()
* FUNCTION : .
*******************************************************************************/
function fncGoWin(link) {
try {
var win = gfnOpenPop(link, "_blank", 800, 750, true, true); //window.open(link, "a",
"width=800,height=600,menubar=yes,location=yes,resizable=yes,status=yes,scrollbars=yes");
if (win == undefined) {
fncSendMessage('0', '');
catch (e) {
fncSendMessage('0', '');
/*******************************************************************************
* FUNCTION : fncViewChatMsg()
* FUNCTION : .
*******************************************************************************/
if (msgType == "1")
if (jQuery('#hidSiteCd').val() == "IL") {
else {
//$('#ChatTable_1 #152751581').remove()
if (jQuery('#hidSiteCd').val() == "IL") {
sChat = "<div id='" + MsgProc + "' class='cht-section black fl_r'><span class='cht-
pointer'></span><div class='cht-cnt'><div class='inner2'>" + sMsg + "</div></div><span class='cht-
time'>" + msgTime + "</span></div>";
else {
} else {
if (jQuery('#hidSiteCd').val() == "IL") {
else {
if (jQuery('#hidSiteCd').val() == "IL") {
else {
jQuery("#hidTime").val(msgTime);
if (msgType == "1") {
jQuery(".chat").append(sChat);
jQuery(".chat").scrollTop(jQuery(".chat")[0].scrollHeight);
/*******************************************************************************
* FUNCTION : fncExitProcess()
* FUNCTION : .
*******************************************************************************/
function fncExit() {
// CHATAJAX.
jQuery.ajax({
type: 'post',
url: "/Handler/ExpertHandler_new.ashx",
dataType: 'json',
data: {
RecvType: 'CFINISH',
RoomNo: jQuery('#hidRoomNo').val(),
SiteCd: jQuery('#hidSiteCd').val(),
ExpertNo: jQuery('#hidExpertNo').val(),
Survey: jQuery('#HidisSurvey').val()
},
async: false,
//self.opener = self;
disableInputs();
//window.close();
jQuery('#HidisFinish').val("Y");
},
self.opener = self;
window.close();
});
}
/*******************************************************************************
* FUNCTION : fncInitControls
* FUNCTION :
*******************************************************************************/
function fncInitControls() {
//
fncSetEvent();
// Proactive Chat
fncSetProactive();
fncRcvNewMessage();
window.document.body.scroll = "auto";
function checkWidth(w) {
if (w < 320) {
else {
//
function fncMsgFlag(flag) {
jQuery.ajax({
type: 'post',
url: "/Handler/ExpertHandler_new.ashx",
dataType: 'json',
data: {
RecvType: 'MSGFLAG',
SiteCd: jQuery('#hidSiteCd').val(),
CustNo: jQuery('#hidRoomNo').val(),
ExpertNo: jQuery('#hidExpertNo').val(),
Flag: flag
},
async: true,
},
//alert("flag ");
});
//
function fncWaitCnt() {
jQuery.ajax({
type: 'post',
url: "/Handler/ExpertHandler_new.ashx",
dataType: 'json',
data: {
RecvType: 'WAITCNT',
CustNo: jQuery('#hidRoomNo').val(),
SiteCd: jQuery('#hidSiteCd').val()
},
async: true,
if (data.RANK == 0) {
clearInterval(tid);
} else {
disableInputs();
},
});
var hidSiteCd;
var hidExpertNo;
var hidRoomNo;
var hidProactive;
jQuery(document).ready(function () {
//20151130 ( )
jQuery('#hidMsgNo').val('0');
hidSiteCd = jQuery('#hidSiteCd');
hidExpertNo = jQuery('#hidExpertNo');
hidRoomNo = jQuery('#hidRoomNo');
hidProactive = jQuery('#hidProactive');
fncMsgFlag(flag);
$('#txtNewMessage').keyup(function () {
if ($("#txtNewMessage").val().length > 0) {
if (flag == 0) {
flag = 1;
fncMsgFlag(flag);
} else {
flag = 0;
fncMsgFlag(flag);
});
jQuery.ajax({
type: 'post',
url: "/Handler/ExpertHandler_new.ashx",
dataType: 'json',
data: {
RecvType: 'sDELAY',
RoomNo: jQuery('#hidRoomNo').val(),
Delay: delay
},
async: true,
},
});
fncWaitCnt();
fncOnload();
var w = $(document).width();
checkWidth(w);
$(window).on("resize", function () {
checkWidth(windowsize);
});
});
</script>
<style type="text/css">
#header {
display: none;
</style>
</head>
<body id="chat">
<form method="post"
action="CustomerChat_new.aspx?roomNo=14440546&encrypt=FE338CCBECF23D851028CF90BB9
64A0E" id="form1">
<div class="aspNetHidden">
</div>
<div class="aspNetHidden">
</div>
<div id="wrap">
<div id="header">
<h1 class="logo">LiveChat</h1>
</div>
<div id="content">
<img id="closeBtn" src="/images/common/btn_cancel.png" style="float:right; margin-top: -55px;
cursor: pointer;">
<div class="section-font">
</div>
<div class="send-msg">
<div class="msg-wrap">
<fieldset>
<colgroup>
<col class="col1">
<col class="col2">
</colgroup>
<tbody>
<tr>
<td>
</td>
<td>
</td>
</tr>
</tbody>
</table>
</fieldset>
</div>
</div>
</div>
</div></form>
<div id="act"></div>