PageSourceSearch

https://www.andeshandbook.org/media/new_js/route.js?v=4

js andeshandbook.org collected 2026-10-02 12:45:55 UTC 2,975 bytes, 88 lines download raw bytes

1$(document).ready(function(){
2
3	$('body').delegate('#upload-image-text, .edit-gallery-btn', 'click', function(){
4    $('#gallery-modal .modal-body').html('');
5    $('#gallery-modal .modal-body').load($(this).data('url'));
6    $('#gallery-modal').modal('show');
7  });
8
9	$('body').delegate('.mycarousel a', 'click', function(){
10    $('#gnrl-gallery-modal .modal-body').html('');
11    $('#gnrl-gallery-modal .modal-body').html("<img width='100%' src='"+$(this).find('img').attr('src').replace('/thumb', '')+"'>");
12    $('#gnrl-gallery-modal').modal('show');
13  });
14
15	$('body').delegate('.nn-edit-comment-btn', 'click', function(){
16    var loadingClass = "success";
17    var loadingContent = '<div class="load"><div class="help ' + loadingClass +'"></div></div>';
18    $('#comment-modal .modal-body').html(loadingContent);
19    $('#comment-modal .modal-body').load($(this).data('url'));
20    $('#comment-modal').modal('show');
21  });
22
23  $('body').delegate('.nn-qualifications-modal', 'click', function(){
24    var loadingClass = "success";
25    var loadingContent = '<div class="load"><div class="help ' + loadingClass +'"></div></div>';
26    $('#comment-modal .modal-body').html(loadingContent);
27    $('#qualifications-modal').load($(this).data('url') + $(this).data('service-id'));
28    $('#qualifications-modal').modal('show');
29  });
30
31  $('body').delegate('.nn-delete-element', 'click', function(){
32    var url = $(this).data('url') + "/" + $(this).attr("element_id");
33    $.ajax({
34        url: url,
35        }).done(function() {
36          document.location.reload(true);
37        });
38  });
39
40  $('body').delegate('.delete_gpx', 'click', function(){
41    var stat = confirm('¿Realmente quieres eliminar este track?');
42    if(stat == true)
43    {
44      $.ajax({
45        url: "/route/user_delete_gpx/" + $(this).attr("gpx_id")
46      }).done(function() {
47        document.location.reload(true);
48      });
49    }
50  });
51
52});
53
54function openStatusModal(){
55  $('.nn-comments-tab').click();
56  $('#upload-comment-btn').click();
57}
58
59function openRouteGraduations(elem){
60    $('#route-graduations-modal').load($(elem).data('url'), function(){
61      $(".graduations-modal").modal('show');
62    });
63  };
64
65function uploadGpsFile(elem){
66  $('#gps-modal .modal-body').html('');
67  $('#gps-modal .modal-body').load($(elem).data('url'));
68  $('#gps-modal').modal('show');
69}
70
71function clearGpxFileInput(elem){
72  $("#uploadifive-gpxfile").text("");
73  $("#gpx_file").attr("value", "");
74}
75
76function getCardinalPointsSelect() {
77	return '<select class="form-control" name="g_to_view[]">' +
78		'<option value="">Seleccionar orientación</option>' +
79		'<option value="Norte">Norte</option>' +
80		'<option value="Noreste">Noreste</option>' +
81		'<option value="Este">Este</option>' +
82		'<option value="Sureste">Sureste</option>' +
83		'<option value="Sur">Sur</option>' +
84		'<option value="Suroeste">Suroeste</option>' +
85		'<option value="Oeste">Oeste</option>' +
86		'<option value="Noroeste">Noroeste</option>' +
87		'</select>';
88}

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.