PageSourceSearch

https://replaysurfacing.com/wp-content/plugins/interiar-core/assets/js/theme-core.js?ver=1.0

js replaysurfacing.com collected 2026-10-06 13:09:03 UTC 2,825 bytes, 103 lines download raw bytes

1/*
2 * Interiar Core Theme Js 
3 */ 
4
5(function( $ ) {
6
7	"use strict";
8			  
9	$( document ).ready(function() {
10	
11		/* Twitter Widget Slider(newsticker) */
12		if( $( ".twitter-slider" ).length ){
13			$( ".twitter-slider" ).each(function() {
14				var twit_slider = $(this);	
15				var slide = twit_slider.attr( "data-show" );
16				twit_slider.easyTicker({
17					direction: 'up',
18					visible: parseInt(slide),
19					easing: 'swing',
20					interval: 4000
21				});
22			});
23		}
24		
25		/* Post Like */
26		$( document ).on( 'click', ".post-like, .post-dislike", function( event) {
27	
28			var current = $(this);
29			var like_stat = current.data("stat");
30			var post_id = current.data("id");
31			var parent = current.parents('.post-like-wrap');
32
33			//return false;
34			if( like_stat != '' ){
35				
36				if( like_stat == '1' ){
37					parent.find('.post-disliked').removeClass('fa-thumbs-down post-disliked').addClass('fa-thumbs-o-down post-dislike');
38					current.removeClass('fa-thumbs-o-up post-like').addClass('fa-thumbs-up post-liked');
39				}else{
40					parent.find('.post-liked').removeClass('fa-thumbs-up post-liked').addClass('fa-thumbs-o-up post-like');
41					current.removeClass('fa-thumbs-o-down post-dislike').addClass('fa-thumbs-down post-disliked');
42				}
43				
44				// Ajax call
45				$.ajax({
46					type: "post",
47					url: interiar_ajax_var.admin_ajax_url,
48					data: "action=post_like_act&nonce="+interiar_ajax_var.like_nonce+"&like_stat="+like_stat+"&post_id="+post_id,
49					success: function(res){
50						$( parent ).html(res);
51						$('body').tooltip({
52							container: 'body',
53							trigger: 'hover',
54							html: true,
55							animation: false,
56							selector: '[data-toggle="tooltip"]'
57						});
58					},
59					error: function (jqXHR, exception) {
60						console.log(jqXHR);
61					}
62				});
63			}
64			return false;
65		});
66		$( document ).on( 'click', ".post-liked, .post-disliked, .post-fav-done", function( event) {
67			return false;
68		});	
69		
70		/* Post Favourite */
71		$( document ).on( 'click', ".post-favourite", function( event) {
72	
73			var current = $(this);
74			var post_id = current.data("id");
75			var parent = current.parents('.post-fav-wrap');
76
77			if( post_id != '' ){
78				// Ajax call
79				$.ajax({
80					type: "post",
81					url: interiar_ajax_var.admin_ajax_url,
82					data: "action=post_fav_act&nonce="+interiar_ajax_var.fav_nonce+"&post_id="+post_id,
83					success: function(res){
84						$( parent ).html(res);
85						$('body').tooltip({
86							container: 'body',
87							trigger: 'hover',
88							html: true,
89							animation: false,
90							selector: '[data-toggle="tooltip"]'
91						});
92					},
93					error: function (jqXHR, exception) {
94						console.log(jqXHR);
95					}
96				});
97			}
98			return false;
99		});
100			
101	}); // doc ready end
102
103})( jQuery );

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.