PageSourceSearch

https://www.tmprosthodontics.com/wp-content/plugins/click-to-chat-for-whatsapp/assets/js/app.js?ver=1.6

js tmprosthodontics.com collected 2026-10-04 13:34:46 UTC 3,111 bytes, 110 lines download raw bytes

1// jQuery(document).ready(function ($) {
2jQuery(document).ready(function () {
3
4    // to solve autop issue, when added shortcode in same line.
5    jQuery(".inline_issue").prev("p").css("display", "inline");
6
7    // animations .. 
8    jQuery('.ccw-an').hover(add, remove);
9
10    function add() {
11        // jQuery(this).addClass('animated bounce infinite');
12        jQuery(this).addClass('animated infinite');
13    }
14
15    function remove() {
16        jQuery(this).removeClass('animated infinite');
17    }
18});
19
20
21var url = window.location.href;
22
23var google_analytics = ht_ccw_var.google_analytics;
24var fb_analytics = ht_ccw_var.fb_analytics;
25
26var title = ht_ccw_var.page_title;
27
28
29/**
30 * Analytics
31 */
32ht_ccw_clickevent();
33
34function ht_ccw_clickevent() {
35
36    var ccw_plugin = document.querySelector('.ccw_plugin');
37
38    if ( ccw_plugin ) {
39        ccw_plugin.addEventListener('click', ht_ccw_clicked);
40    }
41
42}
43
44// when cliced on sytle - source ht_ccw_clickevent() click event
45function ht_ccw_clicked() {
46
47    if ( 'true' == google_analytics ) {
48        google_analytics_event();
49    }
50
51    if ( 'true' == fb_analytics ) {
52        fb_analytics_event();
53    }
54
55}
56
57// google analytics - source - ht_ccw_clicked
58function google_analytics_event() {
59
60    var ga_category = ht_ccw_var.ga_category.replace('{{url}}', url).replace('{{title}}', title);
61    var ga_action = ht_ccw_var.ga_action.replace('{{url}}', url).replace('{{title}}', title);
62    var ga_label = ht_ccw_var.ga_label.replace('{{url}}', url).replace('{{title}}', title);
63
64    // ga('send', 'event', 'Contact', 'Call Now Button', 'Phone');
65
66    if ("ga" in window) {
67        tracker = ga.getAll()[0];
68        if (tracker) tracker.send("event", ga_category, ga_action, ga_label );
69    } else if ("gtag" in window) {
70        gtag('event', ga_action, {
71            'event_category': ga_category,
72            'event_label': ga_label,
73        });
74    }
75
76}
77
78// fb analytics - source - ht_ccw_clicked
79function fb_analytics_event() {
80    
81    var p1_value = ht_ccw_var.p1_value.replace('{{url}}', url).replace('{{title}}', title);
82    var p2_value = ht_ccw_var.p2_value.replace('{{url}}', url).replace('{{title}}', title);
83    var p3_value = ht_ccw_var.p3_value.replace('{{url}}', url).replace('{{title}}', title);
84
85    logFb_analyticsEvent(p1_value, p2_value, p3_value)
86}
87
88
89/**
90 * fb analytics
91 * This function will log custom App Event
92 * @param {string} dynamic_name_value
93 * @param {string} dynamic_name_value
94 * @param {string} dynamic_name_value
95 */
96function logFb_analyticsEvent(p1_value, p2_value, p3_value) {
97
98    var p1_name = ht_ccw_var.p1_name;
99    var p2_name = ht_ccw_var.p2_name;
100    var p3_name = ht_ccw_var.p3_name;
101    
102    var fb_event_name = ht_ccw_var.fb_event_name;
103
104    var params = {};
105    params[p1_name] = p1_value;
106    params[p2_name] = p2_value;
107    params[p3_name] = p3_value;
108    // if fb analytics is not installed - uncheck the fb analytics option from plugin settings
109    FB.AppEvents.logEvent( fb_event_name, null, params);
110}

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.