Clean-up stray whitespace in theme files
authorjond@apple.com <jond@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2018 22:34:47 +0000 (22:34 +0000)
committerjond@apple.com <jond@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2018 22:34:47 +0000 (22:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=191430

Reviewed by Dean Jackson.

* wp-content/themes/webkit/css-status.php:
* wp-content/themes/webkit/footer.php:
* wp-content/themes/webkit/front-page.php:
* wp-content/themes/webkit/includes.php:
* wp-content/themes/webkit/nightly-start.php:
* wp-content/themes/webkit/nightly-survey.php:
* wp-content/themes/webkit/page.php:
* wp-content/themes/webkit/scripts/global.js:
* wp-content/themes/webkit/scripts/searchbuilds.js:
(initsearch):
(initsearch.displayError):
* wp-content/themes/webkit/single.php:
* wp-content/themes/webkit/sitemap.php:
* wp-content/themes/webkit/team.php:
* wp-content/themes/webkit/widgets/icon.php:
* wp-content/themes/webkit/widgets/page.php:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238056 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 files changed:
Websites/webkit.org/ChangeLog
Websites/webkit.org/wp-content/themes/webkit/css-status.php
Websites/webkit.org/wp-content/themes/webkit/footer.php
Websites/webkit.org/wp-content/themes/webkit/front-page.php
Websites/webkit.org/wp-content/themes/webkit/includes.php
Websites/webkit.org/wp-content/themes/webkit/nightly-start.php
Websites/webkit.org/wp-content/themes/webkit/nightly-survey.php
Websites/webkit.org/wp-content/themes/webkit/page.php
Websites/webkit.org/wp-content/themes/webkit/scripts/global.js
Websites/webkit.org/wp-content/themes/webkit/scripts/searchbuilds.js
Websites/webkit.org/wp-content/themes/webkit/single.php
Websites/webkit.org/wp-content/themes/webkit/sitemap.php
Websites/webkit.org/wp-content/themes/webkit/team.php
Websites/webkit.org/wp-content/themes/webkit/widgets/icon.php
Websites/webkit.org/wp-content/themes/webkit/widgets/page.php

index 889c85f..bbda7de 100644 (file)
@@ -1,3 +1,27 @@
+2018-11-09  Jon Davis  <jond@apple.com>
+
+        Clean-up stray whitespace in theme files
+        https://bugs.webkit.org/show_bug.cgi?id=191430
+
+        Reviewed by Dean Jackson.
+
+        * wp-content/themes/webkit/css-status.php:
+        * wp-content/themes/webkit/footer.php:
+        * wp-content/themes/webkit/front-page.php:
+        * wp-content/themes/webkit/includes.php:
+        * wp-content/themes/webkit/nightly-start.php:
+        * wp-content/themes/webkit/nightly-survey.php:
+        * wp-content/themes/webkit/page.php:
+        * wp-content/themes/webkit/scripts/global.js:
+        * wp-content/themes/webkit/scripts/searchbuilds.js:
+        (initsearch):
+        (initsearch.displayError):
+        * wp-content/themes/webkit/single.php:
+        * wp-content/themes/webkit/sitemap.php:
+        * wp-content/themes/webkit/team.php:
+        * wp-content/themes/webkit/widgets/icon.php:
+        * wp-content/themes/webkit/widgets/page.php:
+
 2018-11-02  Jon Davis  <jond@apple.com>
 
         Follow-up fix for the webkit.org blog index page
index f9d0c93..0b3fb68 100644 (file)
@@ -564,7 +564,7 @@ function initializeStatusPage() {
         'obsolete',
         'removed',
     ];
-    
+
     const readableStatus = {
         'supported': 'Supported',
         'in-development': 'In Development',
@@ -636,7 +636,7 @@ function initializeStatusPage() {
             container.appendChild(link);
             return container;
         }
-        
+
         function appendValueWithLink(container, value, link)
         {
             if (link) {
@@ -646,7 +646,7 @@ function initializeStatusPage() {
                 container.appendChild(anchor);
                 return;
             }
-            
+
             container.textContent = value;
         }
 
@@ -729,15 +729,15 @@ function initializeStatusPage() {
                 longhandLink.textContent = longhand;
                 longhandsDiv.appendChild(longhandLink);
             }
-        
+
             toggledContentContainer.appendChild(longhandsDiv);
         }
-        
+
         function collapsePrefixedValues(values)
         {
             var remainingValues = [];
             var prefixMap = {};
-            
+
             for (var valueObj of values) {
                 var valueName = valueObj.value;
 
@@ -750,15 +750,15 @@ function initializeStatusPage() {
                         continue;
                     }
                 }
-                
+
                 remainingValues.push(valueObj);
             }
-            
+
             for (var prefixed in prefixMap) {
                 var unprefixedValue = findValueByName(remainingValues, prefixed);
                 unprefixedValue.aliases = prefixMap[prefixed];
             }
-            
+
             return remainingValues;
         }
 
@@ -766,14 +766,14 @@ function initializeStatusPage() {
             var valuesHeader = document.createElement("h4");
             valuesHeader.textContent = 'Supported Values:';
             toggledContentContainer.appendChild(valuesHeader);
-            
+
             var valuesList = document.createElement("ul");
             valuesList.className = 'values';
-            
+
             var values = collapsePrefixedValues(propertyObject.values);
             for (var valueObj of values) {
                 var li = document.createElement("li");
-                
+
                 valueObj.el = li;
 
                 var link = undefined;
@@ -789,26 +789,26 @@ function initializeStatusPage() {
                     link = valueObj['url'];
 
                 appendValueWithLink(li, valueObj.value, link);
-                
+
                 if (valueAliases) {
                     var span = document.createElement('span');
                     span.textContent = ' (' + valueAliases.join(', ') + ')';
                     span.className = 'value-alias';
                     li.appendChild(span);
                 }
-                
+
                 if (status) {
                     var span = document.createElement('span');
                     span.textContent = ' (' + status + ')';
                     span.className = 'value-status';
                     li.appendChild(span);
                 }
-                
+
                 valuesList.appendChild(li);
             }
             toggledContentContainer.appendChild(valuesList);
         }
-        
+
         var statusContainer = document.createElement("span");
         cornerStatus.className += propertyObject.status.status;
         statusContainer.className = "property-status " + propertyObject.status.status;
@@ -830,7 +830,7 @@ function initializeStatusPage() {
         });
 
         featureHeaderContainer.appendChild(toggle);
-        
+
         if (specificationObject && "description" in specificationObject) {
             var testDescription = document.createElement('p');
             testDescription.className = "property-desc";
@@ -858,7 +858,7 @@ function initializeStatusPage() {
         }
 
         container.appendChild(descriptionContainer);
-        
+=
         function getMostSpecificProperty(categoryObject, specificationObject, attributeName)
         {
             // The url in the specification object is more specific, so use it if present.
@@ -916,12 +916,12 @@ function initializeStatusPage() {
 
         return container;
     }
-    
+
     function canonicalizeIdentifier(identifier)
     {
         return identifier.toLocaleLowerCase().replace(/ /g, '-');
     }
-    
+
     function renderSpecifications(categories, properties, selectedSpecifications)
     {
         var specificationsList = document.getElementById('specifications');
@@ -929,7 +929,7 @@ function initializeStatusPage() {
 
         var selectedIndex = -1;
         var allCategories = Object.keys(categories).sort();
-        
+
         for (var i = 0; i < allCategories.length; ++i) {
             var categoryKey = allCategories[i];
             var category = categories[categoryKey];
@@ -946,7 +946,7 @@ function initializeStatusPage() {
         if (selectedIndex != -1)
             specificationsList.selectedIndex = selectedIndex;
     }
-    
+
     function getPropertyCategory(propertyObject)
     {
         if ('specification' in propertyObject && 'category' in propertyObject.specification)
@@ -994,10 +994,10 @@ function initializeStatusPage() {
                     window.console.log('Status ' + propertyStatusKey + ' is not one of the predefined status keys ', statusOrder);
             }
         });
-        
+
         var selectedStatuses = statusesFromURL();
         var selectedSpecs = specificationsFromURL();
-        
+
         for (var key of statusOrder) {
             var status = statusFilters[key];
             var canonicalStatus = canonicalizeIdentifier(status);
@@ -1017,7 +1017,7 @@ function initializeStatusPage() {
             entry.appendChild(label);
             statusContainer.appendChild(entry);
         }
-        
+
         // Append the special "By Specification" checkbox
         {
             var entry = document.createElement("li");
@@ -1031,12 +1031,12 @@ function initializeStatusPage() {
             label.appendChild(input);
             label.appendChild(document.createTextNode(" By Specification:"));
             entry.appendChild(label);
-            
+
             var specsList = document.createElement('select');
             specsList.className = 'specifications';
             specsList.id = 'specifications';
             entry.appendChild(specsList);
-            
+
             statusContainer.appendChild(entry);
         }
 
@@ -1092,17 +1092,17 @@ function initializeStatusPage() {
             if (item.checked)
                 checkedValues.push(item.value);
         });
-        
+
         return checkedValues;
     }
 
     function getValuesOfSelectedItems(select)
     {
         var selectedValues = [];
-        
+
         if (select.selectedIndex != -1)
             selectedValues.push(select.options[select.selectedIndex].value);
-        
+
         return selectedValues;
     }
 
@@ -1116,7 +1116,7 @@ function initializeStatusPage() {
         specificationsList.disabled = false;
         return getValuesOfSelectedItems(specificationsList);
     }
-    
+
     function updateSearch(properties)
     {
         var inputField = document.getElementById('search');
@@ -1131,36 +1131,36 @@ function initializeStatusPage() {
         var numVisible = searchProperties(properties, searchTerm, selectedSpecifications(), activeStatusFilters, activePrefixFilters);
         document.getElementById('property-pluralize').textContent = numVisible == 1 ? 'property' : 'properties';
         document.getElementById('property-count').textContent = numVisible;
-        
+
         updateSpecsState();
         updateURL(searchTerm, selectedSpecifications(), activeStatusFilters, activePrefixFilters);
     }
-    
+
     function updateSpecsState()
     {
         var specsEnabled = document.getElementById('by-spec-checkbox').checked;
         var specificationsList = document.getElementById('specifications');
-        
+
         var radiobuttons = [].slice.call(specificationsList.getElementsByTagName('input'));
         radiobuttons.forEach(function(radiobutton,i) {
             radiobutton.disabled = !specsEnabled;
         });
     }
-    
+
     function updateURL(searchTerm, selectedSpecifications, activeStatusFilters, activePrefixFilters)
     {
         var searchString = '';
-        
+
         function appendDelimiter()
         {
             searchString += searchString.length ? '&' : '?';
         }
-        
+
         if (searchTerm.length > 0) {
             appendDelimiter();
             searchString += 'search=' + encodeURIComponent(searchTerm);
         }
-        
+
         if (activeStatusFilters.length) {
             appendDelimiter();
             searchString += 'status=' + activeStatusFilters.join(',');
@@ -1179,7 +1179,7 @@ function initializeStatusPage() {
         var current = window.location.href;
         window.location.href = current.replace(/#(.*)$/, '') + '#' + searchString;
     }
-    
+
     function searchTermFromURL()
     {
         var search = window.location.search;
@@ -1191,7 +1191,7 @@ function initializeStatusPage() {
 
         return '';
     }
-    
+
     function statusesFromURL()
     {
         var search = window.location.search;
@@ -1220,14 +1220,14 @@ function initializeStatusPage() {
     {
         if (prefixRegexp.exec(valueObj.value))
             return true;
-        
+
         if ('alias' in valueObj) {
             for (var alias of valueObj.aliases) {
                 if (prefixRegexp.exec(alias))
                     return true;
             }
         }
-        
+
         return false;
     }
 
@@ -1271,13 +1271,13 @@ function initializeStatusPage() {
         properties.forEach(function(propertyObject) {
             var matchesStatusSearch = isStatusFiltered(propertyObject, statusFilters);
             var matchesPrefixSearch = isPrefixFiltered(propertyObject, prefixFilters);
-            
+
             var visible = propertyIsSearchMatch(propertyObject, searchTerm) && isCategoryMatch(propertyObject, categories) && matchesStatusSearch && matchesPrefixSearch;
             if (visible && !propertyObject.visible)
                 propertyObject.el.className = 'property';
             else if (!visible && propertyObject.visible)
                 propertyObject.el.className = 'property is-hidden';
-            
+
             if (visible) {
                 filterValues(propertyObject, searchTerm);
                 ++visibleCount;
@@ -1285,7 +1285,7 @@ function initializeStatusPage() {
 
             propertyObject.visible = visible;
         });
-        
+
         return visibleCount;
     }
 
@@ -1303,7 +1303,7 @@ function initializeStatusPage() {
                     return true;
             }
         }
-        
+
         for (var valueObj of propertyObject.values) {
             if (valueObj.value.toLowerCase().indexOf(searchTerm) !== -1)
                 return true;
@@ -1353,17 +1353,17 @@ function initializeStatusPage() {
         }
         return false;
     }
-    
+
     function propertyOrAliasIsPrefixed(propertyObject)
     {
         if (prefixRegexp.exec(propertyObject.name))
             return true;
-        
+
         for (var alias of propertyNameAliases(propertyObject)) {
             if (prefixRegexp.exec(alias))
                 return true;
         }
-        
+
         return false;
     }
 
@@ -1375,7 +1375,7 @@ function initializeStatusPage() {
             return false;
         if (activeFilters.indexOf(propertyObject.status.status) !== -1)
             return true;
-        
+
         return false;
     }
 
@@ -1403,7 +1403,7 @@ function initializeStatusPage() {
                     return true;
             }
         }
-        
+
         return false;
     }
 
@@ -1417,7 +1417,7 @@ function initializeStatusPage() {
     function mergeProperties(unprefixedPropertyObj, prefixedPropertyObj)
     {
         (unprefixedPropertyObj['codegen-properties'].aliases = unprefixedPropertyObj['codegen-properties'].aliases || []).push(prefixedPropertyObj.name);
-        
+
         for (var valueObj of prefixedPropertyObj.values) {
             if (!findValueByName(unprefixedPropertyObj.values, valueObj.value))
                 prefixedPropertyObj.values.push(valueObj);
@@ -1425,7 +1425,7 @@ function initializeStatusPage() {
 
         return unprefixedPropertyObj;
     }
-    
+
     // Sometimes we have separate entries for -webkit-foo and foo.
     function collapsePrefixedProperties(properties)
     {
@@ -1454,7 +1454,7 @@ function initializeStatusPage() {
 
             remainingProperties.push(propertyObj);
         }
-        
+
         return remainingProperties;
     }
 
@@ -1472,7 +1472,7 @@ function initializeStatusPage() {
         }
         propertyObject.values = valueObjects;
     }
-    
+
     function canonicalizeStatus(propertyObject, categories)
     {
         // Inherit "status" from the cateogry if not explicitly specified.
@@ -1501,19 +1501,19 @@ function initializeStatusPage() {
             };
         } else if (!('status' in propertyObject.status))
             propertyObject.status.status = 'supported';
-            
+
         propertyObject.status.status = canonicalizeIdentifier(propertyObject.status.status);
     }
-    
+
     function renderContent(results)
     {
         var mainContent = document.getElementById("property-list");
         var successSubtree = document.importNode(document.getElementById("success-template").content, true);
         mainContent.appendChild(successSubtree);
-        
+
         var properties = results[0]['properties'];
         var everythingToShow = [];
-        
+
         var categories = results[0]['categories'];
 
         for (var property in properties) {
@@ -1525,10 +1525,10 @@ function initializeStatusPage() {
 
             everythingToShow.push(propertyObject);
         }
-        
+
         everythingToShow = collapsePrefixedProperties(everythingToShow);
         sortAlphabetically(everythingToShow);
-        
+
         renderProperties(categories, everythingToShow);
 
         initSearch(everythingToShow, categories);
index 138df3f..6c3a37d 100644 (file)
@@ -1,6 +1,6 @@
     </div><!--.page-width-->
 </main><!-- #content -->
-        
+
 <footer>
     <div class="page-width">
         <nav id="footer-nav" aria-label="Footer menu"><?php wp_nav_menu( array('theme_location'  => 'footer-nav') ); ?></nav>
index c992ebe..b203744 100644 (file)
@@ -1,6 +1,6 @@
 <?php get_header(); ?>
 <div id="posts" class="tiles">
-    <?php 
+    <?php
 
 include_post_icons();
 Front_Page_Posts::object(); // Initialize Front Page Posts query
index b9aa13c..c6dced4 100644 (file)
@@ -5,8 +5,8 @@
 ?>
 <?php get_header(); ?>
 
-    <?php if (have_posts()) : while (have_posts()) : the_post(); 
-            
+    <?php if (have_posts()) : while (have_posts()) : the_post();
+
         $path = dirname(ABSPATH);
         $file = get_post_meta(get_the_ID(), 'include-markdown', true);
 
 
             // Handle sub-section anchors
             $content = preg_replace('/\[]\(\#([^\)]+)\)\s+?/', '<a href="#$1" name="$1"></a>', $content);
-            
+
             // Transform Markdown
             $Markdown = WPCom_Markdown::get_instance();
             $content = wp_unslash( $Markdown->transform($content) );
-            
+
             // Index table of contents
             $content = table_of_contents_index($content, get_the_ID());
-            
+
             set_transient($cachekey, $content, DAY_IN_SECONDS);
         }
-        
+
     ?>
 
         <article class="page<?php if ( has_table_of_contents() ) echo ' with-toc';?>" id="post-<?php the_ID(); ?>">
-                
+
             <h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
-            
+
             <div class="bodycopy">
             <?php table_of_contents(); ?>
             <?php
index 654d2a9..d441325 100644 (file)
@@ -14,7 +14,7 @@ get_header();
 add_filter('the_content', function ($content) {
     $branch = get_query_var('nightly_branch');
     $build = intval(get_query_var('nightly_build'));
-    
+
     if (empty($Build) || empty($branch) || $build < 11976) {
         $content = preg_replace('/<p>(.*?)%1\$s<\/p>/', '<p></p>', $content);
     } else {
@@ -230,12 +230,12 @@ hr {
 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="icons-sprite">
     <style>
         svg,symbol { color: white; }
-    </style>    
+    </style>
     <defs>
         <symbol id="cycle">
             <path fill="none" stroke="currentColor" stroke-width="2.5" d="M11.2720779,11.2720779 C4.24264069,18.3015152 4.24264069,29.6984848 11.2720779,36.7279221 C16.0613936,41.5172377 22.878121,43.0434836 28.9596165,41.3066596 M36.7279221,36.7279221 C43.7573593,29.6984848 43.7573593,18.3015152 36.7279221,11.2720779 C31.9713395,6.51549533 25.2149636,4.97753141 19.1651795,6.65818618 M32.4852814,40.9705627 L40.9705627,40.9705627 L32.4852814,32.4852814 L32.4852814,40.9705627 L32.4852814,40.9705627 L32.4852814,40.9705627 L32.4852814,40.9705627 Z M15.5147186,7.02943725 L15.5147186,15.5147186 L7.02943725,7.02943725 L15.5147186,7.02943725 L15.5147186,7.02943725 L15.5147186,7.02943725 L15.5147186,7.02943725 Z"/>
         </symbol>
-        
+
         <symbol id="landing">
             <path d="M25 39.6894531C29.4337391 39.6894531 33.0279948 38.7092016 33.0279948 37.5 33.0279948 36.2907984 29.4337391 35.3105469 25 35.3105469 20.5662609 35.3105469 16.9720052 36.2907984 16.9720052 37.5 16.9720052 38.7092016 20.5662609 39.6894531 25 39.6894531zM25 42.9736328C33.464411 42.9736328 40.3261719 40.5230039 40.3261719 37.5 40.3261719 34.4769961 33.464411 32.0263672 25 32.0263672 16.535589 32.0263672 9.67382812 34.4769961 9.67382812 37.5 9.67382812 40.5230039 16.535589 42.9736328 25 42.9736328zM24.7290081 3.50148293C24.7290081 3.50148293 18.3504449 8.20808946 18.3504449 14.6816869 18.3504449 17.593729 21.0244162 23.9842129 21.0244162 23.9842129L28.4224355 23.9954394C28.4224355 23.9954394 31.1061539 17.5948742 31.1061539 14.6816869 31.1061539 8.20808946 24.7290081 3.50148293 24.7290081 3.50148293zM25.0124629 23.0160712L25.0124629 16.784522 25.0124629 16.0055783 24.8074778 16.0055783 24.8074778 16.784522 24.8074778 23.0160712 24.8074778 23.7950148 25.0124629 23.7950148 25.0124629 23.0160712M27 24L35.1994068 24 35.1994068 20.972726 31.0997034 17.0553266M22.4494068 24L14.25 24 14.25 20.972726 18.3497034 17.0553266" fill="none" stroke="currentColor" stroke-width="2.5"/>
         </symbol>
@@ -246,7 +246,7 @@ hr {
                 <polyline points="28 6 34.316 7.499 34.316 19.494 36.842 23.992 34.316 28.49 34.316 40.485 28 41.984" />
             </g>
         </symbol>
-        
+
         <symbol id="priority">
             <path fill="none" stroke="currentColor" stroke-width="2.5" d="M24,4.13378906 L43.8662109,43.8662109 L4.13378906,43.8662109 L24,4.13378906 Z M23.7675781,37.1438117 L24.2675781,37.1438117 L24.2675781,37.6438117 L23.7675781,37.6438117 L23.7675781,37.1438117 Z M23.7675781,31.3879523 L24.2675781,31.3879523 L24.2675781,18.1438117 L23.7675781,18.1438117 L23.7675781,31.3879523 Z"/>
         </symbol>
@@ -260,17 +260,16 @@ hr {
                 <rect width="15.531" height="12.425" x="4" y="32"/>
             </g>
         </symbol>
-        
+
         <symbol id="report">
             <path d="M24.1320008 44.328125C32.1512251 44.328125 38.6520901 35.226914 38.6520901 24 38.6520901 12.773086 32.1512251 3.671875 24.1320008 3.671875 16.1127765 3.671875 9.61191153 12.773086 9.61191153 24 9.61191153 35.226914 16.1127765 44.328125 24.1320008 44.328125zM13.7861328 10.5L34.4768075 10.5 13.7861328 10.5zM24.25 11L24.25 44.328125M34.1640625 37.0680804L39.9720982 42.8761161M38.5200893 22.25L44.328125 22.25M9.47991071 22.25L3.671875 22.25M13.8359375 10.9319196L8.02790179 5.12388393M34.1640625 10.9319196L39.9720982 5.12388393M13.9720982 37.0680804L8.1640625 42.8761161" fill="none" stroke="currentColor" stroke-width="2.5"/>
         </symbol>
-        
-        
+
         <symbol id="review">
             <path stroke="currentColor" stroke-width="2.5" fill="none" d="M23.9412979,30.8091391 C20.5466664,30.8091391 17.7939376,27.9866905 17.7939376,24.4982979 C17.7939376,21.0147136 20.5466664,18.1898609 23.9412979,18.1898609 C27.3383336,18.1898609 30.0910624,21.0147136 30.0910624,24.4982979 C30.0910624,27.9866905 27.3383336,30.8091391 23.9412979,30.8091391 M23.9412979,13.6821172 C14.2790996,13.6821172 7.25423179,24.4982979 7.25423179,24.4982979 C7.25423179,24.4982979 14.2790996,35.3168828 23.9412979,35.3168828 C33.6059004,35.3168828 40.6307682,24.4982979 40.6307682,24.4982979 C40.6307682,24.4982979 33.6059004,13.6821172 23.9412979,13.6821172"/>
             <path fill="currentColor" d="M23.9412979,21.7960558 C22.4867993,21.7960558 21.3063715,23.0053332 21.3063715,24.5007021 C21.3063715,25.9936668 22.4867993,27.2053483 23.9412979,27.2053483 C25.3982007,27.2053483 26.5762244,25.9936668 26.5762244,24.5007021 C26.5762244,23.0053332 25.3982007,21.7960558 23.9412979,21.7960558"/>
         </symbol>
-        
+
         <symbol id="steps">
             <g fill="none" stroke="currentColor" stroke-width="2.5">
                 <path fill="currentColor" d="M20 13L32 13M20 27L32 27M20 41L32 41M20 8L42 8M20 22L42 22M20 36L42 36"/>
@@ -279,7 +278,7 @@ hr {
                 <circle cx="10.5" cy="38.5" r="4.5"/>
             </g>
         </symbol>
-        
+
         <symbol id="testcase">
             <g fill="none" stroke="currentColor" stroke-width="2.5">
                 <path fill="currentColor" d="M20 13L32 13M20 27L32 27M20 41L32 41M20 8L42 8M20 22L42 22M20 36L42 36"/>
@@ -304,11 +303,11 @@ hr {
     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
         <article class="page" id="nightly">
-            
+
             <div class="bodycopy">
                 <?php the_content(''); ?>
             </div>
-            
+
         </article>
 
     <?php endwhile; endif; ?>
index 1e814dd..3ba37fc 100644 (file)
@@ -12,15 +12,15 @@ get_header();
         body {
             background: #333333;
         }
-        
+
         main {
             background: none;
         }
-        
+
         header {
             background-color: rgba(0,0,0,0.1);
         }
-        
+
         #nightly {
             margin: 6rem auto;
             color: #ffffff;
@@ -44,7 +44,7 @@ get_header();
             text-align: center;
         }
 
-        
+
         #nightly .bodycopy {
             max-width: 64rem;
         }
@@ -129,7 +129,7 @@ get_header();
             font-weight: normal;
             font-size: 1.8rem;
         }
-        
+
         #nightly .pagination .page-numbers {
             background-color: rgba(255, 255, 255, 0.1);
             color: #ffffff;
@@ -153,9 +153,9 @@ get_header();
     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
         <article class="page" id="nightly">
-            
+
             <h1><?php the_title(); ?></h1>
-            
+
             <div class="bodycopy">
                 <?php if (WebKit_Nightly_Survey::responded()): ?>
                     <?php the_content(''); ?>
@@ -166,11 +166,11 @@ get_header();
                 <form name="webkit-nightly-survey" action="" method="POST">
                 <?php
                 echo WebKit_Nightly_Survey::form_nonce();
-                
+
                 $Survey = WebKit_Nightly_Survey::survey();
                 foreach ($Survey as $id => $SurveyQuestion) {
                     echo "<h3>$SurveyQuestion->question</h3>";
-                    
+
                     echo "<ul>";
                     foreach ($SurveyQuestion->responses as $value => $response) {
                         echo '<li><label><input type="radio" name="questions[' . $id . ']" value="' . $value . '" required> <span>' . $response . '</span>';
@@ -186,7 +186,7 @@ get_header();
                 </form>
                 <?php endif;?>
             </div>
-            
+
         </article>
 
     <?php endwhile; endif; ?>
index c64efe7..8ab34f5 100644 (file)
@@ -1,25 +1,25 @@
 <?php get_header(); ?>
 
-       <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
         <article class="page<?php if ( has_table_of_contents() ) echo ' with-toc';?>" id="post-<?php the_ID(); ?>">
-                
-                       <h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
-            
-                       <div class="bodycopy">
+
+            <h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
+
+            <div class="bodycopy">
                 <?php table_of_contents(); ?>
-                               
+
                 <?php the_content('<p class="serif">Read the rest of this entry &gt;&gt;</p>'); ?>
 
-                               <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
+                <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
 
-                       </div>
+            </div>
         </article>
 
-       <?php //comments_template(); ?>
+    <?php //comments_template(); ?>
 
-       <?php endwhile; else:
+    <?php endwhile; else:
         include('444.php');
-       endif; ?>
-    
+    endif; ?>
+
 <?php get_footer(); ?>
\ No newline at end of file
index 5f7d51f..96be541 100644 (file)
@@ -23,7 +23,7 @@ document.addEventListener('DOMContentLoaded', function () {
         menuitems[i].addEventListener('focus', function (e) {
             var targetMenu = findParentMenu(e.target, menuClass),
                 targetMenuClass = null;
-                
+
             if ( targetMenu != undefined )
                 targetMenuClass = targetMenu.className;
 
@@ -89,7 +89,7 @@ document.addEventListener('DOMContentLoaded', function () {
         }
 
     }
-    
+
     function enableScrollableTables () {
         var tables = document.querySelectorAll('.bodycopy > table');
         var tableCount = tables.length;
@@ -111,8 +111,8 @@ document.addEventListener('DOMContentLoaded', function () {
     var imgs = document.querySelectorAll('div[data-url]');
     document.addEventListener('scroll', onMovement);
     document.addEventListener('resize', onMovement);
-    
+
     updateImages();
     enableScrollableTables();
 
-});
\ No newline at end of file
+});
index bebae48..e965b7a 100644 (file)
@@ -6,23 +6,23 @@
         errors = document.getElementById('search-errors'),
         loaded = ui.lastChild.cloneNode(true),
         inputs = [].slice.call(inputList);
-        
+
     for (var i in inputs) {
         var input = inputs[i];
         initsearch(input);
     }
-    
+
     function initsearch(input) {
-        
+
         var delayTimer = null;
-        
+
         // input.addEventListener('focus', sendSearch);
         input.addEventListener('keyup', function () {
             if ( delayTimer != null )
                 clearTimeout(delayTimer);
             delayTimer = setTimeout(sendSearch, 500);
         });
-        
+
         function xhrPromise(url) {
             return new Promise(function(resolve, reject) {
                 var XHR = new XMLHttpRequest();
@@ -40,7 +40,7 @@
                 XHR.send();
             });
         }
-        
+
         // Send the search query
         function sendSearch (e) {
             delayTimer = null;
             var endpoint = new URL(ajaxurl + "?action=search_nightly_builds&query=" + query);
             var searchResults = xhrPromise(endpoint);
             spinner.classList.add('searching');
-            searchResults.then(displayResults).catch(displayError);            
+            searchResults.then(displayResults).catch(displayError);
         }
 
         function displayResults(results) {
             var list = document.createElement('ul');
             if ( results.length == 0 )
                 return displayError('There are no builds matching your search. Search by revision number, or a range of revision numbers: ######-######');
-            
+
             for (var entry of results)
                 addEntry(entry[0], entry[1], entry[2]);
             ui.replaceChild(list, ui.lastChild);
             spinner.classList.remove('searching');
-            
+
             function addEntry (build, datetime, download) {
                 var li = document.createElement('li'),
                     link = document.createElement('a'),
                 list.appendChild(li);
             }
         }
-        
+
         function displayError(message) {
             var note = document.createElement('div');
 
-            if ( typeof message !== 'string' ) 
+            if ( typeof message !== 'string' )
                 message = 'A communication error occured preventing any results from being returned by the server.';
 
             note.classList.add('note');
 
             spinner.classList.remove('searching');
         }
-        
+
         function clearErrors() {
             while (errors.firstChild)
                 errors.removeChild(errors.firstChild);
         }
-        
+
      }
 
-}(document));
\ No newline at end of file
+}(document));
index c4e203c..6d3ec73 100644 (file)
                 <p class="twitter"><a href="https://twitter.com/<?php echo get_the_author_meta('twitter'); ?>" target="_blank">@<?php echo esc_html($twitter_handle); ?></a></p>
                 <?php endif; ?>
             </div>
-            
+
             <div class="bodycopy">
                 <?php the_content('<p class="serif">Read the rest of this entry &gt;&gt;</p>'); ?>
 
                 <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
             </div>
         </article>
-        
+
         <aside class="nextrouter" aria-label="Next/Previous posts">
             <div class="bodycopy">
             <?php //previous_post_link('%link', 'Older Post <span>%title</span>'); ?>
index 72cc4c1..c2699ce 100644 (file)
@@ -5,7 +5,7 @@
 ?>
 <?php get_header(); ?>
 
-       <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
         <style>
         article .menu a {
             color: #444444;
 
         article .menu a:hover {
             color: #08c;
-        }   
-        
+        }
+
         article .menu,
         article .menu ul {
             list-style: none;
         }
-        
+
         article .menu,
         article .sub-menu {
             padding-left: 0;
             width: 32%;
             box-sizing: border-box;
         }
-        
+
         article .sub-menu {
             padding-right: 1rem;
         }
-        
+
         /* Top headings */
         article .menu > .menu-item-has-children > a {
             display: block;
@@ -49,7 +49,7 @@
             border-bottom: 1px solid #dddddd;
             margin-bottom: 1rem;
         }
-        
+
         /* Sub-section headings */
         article .sub-menu > .menu-item-has-children > a {
             display: block;
             margin-top: 2rem;
             margin-bottom: 1rem;
         }
-  
+
         article .sub-menu .sub-menu li {
             display: block;
             width: 100%;
             margin-bottom: 0.5rem;
         }
-        
+
         @media only screen and (max-width: 676px) {
             article .sub-menu li {
                 width: 100%;
             }
-        
+
         }
         </style>
         <article class="page sitemap" id="post-<?php the_ID(); ?>">
-                
-                       <h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
-            
-                       <div class="bodycopy">
+
+            <h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
+
+            <div class="bodycopy">
             <?php wp_nav_menu( array('theme_location'  => 'sitemap') ); ?>
-                       </div>
+            </div>
         </article>
 
        <?php endwhile; else:
index c3e9b6f..a7e9417 100644 (file)
@@ -20,7 +20,6 @@ article ul > li {
     padding: 1rem;
     margin-bottom: 1rem;
     border: 1px solid transparent;
-    
 }
 li span,
 li em {
@@ -56,7 +55,7 @@ article ul > li:hover li {
 }
 
 @media only screen and (max-width: 675px) {
-    
+
     article ul > li {
         width: 100%;
     }
@@ -68,10 +67,10 @@ article ul > li:hover li {
 
         <article class="page" id="post-<?php the_ID(); ?>">
                        <h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
-                        
+
                        <div id="team" class="bodycopy">
                 <p><a href="#reviewers">Reviewers</a> | <a href="#committers">Committers</a> | <a href="#contributors">Contributors</a></p>
-                
+
                 <h2><a name="reviewers"></a>Reviewers</h2>
                 <ul id="reviewers"></ul>
 
@@ -186,7 +185,7 @@ function populateContributorListItem(listItem, contributor) {
     var affiliation = formatAffiliation(contributor);
     if (affiliation) {
         addText(listItem, ' ');
-        addWrappedText(listItem, 'em', {'class': 'affiliation'}, affiliation);        
+        addWrappedText(listItem, 'em', {'class': 'affiliation'}, affiliation);
     }
 
     if (contributor.expertise) {
index a477975..1a8da2c 100644 (file)
@@ -7,27 +7,27 @@
 defined('WPINC') || header('HTTP/1.1 403') & exit; // Prevent direct access
 
 if ( ! class_exists('WP_Widget') ) return;
-       
+
 class WebKitIconTileWidget extends WP_Widget {
 
     function __construct() {
-        parent::WP_Widget(false, 
-                       __('Icon Tile'), 
-                       array('description' => __('Icon tile for the home page'))
-               );
+        parent::WP_Widget(false,
+            __('Icon Tile'),
+            array('description' => __('Icon tile for the home page'))
+        );
     }
 
     function widget( array $args, array $options ) {
         if ( ! empty($args) )
             extract($args, EXTR_SKIP);
-        
+
         $classes = array('third-tile', 'tile', 'icon-tile');
         $classes[] = (string)$options['color'];
         $classes[] = (string)$options['icon'];
         $text = (string)$options['text'];
         $subtext = (string)$options['subtext'];
         $url = (string)$options['url'];
-        
+
         ?>
         <div class="<?php echo esc_attr(join(' ', $classes)); ?>">
             <a class="tile-link" href="<?php echo esc_url($url); ?>"><?php echo nl2br(esc_html($text)); ?></a>
@@ -39,8 +39,8 @@ class WebKitIconTileWidget extends WP_Widget {
     }
 
     function form( array $options ) {
-               ?>
-               <p><label for="<?php echo $this->get_field_id('color'); ?>"><?php _e('Color'); ?></label>
+        ?>
+        <p><label for="<?php echo $this->get_field_id('color'); ?>"><?php _e('Color'); ?></label>
         <select name="<?php echo $this->get_field_name('color'); ?>">
         <?php echo html_select_options(array(
             'gray-tile' => 'Gray',
@@ -50,7 +50,7 @@ class WebKitIconTileWidget extends WP_Widget {
         ), $options['color'], true); ?>
         </select></p>
 
-               <p><label for="<?php echo $this->get_field_id('icon'); ?>"><?php _e('Icon'); ?></label>
+        <p><label for="<?php echo $this->get_field_id('icon'); ?>"><?php _e('Icon'); ?></label>
         <select name="<?php echo $this->get_field_name('icon'); ?>">
         <?php echo html_select_options(array(
             'compass' => 'Compass',
@@ -58,19 +58,19 @@ class WebKitIconTileWidget extends WP_Widget {
             'developer' => 'Developer'
         ), $options['icon'], true); ?>
         </select></p>
-        
-               <p><label for="<?php echo $this->get_field_id('text'); ?>"><?php _e('Text'); ?></label>
-               <textarea type="text" name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>" class="widefat"><?php echo $options['text']; ?></textarea></p>
 
-               <p><label for="<?php echo $this->get_field_id('subtext'); ?>"><?php _e('Sub Text'); ?></label>
-               <textarea type="text" name="<?php echo $this->get_field_name('subtext'); ?>" id="<?php echo $this->get_field_id('subtext'); ?>" class="widefat"><?php echo $options['subtext']; ?></textarea></p>
+        <p><label for="<?php echo $this->get_field_id('text'); ?>"><?php _e('Text'); ?></label>
+        <textarea type="text" name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>" class="widefat"><?php echo $options['text']; ?></textarea></p>
+
+        <p><label for="<?php echo $this->get_field_id('subtext'); ?>"><?php _e('Sub Text'); ?></label>
+        <textarea type="text" name="<?php echo $this->get_field_name('subtext'); ?>" id="<?php echo $this->get_field_id('subtext'); ?>" class="widefat"><?php echo $options['subtext']; ?></textarea></p>
 
-               <p><label for="<?php echo $this->get_field_id('url'); ?>"><?php _e('Link URL'); ?></label>
-               <input type="text" name="<?php echo $this->get_field_name('url'); ?>" id="<?php echo $this->get_field_id('url'); ?>" class="widefat" value="<?php echo $options['url']; ?>"></p>
+        <p><label for="<?php echo $this->get_field_id('url'); ?>"><?php _e('Link URL'); ?></label>
+        <input type="text" name="<?php echo $this->get_field_name('url'); ?>" id="<?php echo $this->get_field_id('url'); ?>" class="widefat" value="<?php echo $options['url']; ?>"></p>
 
-               <?php
+        <?php
     }
 
 } // END class WebKitIconTileWidget
 
-register_widget('WebKitIconTileWidget');
\ No newline at end of file
+register_widget('WebKitIconTileWidget');
index 5ee12a9..742d890 100644 (file)
@@ -7,52 +7,52 @@
 defined('WPINC') || header('HTTP/1.1 403') & exit; // Prevent direct access
 
 if ( ! class_exists('WP_Widget') ) return;
-       
+
 class WebKitPageTileWidget extends WebKitPostTileWidget {
 
     public function __construct() {
-        parent::WP_Widget(false, 
-                       __('Page Tile'), 
-                       array('description' => __('Page tile for the home page'))
-               );
+        parent::WP_Widget(false,
+            __('Page Tile'),
+            array('description' => __('Page tile for the home page'))
+        );
     }
-    
+
     public function load( array $options = array() ) {
         return new WP_Query(array(
-               'post_type' => 'page',
-               'page_id' => $options['page']
+            'post_type' => 'page',
+            'page_id' => $options['page']
         ));
     }
 
     function form( array $options ) {
         if ( empty( $options['link'] ) ) $options['link'] = __('Read more');
-               ?>
+        ?>
         <p><label for="<?php echo $this->get_field_id('page'); ?>"><?php _e( 'Page' ); ?></label>
         <?php echo wp_dropdown_pages( array( 'name' => $this->get_field_name('page'), 'echo' => 0, 'show_option_none' => __( '&mdash; Select &mdash;' ), 'option_none_value' => '0', 'selected' => $options['page'] ) ); ?></p>
-        
-               <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?></label>
-               <input type="text" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" class="widefat" value="<?php echo $options['title']; ?>" placeholder="Current Page Title"></p>
 
-               <p><label for="<?php echo $this->get_field_id('summary'); ?>"><?php _e('Summary'); ?></label>
-               <input type="text" name="<?php echo $this->get_field_name('summary'); ?>" id="<?php echo $this->get_field_id('summary'); ?>" class="widefat" value="<?php echo esc_attr($options['summary']); ?>" placeholder="Current Page Excerpt"></p>
+        <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?></label>
+        <input type="text" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" class="widefat" value="<?php echo $options['title']; ?>" placeholder="Current Page Title"></p>
+
+        <p><label for="<?php echo $this->get_field_id('summary'); ?>"><?php _e('Summary'); ?></label>
+        <input type="text" name="<?php echo $this->get_field_name('summary'); ?>" id="<?php echo $this->get_field_id('summary'); ?>" class="widefat" value="<?php echo esc_attr($options['summary']); ?>" placeholder="Current Page Excerpt"></p>
+
+        <p><label for="<?php echo $this->get_field_id('link'); ?>"><?php _e('Call to Action'); ?></label>
+        <input type="text" name="<?php echo $this->get_field_name('link'); ?>" id="<?php echo $this->get_field_id('link'); ?>" class="widefat" value="<?php echo $options['link']; ?>"></p>
 
-               <p><label for="<?php echo $this->get_field_id('link'); ?>"><?php _e('Call to Action'); ?></label>
-               <input type="text" name="<?php echo $this->get_field_name('link'); ?>" id="<?php echo $this->get_field_id('link'); ?>" class="widefat" value="<?php echo $options['link']; ?>"></p>
-        
         <p><label for="<?php echo $this->get_field_id('vignette'); ?>"><?php _e( 'Vignette' ); ?></label>
         <select  name="<?php echo $this->get_field_name('vignette'); ?>" id="<?php echo $this->get_field_id('vignette'); ?>">
             <option value="light">Light</option>
             <option value="dark"<?php if ( 'dark' == $options['link'] ) echo " checked=\"checked\""; ?>>Dark</option>
         </select></p>
-        
-               <p><label for="<?php echo $this->get_field_id('featured'); ?>">
+
+        <p><label for="<?php echo $this->get_field_id('featured'); ?>">
             <input type="hidden" name="<?php echo $this->get_field_name('featured'); ?>" value="off">
             <input type="checkbox" name="<?php echo $this->get_field_name('featured'); ?>" id="<?php echo $this->get_field_id('featured'); ?>" class="widefat" value="on" <?php echo ( 'on' == $options['featured'] ) ? 'checked' : ''; ?>>
             <?php _e('Featured'); ?></label>
-               </p>
-               <?php
+        </p>
+        <?php
     }
 
 } // END class WebKitPageTileWidget
 
-register_widget('WebKitPageTileWidget');
\ No newline at end of file
+register_widget('WebKitPageTileWidget');