text: ;
  $(function () {
      $(document)
      .on('click', '.body .nav li', function(){
          var $this = $(this);
          $this.addClass('active').siblings('li').removeClass('active');
      })
      .on('click', '.demos li', function () {
          var $this = $(this);
          var p = $this.attr('data-p');
          if(p){
              window.location.href = '../page/detail.html?p=' + p;
          }
      })
      ;
  
      function preloadImg(list) {
          if (typeof list === 'string') {
              list = [list];
          }
          for (var i = 0; i < list.length; i++) {
              var image = new Image();
              image.src = list[i];
          }
      }
      preloadImg(['../images/loading.gif', '../images/earth.png']);
  });