RECENT POSTS FOR

Great Design

Getting a Great Deal on Your Home Plans: Why Buy Direct?

Getting a Great Deal on Your Home Plans: Why Buy Direct?

Numerous influences – from finances to the desire for inter-generational joy, to health monitoring – are fueling the surge in multi-generational households. In our last post we looked at some of our most popular multi-generational home designs, showcasing various bedroom arrangements. Herein we’ll look at designs that also provide separate living areas.

read more
Exclusively Yours: Why Buy Direct?

Exclusively Yours: Why Buy Direct?

Design Basics values the relationships we have with select companies that also market our home plans. Quite simply, more people have the opportunity to consider our company’s designs when searching for a house plan. Which then begs the question, “Why buy directly from Design Basics?”

read more
Intelligent Traffic Flow

Intelligent Traffic Flow

TRAFFIC! Just hearing that word can make us cringe. The last thing we need inside our ‘home sweet home’ is issues with traffic! Whether we’re unwinding from the outside world or interacting with family members inside, we need our house design to foster tranquility.

read more
Designing with Natural Light

Designing with Natural Light

Home designers know natural light is one of the most important elements of residential design. We are drawn to places in our homes that are bathed in natural light and oftentimes we don’t even realize it. But whether we’re having friends over or simply curling up with...

read more
New Home Cost: Cheaper than Expected?

New Home Cost: Cheaper than Expected?

“When the price is higher, people tend to focus on the things that make it higher. When the price is lower people tend to focus on things explaining why it’s lower,” William Poundstone wrote in his book, Priceless. Which do you want? Prospective buyers touring your...

read more
A Great Elevation Helps Make the Sale

A Great Elevation Helps Make the Sale

Prospective customers rule you “in” or “out” based on your homes’ exteriors. It’s a fact. Overwhelmed by too many choices, buyers use shortcuts to narrow the number of home builders they will consider. One of those shortcuts is your elevation designs. Photographs can...

read more
Design Concept: Rear Foyers

Design Concept: Rear Foyers

Problem: Most families enter their home through the garage, but once you get inside, where does your stuff go? Where do you hang your jackets, stash your shoes, backpacks, handbags, etc.? And, when you leave in the morning how can you make it more convenient to get...

read more
Design Concept: Drop Zone

Design Concept: Drop Zone

Problem: Statements like, "When I get home, everything seems to end up on the kitchen table," or "Everything the kids walk in with gets left on the island," these and similar comments inspired one of our most popular Woman-Centric design innovations, the Drop Zone...

read more

From plan alterations to locating a builder in your area, find the resources you need for making your new home a reality!

Subscribe to Our Blog

Loading

Write for Us!

If you like our blog and have an idea or content to share around home design trends, problem solving, building, etc.; submit your article proposal by clicking the button below.

More Great Posts from Design Basics

Subscribe to

Our Newsletters

Current Dir: /var/www/designbasics/wp-includes/js/

