HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/cortonavolley/wp-content/themes/subway/js/qode-like.js
var $j = jQuery.noConflict();

$j(document).ready(function($){
	initQodeLike();
});

function initQodeLike(){
	$j(document).on('click','.qode-like', function() {
		
		var $likeLink = $j(this);
		var $id = $j(this).attr('id');
		
		if($likeLink.hasClass('liked')) return false;

		var $dataToPass = {
			action: 'subway_core_like',
			likes_id: $id 
		}
		
		var like = $j.post(qodeLike.ajaxurl, $dataToPass, function(data){
			$likeLink.html(data).addClass('liked').attr('title','You already like this!');
			$likeLink.find('span').css('opacity',1);
		});
	
		return false;
	});
}