Demo entry 6678095

奥神队

   

Submitted by 123 on Dec 05, 2017 at 08:57
Language: JavaScript. Code size: 535 Bytes.

function get(name) {
  if (typeof (Storage) !== 'undefined') {
    return localStorage.getItem(name)
  } else {
    window.alert('Please use a modern browser to properly view this template!')
  }
}
/**
 * Replaces the old skin with the new skin
 * @param String cls the new skin class
 * @returns Boolean false to prevent link's default action
 */
function changeSkin(cls) {
  $.each(mySkins, function (i) {
    $('body').removeClass(mySkins[i])
  })
  $('body').addClass(cls)
  store('skin', cls)
  return false
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).