%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
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function getCookie(c_name, defaultvalue){ //alert(document.cookie);
var i,x,y,arrcookies=document.cookie.split(";");
for (i=0;i<arrcookies.length;i++){
x=arrcookies[i].substr(0,arrcookies[i].indexOf("="));
y=arrcookies[i].substr(arrcookies[i].indexOf("=")+1);
x=x.replace(/^\s+|\s+$/g,"");
if (x==c_name){
return unescape(y);
}
}
return defaultvalue;
}
/*-----------------------------------------------------------------------------------*/
/* Category Blog Image hover
/*-----------------------------------------------------------------------------------*/
function imagesHover(){
jQuery('.item_image_wrap').hover(
function() {
jQuery(this).children('.circle_hover').addClass('circle_in');
},
function() {
jQuery(this).children('.circle_hover').removeClass('circle_in');
jQuery(this).children('.circle_hover').addClass('circle_out');
setTimeout(function(){
jQuery('.circle_hover').removeClass('circle_out');
}, 2000);
}
);
};
jQuery(document).ready(function($){
var YTScript = window.YTScript = window.YTScript || {
slidePositions:function(wrap, txt, events){
$i = 0;
$(wrap).find('div.module').each(function(){
var $this = $(this);
w_btn = $this.find('.btn-special').width();
$this.css('top', $i*(w_btn+5)); $i++;
$(wrap).find('div.module').removeClass('active');
$this.css('width', $this.width());
$this.css(txt, - $this.width());
$this.find('.btn-special').bind(events, function(){
if($this.attr('class').contains('active')){
// btn
if(txt == 'left')
$this.animate({'left': w_btn }, 200, function(){
$this.show().animate({'left':- $this.width()});
});
else
$this.animate({'right': w_btn }, 200, function(){
$this.show().animate({'right':- $this.width()});
});
// Module content
if(txt == 'left')
$(this).animate({'left': - w_btn}, 200, function(){
$(this).show().animate({'left': $this.width()});
});
else
$(this).animate({'right': - w_btn}, 200, function(){
$(this).show().animate({'right': $this.width()});
});
// Class active
$this.removeClass('active');
}else{
// Other modules
$(wrap).find('div.module').each(function(){ //alert(txt);
o_mod = $(this);
(txt == 'left')?o_mod.animate({'left': - o_mod.width()}, 200):o_mod.animate({'right': - o_mod.width()}, 200);
o_mod.removeClass('active');
(txt == 'left')?o_mod.find('.btn-special').animate({'left': o_mod.width()}, 200):o_mod.find('.btn-special').animate({'right': o_mod.width()}, 200);
});
// btn
if(txt == 'left')
$(this).animate({'left': $this.width()}, 200, function(){
$(this).show().animate({'left': - w_btn});
});
else
$(this).animate({'right': $this.width()}, 200, function(){
$(this).show().animate({'right': - w_btn});
});
// Module content
if(txt == 'left')
$this.animate({'left':- $this.width()}, 200, function(){
$this.show().animate({'left': w_btn});
});
else $this.animate({'right':- $this.width()}, 200, function(){
$this.show().animate({'right': w_btn});
});
// Class active
$this.addClass('active');
}
})
});
},
checkActiveNotice:function(wrap, cookiename, status){
$(wrap).find('div.module').each(function(){
var $this = $(this);
h_btn = $this.find('.btn-special').height();
h_modcontent = $this.height();
if(status==1 && getCookie(TMPL_NAME+'_'+cookiename)==undefined){
createCookie(TMPL_NAME+'_'+cookiename, 1, 7);
}
if(getCookie(TMPL_NAME+'_'+cookiename)==1){
$('body').animate({
'padding-top': '0px'
}, 200, function(){
$('body').show().animate({
'padding-top': $this.height()+'px'
});
});
$this.animate({
'top':- $this.height()+'px'
}, 200, function(){
$this.show().animate({
'top': 0
});
});
$this.find('.btn-special').animate({
'top': h_modcontent+'px'
}, 500, 'easeInCubic',function(){
$(this).show().animate({
'top': 0
});
});
$this.animate({}, 200, function(){
$(this).addClass('active');
});
}
});
},
slidePositionNotice:function(wrap, cookiename){
$(wrap).find('div.module').each(function(){
var $this = $(this);
h_btn = $this.find('.btn-special').height();
h_modcontent = $this.height();
$this.css('height', h_modcontent);
$this.css('top', - h_modcontent);
$this.find('.btn-special').css('top', h_btn);
$this.find('.btn-special').bind('click', function(){
if($this.attr('class').contains('active')){
$('body').animate({
'padding-top': $this.height()+'px'
}, 200, function(){
$('body').show().animate({
'padding-top': '0px'
});
});
$this.animate({
'top': 0
}, 200, function(){
$this.show().animate({
'top':- $this.height()+'px'
});
});
//$this.find('.btn-special').css('top', h_modcontent);
$this.find('.btn-special').animate({
'top': 0
}, 500, 'easeInCubic',function(){
$(this).show().animate({
'top': h_modcontent+'px'
});
});
$this.animate({}, 200, function(){
$this.removeClass('active');
});
createCookie(TMPL_NAME+'_'+cookiename, 0, 7);
}else{
$('body').animate({
'padding-top': '0px'
}, 200, function(){
$('body').show().animate({
'padding-top': $this.height()+'px'
});
});
$this.animate({
'top':- $this.height()+'px'
}, 200, function(){
$this.show().animate({
'top': 0
});
});
//$this.find('.btn-special').css('top', 0);
$this.find('.btn-special').animate({
'top': h_modcontent+'px'
}, 500, 'easeInCubic', function(){
$(this).show().animate({
'top': 0
});
});
$this.animate({}, 200, function(){
$(this).addClass('active');
});
createCookie(TMPL_NAME+'_'+cookiename, 1, 7);
}
})
});
},
slidePositionBottom:function(wrap, events){
$i = 0;
$(wrap).find('div.module').each(function(){
var $this = $(this);
h_btn = $this.find('.btn-special').height();
h_modcontent = $this.height(); //alert(h_modcontent);
$this.find('.btn-special').css('bottom', h_btn);
$(wrap).find('div.module').removeClass('active');
$this.css('height', h_modcontent);
$this.css('bottom', - h_modcontent);
$this.find('.btn-special').bind(events, function(){
if($this.attr('class').contains('active')){
$this.animate({
'bottom': 0
}, 200, function(){
$this.show().animate({
'bottom':- $this.height()
});
});
$this.animate({}, 200, function(){
$this.removeClass('active');
});
}else{
$(wrap).find('div.module').each(function(){
$(this).animate({
'bottom': - $(this).height()
}, 200);
});
$this.animate({
'bottom':- h_modcontent
}, 200, function(){
$this.show().animate({
'bottom': 0
});
});
$(wrap).find('div.module').animate({}, 200, function(){
$(this).removeClass('active');
});
$this.animate({}, 200, function(){
$(this).addClass('active');
});
}
})
});
}
}
//Cpanel Tooltip
$("#cpanel_wrapper span,#cpanel_wrapper a, .hasTooltip").tooltip({
'selector': '',
'placement': 'top'
});
$(".switch-layout").tooltip({
'selector': '',
'placement': 'left'
});
imagesHover();
});
window.addEvent('domready', function() {
var value;
// Set the input value if not already set.
if (!document.id('newsletter').getProperty('value')) {
document.id('newsletter').setProperty('value', 'Enter your email address....');
}
// Get the current value.
value = document.id('newsletter').getProperty('value');
// If the current value equals the default value, clear it.
document.id('newsletter').addEvent('focus', function() {
if (this.getProperty('value') == 'Enter your email address....') {
this.setProperty('value', '');
}
});
// If the current value is empty, set the previous value.
document.id('newsletter').addEvent('blur', function() {
if (!this.getProperty('value')) {
this.setProperty('value', value);
}
});
});