PageSourceSearch

https://www.flydove.net/flydove.js?version=1791388344

js flydove.net collected 2026-10-07 15:53:52 UTC 10,714 bytes, 317 lines download raw bytes

1var showtextContent = true;
2var onloadCallback = function () {
3    $("div[id='free-account-g-recaptcha']").each(function () {
4        widgetId1 = grecaptcha.render('free-account-g-recaptcha', {
5            'sitekey': '6Lc-flwUAAAAAPhT4-O2RsgO_fPuncJRDXLPJBuM'
6        });
7    })
8    $("div[id='contact-g-recaptcha']").each(function () {
9        widgetId2 = grecaptcha.render('contact-g-recaptcha', {
10            'sitekey': '6Lc-flwUAAAAAPhT4-O2RsgO_fPuncJRDXLPJBuM'
11        });
12    })
13};
14$(document).ready(function () {
15    if ($(window).width() >= 992) {
16        $('#sd_menu').addClass('smartdove-info-btn');
17        $('#fd_menu').addClass('flydove-edm-sms-info-btn');
18        $('#feixin_info').addClass('feature-mit-cdp-btn');
19    }
20
21    $(window).on('hashchange', function () {
22        hashToAnchor();
23    });
24
25    /**
26     * 移動至錨點 + offset.top
27     */
28    function hashToAnchor () {
29        if (location.hash && document.getElementById(location.hash.substring(1))) {
30            scrollTopAnimate(location.hash.substring(1))
31        }
32    }
33
34    $('input[type=radio][name=source]').change(function () {
35        if (this.value == 'tester') {
36            $('#subcode_text').text('請輸入公司英文名稱,勿空格和標點符號。ex:官網為www.flydove.net,請輸入flydove');
37            $('#adText').html('🔥 【限時優惠】即日起至年底,<span style="color: red;">6,000 封</span> EDM 免費送!每日 500 封,每月上限 2,000 封,長達 3 個月的體驗機會!');
38        } else if (this.value == 'ichef') {
39            $('#subcode_text').text('請輸入 iCHEF Store ID');
40            $('#adText').text('試用帳號免費體驗30天,天天50封!共可發送300封行銷電子報!');
41        }
42    });
43
44    $(".blog-header-height").hover(
45        function () {
46            if (typeof parent.setHeaderHeight !== "undefined") {
47                if ($(window).width() >= 992) {
48                    parent.setHeaderHeight(260);
49                } else {
50                    parent.setHeaderHeight(528);
51                }
52            }
53        }, function () {
54        }
55    );
56
57    $(".dropdown-menu").hover(
58        function () {
59        }, function () {
60            if (typeof parent.setHeaderHeight !== "undefined") {
61                if ($(window).width() >= 992) {
62                    parent.setHeaderHeight(80);
63                    $(this).parent('li').removeClass('open');
64                } else {
65                    parent.setHeaderHeight(65);
66                }
67
68            }
69        }
70    );
71
72    $(".container").hover(
73        function () {
74        }, function () {
75            if (typeof parent.setHeaderHeight !== "undefined") {
76                if ($(window).width() >= 992) {
77                    parent.setHeaderHeight(80);
78                    $(this).parent('li').removeClass('open');
79                } else {
80                    parent.setHeaderHeight(65);
81                }
82
83            }
84        }
85    );
86
87    $('.navbar-collapse').on('shown.bs.collapse', function () {
88        if (typeof parent.setHeaderHeight !== "undefined") {
89            var height = document.getElementById('site-menu').offsetHeight;
90            parent.setHeaderHeight(height);
91        }
92    }).on('hidden.bs.collapse', function () {
93        if (typeof parent.setHeaderHeight !== "undefined") {
94            var height = document.getElementById('site-menu').offsetHeight;
95            parent.setHeaderHeight(height);
96        }
97    });
98
99    // 點選功能特色/客戶案例,頁面滑動到對應區塊,並關閉部落格區塊
100    $(".scrollTop").on("click", function () {
101        $(".flydoveMain-js").removeClass("hide");
102        $(".flydoveFooter-js").removeClass("hide");
103        $(".flydoveBlog-js").addClass("hide");
104        $(".flydoveCost-js").addClass("hide");
105        $(".smartdoveCost-js").addClass("hide");
106        $(".smsCost-js").addClass("hide");
107        $(".mmsCost-js").addClass("hide");
108        $(".contact-js").addClass("hide");
109        $(".freeEx-js").addClass("hide");
110        $(".offset").show();
111        let target = $(this).data("href");
112        let targetPos = $(target).offset().top;
113        $("html,body").animate({scrollTop: targetPos}, 800);
114    });
115
116    //飛信特色MIT CDP
117    $(".feature-mit-cdp-btn").on("click", function () {
118        featureMitCdp();
119        let target = $(this).data("href").substring(1);
120        scrollTopAnimate(target);
121    });
122
123    // 點選產品介紹journey
124    $(".journey-btn").on("click", function () {
125        journeyInfo();
126        $('html, body').scrollTop(0);
127    });
128
129    // 點選產品介紹smartdove
130    $(".smartdove-info-btn").on("click", function () {
131        smartdoveInfo();
132        $('html, body').scrollTop(0);
133    });
134
135    // 點選產品介紹flydove行銷
136    $(".flydove-edm-sms-info-btn").on("click", function () {
137        flydoveEdmOrSmsInfo();
138        let target = $(this).data("href").substring(1);
139        scrollTopAnimate(target);
140    });
141
142    // 點選flydove試算方案
143    $(".flydoveCostBtn").on("click", function () {
144        flydoveToggle();
145        $('html, body').scrollTop(0);
146    });
147
148    // 點選smartdove試算方案
149    $(".smartdoveCostBtn").on("click", function () {
150        smartdoveToggle();
151        $('html, body').scrollTop(0);
152    });
153
154    // 點選sms試算方案
155    $(".smsCostBtn").on("click", function () {
156        $('#sms_title').html($(this).data('title'))
157        smsToggle();
158        $('html, body').scrollTop(0);
159    });
160
161    // 點選mms試算方案
162    $(".mmsCostBtn").on("click", function () {
163        mmsToggle();
164        $('html, body').scrollTop(0);
165    });
166
167    //點選連絡我們
168    $(".contactBtn").on("click", function () {
169        contactToggle();
170        $('html, body').scrollTop(0);
171    });
172
173    //點選免費體驗
174    $(".freeExBtn").on("click", function () {
175        freeToggle();
176        $('html, body').scrollTop(0);
177    });
178
179    //點選介紹更多
180    $("#moreBtnStyleA").on("click", function () {
181        window.location.href = "/#introduction";
182    });
183
184    $(".clickContactSuccessMsg").on("click", function (e) {
185        var msg = clickContactSuccessMsgValCheck();
186        if (msg) {
187            showMsg(msg);
188            return;
189        }
190
191        e.preventDefault();
192        var form = $('#contact-form')[0];
193        var formData = new FormData(form);
194        $.ajax({
195            url: 'bat/rd-mailform.php',
196            type: "POST",
197            data: formData,
198            contentType: false,
199            cache: false,
200            processData: false,
201            success: function (data) {
202                if (data === 'MF000') {
203                    showMsg("我們已收到您的訊息!");
204                } else {
205                    showMsg("發生錯誤,請重新填寫!");
206                }
207                removeContactVal();
208                grecaptcha.reset(widgetId2);
209            }, error: function () {
210                showMsg("發生錯誤,請重新填寫!");
211                removeContactVal();
212                grecaptcha.reset(widgetId2);
213            }
214        });
215        return;
216    });
217
218    // 清空連絡我們部分的input內容
219    function removeContactVal() {
220        $("#name").val("");
221        $("#email").val("");
222        $("#tel").val("");
223        $("#company").val("");
224        $("#message").val("");
225    }
226
227    $(".submitFreeExBtn").on("click", function (e) {
228        var msg = submitFreeExBtnValCheck();
229        if (msg) {
230            showMsg(msg);
231            return;
232        }
233
234        e.preventDefault();
235        var form = $('#test-account-form')[0];
236        var formData = new FormData(form);
237        $.ajax({
238            url: 'bat/test_account.php',
239            type: "POST",
240            data: formData,
241            contentType: false,
242            cache: false,
243            processData: false,
244            success: function (data) {
245                if (data === 'MF000') {
246                    showMsg("感謝您使用飛信資訊,您將會在您填寫的Email依序收
246到\n" +
247                    "1. 信箱驗證通知\n" +
248                    "2. 帳號開通通知(內含密碼)");
249                    removeFreeExVal();
250                } else if (data === '') {return;
251                } else {
252                    showMsg(data);
253                }
254                grecaptcha.reset(widgetId1);
255            }, error: function () {
256                showMsg("連線發生異常,請重整頁面或重新點選「確定送出」。");
257                grecaptcha.reset(widgetId1);
258            }
259        });
260        return;
261    });
262
263    // 清空免費體驗部分的input內容
264    function removeFreeExVal() {
265        $("#companyName").val("");
266        $("#userID").val("");
267        $("#userContact").val("");
268        $("#userEmail").val("");
269        $("#userPhone").val("");
270        $("#companyURL").val("");
271        // $("#freeExmessage").val("");
272    }
273
274    // 表單驗證顯示訊息
275    const swalShowMsg = Swal.mixin({
276        customClass: {
277            popup: 'sweet_popupImportant',
278            title: 'sweet_titleImportant',
279            confirmButton: 'sweet_confirmbuttonImportant'
280        },
281        buttonsStyling: false
282    });
283    function showMsg(message) {
284        swalShowMsg.fire({
285            title: message
286        });
287    }
288    function scrollTopAnimate(id) {
289        let targetPos = $(`#${id}`).offset().top - 65;
290        $("html,body").animate({scrollTop: targetPos}, 800);
291    }
292    function submitFreeExBtnValCheck() {
293        var msg = '';
294        $("#companyName").val() == "" ? msg += "公司名稱未填寫\n" : msg;
295        $("#userID").val() == "" ? msg += "帳號未填寫\n" : msg;
296        $("#userContact").val() == "" ? msg += "連絡人未填寫\n" : msg;
297        $("#userEmail").val() == "" ? msg += "連絡信箱未填寫\n" : msg;
298        $("#userPhone").val() == "" ? msg += "連絡電話未填寫\n" : msg;
299        return msg;
300    }
301    function clickContactSuccessMsgValCheck() {
302        var msg = '';
303        $("#name").val() == "" ? msg = msg + "姓名未填寫\n" : msg;
304        $("#email").val() == "" ? msg = msg + "信箱未填寫\n" : msg;
305        $("#tel").val() == "" ? msg = msg + "電話未填寫\n" : msg;
306        $("#company").val() == "" ? msg = msg + "公司未填寫\n" : msg;
307        $("#message").val() == "" ? msg = msg + "內容未填寫\n" : msg;
308        return msg;
309    }
310
311    // RWD時,點選選單關閉漢堡列和選單自身
312    $(".closeHamburgerForRWD").on("click", function () {
313        $(".nav-bars.nav-bars-style").removeClass("is-active");
314        $(".navbar-collapse.collapse").attr("aria-expanded", false);
315        $(".navbar-collapse.collapse").removeClass("in");
316    });
317});

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.