PageSourceSearch

https://www.automaty777.sk/wp-content/cache/wpfc-minified/jr4sbjex/6bqh0.js

js automaty777.sk collected 2026-09-26 06:28:42 UTC 3,087 bytes, 90 lines download raw bytes

1jQuery(document).ready(function($){
2'use strict';
3$(document).on("click", ".heart_thumb_wrap .heartplus", function(e){
4e.preventDefault();
5var $this=$(this);
6if($this.hasClass("restrict_for_guests")){
7return false;
8}
9var post_id=$(this).data("post_id");
10var informer=parseInt($(this).attr("data-informer"));
11$(this).addClass("loading");
12if($this.hasClass('alreadywish')){
13var wishlink=$this.data("wishlink");
14if(typeof $this.data("wishlink")!=="undefined"&&$this.data("wishlink")!=''&&$('.re-favorites-posts').length==0){
15window.location.href=$this.data("wishlink");
16return false;
17}
18var actionwishlist='remove';
19}else{
20var actionwishlist='add';
21}
22$.ajax({
23type: "post",
24url: rhscriptvars.ajax_url,
25data: "action=rhwishlist&wishnonce="+rhscriptvars.wishnonce+"&wish_count="+actionwishlist+"&post_id="+post_id
26}).done(function(count){
27$this.removeClass("loading");
28if($this.hasClass('alreadywish')){
29$this.removeClass('alreadywish');
30informer=informer-1;
31$this.closest('.heart_thumb_wrap').find('#wishcount' + post_id + '').text(informer);
32if($('.rh-wishlistmenu-link .rh-icon-notice').length){
33var overallcount=parseInt($('.rh-wishlistmenu-link .rh-icon-notice').html());
34$('.rh-wishlistmenu-link .rh-icon-notice').text(overallcount - 1);
35}
36$this.attr("data-informer",informer);
37if($('#wishremoved' + post_id + '').length > 0){
38$.simplyToast($('#wishremoved' + post_id + '').html(), 'danger');
39}}else{
40$this.addClass('alreadywish');
41informer=informer+1;
42$this.closest('.heart_thumb_wrap').find('#wishcount' + post_id + '').text(informer);
43if($('.rh-wishlistmenu-link .rh-icon-notice').length){
44if($('.rh-wishlistmenu-link .rh-icon-notice').hasClass('rhhidden')){
45$('.rh-wishlistmenu-link .rh-icon-notice').removeClass('rhhidden');
46$('.rh-wishlistmenu-link .rh-icon-notice').text(1);
47}else{
48var overallcount=parseInt($('.rh-wishlistmenu-link .rh-icon-notice').html());
49$('.rh-wishlistmenu-link .rh-icon-notice').text(overallcount + 1);
50}}
51$this.attr("data-informer",informer);
52if($('#wishadded' + post_id + '').length > 0){
53$.simplyToast($('#wishadded' + post_id + '').html(), 'success');
54}}
55}
56);
57return false;
58});
59if(typeof wishcached!=='undefined'){
60var favListed=$(".heartplus");
61if(favListed.length!=0){
62$.ajax({
63type: "get",
64url: wishcached.rh_ajax_url,
65data: "action=refreshwishes&userid="+wishcached.userid,
66cache:!1
67}).done(function(data){
68var wishlistids=data.wishlistids.split(',');
69if(wishlistids.length!=0){
70favListed.each(function(){
71var postID=$(this).attr("data-post_id");
72if($.inArray(postID, wishlistids)!=-1){
73if($(this).hasClass('alreadywish')==false){
74$(this).addClass('alreadywish');
75var informer=parseInt($(this).attr("data-informer"));
76informer=informer+1;
77$(this).attr("data-informer", informer);
78$(this).closest('.heart_thumb_wrap').find('#wishcount' + postID + '').text(informer);
79}}
80});
81if($('.rh-wishlistmenu-link .rh-icon-notice').length){
82if($('.rh-wishlistmenu-link .rh-icon-notice').hasClass('rhhidden')){
83$('.rh-wishlistmenu-link .rh-icon-notice').removeClass('rhhidden');
84}
85$('.rh-wishlistmenu-link .rh-icon-notice').text(data.wishcounter);
86}}
87}
88);
89}}
90});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.