[FILE] admin-bar.js [ edit | delete | rename ]
[FILE] admin-bar.min.js [ edit | delete | rename ]
[FILE] api-request.js [ edit | delete | rename ]
[FILE] api-request.min.js [ edit | delete | rename ]
[FILE] autosave.js [ edit | delete | rename ]
[FILE] autosave.min.js [ edit | delete | rename ]
[FILE] backbone.js [ edit | delete | rename ]
[FILE] backbone.min.js [ edit | delete | rename ]
[FILE] clipboard.js [ edit | delete | rename ]
[FILE] clipboard.min.js [ edit | delete | rename ]
[DIR]  codemirror [ delete | rename ]
[FILE] colorpicker.js [ edit | delete | rename ]
[FILE] colorpicker.min.js [ edit | delete | rename ]
[FILE] comment-reply.js [ edit | delete | rename ]
[FILE] comment-reply.min.js [ edit | delete | rename ]
[DIR]  crop [ delete | rename ]
[FILE] customize-base.js [ edit | delete | rename ]
[FILE] customize-base.min.js [ edit | delete | rename ]
[FILE] customize-loader.js [ edit | delete | rename ]
[FILE] customize-loader.min.js [ edit | delete | rename ]
[FILE] customize-models.js [ edit | delete | rename ]
[FILE] customize-models.min.js [ edit | delete | rename ]
[FILE] customize-preview-nav-menus.js [ edit | delete | rename ]
[FILE] customize-preview-nav-menus.min.js [ edit | delete | rename ]
[FILE] customize-preview-widgets.js [ edit | delete | rename ]
[FILE] customize-preview-widgets.min.js [ edit | delete | rename ]
[FILE] customize-preview.js [ edit | delete | rename ]
[FILE] customize-preview.min.js [ edit | delete | rename ]
[FILE] customize-selective-refresh.js [ edit | delete | rename ]
[FILE] customize-selective-refresh.min.js [ edit | delete | rename ]
[FILE] customize-views.js [ edit | delete | rename ]
[FILE] customize-views.min.js [ edit | delete | rename ]
[DIR]  dist [ delete | rename ]
[FILE] heartbeat.js [ edit | delete | rename ]
[FILE] heartbeat.min.js [ edit | delete | rename ]
[FILE] hoverIntent.js [ edit | delete | rename ]
[FILE] hoverIntent.min.js [ edit | delete | rename ]
[FILE] hoverintent-js.min.js [ edit | delete | rename ]
[FILE] imagesloaded.min.js [ edit | delete | rename ]
[DIR]  imgareaselect [ delete | rename ]
[DIR]  jcrop [ delete | rename ]
[DIR]  jquery [ delete | rename ]
[FILE] json2.js [ edit | delete | rename ]
[FILE] json2.min.js [ edit | delete | rename ]
[FILE] masonry.min.js [ edit | delete | rename ]
[FILE] mce-view.js [ edit | delete | rename ]
[FILE] mce-view.min.js [ edit | delete | rename ]
[FILE] media-audiovideo.js [ edit | delete | rename ]
[FILE] media-audiovideo.min.js [ edit | delete | rename ]
[FILE] media-editor.js [ edit | delete | rename ]
[FILE] media-editor.min.js [ edit | delete | rename ]
[FILE] media-grid.js [ edit | delete | rename ]
[FILE] media-grid.min.js [ edit | delete | rename ]
[FILE] media-models.js [ edit | delete | rename ]
[FILE] media-models.min.js [ edit | delete | rename ]
[FILE] media-views.js [ edit | delete | rename ]
[FILE] media-views.min.js [ edit | delete | rename ]
[DIR]  mediaelement [ delete | rename ]
[DIR]  plupload [ delete | rename ]
[FILE] quicktags.js [ edit | delete | rename ]
[FILE] quicktags.min.js [ edit | delete | rename ]
[FILE] shortcode.js [ edit | delete | rename ]
[FILE] shortcode.min.js [ edit | delete | rename ]
[FILE] swfobject.js [ edit | delete | rename ]
[DIR]  swfupload [ delete | rename ]
[DIR]  thickbox [ delete | rename ]
[DIR]  tinymce [ delete | rename ]
[FILE] tw-sack.js [ edit | delete | rename ]
[FILE] tw-sack.min.js [ edit | delete | rename ]
[FILE] twemoji.js [ edit | delete | rename ]
[FILE] twemoji.min.js [ edit | delete | rename ]
[FILE] underscore.js [ edit | delete | rename ]
[FILE] underscore.min.js [ edit | delete | rename ]
[FILE] utils.js [ edit | delete | rename ]
[FILE] utils.min.js [ edit | delete | rename ]
[FILE] wp-ajax-response.js [ edit | delete | rename ]
[FILE] wp-ajax-response.min.js [ edit | delete | rename ]
[FILE] wp-api.js [ edit | delete | rename ]
[FILE] wp-api.min.js [ edit | delete | rename ]
[FILE] wp-auth-check.js [ edit | delete | rename ]
[FILE] wp-auth-check.min.js [ edit | delete | rename ]
[FILE] wp-backbone.js [ edit | delete | rename ]
[FILE] wp-backbone.min.js [ edit | delete | rename ]
[FILE] wp-custom-header.js [ edit | delete | rename ]
[FILE] wp-custom-header.min.js [ edit | delete | rename ]
[FILE] wp-embed-template.js [ edit | delete | rename ]
[FILE] wp-embed-template.min.js [ edit | delete | rename ]
[FILE] wp-embed.js [ edit | delete | rename ]
[FILE] wp-embed.min.js [ edit | delete | rename ]
[FILE] wp-emoji-loader.js [ edit | delete | rename ]
[FILE] wp-emoji-loader.min.js [ edit | delete | rename ]
[FILE] wp-emoji-release.min.js [ edit | delete | rename ]
[FILE] wp-emoji.js [ edit | delete | rename ]
[FILE] wp-emoji.min.js [ edit | delete | rename ]
[FILE] wp-list-revisions.js [ edit | delete | rename ]
[FILE] wp-list-revisions.min.js [ edit | delete | rename ]
[FILE] wp-lists.js [ edit | delete | rename ]
[FILE] wp-lists.min.js [ edit | delete | rename ]
[FILE] wp-pointer.js [ edit | delete | rename ]
[FILE] wp-pointer.min.js [ edit | delete | rename ]
[FILE] wp-sanitize.js [ edit | delete | rename ]
[FILE] wp-sanitize.min.js [ edit | delete | rename ]
[FILE] wp-util.js [ edit | delete | rename ]
[FILE] wp-util.min.js [ edit | delete | rename ]
[FILE] wpdialog.js [ edit | delete | rename ]
[FILE] wpdialog.min.js [ edit | delete | rename ]
[FILE] wplink.js [ edit | delete | rename ]
[FILE] wplink.min.js [ edit | delete | rename ]
[FILE] zxcvbn-async.js [ edit | delete | rename ]
[FILE] zxcvbn-async.min.js [ edit | delete | rename ]
[FILE] zxcvbn.min.js [ edit | delete | rename ]

