Sha256: 2e5393aafdb8dfd076eb1d37ccc7b2ccea20897b6cbca3ee00409981141b84ca

Contents?: true

Size: 954 Bytes

Versions: 15

Compression:

Stored size: 954 Bytes

Contents

class View {

  static get(url,params,destination){
    $(destination).html('<div class="text-center" style="padding:100px;"><div class="preloader pls-teal bgm-none"><svg class="pl-circular" viewBox="25 25 50 50"><circle class="plc-path" cx="50" cy="50" r="20"></circle></svg></div><h5>Cargando...</h5></div>');
    $.ajax({
        url: url,
        type: 'GET',
        data: params
    }).done(function(result) {
      $(destination).html(result);
    }).error(function(result) {
      $(destination).html('<div class="lv-item p-20 bgm-red m-b-5 animated fadeIn"><div class="media"><div class="pull-left"><i class="zmdi zmdi-hc-3x zmdi-alert-octagon c-white"></i></div><div class="media-body"><div class="lv-title c-white">Algo salió mal</div><small class="lv-small c-white">Los administradores acaban de ser informados de este error, ni bien tengan una solución se te notificará. Disculpá las molestias.</small></div></div></div>');
    });
  }
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sinatra-hexacta-1.6.4 lib/sinatra/public/js/view.js
sinatra-hexacta-1.6.3 lib/sinatra/public/js/view.js
sinatra-hexacta-1.6.2 lib/sinatra/public/js/view.js
sinatra-hexacta-1.6.1 lib/sinatra/public/js/view.js
sinatra-hexacta-1.6.0 lib/sinatra/public/js/view.js
sinatra-hexacta-1.5.3 lib/sinatra/public/js/view.js
sinatra-hexacta-1.5.2 lib/sinatra/public/js/view.js
sinatra-hexacta-1.5.1 lib/sinatra/public/js/view.js
sinatra-hexacta-1.5.0 lib/sinatra/public/js/view.js
sinatra-hexacta-1.4.4 lib/sinatra/public/js/view.js
sinatra-hexacta-1.4.3 lib/sinatra/public/js/view.js
sinatra-hexacta-1.4.2 lib/sinatra/public/js/view.js
sinatra-hexacta-1.4.1 lib/sinatra/public/js/view.js
sinatra-hexacta-1.4.0 lib/sinatra/public/js/view.js
sinatra-hexacta-1.3.0 lib/sinatra/public/js/view.js