PageSourceSearch

https://www.traversiers.com/_assets/26dcebd1710e5fe9e47e5c1f9979e5…/modules/routes_list_services.js?1789147798

js traversiers.com collected 2026-09-24 20:00:24 UTC 1,294 bytes, 39 lines download raw bytes

1if(typeof STQ === 'undefined') var STQ = {};
2
3/**
4 * Affichage des bouttons d'accès aux services pour les traverses qui ont ces services. 
5 */
6STQ.routeServices = (function(){
7
8    function run(){
9        $(".js--widget-traverses-content").each(function(){
10            var $block = $(this);
11            var route_code = $(this).data('appid');
12            if(route_code.length > 0){
13                
14                // Reservation
15                STQ.eaProxy.routeHasService(route_code, 'reservation', function(has){
16                    if(has){
17                        var url_key = "reservation_" + route_code;
18                        STQ.eaProxy.getUrl(url_key, function(url){
19                            // Don't show button if URL can't be found.
20                            if(url){
21                                var $reservation_button = $($("#reserve_online_list_item").html());
22
23                                var $link = $reservation_button.find("a");
24                                $link.prop("href", url);
25
26                                $block.find(".list-buttons").append($reservation_button);
27                            }
28                        });
29                    }
30                });
31            }
32        });
33    }
34    
35    return {
36        run: run
37    };
38
39})();

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.