Skip to content

Commit 3d7d74e

Browse files
committed
clean-up whitespace
1 parent b8a5388 commit 3d7d74e

File tree

11 files changed

+37
-37
lines changed

11 files changed

+37
-37
lines changed

src/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Module Name
22

3-
Information Here
3+
Information Here

src/chooser/js/chooser.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let rawStatePathRoutes = [
88
'do-you-know-which-license-you-need/yes/which-license-do-you-need/cc-by-nc/(attribution-details)&tool=cc-by-nc',
99
'do-you-know-which-license-you-need/yes/which-license-do-you-need/cc-by-nc-sa/(attribution-details)&tool=cc-by-nc-sa',
1010
'do-you-know-which-license-you-need/yes/which-license-do-you-need/cc-by-nc-nd/(attribution-details)&tool=cc-by-nc-nd',
11-
11+
1212
'do-you-know-which-license-you-need/no/require-attribution/yes/allow-commercial-use/yes/allow-derivatives/yes/share-alike/no/confirmation+ownership+read+revocation/(attribution-details)&tool=cc-by',
1313
'do-you-know-which-license-you-need/no/require-attribution/yes/allow-commercial-use/yes/allow-derivatives/yes/share-alike/yes/confirmation+ownership+read+revocation/(attribution-details)&tool=cc-by-sa',
1414
'do-you-know-which-license-you-need/no/require-attribution/yes/allow-commercial-use/yes/allow-derivatives/no/confirmation+ownership+read+revocation/(attribution-details)&tool=cc-by-nd',
@@ -67,13 +67,13 @@ function setStatePossibilities(state) {
6767
});
6868

6969
fullPath = statePath[0].replace(/[{()}]/g, '') + '/';
70-
70+
7171
if (state.possibilities[tool] == undefined) {
7272
state.possibilities[tool] = [];
7373
}
7474
state.possibilities[tool].push(fullPath);
7575
state.possibilities[tool].push(noOptionalsPath);
76-
76+
7777
});
7878
}
7979

@@ -91,7 +91,7 @@ function updateStateParts(element, index, event, state) {
9191
state.parts[index] = element.id + '/' + event.target.value + '/';
9292

9393
// check if checkbox, with siblings
94-
if (event.target.getAttribute('type') == 'checkbox') {
94+
if (event.target.getAttribute('type') == 'checkbox') {
9595
let checkboxElements = element.querySelectorAll('input[type="checkbox"]');
9696
let checkboxes = [];
9797
checkboxElements.forEach((checkbox, index) => {
@@ -122,7 +122,7 @@ function setStateCurrent(element, index, state) {
122122
state.parts.splice(i);
123123
}
124124
});
125-
125+
126126
state.current = state.parts.join('') //.slice(0, -1);
127127
}
128128

@@ -405,11 +405,11 @@ function renderEmptyPlaceholder(state) {
405405
if (state.props.tool == 'unknown' ) {
406406
document.querySelector('#empty').classList.remove('disable');
407407
}
408-
408+
409409
else if (state.props.tool != 'unknown') {
410410
document.querySelector('#empty').classList.add('disable');
411411
}
412-
412+
413413
}
414414

415415
// function to render "mark your work",
@@ -420,11 +420,11 @@ function renderMarkYourWork(state) {
420420
// load attribution details template,
421421
// populate from attribution text values
422422
document.querySelector('#mark-your-work').classList.remove('disable');
423-
423+
424424
renderMarkingFormats(state);
425425

426426
}
427-
427+
428428
else if (state.props.tool == 'unknown') {
429429
document.querySelector('#mark-your-work').classList.add('disable');
430430
}
@@ -464,7 +464,7 @@ function renderSteps(applyDefaults, state) {
464464
});
465465
document.querySelector('#which-license-do-you-need').classList.toggle('disable');
466466
document.querySelector('#waive-your-copyright').classList.add('disable');
467-
467+
468468
}
469469

470470
// if visitor doesn't need help
@@ -486,7 +486,7 @@ function renderSteps(applyDefaults, state) {
486486
});
487487

488488
document.querySelector('#waive-your-copyright').classList.remove('disable');
489-
489+
490490
} else {
491491
document.querySelector('#waive-your-copyright').classList.add('disable');
492492
}
@@ -507,7 +507,7 @@ function renderSteps(applyDefaults, state) {
507507
if (state.parts[4] == 'allow-derivatives/no/') {
508508
document.querySelector('#share-alike').classList.add('disable');
509509
}
510-
510+
511511
}
512512

513513
// [T]: function to handle error state
@@ -567,7 +567,7 @@ function watchMarkToggles(toggles, state) {
567567
}
568568

