<commit_before>

$( document ).delegate("#report", "pagecreate", function() {

    startSocial();
    var address = localStorage.getItem('newAddress');
    var photo = localStorage.getItem('photo');

    $('.address').text(address);
    $('.authorPhoto').attr('src', photo);
    initMapreport();
});


function placeIncident() {
    var email = localStorage.getItem('email');
    var lat =   localStorage.getItem('newLat');
    var lon =   localStorage.getItem('newLong');
    var type =  $('#incidenttype').val();
    var description =  $('#comment').val();
    var address = localStorage.getItem('newAddress');
    lat = lat.replace('.',',');
    lon = lon.replace('.',',');



        var WSurl= 'http://apiprotektor.azurewebsites.net/api/Reporte/GuardarReporte/'+address+'/'+description+'/'+type+'/'+email+'/'+lon+'/'+lat;
    alert(WSurl);

        var req = $.ajax({
            url: WSurl,
            timeout: 20000,
            success: function(datos) {
                alert( "Your report has been placed. Thanks!" );
                $(":mobile-pagecontainer").pagecontainer("change","map.html", {role:""});
            },
            error: function (x, t, m) {
                alert(x + t + m);
            }
        });
}



function initMapreport() {
    var pinColor = "454545";
    var pinImage = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|" + pinColor,
        new google.maps.Size(21, 34),
        new google.maps.Point(0,0),
        new google.maps.Point(10, 34));
    var pinShadow = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_shadow",
        new google.maps.Size(40, 37),
        new google.maps.Point(0, 0),
        new google.maps.Point(12, 35));
<commit_msg>Funcionalidad de 'agregar reporte al mapa' terminada. (con algunas mejoras de look and feel)<commit_after>

$( document ).delegate("#report", "pagecreate", function() {

    startSocial();
    var address = localStorage.getItem('newAddress');
    var photo = localStorage.getItem('photo');

    $('.address').text(address);
    $('.authorPhoto').attr('src', photo);
    initMapreport();
});


function placeIncident() {
    var email = localStorage.getItem('email');
    var lat =   localStorage.getItem('newLat');
    var lon =   localStorage.getItem('newLong');
    var type =  $('#incidenttype').val();
    var description =  $('#comment').val();
    var address = localStorage.getItem('newAddress');
    lat = lat.replace('.',',');
    lon = lon.replace('.',',');



        var WSurl= 'http://apiprotektor2.azurewebsites.net/api/Reporte/GuardarReporte/'+address+'/'+description+'/'+type+'/'+email+'/'+lon+'/'+lat;
    alert(WSurl);

        var req = $.ajax({
            url: WSurl,
            timeout: 20000,
            success: function(datos) {
                alert( "Your report has been placed. Thanks!" );
                $(":mobile-pagecontainer").pagecontainer("change","map.html", {role:""});
            },
            error: function (x, t, m) {
                alert(x + t + m);
            }
        });
}



function initMapreport() {
    var pinColor = "454545";
    var pinImage = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|" + pinColor,
        new google.maps.Size(21, 34),
        new google.maps.Point(0,0),
        new google.maps.Point(10, 34));
    var pinShadow = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_shadow",
        new google.maps.Size(40, 37),
        new google.maps.Point(0, 0),
        new google.maps.Point(12, 35));

{'fraction_non_alphanumeric': 0.1817931793179318, 'fraction_numerical': 0.019526952695269526, 'mean_word_length': 2.7689119170984458, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5259625', 'n_tokens_mistral': 1193, 'n_tokens_neox': 1125, 'n_words': 215}