Viewing: /var/www/designbasics/wp-includes/js/customize-loader.js

/**
 * @output wp-includes/js/customize-loader.js
 */

/* global _wpCustomizeLoaderSettings */

/**
 * Expose a public API that allows the customizer to be
 * loaded on any page.
 *
 * @namespace wp
 */
window.wp = window.wp || {};

(function( exports, $ ){
	var api = wp.customize,
		Loader;

	$.extend( $.support, {
		history: !! ( window.history && history.pushState ),
		hashchange: ('onhashchange' in window) && (document.documentMode === undefined || document.documentMode > 7)
	});

	/**
	 * Allows the Customizer to be overlaid on any page.
	 *
	 * By default, any element in the body with the load-customize class will open
	 * an iframe overlay with the URL specified.
	 *
	 *     e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open Customizer</a>
	 *
	 * @memberOf wp.customize
	 *
	 * @class
	 * @augments wp.customize.Events
	 */
	Loader = $.extend( {}, api.Events,/** @lends wp.customize.Loader.prototype */{
		/**
		 * Setup the Loader; triggered on document#ready.
		 */
		initialize: function() {
			this.body = $( document.body );

			// Ensure the loader is supported.
			// Check for settings, postMessage support, and whether we require CORS support.
			if ( ! Loader.settings || ! $.support.postMessage || ( ! $.support.cors && Loader.settings.isCrossDomain ) ) {
				return;
			}

			this.window  = $( window );
			this.element = $( '<div id="customize-container" />' ).appendTo( this.body );

			// Bind events for opening and closing the overlay.
			this.bind( 'open', this.overlay.show );
			this.bind( 'close', this.overlay.hide );

			// Any element in the body with the `load-customize` class opens
			// the Customizer.
			$('#wpbody').on( 'click', '.load-customize', function( event ) {
				event.preventDefault();

				// Store a reference to the link that opened the Customizer.
				Loader.link = $(this);
				// Load the theme.
				Loader.open( Loader.link.attr('href') );
			});

			// Add navigation listeners.
			if ( $.support.history ) {
				this.window.on( 'popstate', Loader.popstate );
			}

			if ( $.support.hashchange ) {
				this.window.on( 'hashchange', Loader.hashchange );
				this.window.triggerHandler( 'hashchange' );
			}
		},

		popstate: function( e ) {
			var state = e.originalEvent.state;
			if ( state && state.customize ) {
				Loader.open( state.customize );
			} else if ( Loader.active ) {
				Loader.close();
			}
		},

		hashchange: function() {
			var hash = window.location.toString().split('#')[1];

			if ( hash && 0 === hash.indexOf( 'wp_customize=on' ) ) {
				Loader.open( Loader.settings.url + '?' + hash );
			}

			if ( ! hash && ! $.support.history ) {
				Loader.close();
			}
		},

		beforeunload: function () {
			if ( ! Loader.saved() ) {
				return Loader.settings.l10n.saveAlert;
			}
		},

		/**
		 * Open the Customizer overlay for a specific URL.
		 *
		 * @param string src URL to load in the Customizer.
		 */
		open: function( src ) {

			if ( this.active ) {
				return;
			}

			// Load the full page on mobile devices.
			if ( Loader.settings.browser.mobile ) {
				return window.location = src;
			}

			// Store the document title prior to opening the Live Preview.
			this.originalDocumentTitle = document.title;

			this.active = true;
			this.body.addClass('customize-loading');

			/*
			 * Track the dirtiness state (whether the drafted changes have been published)
			 * of the Customizer in the iframe. This is used to decide whether to display
			 * an AYS alert if the user tries to close the window before saving changes.
			 */
			this.saved = new api.Value( true );

			this.iframe = $( '<iframe />', { 'src': src, 'title': Loader.settings.l10n.mainIframeTitle } ).appendTo( this.element );
			this.iframe.one( 'load', this.loaded );

			// Create a postMessage connection with the iframe.
			this.messenger = new api.Messenger({
				url: src,
				channel: 'loader',
				targetWindow: this.iframe[0].contentWindow
			});

			// Expose the changeset UUID on the parent window's URL so that the customized state can survive a refresh.
			if ( history.replaceState ) {
				this.messenger.bind( 'changeset-uuid', function( changesetUuid ) {
					var urlParser = document.createElement( 'a' );
					urlParser.href = location.href;
					urlParser.search = $.param( _.extend(
						api.utils.parseQueryString( urlParser.search.substr( 1 ) ),
						{ changeset_uuid: changesetUuid }
					) );
					history.replaceState( { customize: urlParser.href }, '', urlParser.href );
				} );
			}

			// Wait for the connection from the iframe before sending any postMessage events.
			this.messenger.bind( 'ready', function() {
				Loader.messenger.send( 'back' );
			});

			this.messenger.bind( 'close', function() {
				if ( $.support.history ) {
					history.back();
				} else if ( $.support.hashchange ) {
					window.location.hash = '';
				} else {
					Loader.close();
				}
			});

			// Prompt AYS dialog when navigating away.
			$( window ).on( 'beforeunload', this.beforeunload );

			this.messenger.bind( 'saved', function () {
				Loader.saved( true );
			} );
			this.messenger.bind( 'change', function () {
				Loader.saved( false );
			} );

			this.messenger.bind( 'title', function( newTitle ){
				window.document.title = newTitle;
			});

			this.pushState( src );

			this.trigger( 'open' );
		},

		pushState: function ( src ) {
			var hash = src.split( '?' )[1];

			// Ensure we don't call pushState if the user hit the forward button.
			if ( $.support.history && window.location.href !== src ) {
				history.pushState( { customize: src }, '', src );
			} else if ( ! $.support.history && $.support.hashchange && hash ) {
				window.location.hash = 'wp_customize=on&' + hash;
			}

			this.trigger( 'open' );
		},

		/**
		 * Callback after the Customizer has been opened.
		 */
		opened: function() {
			Loader.body.addClass( 'customize-active full-overlay-active' ).attr( 'aria-busy', 'true' );
		},

		/**
		 * Close the Customizer overlay.
		 */
		close: function() {
			var self = this, onConfirmClose;
			if ( ! self.active ) {
				return;
			}

			onConfirmClose = function( confirmed ) {
				if ( confirmed ) {
					self.active = false;
					self.trigger( 'close' );

					// Restore document title prior to opening the Live Preview.
					if ( self.originalDocumentTitle ) {
						document.title = self.originalDocumentTitle;
					}
				} else {

					// Go forward since Customizer is exited by history.back().
					history.forward();
				}
				self.messenger.unbind( 'confirmed-close', onConfirmClose );
			};
			self.messenger.bind( 'confirmed-close', onConfirmClose );

			Loader.messenger.send( 'confirm-close' );
		},

		/**
		 * Callback after the Customizer has been closed.
		 */
		closed: function() {
			Loader.iframe.remove();
			Loader.messenger.destroy();
			Loader.iframe    = null;
			Loader.messenger = null;
			Loader.saved     = null;
			Loader.body.removeClass( 'customize-active full-overlay-active' ).removeClass( 'customize-loading' );
			$( window ).off( 'beforeunload', Loader.beforeunload );
			/*
			 * Return focus to the link that opened the Customizer overlay after
			 * the body element visibility is restored.
			 */
			if ( Loader.link ) {
				Loader.link.focus();
			}
		},

		/**
		 * Callback for the `load` event on the Customizer iframe.
		 */
		loaded: function() {
			Loader.body.removeClass( 'customize-loading' ).attr( 'aria-busy', 'false' );
		},

		/**
		 * Overlay hide/show utility methods.
		 */
		overlay: {
			show: function() {
				this.element.fadeIn( 200, Loader.opened );
			},

			hide: function() {
				this.element.fadeOut( 200, Loader.closed );
			}
		}
	});

	// Bootstrap the Loader on document#ready.
	$( function() {
		Loader.settings = _wpCustomizeLoaderSettings;
		Loader.initialize();
	});

	// Expose the API publicly on window.wp.customize.Loader.
	api.Loader = Loader;
})( wp, jQuery );

Upload File: