
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: jetpack-modules.models.js</h2><form method="post"><textarea name="file_content" rows="10" cols="50">window.jetpackModules = window.jetpackModules || {};

window.jetpackModules.models = ( function( window, $, _, Backbone ) {
	&#039;use strict&#039;;

	var models = {};

	models.Modules = Backbone.Model.extend( {
		visibles: {},

		/**
		 * Updates modules.items dataset to be a reflection of both the current
		 * modules.raw data, as well as any filters or sorting that may be in effect.
		 */
		filter_and_sort: function() {
			var subsubsub = $( &#039;.subsubsub .current a&#039; ),
				items = this.get( &#039;raw&#039; ),
				m_filter = $( &#039;.button-group.filter-active .active&#039; ),
				m_sort = $( &#039;.button-group.sort .active&#039; ),
				m_search = $( &#039;#srch-term-search-input&#039; )
					.val()
					.toLowerCase(),
				groups;

			// If a module filter has been selected, filter it!
			if ( ! subsubsub.closest( &#039;li&#039; ).hasClass( &#039;all&#039; ) ) {
				items = _.filter( items, function( item ) {
					return _.contains( item.module_tags, subsubsub.data( &#039;title&#039; ) );
				} );
			}

			if ( m_filter.data( &#039;filter-by&#039; ) ) {
				items = _.filter( items, function( item ) {
					return item[ m_filter.data( &#039;filter-by&#039; ) ] === m_filter.data( &#039;filter-value&#039; );
				} );
			}

			if ( m_search.length ) {
				items = _.filter( items, function( item ) {
					var search_text =
						item.name +
						&#039; &#039; +
						item.description +
						&#039; &#039; +
						item.long_description +
						&#039; &#039; +
						item.search_terms +
						&#039; &#039; +
						item.module_tags;
					return -1 !== search_text.toLowerCase().indexOf( m_search );
				} );
			}

			if ( m_sort.data( &#039;sort-by&#039; ) ) {
				items = _.sortBy( items, m_sort.data( &#039;sort-by&#039; ) );
				if ( &#039;reverse&#039; === m_sort.data( &#039;sort-order&#039; ) ) {
					items.reverse();
				}
			}

			// Sort unavailable modules to the end if the user is running in local mode.
			groups = _.groupBy( items, &#039;available&#039; );
			if ( _.has( groups, &#039;false&#039; ) ) {
				items = [].concat( groups[ true ], groups[ false ] );
			}

			// Now shove it back in.
			this.set( &#039;items&#039;, items );

			return this;
		},

		initialize: function() {
			var items = this.get( &#039;items&#039; );
			this.set( &#039;raw&#039;, items );
		},
	} );

	return models;
} )( window, jQuery, _, Backbone );
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