569569
function watchMarkCopiers(copiers, state) {
570-
570+
571571
function copyToClipboard (text) {
572572
let temp = document.createElement("textarea");
573573
document.body.appendChild(temp);
@@ -615,6 +615,6 @@ document.addEventListener("DOMContentLoaded", (event) => {
615615

616616
// parent = event.target.parentNode.parentNode;
617617
// parent.querySelector('.panel').classList.toggle('expand');
618-
618+
619619
// });
620620
// });

src/page_blog.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180

181181
<a class="more" href="/blog/archive/">more posts</a>
182182

183-
183+
184184
<?php endif; ?>
185185

186186

src/page_faqs.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
$linkType = get_sub_field('link_type');
7272

7373
?>
74-
74+
7575

7676
<article class="featured">
7777
<h2>Focus Areas</h2>
@@ -159,12 +159,12 @@
159159
</li>
160160
<?php endforeach; ?>
161161

162-
162+
163163
</ul>
164164

165165
</details>
166166

167-
<?php if (!$children) : ?>
167+
<?php if (!$children) : ?>
168168
<?php foreach ($questions as $question) : ?>
169169

170170
<h3 id="<?php echo (str_replace(' ', '-', strtolower($question->post_title))); ?>"><?php echo $question->post_title ?></h3>
@@ -189,7 +189,7 @@
189189
<!-- loop through and get all the questions from this subsection -->
190190
<?php $questions = get_field('faqs_listing', $child->ID); ?>
191191
<?php foreach ($questions as $question) : ?>
192-
192+
193193
<h4 id="<?php echo (str_replace(' ', '-', strtolower($question->post_title))); ?>"><?php echo $question->post_title ?></h4>
194194
<a href="<?php echo get_edit_post_link($question->ID); ?>" class="edit" >[edit]</a>
195195
<?php echo apply_filters( 'the_content', $question->post_content ); ?>
@@ -218,7 +218,7 @@
218218
<?php endforeach; ?>
219219

220220
<?php endif; ?>
221-
221+
222222
<?php endwhile; ?>
223223
<?php endif; ?>
224224

src/page_home.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
//$custom_field = get_field( 'field_name', $post->ID );
123123
?>
124124

125-
<li>
125+
<li>
126126
<article class="post">
127127
<header>
128128
<h3 class="title"><a href="<?php echo esc_url( $permalink ); ?>"><?php echo esc_html( $title ); ?></a></h3>

src/search.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
?>
9898
</span>
9999

100-
100+
101101

102102
</header>
103103

src/single-course.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
} else {
3232
$isParent = false;
3333
}
34-
34+
3535
if ($isParent && !has_post_parent() ) {
3636
$contextType = 'course-index';
3737
} elseif (has_post_parent()) {
@@ -65,12 +65,12 @@
6565
<?php if($contextType == 'course-page' && $embedded == '') : ?>
6666
<li><a href="https://creativecommons.org">Creative Commons</a></li>
6767
<?php endif; ?>
68-
68+
6969
<?php if ($contextType != 'course-index' ) : ?>
7070
<li><a href="<?php the_permalink($grandparent->ID); ?>"><?php echo $grandparent->post_title; ?></a></li>
7171

7272
<?php endif; ?>
73-
73+
7474
</ul>
7575
</nav>
7676

src/single-faqs-group.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
</li>
6868
<?php endforeach; ?>
6969

70-
70+
7171
</ul>
7272

7373
</details>

src/static-templates/static-chooser.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<form id="chooser">
1818

1919
<ol>
20-
20+
2121
<li>
2222
<fieldset id="do-you-know-which-license-you-need">
2323
<legend>Do you know which license you need?</legend>
@@ -300,7 +300,7 @@
300300
</article>
301301

302302
</details>
303-
303+
304304
<details class="medium">
305305
<summary>Print Work or Media</summary>
306306

@@ -357,15 +357,15 @@
357357
<dt class="icon-attach cc-by">Attribution Required (BY)</dt>
358358
<dd>Credit must be given to you, the creator.</dd>
359359
</div>
360-
360+
361361
<div>
362362
<dt class="icon-attach cc-nc">Commercial Use Not Allowed (NC/NonCommercial)</dt>
363363
<dd>
364364
Only noncommercial use of your work is permitted.
365365
<em>Noncommercial means not primarily intended for or directed towards commercial advantage or monetary compensation.</em>
366366
</dd>
367367
</div>
368-
368+
369369
<div>
370370
<dt class="icon-attach cc-sa">Distributed on Same Terms (SA/ShareAlike)</dt>
371371
<dd>Adaptations must be shared under the same terms.</dd>

src/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ main nav.pagination ul li span.current {
445445
order: initial;
446446
}
447447

448-
.home-narrative main .posts.featured ul {
448+
.home-narrative main .posts.featured ul {
449449
padding: 0 var(--vocabulary-page-edges-space);
450450
}
451451

src/vocabulary/css/vocabulary.css

+5-5
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ main > aside.sidebar nav.filter-menu ul li.current a {
334334
main > aside.sidebar nav ul {
335335
margin: 0;
336336
padding: 0;
337-
337+
338338
text-indent: none;
339339
list-style: none;
340340
font-size: 1rem;
@@ -396,7 +396,7 @@ main h2 {
396396

397397
main h3 {
398398
box-sizing: border-box;
399-
399+
400400
font-family: 'Roboto Condensed';
401401
font-style: normal;
402402
font-weight: 700;
@@ -666,7 +666,7 @@ main nav.pagination ol {
666666
width: 100%;
667667
margin: 0;
668668
padding: 0;
669-
669+
670670
text-indent: none;
671671
font-size: 1em;
672672
list-style: none;
@@ -1525,7 +1525,7 @@ body > footer .license svg {
15251525
order: initial;
15261526
}
15271527

1528-
.blog-index main .posts.featured ul {
1528+
.blog-index main .posts.featured ul {
15291529
padding: 0 var(--vocabulary-page-edges-space);
15301530
}
15311531

@@ -1991,7 +1991,7 @@ body > footer .license svg {
19911991
.search-index main > header:before {
19921992
left: 0;
19931993
}
1994-
1994+
19951995
.team-index main > header {
19961996
padding: 0 var(--vocabulary-page-edges-space);
19971997
}

0 commit comments

Comments
 (0)