PageSourceSearch

https://www.lovelysmilesortho.com/wp-content/uploads/2025/07/blog_migrated.js

js lovelysmilesortho.com collected 2026-10-08 02:12:59 UTC 6,062 bytes, 164 lines download raw bytes

1var validateBlogCaptcha = function (response) {
2    $('#blog-form input[name="recaptcha"]').val(response);
3}
4
5var blogsMonkeyList = [];
6var perPageBlogs = 6;
7$(function () {
8    blogsMonkeyList = new List('blog-box', {
9        valueNames: ['single-blog-box'],
10        page: perPageBlogs,
11        pagination: true,
12        pagination: [
13            {
14                outerWindow: 1,
15                innerWindow: 1
16            }
17        ]
18    });
19
20    $('#blogName').on('keyup', function () {
21        var re = $('#blogName').val();
22        if (re == "") {
23            $('#errorBlog').css("display", "inline-block");
24        } else {
25            $('#errorBlog').css("display", "none");
26        }
27    });
28    $('#blogEmail').on('keyup', function () {
29        var re = $('#blogEmail').val();
30        if (re == "") {
31            $('#errorBlog').css("display", "inline-block");
32        } else {
33            $('#errorBlog').css("display", "none");
34        }
35    });
36    $('#blogComment').on('keyup', function () {
37        var re = $('#blogComment').val();
38        if (re == "") {
39            $('#errorBlog').css("display", "inline-block");
40        } else {
41            $('#errorBlog').css("display", "none");
42        }
43    });
44
45    $("#blog-form").submit(function (e) {
46        e.preventDefault();
47        if ($("#blogName").val() == "" || $('#blogEmail').val() == "" || $('#blogComment').val() == "" || $('#blog-form input[name="recaptcha"]').val() == "") {
48            $('#errorBlog').css("display", "inline-block");
49        } else {
50            var data = $(this).serializeArray();
51            var form = $(this);
52            $.ajax({
53                dataType: 'json',
54                type: 'POST',
55                url: GP_WEBSITES_API_URL + "/api/blog/post-comment/",
56                headers: {'GP-Host': window.location.hostname},
57                data: data,
58                success: function (json) {
59
60                    if($("#success-popup").length > 0 ){
61                        $("p.dynamic-text").text(blog_popup_success_text);
62                        $("#success-popup").modal("show");
63
64                    }else{
65                        $("#success-blog").modal("show");
66                    }
67
68                    /* APPENDING THE REPLY IF ITS INSERTED */
69                    showComment();
70                    $("#blogName").val('');
71                    $('#blogEmail').val('');
72                    $('#blogComment').val('');
73                },
74                error: function (json) {
75                    if(json.responseJSON.message == 'failed, duplicate entry'){
76                        $(".err-text").text('You have already posted the comment!');
77                        $("#error-blog").modal("show");
78                    }
79
80                }
81            });
82        }
83
84    });
85
86    /* FUNCTION TO ADD REPLY INSIDE THE DIV */
87    function showComment() {
88        var newDate = new Date();
89        var blogName = $("#blogName").val();
90        var comment = $("#blogComment").val();
91        var email = $("#blogEmail").val();
92        json = {
93            blogName: blogName,
94            comment: comment,
95            date: newDate.toDateString()
96        }
97        console.log("check json :", json);
98        var element = "<div class='col-md-6'>"
99        element += "<div class='blog-content'>"
100        element += "<div class='parag'>"
101        element += "<div class='read-more'>" + json.comment + "</div>"
102        if(json.comment.length > 150){
103            element += "<a data-toggle=modal data-target=#view-blog class='more'>more <i class='fa fa-angle-right'></i></a>"
104        }
105        element += "</div>"
106        element += "<div class='clearfix'></div>"
107        element += "<div class='blog-data'><h3 class='blogName'>" + json.blogName + "</h3>"
108        element += "<label class='date'>" + json.date + "</label></div></div></div>";
109        console.log("get value : ", element)
110        if (comment != "" && blogName != "" && email != "") {
111            $("#blogPost").append(element);
112        } else {
113            $('#errorBlog').css("display", "inline-block");
114        }
115    }
116
117    /*Blog Content Page*/
118// $("#submitBlog").click(function(){
119    // var newDate = new Date();
120    // var blogName = $("#blogName").val();
121    // var comment = $("#blogComment").val();
122    // var email = $("#blogEmail").val();
123    // json = {
124    //    blogName : blogName,
125    //    comment : comment,
126    //    date : newDate.toDateString()
127    //  }
128    //  console.log("check json :", json);
129    // var element = "<div class='col-md-6'>"+
130    //                   "<div class='blog-content'>"+
131    //                       "<div class='parag'>"+
132    //                           "<div class='read-more'>"+ json.comment +"</div>"+
133    //                           "<a data-toggle=modal data-target=#view-blog class='more'>more <i class='fa fa-angle-right'></i></a>"+
134    //                       "</div>"+
135    //                       "<div class='clearfix'></div>"+
136    //                       "<div class='blog-data'><h3 class='blogName'>"+ json.blogName +"</h3>"+
137    //                       "<label class='date'>"+ json.date +"</label></div></div></div>";
138    // console.log("get value : ", element)
139    // if(comment != "" && blogName != "" && email != ""){
140    //     $("#blogPost").append(element);
141    // }else{
142    //     $('#errorBlog').css("display", "inline-block");
143    // }
144//   })
145
146    var getData = $("#blog-box .read-more");
147    var getMore = $("#blog-box .more");
148    for (var i = 0; i < getData.length; i++) {
149        if (getData[i].innerText.length < 195) {
150            getMore[i].style.display = "none";
151        }
152    }
153
154    $("body").on('click', '.more', function (e) {
155        e.preventDefault();
156        var getHtml = $(this).parent().parent().find(".blog-data").html();
157        var getText = $(this).parent().find(".read-more").text();
158        console.log("get data :", getHtml)
159        console.log("get get Text :", getText)
160        $("#view-blog .blog-attr").html(getHtml);
161        $("#view-blog .blog-text").text(getText);
162    });
163});
164

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.