403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/onesolution.com.hk/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/onesolution.com.hk/js/general-script.js

/*!
 * Smooth Scroll - v1.4.13 - 2013-11-02
 * https://github.com/kswedberg/jquery-smooth-scroll
 * Copyright (c) 2013 Karl Swedberg
 * Licensed MIT (https://github.com/kswedberg/jquery-smooth-scroll/blob/master/LICENSE-MIT)
 */
(function(t){function e(t){return t.replace(/(:|\.)/g,"\\$1")}var l="1.4.13",o={},s={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficent:2,preventDefault:!0},n=function(e){var l=[],o=!1,s=e.dir&&"left"==e.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!=document&&this!=window){var e=t(this);e[s]()>0?l.push(this):(e[s](1),o=e[s]()>0,o&&l.push(this),e[s](0))}}),l.length||this.each(function(){"BODY"===this.nodeName&&(l=[this])}),"first"===e.el&&l.length>1&&(l=[l[0]]),l};t.fn.extend({scrollable:function(t){var e=n.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=n.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(l,o){if(l=l||{},"options"===l)return o?this.each(function(){var e=t(this),l=t.extend(e.data("ssOpts")||{},o);t(this).data("ssOpts",l)}):this.first().data("ssOpts");var s=t.extend({},t.fn.smoothScroll.defaults,l),n=t.smoothScroll.filterPath(location.pathname);return this.unbind("click.smoothscroll").bind("click.smoothscroll",function(l){var o=this,r=t(this),i=t.extend({},s,r.data("ssOpts")||{}),c=s.exclude,a=i.excludeWithin,f=0,h=0,u=!0,d={},p=location.hostname===o.hostname||!o.hostname,m=i.scrollTarget||(t.smoothScroll.filterPath(o.pathname)||n)===n,S=e(o.hash);if(i.scrollTarget||p&&m&&S){for(;u&&c.length>f;)r.is(e(c[f++]))&&(u=!1);for(;u&&a.length>h;)r.closest(a[h++]).length&&(u=!1)}else u=!1;u&&(i.preventDefault&&l.preventDefault(),t.extend(d,i,{scrollTarget:i.scrollTarget||S,link:o}),t.smoothScroll(d))}),this}}),t.smoothScroll=function(e,l){if("options"===e&&"object"==typeof l)return t.extend(o,l);var s,n,r,i,c=0,a="offset",f="scrollTop",h={},u={};"number"==typeof e?(s=t.extend({link:null},t.fn.smoothScroll.defaults,o),r=e):(s=t.extend({link:null},t.fn.smoothScroll.defaults,e||{},o),s.scrollElement&&(a="position","static"==s.scrollElement.css("position")&&s.scrollElement.css("position","relative"))),f="left"==s.direction?"scrollLeft":f,s.scrollElement?(n=s.scrollElement,/^(?:HTML|BODY)$/.test(n[0].nodeName)||(c=n[f]())):n=t("html, body").firstScrollable(s.direction),s.beforeScroll.call(n,s),r="number"==typeof e?e:l||t(s.scrollTarget)[a]()&&t(s.scrollTarget)[a]()[s.direction]||0,h[f]=r+c+s.offset,i=s.speed,"auto"===i&&(i=h[f]||n.scrollTop(),i/=s.autoCoefficent),u={duration:i,easing:s.easing,complete:function(){s.afterScroll.call(s.link,s)}},s.step&&(u.step=s.step),n.length?n.stop().animate(h,u):s.afterScroll.call(s.link,s)},t.smoothScroll.version=l,t.smoothScroll.filterPath=function(t){return t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults=s})(jQuery);	




// ONE SOLUTION GENERAL SCRIPT
// LAST UPDATE: 15-09-2014

