document.domain = "daum.net";
(function () {
var FramesetChecker = {
cafeUrl: "http://cafe.daum.net/sandong50",
grpcode: "sandong50",
allowLoadingWithoutFrameset: function () {
return opener //팝업의 경우엔 프레임을 씌우지 않는다.
|| new RegExp("cafe\\d{3}.daum.net").test(location.hostname) //
},
contains: function (str, test) {
return str.indexOf(test) >= 0;
},
changeLocation: function () {
UrlReloader.makeFrameCookie(document.location.href);
UrlReloader.saveCurrentUrl(document.location.href, this.grpcode);
parent.location.href = this.cafeUrl;
},
check: function () {
if (!this.allowLoadingWithoutFrameset()) {
try {
/*
* 특정 브라우저에서, parent가 다른 도메인일 경우 security error가 발생한다.
*/
var isDownFrame = parent && parent.down === self;
var isSearch = parent && parent.isSearch;
if (isSearch || !isDownFrame) { // 검색용 프레임 내부, 프레임이 씌워져 있지 않은 경우
this.changeLocation();
}
} catch (e) {
UrlReloader.saveCurrentUrl(document.location.href, this.grpcode);
document.location.href = this.cafeUrl;
}
}
}
};
FramesetChecker.check();
})();
//
var CAFEAPP = CAFEAPP ? CAFEAPP : new Object();
CAFEAPP.LOGIN_URL = "https://logins.daum.net";
| | |
|
function pollSubmit() {
if (!checkData()) {
alert("보기를 선택하세요");
return;
}
document.bbsForm.action = "/_c21_/article_poll_vote";
document.bbsForm.grpid.value = "wLl0";
document.bbsForm.mgrpid.value = "";
document.bbsForm.fldid.value = "3FZ6";
document.bbsForm.dataid.value = "366";
document.bbsForm.pollseq.value = "";
document.bbsForm.return_url.value = "/_c21_/bbs_read?grpid=wLl0&fldid=3FZ6&contentval=0005uzzzzzzzzzzzzzzzzzzzzzzzzz";
document.bbsForm.submit();
}
function checkData() {
var choice = document.bbsForm.article_poll_fldpoll_egseq;
if(choice.length > 0) {
for(i = 0; i < choice.length; i++)
if (choice[i].checked) return true;
} else {
return choice.checked;
}
}
function popup(szURL, szName, iWidth, iHeight) {
/*window.open*/(szURL, szName, 'width=' + iWidth + ',height=' + iHeight + ',resizable=no,scrollbars=no');
}
//
다음검색
카페회원들의 안전을 위해 iframe 태그를 제한 하였습니다. 관련공지보기▶
Kakao.init('290e3fe0b2d63e49088831bdbadb4fe5');
function kakaoEmoticonUpdate() {
Kakao.Emoticon.update();
}
| |
| | |
var bgmOn = false;
function onMPPlay(){
}
function changeTitle(lTitle, lArtist){
}
function loading() {
}
window.tiaraInstance = TiaraTracker.getInstance();
window.CafeTiara = (function () {
var tiaraInstance = TiaraTracker.getInstance();
var trackPage = function (pageName, sectionName, externalCustomProps) {
tiaraInstance.setSvcDomain('cafe.daum.net')
.setPage(pageName)
.setSection(sectionName)
.setSessionTimeout('1800')
.setDeployment('production')
.setIgnoreQueryParams(['ts', 'dummy'])
.trackPage(pageName)
.customProps(getCustom(externalCustomProps))
.track();
}
var getCustom = function(props){
var custom = {
grpid: CAFEAPP.GRPID,
grpcode: CAFEAPP.GRPCODE,
grpname: CAFEAPP.GRPNAME,
}
if(CAFEAPP.FLDID) custom.fldid = CAFEAPP.FLDID;
if(typeof CAFEAPP.ui !== 'undefined' && typeof CAFEAPP.ui.DATAID !== 'undefined') custom.dataid = CAFEAPP.ui.DATAID;
if(props) custom.ext = props;
var q = getParameterByName('q');
if(q) custom.query = q;
return custom;
};
var getParameterByName = function(name, url) {
if (!url) {
url = window.location.href;
}
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
};
var trackEvent = function (e, track, layer, prefix) {
var url = '';
if(e && e.currentTarget){
url = e.currentTarget.href ? e.currentTarget.href.slice(0, 255) : '';
}
var clickObject = {
layer1: layer,
layer2: '',
layer3: '',
click_url: url,
copy: '',
posx: 0,
posy: 0
};
tiaraInstance.trackEvent(prefix + track).click(clickObject).track();
}
var getSection = function () {
return tiaraInstance._section;
};
return {
trackPage: trackPage,
trackEvent: trackEvent,
getSection: getSection
};
})();
CafeTiara.trackPage('article_view', 'general');
//
// dragsearch, search drag
(function(){
var script = document.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.src = "//search1.daumcdn.net/search/statics/common/js/g/search_dragselection.min.js";
document.getElementsByTagName('head')[0].appendChild(script);
})();
jQuery.noConflict();
(function($){
var getParameterByName = function(name, url) {
if (!url) {
url = window.location.href;
}
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
};
this.SearchModule = {
defaultSearch: function(queryString) {
window.location.href = "/_c21_/cafesearch?grpid=" + getParameterByName('grpid') + "&item=subject&sorttype=0&query=" + queryString;
}
};
var searchBox = $('.searchBox');
searchBox.on('click', '.btnSearch', function(e){
e.preventDefault();
var searchQuery = $(e.delegateTarget).find('.inp_search').val();
if(searchQuery === '') {
alert('검색할 키워드를 입력해주세요.');
return;
}
SearchModule.defaultSearch(searchQuery);
});
searchBox.on('keyup', '.inpSearch', function(e){
if(e.keyCode === 13) {
$(e.delegateTarget).find('.btnSearch').click();
}
});
})(jQuery);
document.write('카페회원들의 안전을 위해 iframe 태그를 제한 하였습니다.
관련공지보기▶ ');
ifr_korClick.location.href='http://cafe.daum.net/_pageview/bbs_read.html?'+new Date().getTime();
댓글 0