PageSourceSearch

https://dawonstudio.com/js/_web_common.js?v=0

js dawonstudio.com collected 2026-10-06 13:02:08 UTC 4,400 bytes, 181 lines download raw bytes

1/**
2 * @param url
3 * @param target
4 * @author syman <[email protected]>
5 */
6function move(url, target) {
7    if (url === 'reload') reload();
8    else if (url === 'back') back();
9    else if (target) window.open(url, target);
10    else window.location.href = url;
11}
12
13/**
14 * @author syman <[email protected]>
15 */
16function appLogoutAction() {
17    try {
18        // window.flutter_inappwebview.callHandler('isLogout');
19        window.flutter_inappwebview.callHandler('setLogout');
20    } catch (e) {
21    }
22}
23
24/**
25 * @author syman <[email protected]>
26 */
27function appLogout() {
28    try {
29        if (isFlutterInAppWebViewPlatformReady) {
30            appLogoutAction();
31        } else {
32            window.addEventListener('flutterInAppWebViewPlatformReady', function (event) {
33                isFlutterInAppWebViewPlatformReady = true;
34                appLogoutAction();
35            });
36        }
37    } catch (e) {
38    }
39}
40
41/**
42 * @param url
43 * @author syman <[email protected]>
44 */
45function appUrlDownloadAction(url) {
46    try {
47        window.flutter_inappwebview.callHandler('urlDownload', url);
48    } catch (e) {
49    }
50}
51
52/**
53 * @param url
54 * @author syman <[email protected]>
55 */
56function appUrlDownload(url) {
57    try {
58        if (isFlutterInAppWebViewPlatformReady) {
59            appUrlDownloadAction(url);
60        } else {
61            window.addEventListener('flutterInAppWebViewPlatformReady', function (event) {
62                isFlutterInAppWebViewPlatformReady = true;
63                appUrlDownloadAction(url);
64            });
65        }
66    } catch (e) {
67    }
68}
69
70/**
71 * @param url
72 * @author syman <[email protected]>
73 */
74function appUrlOpenAction(url) {
75    try {
76        window.flutter_inappwebview.callHandler('urlOpen', url);
77    } catch (e) {
78    }
79}
80
81/**
82 * @param url
83 * @author syman <[email protected]>
84 */
85function appUrlOpen(url) {
86    try {
87        if (isFlutterInAppWebViewPlatformReady) {
88            appUrlOpenAction(url);
89        } else {
90            window.addEventListener('flutterInAppWebViewPlatformReady', function (event) {
91                isFlutterInAppWebViewPlatformReady = true;
92                appUrlOpenAction(url);
93            });
94        }
95    } catch (e) {
96    }
97}
98
99/**
100 * @param productDetailId
101 * @author syman <[email protected]>
102 */
103function appShowShopItemPaymentAction(productDetailId) {
104    try {
105        window.flutter_inappwebview.callHandler('showShopItemPayment', productDetailId);
106    } catch (e) {
107    }
108}
109
110/**
111 * @param productDetailId
112 * @author syman <[email protected]>
113 */
114function appShowShopItemPayment(productDetailId) {
115    try {
116        if (isFlutterInAppWebViewPlatformReady) {
117            appShowShopItemPaymentAction(productDetailId);
118        } else {
119            window.addEventListener('flutterInAppWebViewPlatformReady', function (event) {
120                isFlutterInAppWebViewPlatformReady = true;
121                appShowShopItemPaymentAction(productDetailId);
122            });
123        }
124    } catch (e) {
125    }
126}
127
128/**
129 * @author syman <[email protected]>
130 */
131function appShowShopPurchasedItemAction() {
132    try {
133        window.flutter_inappwebview.callHandler('showShopPurchasedItem');
134    } catch (e) {
135    }
136}
137
138/**
139 * @author syman <[email protected]>
140 */
141function appShowShopPurchasedItem() {
142    try {
143        if (isFlutterInAppWebViewPlatformReady) {
144            appShowShopPurchasedItemAction();
145        } else {
146            window.addEventListener('flutterInAppWebViewPlatformReady', function (event) {
147                isFlutterInAppWebViewPlatformReady = true;
148                appShowShopPurchasedItemAction();
149            });
150        }
151    } catch (e) {
152    }
153}
154
155function font_resize(id, rmv_class, add_class, othis) {
156    const $el = $("#" + id);
157
158    if ((typeof rmv_class !== "undefined" && rmv_class) || (typeof add_class !== "undefined" && add_class)) {
159        $el.removeClass(rmv_class).addClass(add_class);
160
161        $.cookie("ck_font_resize_rmv_class", rmv_class);
162        $.cookie("ck_font_resize_add_class", add_class);
163    }
164
165    if (typeof othis !== "undefined") {
166        $(othis).addClass('select').siblings().removeClass('select');
167    }
168}
169
170$(function () {
171    try {
172
173        // $('#changeLocale').change(function () {
174        //     var languageCode = $(this).find('option:selected:first').val();
175        //     actionChangeLanguage(languageCode);
176        // });
177
178    } catch (e) {
179        console.warn(e);
180    }
181});

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.