Exclude pad from mobile device

;(function() {

  var MODULES_PATH = 'https://a.alipayobjects.com/static/arale/'

  if (location.href.indexOf('/~lifesinger/') > 0) {
    MODULES_PATH = 'http://' + location.host + '/~lifesinger/seajs/spm/modules/'
  }


  // Ref: https://github.com/miohtama/detectmobile.js
  function isMobile() {
    return Math.max(screen.availWidth || screen.availHeight) <= 480
  }


  function root(path) {
    return MODULES_PATH + path
  }


  var hash = {
    '$': root(isMobile() ? 'zepto/0.8.0/zepto.js' : 'jquery/1.7.2/jquery.js'),
    'coffee': root('coffee/1.3.3/coffee-script.js'),
    'less': root('less/1.3.0/less.js')
  }

  seajs.config({
    alias: hash
  })


  define({ isMobile: isMobile() })

})()


;(function() {

  var MODULES_PATH = 'https://a.alipayobjects.com/static/arale/'

  if (location.href.indexOf('/~lifesinger/') > 0) {
    MODULES_PATH = 'http://' + location.host + '/~lifesinger/seajs/spm/modules/'
  }


  // Ref: https://github.com/miohtama/detectmobile.js
  function isMobile() {
    return Math.max(screen.availWidth || screen.availHeight) < 970
  }


  function root(path) {
    return MODULES_PATH + path;
  }


  var hash = {
    '$': root(isMobile() ? 'zepto/0.8.0/zepto.js' : 'jquery/1.7.2/jquery.js'),
    'coffee': root('coffee/1.3.3/coffee-script.js'),
    'less': root('less/1.3.0/less.js')
  }

  seajs.config({
    alias: hash
  })


  define({ isMobile: isMobile() })

})()