jQuery(document).ready(function($) {

	//COPYRIGHT YEAR
	var d = new Date();
	var x = $("#footeryear");
	var y = d.getFullYear();
	x.html(y)


	/* testing */

	if ( $("html").hasClass("touch") ) {            
            $(".pf_container .item").click(function() {
                $(this).find(".overly").toggleClass("active");
                return false;
            });
        }    


	
	/* ---------------------------------------------------------------------- */
	/* Main Menu
	/* ---------------------------------------------------------------------- */
	$("#main_menu .dw_item").click(function(){
		$(this).children("ul").slideToggle(300);
	});

	//dev these later !!! 2014-09-08

	/*$(window).scroll(function() {
			var position = $(window).scrollTop();
			if( oldiOS || oldAndroid ) {
				$( settings.button ).css({
					'position' : 'absolute',
					'top'      : position + $(window).height()
				});
			}
			if ( position > 200 ) 
				$( '#header' ).addClass("pinned");
			else 
				$( '#header' ).removeClass("pinned");
		});*/


	/** PINNED NAVIGATION 
		var win_width = parseInt($("html, body").width());
		var offset_y = f_scrollTop();
		
		if (offset_y > 200 && ($("#header").hasClass("")) && (win_width > 960) && !is_tablet() ){
			$("#header").addClass("pinned");
		}
		if (win_width <= 960 || is_tablet() ){
			$menu = $("#menu").clone();
			$(".content-wrapper:gt(0)").prepend("<div class='menu'>" + $menu.html() + "</div>");
			$(".content-wrapper:gt(0) .menu ul").prepend("<li><a href='#top'>home</a></li>");
			$(".menu li a.logo").closest("li").remove();
		}
		
		
							   
		$(window).scroll(function () {  
			where(".content-wrapper");
			
			var nav_h = parseInt($("#main_menu").outerHeight());
	    	var offset_y = f_scrollTop();
			
			var win_width = parseInt($("html, body").width());
			
			if (win_width > 960 && !is_tablet()){
				$(".menu").remove();
				if (offset_y > 200){
				  
					if (!$("#main_menuu").hasClass("pinned")){
						$("#main_menu").fadeOut(function(){
							$("#main_menu").addClass("pinned").slideDown("slow");
						})
					}	  
				}
				else{
					if ($("#main_menuu").hasClass("pinned")){
						$("#main_menu").slideUp(function(){
							$("#main_menu").removeClass("pinned").fadeIn();
						});
					}
				}
			}
			else{
				$(".menu").remove();
				$menu = $("#main_menu").clone();
				$(".content-wrapper:gt(0)").prepend("<div class='menu'>" + $menu.html() + "</div>");
				$(".content-wrapper:gt(0) .menu ul").prepend("<li><a href='#top'>home</a></li>");
				$(".menu li a.logo").closest("li").remove();
			}
	    });*/

		



		/***************************************************
			 ADDITIONAL FUNCTIONS FOR PINNED NAVIGATION
		**************************************************
		function f_scrollTop() {
			return f_filterResults (
				window.pageYOffset ? window.pageYOffset : 0,
				document.documentElement ? document.documentElement.scrollTop : 0,
				document.body ? document.body.scrollTop : 0
			);
		}
		function f_filterResults(n_win, n_docel, n_body) {
			var n_result = n_win ? n_win : 0;
			if (n_docel && (!n_result || (n_result > n_docel)))
				n_result = n_docel;
			return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
		}

		function is_tablet(){
				if (navigator.userAgent.match(/Android/i) ||
			    navigator.userAgent.match(/webOS/i) ||
			    navigator.userAgent.match(/iPhone/i) ||
			    navigator.userAgent.match(/iPod/i) ||
			    navigator.userAgent.match(/iPad/i)) return true; else return false;
		}*/


    /* ---------------------------------------------------------------------- */
	/* Mob Main Menu
	/* ---------------------------------------------------------------------- */

	$("#header .toolbar").append('<div id="mob_menu"><span class="slice1"></span><span class="slice2"></span><span class="slice3"></span></div>');


	$("#mob_menu").click(function () {
	    $(this).addClass("close");
	    $("body").append('<div class="screen"><div class="inner" /></div><div class="screenW" />');
	    if ($(window).height() < 440) {
	        $(".screen").css({
	            position: "absolute"
	        });
	        $("html, body").animate({
	            scrollTop: "0"
	        }, 100)
	    }
	    setTimeout(function () {
	        $(".screen .inner").addClass("active");
	        $(".screenW").addClass("active")
	    }, 100);

	    $("#header #main_menu ul").first().clone().appendTo(".screen .inner");
	    
	    $(".screen").click(function () {
	        $("#mob_menu").removeClass("close");
	        $(".screen .inner").addClass("out");
	        setTimeout(function () {
	            $(".screenW").removeClass("active")
	        }, 400);
	        setTimeout(function () {
	            $(".screen,.screenW").remove()
	        }, 1e3)
	    });

	    $(".screen ul b").click(function (e) {
	        e.stopPropagation();
	        $(this).next("ul").slideToggle("500");
	    });
	    return false
	});


	/* ---------------------------------------------------------------------- */
	/* Top Search
	/* ---------------------------------------------------------------------- */
	
	var submitIcon = $('.searchbox-icon');
    var inputBox = $('.searchbox-input');
    var searchBox = $('.searchbox');
    var isOpen = false;

    submitIcon.click(function(){
        if(isOpen == false){
            searchBox.addClass('searchbox-open');
            submitIcon.hide();
            inputBox.focus();
            isOpen = true;
        } else {
            searchBox.removeClass('searchbox-open');            
            submitIcon.show();
            inputBox.focusout();
            isOpen = false;
        }
    });  
    submitIcon.mouseup(function(){
            return false;
        });
    searchBox.mouseup(function(){
            return false;
        });

    $(document).mouseup(function(){
            if(isOpen == true){
                $('.searchbox-icon').css('display','block');
                submitIcon.click();
            }
    });

    
	


		
	/* ---------------------------------------------------------------------- */
	/* Back to Top
	/* ---------------------------------------------------------------------- */
	(function() {
			oldiOS     = false,
			oldAndroid = false;
		// Detect if older iOS device, which doesn't support fixed position
		if( /(iPhone|iPod|iPad)\sOS\s[0-4][_\d]+/i.test(navigator.userAgent) )
			oldiOS = true;
		// Detect if older Android device, which doesn't support fixed position
		if( /Android\s+([0-2][\.\d]+)/i.test(navigator.userAgent) )
			oldAndroid = true;
			
		$('#back-to-top').click(function( e ){
				$('html, body').animate({ scrollTop : 0 }, 500 );
				e.preventDefault();
			});

		$(window).scroll(function() {
			var position = $(window).scrollTop();
			if( oldiOS || oldAndroid ) {
				$( settings.button ).css({
					'position' : 'absolute',
					'top'      : position + $(window).height()
				});
			}
			if ( position > 200 ) 
				$( '#back-to-top' ).fadeIn( 400 );
			else 
				$( '#back-to-top' ).fadeOut( 400 );
		});

	})();
	/* end UItoTop (Back to Top) */




	/* ---------------------------------------------------------------------- */
	/* IE Support Section
	/* ---------------------------------------------------------------------- */

	if ( $("html").hasClass("ie") ) {

 		 var markup = [
			'<div class="ie-support ie">',
	    	'<p>',
	    	'<b>You are using an outdated, unsupported browser. For a better experience,</b>',
	        '<br>',
	        'We recommend upgrading to the Latest ',
	        '<a herf="http://windows.microsoft.com/zh-tw/internet-explorer/download-ie" target="_blank">Internet Explorer</a>', 
	        ', ',
	        '<a herf="https://www.google.com/chrome/browser/" target="_blank">Google Chrome</a>',
	        ', or ',
	        '<a herf="http://mozilla.com.tw/firefox/new/" target="_blank">Firefox</a>',
	        '.',
	        '<br>',
	        'If you are using IE 9 or later, make sure you ',
	        '<a herf="http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-8" target="_blank">turn off "Compatibility View"</a>.',
	        '<br>',
	        '<br>',
	        '<span id="ignore">',
	        'Ignore',
	        '</span></p></div>'
		].join('');

		$(markup).hide().appendTo('body').fadeIn();
	    
	    $("#ignore").click(function(){
	        $(".ie-support").fadeOut();
	    });
 	};


			
			

});


Youez - 2016 - github.com/yon3zu
LinuXploit