Articles by: cpdiver

  • Chile habría intentado vender la Isla de Pascua a los nazis

    window.tabbola_type = “article”;
    Comentarios

    (function ($) {
    // // returns the value of a specified cookie
    function getCookie(cname) {
    var name = cname + “=”;

    var decodedCookie = decodeURIComponent(document.cookie);
    var ca = decodedCookie.split(‘;’);
    for (var i = 0; i < ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0) == ' ') {
    c = c.substring(1);
    }
    if (c.indexOf(name) == 0) {
    data = c.substring(name.length, c.length);
    return JSON.parse(data);
    }
    }
    return "";
    }
    function _read_cookie() {
    if(typeof window.register_services == 'undefined'){
    window.register_services = getCookie("_register_services");
    }
    }

    function can_update_comment(commentName){
    if(
    typeof window.register_services != 'undefined' &&
    window.register_services !== null && window.register_services != '' &&
    window.register_services.hasOwnProperty('name') &&
    window.register_services.name == commentName
    ){
    return true;
    }else{
    return false;
    }
    }

    function can_create_comment(){
    if(typeof window.register_services == 'undefined' || window.register_services == null || window.register_services == '') return 0;
    if( window.register_services.role != 1 ) return 2;
    return 1;
    }
    function _html_form_register(user_rol){
    html = '';
    html += '’+

    Este es un espacio para la construcción de ideas, y de opinión.

    ‘+

    Se busca crear un foro de convivencia y reflexión, no un escenario de ataques al pensamiento contrario

    ‘;
    if(user_rol == 1){
    html += ”+
    ‘Su correo no ha sido confirmado. para poder opinar en los contenidos de El Espectador debe confirmarlo haciendo click ‘+
    ‘AQUÍ’+
    ”;
    }else{
    html += ‘

    ‘+
    ”+
    Ingrese aquí‘+
    ”+
    ”;
    }
    return html;
    }

    function generate_popup(message) {
    return ”+
    ”+
    ”+
    ‘+
    ”+
    ”+
    ”+
    ”+
    ”+
    ‘Error message’+
    message +”+
    ”+
    ”+
    ”+
    ”;
    }
    function init(comments, canComment) {
    var canComment = can_create_comment();
    var html = “”;
    html += canComment == 2 ? _html_form_send(false) : _html_form_register(canComment);
    html += “”;
    $.each(comments.data, function (i, comment) {
    html += _html_comment(comment, canComment);
    });
    html += “”;
    html += “”;
    $(“.comment_list_803728″).html(html).slideToggle(200);
    _active_events();
    }

    function _html_comment(comment, canComment) {
    var html = ”;
    html += “”;
    html += “”;
    html += “

    ” + comment.name + ” ” + comment.create + “

    “;
    html += “”;
    html += “

    ” + comment.body + “

    “;
    html += “”;
    if(canComment == 2) html += “Responder”;
    if(can_update_comment(comment.name)) html += “Editar”;
    html += “”;
    html += “”;
    if (typeof comment.lchildren !== ‘undefined’ && comment.lchildren.length > 0) {

    $.each(comment.lchildren, function (i, cm) {
    html += _html_comment(cm, 0);
    });

    }
    html += “”;
    html += “”;
    return html;
    }

    function _html_form_send(cancel) {
    var html = ”;
    html = ”+

    Este es un espacio para la construcción de ideas, y de opinión.

    ‘+

    Se busca crear un foro de convivencia y reflexión, no un escenario de ataques al pensamiento contrario

    ‘+

    Máximo 1500 caracteres

    ‘+
    ”;
    if(cancel) html=”;
    html += ” +
    ” +
    ” +
    ‘Enviar’;
    html += cancel ?’Cancelar’ : ”;
    html +=” +
    ”;
    return html;
    }

    function _active_events() {

    $(“.btn-cancel”).off(“click”);
    $(“.btn-cancel”).on(“click”, function (event) {
    event.preventDefault();
    var p = $(this).parents(“.form-comment”).first();
    p.siblings(“.btns”).show();
    p.remove();
    });

    $(“.btn-send”).off(“click”);
    $(“.btn-send”).on(“click”, function (event) {
    event.preventDefault();
    var p = $(this).parents(“.form-comment”).first();
    p.children(“textarea”).removeAttr(‘style’);
    var text = p.children(“textarea”).val();
    var that = $(this);
    that.hide();
    if (text == “”) {
    $(“.comment_list_803728”).append(generate_popup(‘El campo Comentario es obligatorio.’));
    p.children(“textarea”).css({“border-color”: “red”, “border-width”:”2px”, “border-style”:”solid”});
    that.show();
    } else {
    var p_comment = $(this).parents(“.item-comment-chield”).first();
    var formData = new FormData();
    formData.append(“comment”, text);
    if( p_comment.hasClass(“update”) ){
    p_comment.find(‘.bts-form’).hide();
    var comment_id = p_comment.attr(“data-commentid”);
    // formData.append(“parentId”, comment_id);
    formData.append(“nid”, “803728”);
    $.ajax({
    url: “/ee-comments-services/comments/update/”+comment_id,
    type: ‘POST’,
    data: formData,
    cache: false,
    contentType: false,
    processData: false,
    success: function (response) {
    if (response.status == true) {
    p_comment.children(“.comment-body”).text(text);
    p_comment.children(“.form-comment”).remove();
    p_comment.children(“.btns”).show();
    p_comment.removeClass(“update”);
    } else {
    if(response.message){
    p_comment.children(“.comment-body”).append(generate_popup(response.message));
    }else{
    p_comment.children(“.comment-body”).append(generate_popup(‘No se pudo actualizar el comentario’));
    }
    p_comment.children(“.form-comment”).remove();
    p_comment.children(“.btns”).show();
    }
    that.show();
    }
    });
    }else{
    var cantComment = 0;
    if (p_comment.length == 0) {
    cantComment = can_create_comment();
    formData.append(“parentId”, “0”);
    console.log(‘este es nuevo’);
    } else {
    cantComment = 0;
    formData.append(“parentId”, p_comment.attr(“data-commentid”));
    console.log(‘esto es una respuesta’);
    }
    $.ajax({
    url: “/ee-comments-services/comments/create/803728”,
    type: ‘POST’,
    data: formData,
    cache: false,
    contentType: false,
    processData: false,
    success: function (response) {
    if (response.status == true) {
    var html_comment = _html_comment(response.data, cantComment);
    if (p_comment.length == 0) {
    p.find(“textarea”).val(“”);
    p.parents(“.super_box”).first().find(“.comments_box”).prepend(html_comment);
    } else {
    var btn = p.siblings(“.btns”);
    btn.show();
    p.remove();
    btn.siblings(“.lchildren”).append(html_comment);
    }
    _active_events();
    } else {
    var btn = p.siblings(“.btns”);
    if(response.message){
    console.log(response);
    $(“.comment_list_803728”).append(generate_popup(response.message));
    }else{
    $(“.comment_list_803728”).append(generate_popup(‘No se pudo guardar el comentario’));
    }
    }
    that.show();
    }
    });
    }

    }
    _active_events();
    });

    $(“.btn-responder”).off(“click”);
    $(“.btn-responder”).on(“click”, function (event) {
    event.preventDefault();
    var btn = $(this).parents(“.item-comment-chield”).first().children(“.btns”);
    btn.after(_html_form_send(true));
    btn.hide();
    _active_events();
    });

    $(“.btn-editar”).off(“click”);
    $(“.btn-editar”).on(“click”, function (event) {
    event.preventDefault();
    console.log(‘entro al editar’);
    var p = $(this).parents(“.item-comment-chield”).first();
    var btn = p.children(“.btns”);
    btn.after(_html_form_send(true));
    btn.hide();
    p.addClass(“update”);
    p.find(“textarea”).val(p.children(“.comment-body”).text());
    _active_events();
    });
    $(“.btn-send-notify-user-zone”).off(“click”);
    $(‘.btn-send-notify-user-zone’).click(function () {
    $.ajax({
    method: ‘GET’,
    url: ‘/register-services/user/confirm’,
    cache: false,
    contentType: false,
    processData: false,
    dataType: ‘json’,
    success: function (result) {
    if(result.status) $(‘.div-btn-send-notify’).append(generate_popup(result.message));
    },
    })
    })
    }
    var host = window.location.origin;
    _read_cookie();
    var urlcount = host + “/ee-comments-services/comments/count/” + “803728”;
    $.get(urlcount, function (response) {
    $(“.get_comments_803728”).children(‘span’).html(response.totalComments);
    });
    $(“.get_comments_803728”).on(‘click’, function (event) {
    event.preventDefault();
    var selector = $(“.comment_list_803728”);
    if( selector.hasClass( “push” )){
    selector.removeClass(“push”)
    }else{
    selector.addClass(“push”)

    }
    if( selector.hasClass( “response” )){
    selector.slideToggle(200);
    }else{
    selector.addClass(“response”)
    $.get(host + “/ee-comments-services/comments/read/” + “803728”, function (response) {
    init(response);
    });
    }

    });
    })(jQuery);

    Read more »

  • Leaked specs for the DJI Mavic 2 drone will make you want it right now

    Read more at: https://www.droneality.com

    Thanks to an early reveal in the catalog from British retailer Argos, we have an idea of what’s coming spec-wise with the next DJI Mavic drone.

    The catalog apparently jumped the gun on running images of the drone that also include technical specifications after DJI scrapped a press event that had been set for July 18. We were supposed to get an announcement at that event about the next model, which the leaked images show will apparently come in two versions — the Zoom and the Pro.

    Both versions, among other things, will reportedly have a range of five miles and be able to fly at a top speed of 45 mph. The Zoom will come with a 2x optical zoom lens, while the Pro model will include a Hasselblad camera with a 1-inch sensor. The ability to transmit live 1080p video will be a feature of both models — from up to 5 miles — and both models will also come with 360-degree obstacle avoidance.

    According to a statement the BBC obtained from a DJI spokesman, the catalog also only shows a “hint” of what will be on offer with the new drones.

    “This pre-printed catalogue was scheduled before we postponed our ‘See the Bigger Picture’ event,” the spokesman continued, adding that the event had been delayed to “ensure we can deliver high-quality, cutting-edge technology to our customers.”

    The BBC report goes on to note how popular the original Mavic Pro proved to be especially with filmmakers because of the way it could be folded down and compactly stored. BBC journalist Rory Cellan-Jones tested the original Mavic Pro with filmmaker Philip Bloom in 2016.

    Argos, meanwhile, has acknowledged it only learned about the event’s delay after its new catalogs — which come out every six months — were printed. Some of the most important details, we should note, also don’t appear in the printed ad, such as pricing or a release date.

    From the ad itself, per DroneDJ: ““The Mavic 2 is a small yet powerful drone with 1080p video transmission and up to 8km (5 miles) transmission distance and a max speed of 20m/s (45mph). It will turn the sky into your creative canvas. Its compact size and 31-minute max flight time makes this one of DJI’s most sophisticated flying cameras ever. Omnidirectional obstacle sensing with APAS and Active Track 2.0 give you the confidence to take to the sky and capture your moment. Dolly Zoom (zoom version only). DJI Mavic 2 Pro & DJI Mavic 2 Zoom.”

    The post Leaked specs for the DJI Mavic 2 drone will make you want it right now appeared first on DRONEALITY.

    Read more »

  • LED Flight Indicators

    Read more »