| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/Civil/js/ |
Upload File : |
$(function(){
$(".direction").hover(function(){
$(this).addClass("big");
$(this).siblings().addClass("small");
}, function(){
$(".direction").removeClass("big");
$(".direction").removeClass("small");
})
setTimeout(function() {
$(".navigation>ul>li").each(function(){
var hideDelay = 500;
var delayTimer = null;
var beingShown = false;
var shown = false;
var submenu = $(this).children("ul");
submenu.hide();
var other_submenus = $(this).siblings("li").children("ul");
$(this).mouseover(function(){
if (delayTimer) clearTimeout(delayTimer);
other_submenus.each(function(){
$(this).stop(true, true).fadeOut({duration: 200, queue: false }).slideUp(200);
});
var nav_top = parseInt($(".navigation").css('top').replace('px',''));
if (!submenu.is(':visible'))
{
if (nav_top>100)
{
submenu.css({'left': '168px'});
}
else // Correct menu position if necessary
{
submenu.show();
var submenu_offset = $(this).offset(); // submenu offset equals to parent's li offset
var header_offset = $(".container").offset();
var header_right_edge = header_offset.left + $(".container").width();
var submenu_right_edge = submenu.width() + submenu_offset.left;
submenu.hide();
if (submenu_right_edge > header_right_edge)
submenu.css({'left': (header_right_edge-submenu_right_edge)+'px'});
else
submenu.css({'left': $(this).css('left')});
}
submenu.fadeIn({duration: 200, queue: false }).css('display', 'none').slideDown(200, function(){submenu.css('opacity', '1')});
}
}).mouseout(function(e){
if (delayTimer) clearTimeout(delayTimer);
delayTimer = setTimeout(function () {submenu.fadeOut({duration: 200, queue: false }).slideUp(200);}, hideDelay);
});
});
},100);
$(".navigation>ul>li.direction").each(function(){
if ($(this).hasClass("active"))
{
var submenu = $(this).children("ul").clone();
submenu.show()
$(".navigation>ul").remove();
submenu.appendTo($(".navigation"));
}
});
$("#goto_top a").each(function(){
if ($(window).scrollTop()>100)
$(this).show();
else
$(this).hide();
$("#goto_top a").click(function(e){
$('html, body').animate({ scrollTop: 0 }, 'slow');
e.preventDefault();
});
});
$(window).scroll(function () {
if ($(window).scrollTop()>200)
{
if ($("#goto_top a").is(':hidden'))
$("#goto_top a").fadeIn(600);
}
else
{
if (!$("#goto_top a").is(':hidden'))
$("#goto_top a").fadeOut(300);
}
});
$(".hometiles>div").hover(function(){
$(this).addClass("selected");
}, function(){
$(this).removeClass("selected");
});
$(".navigation .nav_list li a").each(function(){
$(this).text(removeTones($(this).text()));
});
$("tbody .listtitle").each(function(){
var link = $(this).find("a").attr("href");
var bgcolor = "";
if (link.search("cat_id=24")>=0 || link.search("cat_id=25")>=0 || link.search("cat_id=119")>=0 || link.search("cat_id=127")>=0)
{
bgcolor = "#5A6147";
}
else if (link.search("cat_id=30")>=0)
{
bgcolor = "#FFC000";
}
else if (link.search("cat_id=56")>=0)
{
bgcolor = "#2E75B6";
}
if (bgcolor!="")
{
$(this).css({position: "relative", paddingLeft: "25px"});
$(this).append('<div style="position: absolute; top: 0; left: 0; width: 15px; height: 100%; background-color: ' + bgcolor + ';"></div>')
}
});
$('.tabs .tabs_navigation li a').click(function(e){
$('.tabs > div').hide().filter(this.hash).fadeIn(1000);
$('.tabs .tabs_navigation li a').removeClass('selected_tab');
$(this).addClass('selected_tab');
return false;
});
});
function removeTones(txt)
{
array1 = new Array();
array2 = new Array();
array1[0] = "ά"; array2[0] = "α";
array1[1] = "έ"; array2[1] = "ε";
array1[2] = "ό"; array2[2] = "ο";
array1[3] = "ώ"; array2[3] = "ω";
array1[4] = "ί"; array2[4] = "ι";
array1[5] = "ή"; array2[5] = "η";
array1[6] = "ύ"; array2[6] = "υ";
array1[7] = "ΐ"; array2[7] = "ϊ";
array1[8] = "ΰ"; array2[8] = "ϋ";
array1[9] = "Ά"; array2[9] = "Α";
array1[10] = "Έ"; array2[10] = "Ε";
array1[11] = "Ό"; array2[11] = "Ο";
array1[12] = "Ή"; array2[12] = "Η";
array1[13] = "Ί"; array2[13] = "Ι";
var txtConverted = "";
for(i=0; i<=txt.length-1; i++)
{
var char1 = txt.charAt(i);
var char2 = "zzz";
for(j=0; j<array1.length; j++)
{
if (char1 == array1[j])
{
char2 = array2[j];
break;
}
}
//not found in my list, just put in the character
if (char2 == "zzz")
char2 = char1;
txtConverted += char2;
}
return txtConverted;
}