// $(window).scroll(function() { // if ($(this).scrollTop() > 1){ // $('header').addClass("sticky-head"); // } // else { // $('header').removeClass("sticky-head"); // } // }); $(document).ready(function() { $(function() { $('.ripple').on('click', function (event) { //event.preventDefault(); var $div = $('
'), btnOffset = $(this).offset(), xPos = event.pageX - btnOffset.left, yPos = event.pageY - btnOffset.top; $div.addClass('ripple-effect'); var $ripple = $(".ripple-effect"); $ripple.css("height", $(this).height()); $ripple.css("width", $(this).height()); $div .css({ top: yPos - ($ripple.height()/2), left: xPos - ($ripple.width()/2), background: $(this).data("ripple-color") }) .appendTo($(this)); window.setTimeout(function(){ $div.remove(); }, 2000); }); }); }); $(document).ready(function() { echo.init({ offset: 600, throttle: 200, unload: false, }); if($('ul.pagination').length) { // $('ul.pagination.pagination-arrows li a').first().html(""); // $('ul.pagination.pagination-arrows li a').last().html(""); $('ul.pagination.pagination-arrows li a').first().html(""); $('ul.pagination.pagination-arrows li a').last().html(""); } }); // In-button Feedback (Icon) $(document).ready(function() { $('.btn-with-loader').on('click', function() { var $this = $(this); $this.button('Loading').prepend(''); setTimeout(function() { $this.button('reset'); }, 2000); }); }); // Page Loading Feedback (Red Stripe) $(document).ready(function() { $(".pm-section-highlighted, .pm-ul-browse-videos").animsition({ linkElement: '.animsition', loading: false, timeout: true, timeoutCountdown: 5000, browser: [ 'animation-duration', '-webkit-animation-duration'], overlay : false, overlayClass : '', overlayParentElement : 'body', transition: function(url){ $('header').append('
'); window.location.href = url; } }); }); // Global settings for notifications $(document).ready(function() { $.notifyDefaults({ // settings element: 'body', position: null, type: "info", allow_dismiss: true, newest_on_top: true, showProgressbar: false, placement: { from: "top", // top, bottom align: "right" // left, right, center }, offset: { x: 20, y: 100 }, spacing: 10, z_index: 1031, delay: 10000, timer: 1000, url_target: '_blank', mouse_over: null, animate: { enter: 'animated fadeInDown',//'animated fadeIn', exit: 'animated fadeOutUpBig',//'animated fadeOut' }, onShow: null, onShown: null, onClose: null, onClosed: null, template: '', PM_exitAnimationTimeout: 0 // PHP Melody custom settings }); });