PageSourceSearch

https://www.bookingtaxivip.com/static/js/sns.js

js bookingtaxivip.com collected 2026-10-08 17:35:03 UTC 1,898 bytes, 69 lines download raw bytes

1$(function() {
2    function isSmartPhone() {
3        if(navigator.userAgent.match('.*iPhone.*') || navigator.userAgent.match('.*Android.*Mobile.*')){
4            return true;
5        }else{
6            return false;
7        }
8    }
9
10    var snsUrls = {
11        twitter: "http://twitter.com/share?",
12        facebook: "http://www.facebook.com/share.php?",
13        google: "https://plus.google.com/share?",
14        line: {
15            sm: "line://msg/text/",
16            pc: "http://line.me/R/msg/text/?"
17        }
18    };
19
20    function getTwitterUrl() {
21            return snsUrls.twitter + 'text=' + encodeURIComponent(document.title) + '&url=' + encodeURIComponent(location.href);
22    }
23
24    function getFacebookUrl() {
25        return snsUrls.facebook + 'u=' + encodeURIComponent(location.href);
26    }
27
28    function getGoogleUrl() {
29        return snsUrls.google + 'url=' + encodeURIComponent(location.href);
30    }
31
32    function getLineUrl() {
33        if(isSmartPhone()) {
34            return snsUrls.line.sm + encodeURIComponent(document.title + ' ' + location.href);
35        } else {
36            return snsUrls.line.pc + encodeURIComponent(document.title + ' ' + location.href);
37        }
38    }
39
40    $('.snsicon a').click(function(e) {
41        var sns = $(this).data('sns');
42        var url = '';
43
44        switch(sns) {
45            case 'twitter':
46                url = getTwitterUrl();
47                break;
48            case 'facebook':
49                url = getFacebookUrl();
50                break;
51            case 'google':
52                url = getGoogleUrl();
53                break;
54            case 'line':
55                url = getLineUrl();
56                break;
57            default:
58                break;
59        }
60
61        if(url.match('^https?://')) {
62            window.open(url);
63        } else {
64            location.href = url;
65        }
66
67        e.preventDefault();
68    });
69});

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.