Updates to the About page:

* A live color scheme preview
* Replace the hard-coded version number
* Copy edits
* New screenshots
* Size adjustments to the header and WP badge
* Capitalize 'Open Sans'

See #26387, props markoheijnen, ryelle, siobhan, melchoyce.


Built from https://develop.svn.wordpress.org/trunk@26737


git-svn-id: http://core.svn.wordpress.org/trunk@26626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Matt Thomas 2013-12-06 19:36:11 +00:00
parent 7bf5470bab
commit 41b8584cd2
10 changed files with 158 additions and 289 deletions

View File

@ -21,7 +21,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
<div class="about-text"><?php printf( __( 'Thank you for updating to WordPress 3.8! We&rsquo;re happy to bring you the most beautiful WordPress yet.' ), $display_version ); ?></div>
<div class="about-text"><?php printf( __( 'Thank you for updating to WordPress %s, the most beautiful WordPress yet.' ), $display_version ); ?></div>
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
@ -36,40 +36,37 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
</h2>
<div class="changelog">
<h2 class="about-headline-callout"><?php echo ( 'Introducing a new, modern admin design' ); ?></h2>
<h2 class="about-headline-callout"><?php echo ( 'Introducing a modern new design' ); ?></h2>
<img class="about-overview-img" src="<?php echo admin_url( 'images/about-overview.png' ); ?>" />
<div class="feature-section col three-col about-updates">
<div class="col-1">
<p style="margin-top: 20px; background-color: grey; padding: 1em; color: white; min-height: 150px;">Image</p>
<h3><?php echo ( 'Modern aesthetics' ); ?></h3>
<p><?php echo ( 'Goodbye decoration, hello simplicity. We removed extraneous details, focusing on a cleaner, more streamlined admin design.' ); ?></p>
<img src="images/about-modern-aesthetics.png" />
<h3><?php echo ( 'Modern aesthetic' ); ?></h3>
<p><?php echo ( 'The new admin has a fresh, simple design that puts clarity and simplicity ahead of web design flourishes.' ); ?></p>
</div>
<div class="col-2">
<p style="margin-top: 20px; background-color: grey; padding: 1em; color: white; min-height: 150px;">Image</p>
<h3><?php echo ( 'Improved typography' ); ?></h3>
<p><?php echo ( 'You might notice the type is a little bit bigger. We improved the typography, crafting a better reading experience.' ); ?></p>
<img src="images/about-typography.png" />
<h3><?php echo ( 'Clean typography' ); ?></h3>
<p><?php echo ( 'Open Sans meets open source. WordPress&#8217;s new typography is upright, friendly, and optimized for web and mobile interfaces.' ); ?></p>
</div>
<div class="col-3 last-feature">
<p style="margin-top: 20px; background-color: grey; padding: 1em; color: white; min-height: 150px;">Image</p>
<h3><?php echo ( 'Higher contrast' ); ?></h3>
<p><?php echo ( 'With bigger typography and both high and low contrast color schemes, our new admin design is great for users of all ages.' ); ?></p>
<img src="images/about-contrast.png" />
<h3><?php echo ( 'Refined contrast' ); ?></h3>
<p><?php echo ( 'What good is beautiful design if you can&#8217;t see it? Improved contrast gives you a better reading experience.' ); ?></p>
</div>
</div>
</div>
<hr>
<!-- Image example -->
<!-- <img alt="" src="<?php echo admin_url( 'images/about-search-2x.png' ); ?>" /> -->
<div class="changelog">
<div class="feature-section col two-col">
<div>
<h3><?php echo ( 'Take WordPress with you anywhere with our responsive design' ); ?></h3>
<p><?php echo ( 'The WordPress admin is now completely responsive: you can work on your website easily from your smartphone or tablet. The full power of WordPress is at your fingertips, even when youre on the go.' ); ?></p>
<h4><?php echo ( 'Naturally HiDPI' ); ?></h4>
<p><?php echo ( 'No more blurry edges &#8212; with the inclusion of vector icons and graphics, the admin is now entirely HiDPI, so you get the best viewing experience no matter what kind of computer or mobile device you use.' ); ?></p>
<h3><?php echo ( 'WordPress on every device' ); ?></h3>
<p><?php echo ( 'Whether you&#8217;re on your smartphone or tablet, your notebook or desktop, WordPress looks beautiful on every device. Now you can update your website wherever you are.' ); ?></p>
<h4><?php echo ( 'High definition is here' ); ?></h4>
<p><?php echo ( 'WordPress is sharper than ever; vector icons and graphics mean no more blurry edges. You get the best viewing experience no matter what type of device you use.' ); ?></p>
</div>
<div class="last-feature about-colors-img">
<img src="<?php echo admin_url( 'images/about-colors.png' ); ?>" />
@ -82,11 +79,17 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<div class="changelog about-colors">
<div class="feature-section col one-col">
<div>
<h3><?php echo ( 'Now with more color' ); ?></h3>
<p><?php echo ( 'Your admin is not longer monochromatic &#8212; we&#8217;ve brought some more color to keep it looking fresh. You now have the option of four different default color schemes.' ); ?></p>
<p><?php echo ( 'Try them out below:' ); ?></p>
<img src="https://i.cloudup.com/NBlGusRk0H.png" style="border: 2px solid red; max-width: 99%; margin: 0;" />
<p><?php echo ( 'You can change your color scheme at any time from your profile page.' ); ?></p>
<h3><?php echo ( 'Pick a color' ); ?></h3>
<p><?php echo ( 'We&#8217;ve included four color schemes so that you can choose your favorite. Don&#8217;t like this striking new admin? Choose from any of the schemes below to change it in an instant.' ); ?></p>
<?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) :?>
<?php
/** This action is documented in wp-admin/user-edit.php */
do_action( 'admin_color_scheme_picker' );
?>
<?php else : ?>
<img src="<?php echo admin_url( 'images/about-color-schemes.png' ); ?>" />
<?php endif; ?>
<p><?php printf( ( 'To change your color scheme later, just <a href="%1$s">visit your profile settings</a>.' ), get_edit_profile_url( get_current_user_id() ) ); ?></p>
</div>
</div>
</div>
@ -97,13 +100,13 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<div class="feature-section col two-col">
<div>
<h3><?php echo ( 'A new theme experience' ); ?></h3>
<p><?php echo ( 'A sleeker, faster, and more visual organization of your themes that is responsive.' ); ?></p>
<h4><?php echo ( 'Browse better' ); ?></h4>
<p><?php echo ( 'Enjoy a focused experience with theme screenshots at the center. Quickly search through your themes or add new ones.' ); ?></p>
<p><?php echo ( 'Finding and installing the right theme has never been easier.' ); ?></p>
<h4><?php echo ( 'Better browsing' ); ?></h4>
<p><?php echo ( 'Focus is placed on what&#8217;s important - your theme&#8217;s design. Search through your themes at a glance and add new ones with a click.' ); ?></p>
<h4><?php echo ( 'Dive into the details' ); ?></h4>
<p><?php echo ( 'Expand a theme to see more information and preview it. Use the arrow navigation to quickly swift through your themes.' ); ?></p>
<h4><?php echo ( 'Easier updates' ); ?></h4>
<p><?php echo ( 'Identify immediately when a theme update is available.' ); ?></p>
<p><?php echo ( 'If you need information about any of your themes just click to discover more. Sit back and use your keyboard&#8217;s navigation arrows to flip through every theme you&#8217;ve got.' ); ?></p>
<h4><?php echo ( 'Stay updated' ); ?></h4>
<p><?php echo ( 'You can tell in an instant if a theme needs updated and, like so many things in WordPress, updating it takes just a second.' ); ?></p>
</div>
<div class="last-feature about-themes-img">
<img src="<?php echo admin_url( 'images/about-themes.png' ); ?>" />
@ -117,10 +120,10 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<h2 class="about-headline-callout"><?php echo ( 'Twenty Fourteen, a sleek new magazine theme' ); ?></h2>
<img src="<?php echo admin_url( 'images/about-twentyfourteen.png' ); ?>" />
<div class="feature-section col one-col">
<div class="feature-section col one-col center-col">
<div>
<h3><?php echo ( 'Our new default theme lets you create a responsive magazine website with an elegant, modern design.' ); ?></h3>
<p><?php echo ( 'Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content&#8217;s layout with a full width page template and a contributor page to show of your authors.' ); ?></p>
<h3><?php echo ( 'Turn your blog into a magazine' ); ?></h3>
<p><?php echo ( 'With a striking design that does not comprise on our trademark simplicity, Twenty Fourteen is our boldest default theme. Choose a grid or a slider to display featured content on your homepage. Customize your homepage with three widget areas or change your layout with two page templates.' ); ?></p>
<p><?php echo ( 'Creating a magazine website with WordPress has never been easier.' ); ?></p>
</div>
</div>
@ -128,24 +131,6 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<hr>
<div class="changelog">
<h3><?php echo ( 'Under the Hood' ); ?></h3>
<div class="feature-section col three-col">
<div>
<h4><?php echo ( 'Meta query fixes' ); ?></h4>
<p><?php echo ( 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Vestibulum id ligula porta felis.' ); ?></p>
</div>
<div>
<h4><?php echo ( 'Automated RTL styles' ); ?></h4>
<p><?php echo ( 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Vestibulum id ligula porta felis.' ); ?></p>
</div>
<div class="last-feature">
<h4><?php echo ( 'Improved customizer' ); ?></h4>
<p><?php echo ( 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Vestibulum id ligula porta felis.' ); ?></p>
</div>
</div>
<div class="return-to-dashboard">
<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php

View File

@ -7827,13 +7827,13 @@ body.press-this {
}
.about-text {
margin: 1em 0 1.4em 200px;
margin: 1em 0 0em 200px;
min-height: 60px;
font-size: 24px;
}
.about-wrap .changelog h2.about-headline-callout {
margin: 1em 0 0;
margin: 1.5em 0 0;
font-size: 2.2em;
font-weight: 300;
line-height: 1.3;
@ -7862,11 +7862,14 @@ body.press-this {
/* 3.8 Images */
.about-wrap .about-colors-img,
.about-wrap .about-themes-img {
.about-wrap .about-colors-img {
bottom: -25px;
}
.about-wrap .about-themes-img {
bottom: -32px;
}
.about-wrap .about-overview-img {
border-bottom: 1px solid #ddd;
}
@ -7901,16 +7904,16 @@ body.press-this {
.wp-badge {
background: url('../images/w-logo-white.png?ver=20131202') no-repeat;
background: none, url('../images/wordpress-logo-white.svg?ver=20131110') no-repeat;
background-position: center 30px;
background-size: 110px 110px;
background-position: center 24px;
background-size: 85px 85px;
font-size: 14px;
text-align: center;
font-weight: 600;
margin: 5px 0 0;
padding-top: 155px;
height: 45px;
padding-top: 120px;
height: 40px;
display: inline-block;
width: 165px;
width: 150px;
text-rendering: optimizeLegibility;
}
@ -7949,28 +7952,24 @@ body.press-this {
margin-bottom: 0;
}
.about-wrap .feature-section.one-col div {
.about-wrap .feature-section.center-col > div {
margin: auto;
width: 60%;
}
.about-wrap .about-colors .one-col div {
.about-wrap .about-colors .one-col > div {
width: 100%;
}
.about-wrap .feature-section.two-col div {
.about-wrap .feature-section.two-col > div {
position: relative;
width: 50%;
float: right;
}
.about-wrap .feature-section.two-col div p {
margin-left: 3%;
}
.about-wrap .feature-section.three-col div {
.about-wrap .feature-section.three-col > div {
position: relative;
width: 30%;
width: 29.95%;
margin-left: 4.999999999%;
float: right;
}
@ -7979,49 +7978,32 @@ body.press-this {
margin-left: 0;
}
.about-wrap .three-col.about-updates img {
margin: 0;
}
.about-wrap .about-updates img {
margin: 2em 0 0 0;
border: 1px solid #ddd;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.about-wrap .changelog .feature-section {
overflow: hidden;
}
.about-wrap .about-passwords {
margin: 20px 0;
padding: 1px 20px 10px;
background-color: #fff;
.about-wrap .about-colors .scheme-list {
margin-bottom: 1em;
}
.about-wrap .about-auto-update {
text-align: center;
background-color: #f9f9ef;
clear: both;
padding: 10px;
.about-wrap .about-colors .color-option {
width: 24%;
padding-top: 10px;
}
.about-wrap .about-colors .color-option label {
display: inline-block;
margin: 0.25em 0 0.5em;
}
.about-wrap .about-auto-update.cool {
background-color: #eff9ef;
}
.about-wrap .about-password-meter input {
font-size: 250%;
line-height: 1;
width: 100%;
display: block;
padding: 5px;
}
.about-wrap .about-password-meter #pass-strength-result {
display: block !important;
font-size: 150%;
font-weight: normal !important;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
padding: 17px 0;
margin-bottom: 15px;
.about-wrap .feature-section.two-col div p {
margin-left: 3%;
}
.about-wrap .feature-section div p img {
@ -12733,37 +12715,16 @@ li#wp-admin-bar-menu-toggle {
}
/* About Page */
.about-wrap .feature-section.two-col div {
.about-wrap .feature-section.one-col > div,
.about-wrap .feature-section.two-col > div,
.about-wrap .three-col.about-updates > div {
width: 100%;
margin: 0;
float: none;
}
.about-wrap .three-col.about-updates .col-1,
/*.about-wrap .three-col.about-updates .col-2,*/
.about-wrap .three-col.about-updates .col-3 {
padding: 0;
}
.about-wrap .three-col.about-updates .col-1 {
width: 100%;
padding-left: 210px;
}
.about-wrap .three-col.about-updates .col-2 {
position: relative;
float: left;
width: 180px;
margin-right: -100%;
}
.about-wrap .three-col.about-updates .col-3 {
width: 100%;
}
.about-wrap .about-password-meter input,
.about-wrap .about-password-meter #pass-strength-result {
width: 99%;
.about-wrap .about-colors .color-option {
width: 49%;
}
/* Moderate Comment */
@ -12906,10 +12867,6 @@ li#wp-admin-bar-menu-toggle {
float: none;
}
.about-wrap .about-passwords {
margin: 20px -20px;
}
/* Align Add Media + Visual + Text tabs */
#wp-content-media-buttons a {
font-size: 14px;

File diff suppressed because one or more lines are too long

View File

@ -7827,13 +7827,13 @@ body.press-this {
}
.about-text {
margin: 1em 200px 1.4em 0;
margin: 1em 200px 0em 0;
min-height: 60px;
font-size: 24px;
}
.about-wrap .changelog h2.about-headline-callout {
margin: 1em 0 0;
margin: 1.5em 0 0;
font-size: 2.2em;
font-weight: 300;
line-height: 1.3;
@ -7862,11 +7862,14 @@ body.press-this {
/* 3.8 Images */
.about-wrap .about-colors-img,
.about-wrap .about-themes-img {
.about-wrap .about-colors-img {
bottom: -25px;
}
.about-wrap .about-themes-img {
bottom: -32px;
}
.about-wrap .about-overview-img {
border-bottom: 1px solid #ddd;
}
@ -7901,16 +7904,16 @@ body.press-this {
.wp-badge {
background: url('../images/w-logo-white.png?ver=20131202') no-repeat;
background: none, url('../images/wordpress-logo-white.svg?ver=20131110') no-repeat;
background-position: center 30px;
background-size: 110px 110px;
background-position: center 24px;
background-size: 85px 85px;
font-size: 14px;
text-align: center;
font-weight: 600;
margin: 5px 0 0;
padding-top: 155px;
height: 45px;
padding-top: 120px;
height: 40px;
display: inline-block;
width: 165px;
width: 150px;
text-rendering: optimizeLegibility;
}
@ -7949,28 +7952,24 @@ body.press-this {
margin-bottom: 0;
}
.about-wrap .feature-section.one-col div {
.about-wrap .feature-section.center-col > div {
margin: auto;
width: 60%;
}
.about-wrap .about-colors .one-col div {
.about-wrap .about-colors .one-col > div {
width: 100%;
}
.about-wrap .feature-section.two-col div {
.about-wrap .feature-section.two-col > div {
position: relative;
width: 50%;
float: left;
}
.about-wrap .feature-section.two-col div p {
margin-right: 3%;
}
.about-wrap .feature-section.three-col div {
.about-wrap .feature-section.three-col > div {
position: relative;
width: 30%;
width: 29.95%;
margin-right: 4.999999999%;
float: left;
}
@ -7979,49 +7978,32 @@ body.press-this {
margin-right: 0;
}
.about-wrap .three-col.about-updates img {
margin: 0;
}
.about-wrap .about-updates img {
margin: 2em 0 0 0;
border: 1px solid #ddd;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.about-wrap .changelog .feature-section {
overflow: hidden;
}
.about-wrap .about-passwords {
margin: 20px 0;
padding: 1px 20px 10px;
background-color: #fff;
.about-wrap .about-colors .scheme-list {
margin-bottom: 1em;
}
.about-wrap .about-auto-update {
text-align: center;
background-color: #f9f9ef;
clear: both;
padding: 10px;
.about-wrap .about-colors .color-option {
width: 24%;
padding-top: 10px;
}
.about-wrap .about-colors .color-option label {
display: inline-block;
margin: 0.25em 0 0.5em;
}
.about-wrap .about-auto-update.cool {
background-color: #eff9ef;
}
.about-wrap .about-password-meter input {
font-size: 250%;
line-height: 1;
width: 100%;
display: block;
padding: 5px;
}
.about-wrap .about-password-meter #pass-strength-result {
display: block !important;
font-size: 150%;
font-weight: normal !important;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
padding: 17px 0;
margin-bottom: 15px;
.about-wrap .feature-section.two-col div p {
margin-right: 3%;
}
.about-wrap .feature-section div p img {
@ -12733,37 +12715,16 @@ li#wp-admin-bar-menu-toggle {
}
/* About Page */
.about-wrap .feature-section.two-col div {
.about-wrap .feature-section.one-col > div,
.about-wrap .feature-section.two-col > div,
.about-wrap .three-col.about-updates > div {
width: 100%;
margin: 0;
float: none;
}
.about-wrap .three-col.about-updates .col-1,
/*.about-wrap .three-col.about-updates .col-2,*/
.about-wrap .three-col.about-updates .col-3 {
padding: 0;
}
.about-wrap .three-col.about-updates .col-1 {
width: 100%;
padding-right: 210px;
}
.about-wrap .three-col.about-updates .col-2 {
position: relative;
float: right;
width: 180px;
margin-left: -100%;
}
.about-wrap .three-col.about-updates .col-3 {
width: 100%;
}
.about-wrap .about-password-meter input,
.about-wrap .about-password-meter #pass-strength-result {
width: 99%;
.about-wrap .about-colors .color-option {
width: 49%;
}
/* Moderate Comment */
@ -12906,10 +12867,6 @@ li#wp-admin-bar-menu-toggle {
float: none;
}
.about-wrap .about-passwords {
margin: 20px -20px;
}
/* Align Add Media + Visual + Text tabs */
#wp-content-media-buttons a {
font-size: 14px;

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

View File

@ -1,81 +1,51 @@
/* global pwsL10n:true */
/* global isRtl */
(function($){
var password = 'Gosh, WordPress is grand.',
$input = $('#pass'),
shouldAnimate = true,
timesForAnimation = [280, 300, 305, 310, 315, 325, 330, 345, 360, 370, 380, 400, 450, 500, 600],
resultsCache = {},
indicatorString = $('#pass-strength-result').text();
function updateResult(){
var strength;
if ( typeof( resultsCache[ $input.val() ]) === 'undefined') {
strength = wp.passwordStrength.meter($input.val(), [], $input.val());
resultsCache[ $input.val() ] = strength;
} else {
strength = resultsCache[ $input.val() ];
$(document).ready( function() {
var $colorpicker, $stylesheet;
$('.color-palette').click( function() {
$(this).siblings('input[name="admin_color"]').prop('checked', true);
});
$colorpicker = $( '#color-picker' );
$stylesheet = $( '#colors-css' );
if ( isRtl ){
$stylesheet = $( '#colors-rtl-css' );
}
$colorpicker.on( 'click.colorpicker', '.color-option', function() {
var colors, css_url,
$this = $(this);
if ( $this.hasClass( 'selected' ) ) {
return;
}
$this.siblings( '.selected' ).removeClass( 'selected' );
$this.addClass( 'selected' ).find( 'input[type="radio"]' ).prop( 'checked', true );
// Set color scheme
// Load the colors stylesheet
css_url = $this.children( '.css_url' ).val();
if ( isRtl ){
css_url = css_url.replace('.min', '-rtl.min');
}
$('#pass-strength-result').removeClass('short bad good strong');
switch ( strength ) {
case 2:
$('#pass-strength-result').addClass('bad').html( pwsL10n.bad );
break;
case 3:
$('#pass-strength-result').addClass('good').html( pwsL10n.good );
break;
case 4:
$('#pass-strength-result').addClass('strong').html( pwsL10n.strong );
break;
default:
$('#pass-strength-result').addClass('short').html( pwsL10n['short'] );
}
}
function resetMeter(){
$input.val('');
$('#pass-strength-result').text(indicatorString);
$('#pass-strength-result').removeClass('short bad good strong');
}
$stylesheet.attr( 'href', css_url );
function animate(){
if (shouldAnimate === false)
return;
if ($input.val().length < password.length){
$input.val( password.substr(0, $input.val().length + 1) );
updateResult();
// repaint icons
if ( typeof wp !== 'undefined' && wp.svgPainter ) {
try {
colors = $.parseJSON( $this.children( '.icon_colors' ).val() );
} catch ( error ) {}
// Look like real typing by changing the speed new letters are added each time
setTimeout( animate, ( timesForAnimation[ Math.floor( Math.random() * timesForAnimation.length ) ] ) );
} else {
resetMeter();
// When we reset, let's wait a bit longer than normal to start again
setTimeout(animate, 700);
}
}
function begin(){
// we async load zxcvbn, so we need to make sure it's loaded before starting
if (typeof(zxcvbn) !== 'undefined')
animate();
else
setTimeout(begin,800);
}
// Turn off the animation on focus
$input.on('focus', function(){
shouldAnimate = false;
resetMeter();
if ( colors ) {
wp.svgPainter.setColors( colors );
wp.svgPainter.paint();
}
}
});
});
// Act like a normal password strength meter
$input.on('keyup', function(){
updateResult();
});
// Start the animation
begin();
})(jQuery);

View File

@ -1 +1 @@
!function(a){function b(){var b;switch("undefined"==typeof j[g.val()]?(b=wp.passwordStrength.meter(g.val(),[],g.val()),j[g.val()]=b):b=j[g.val()],a("#pass-strength-result").removeClass("short bad good strong"),b){case 2:a("#pass-strength-result").addClass("bad").html(pwsL10n.bad);break;case 3:a("#pass-strength-result").addClass("good").html(pwsL10n.good);break;case 4:a("#pass-strength-result").addClass("strong").html(pwsL10n.strong);break;default:a("#pass-strength-result").addClass("short").html(pwsL10n["short"])}}function c(){g.val(""),a("#pass-strength-result").text(k),a("#pass-strength-result").removeClass("short bad good strong")}function d(){h!==!1&&(g.val().length<f.length?(g.val(f.substr(0,g.val().length+1)),b(),setTimeout(d,i[Math.floor(Math.random()*i.length)])):(c(),setTimeout(d,700)))}function e(){"undefined"!=typeof zxcvbn?d():setTimeout(e,800)}var f="Gosh, WordPress is grand.",g=a("#pass"),h=!0,i=[280,300,305,310,315,325,330,345,360,370,380,400,450,500,600],j={},k=a("#pass-strength-result").text();g.on("focus",function(){h=!1,c()}),g.on("keyup",function(){b()}),e()}(jQuery);
!function(a){a(document).ready(function(){var b,c;a(".color-palette").click(function(){a(this).siblings('input[name="admin_color"]').prop("checked",!0)}),b=a("#color-picker"),c=a("#colors-css"),isRtl&&(c=a("#colors-rtl-css")),b.on("click.colorpicker",".color-option",function(){var b,d,e=a(this);if(!e.hasClass("selected")&&(e.siblings(".selected").removeClass("selected"),e.addClass("selected").find('input[type="radio"]').prop("checked",!0),d=e.children(".css_url").val(),isRtl&&(d=d.replace(".min","-rtl.min")),c.attr("href",d),"undefined"!=typeof wp&&wp.svgPainter)){try{b=a.parseJSON(e.children(".icon_colors").val())}catch(f){}b&&(wp.svgPainter.setColors(b),wp.svgPainter.paint())}})})}(jQuery);