mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
21 lines
3.4 KiB
HTML
21 lines
3.4 KiB
HTML
<!DOCTYPE html><html lang="en"><head><title>settings</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content=""><meta name="groc-document-path" content="settings"><meta name="groc-project-path" content="core/admin/assets/js/settings.js"><link rel="stylesheet" type="text/css" media="all" href="assets/style.css"><script type="text/javascript" src="assets/behavior.js"></script><body><div id="meta"><div class="file-path">core/admin/assets/js/settings.js</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="cm">/*globals document, jQuery */</span>
|
|
<span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">$</span><span class="p">)</span> <span class="p">{</span>
|
|
<span class="s2">"use strict"</span><span class="p">;</span>
|
|
|
|
<span class="kd">var</span> <span class="nx">changePage</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
|
|
<span class="kd">var</span> <span class="nx">newPage</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">children</span><span class="p">(</span><span class="s1">'a'</span><span class="p">).</span><span class="nx">attr</span><span class="p">(</span><span class="s1">'href'</span><span class="p">);</span>
|
|
|
|
<span class="nx">e</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span>
|
|
<span class="nx">$</span><span class="p">(</span><span class="s1">'.settings-menu .active'</span><span class="p">).</span><span class="nx">removeClass</span><span class="p">(</span><span class="s1">'active'</span><span class="p">);</span>
|
|
<span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">addClass</span><span class="p">(</span><span class="s1">'active'</span><span class="p">);</span>
|
|
|
|
<span class="nx">$</span><span class="p">(</span><span class="s1">'.settings-content'</span><span class="p">).</span><span class="nx">fadeOut</span><span class="p">().</span><span class="nx">delay</span><span class="p">(</span><span class="mi">250</span><span class="p">);</span>
|
|
<span class="nx">$</span><span class="p">(</span><span class="nx">newPage</span><span class="p">).</span><span class="nx">fadeIn</span><span class="p">();</span>
|
|
|
|
<span class="p">};</span>
|
|
|
|
<span class="nx">$</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">ready</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
|
|
<span class="nx">$</span><span class="p">(</span><span class="s1">'.settings-menu li'</span><span class="p">).</span><span class="nx">on</span><span class="p">(</span><span class="s1">'click'</span><span class="p">,</span> <span class="nx">changePage</span><span class="p">);</span>
|
|
<span class="p">});</span>
|
|
|
|
<span class="p">}(</span><span class="nx">jQuery</span><span class="p">));</span></div></div></div></div></body></html> |