%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/var/www/html/old/templates/sj_icenter/js/ |
Upload File : |
// JavaScript Document
jQuery(document).ready(function($){
$(".cp_select").each(function(){
$(this).wrap('<div class="selectbox"/>');
$(this).after("<span class='selecttext'></span><span class='select-arrow'></span>");
var val = $(this).children("option:selected").text();
$(this).next(".selecttext").text(val);
$(this).change(function(){
var val = $(this).children("option:selected").text();
$(this).next(".selecttext").text(val);
});
});
// Select For Layout Style
var $typeLayout = $('.typeLayout .cp_select'), $patten = $(".body-backgroud-image .pattern") ;
if($patten.length > 0){
$patten.each(function($i){
$(this).click(function (e) {
if( $typeLayout.val()=='wide' ) alert ('Select For Layout Style: Boxed ') ;
});
});
}
/* Begin: Show hide cpanel */
$("#cpanel_btn").click( function(event){
event.preventDefault();
widthC = $('#cpanel_wrapper').width()+20;
if ($(this).hasClass("isDown") ) {
$("#cpanel_wrapper").animate({right:"0px"}, 400);
$(this).removeClass("isDown");
} else {
$("#cpanel_wrapper").animate({right:-widthC}, 400);
$(this).addClass("isDown");
}
return false;
});
/* End: Show hide cpanel */
$("#ytcpanel_accordion .accordion-group").each(function() {
if($(this).index() > 1) {
$(this).children(".collapse").css('height', '0');
}
else {
$(this).find(".accordion-heading").addClass('active');
}
$(this).children(".accordion-heading").bind("click", function() {
$(this).addClass(function() {
if($(this).hasClass("active")){
//$(this).find(".fa").attr('class', 'fa fa-minus-square-o');
$(this).removeClass("active");
return "";
}
return "active";
});
$(this).parent().siblings(".accordion-group").find(".accordion-heading.active").removeClass("active");
});
});
});
function onCPResetDefault(_cookie){
for (i=0;i<_cookie.length;i++) {
if(getCookie(TMPL_NAME+'_'+_cookie[i])!=undefined){
createCookie (TMPL_NAME+'_'+_cookie[i], '', -1);
}
}
window.location.reload(true);
}
function onCPApply () {
var elems = document.getElementById('cpanel_wrapper').getElementsByTagName ('*');
var usersetting = {};
for (i=0;i<elems.length;i++) {
var el = elems[i];
if (el.name && (match=el.name.match(/^ytcpanel_(.*)$/))) {
var name = match[1];
var value = '';
if (el.tagName.toLowerCase() == 'input' && (el.type.toLowerCase()=='radio' || el.type.toLowerCase()=='checkbox')) {
if (el.checked) value = el.value;
} else {
value = el.value;
}
if(value.trim()){
if (usersetting[name]) {
if (value) usersetting[name] = value + ',' + usersetting[name];
} else {
usersetting[name] = value;
}
}
}
}
for (var k in usersetting) {
name = TMPL_NAME + '_' + k; //alert(name);
value = usersetting[k];
createCookie(name, value, 365);
}
window.location.reload(true);
}