Compare commits
194 Commits
v2017-07-1
...
v2018-04-0
Author | SHA1 | Date | |
---|---|---|---|
|
b2d5fcadf3 | ||
|
05395f4670 | ||
|
078d20824c | ||
|
44c8661e96 | ||
|
13bc9bef10 | ||
|
585e0e1f18 | ||
|
1ef6c3305b | ||
|
9c4da4102a | ||
|
c47a7a534f | ||
|
4d8fdc9f4e | ||
|
ae590706b0 | ||
|
e84f0a9fb6 | ||
|
e2850d38c0 | ||
|
8927478efb | ||
|
3c815b1f3b | ||
|
58aa0549ff | ||
|
4a83b45e7e | ||
|
f6b44c56ce | ||
|
8149aa163c | ||
|
94f935198f | ||
|
c04c9ff12f | ||
|
64787edd4e | ||
|
f995e8b483 | ||
|
dea85d1e47 | ||
|
e9fd3fd002 | ||
|
debc510205 | ||
|
32260c405f | ||
|
d142564f36 | ||
|
d41674a267 | ||
|
99450e61de | ||
|
1fec9b21c8 | ||
|
42189e5b94 | ||
|
929f92a52a | ||
|
02e2f11718 | ||
|
10636e24e2 | ||
|
61b890d31c | ||
|
85a79d2eb5 | ||
|
b5ec56174a | ||
|
f0e0cf8ed3 | ||
|
5c1c336d77 | ||
|
d71793583e | ||
|
6705bdf41d | ||
|
25e779a59f | ||
|
ba0852a957 | ||
|
88024c040f | ||
|
3d9b9edf1c | ||
|
c0326ad7d9 | ||
|
0cb6827b39 | ||
|
0d68614c04 | ||
|
1e86b70ba4 | ||
|
ced142a215 | ||
|
bf301daa71 | ||
|
278ac2baae | ||
|
10b8e4c941 | ||
|
1d1b3e4eac | ||
|
5a3e437d76 | ||
|
75a7aa1299 | ||
|
cf13529485 | ||
|
7c03ae2f80 | ||
|
affae48547 | ||
|
11ab1ae731 | ||
|
6b324152ac | ||
|
edaa0a3443 | ||
|
133f81db8e | ||
|
634f72213b | ||
|
94049d2338 | ||
|
46356c3b98 | ||
|
53d3cf8a74 | ||
|
46ffb01181 | ||
|
fe937d7e4a | ||
|
2cc48104b1 | ||
|
7e7942149e | ||
|
35a217c20b | ||
|
ac0697f1c4 | ||
|
44ee05bcaf | ||
|
2e3c0b861b | ||
|
f34858d644 | ||
|
c18a193973 | ||
|
8cce1275a8 | ||
|
fa08a2dbe8 | ||
|
09e637e6c4 | ||
|
5cb449afcc | ||
|
b0f2b62767 | ||
|
48a51a6f6a | ||
|
c552ffe699 | ||
|
f4850a6010 | ||
|
0bddb123e1 | ||
|
66139ce781 | ||
|
921b75bb2e | ||
|
1e705b4914 | ||
|
cf8756ced7 | ||
|
c6a579a0bf | ||
|
494993d4c2 | ||
|
a472a09597 | ||
|
05460bde51 | ||
|
0c32e03f3a | ||
|
1ac02df52a | ||
|
24b8c5ac35 | ||
|
9fceb27952 | ||
|
1e9629051f | ||
|
b5e95143ca | ||
|
0a2e1ca63a | ||
|
21a019612c | ||
|
80ba7cfaa6 | ||
|
132a00f9e7 | ||
|
d73ae6a382 | ||
|
f427a05c89 | ||
|
3555a692dc | ||
|
11bf8d4de2 | ||
|
4ccf83b953 | ||
|
f6be6aa37e | ||
|
04432d0323 | ||
|
ea323d4b01 | ||
|
082f9a1175 | ||
|
04776428c8 | ||
|
b1f7f5cad4 | ||
|
6d41096dd5 | ||
|
77c31a7c5c | ||
|
0c9086d70d | ||
|
2b6dfac5b0 | ||
|
ba21f8b88d | ||
|
b483acdb6d | ||
|
d91fb336b9 | ||
|
97f62ae600 | ||
|
98d2459b79 | ||
|
719e3a73f5 | ||
|
439f1933da | ||
|
0f52cde91a | ||
|
8a14c6e5fb | ||
|
8c04a58949 | ||
|
6e93313528 | ||
|
b7bc7218b8 | ||
|
7ec21fb6d2 | ||
|
1e2b2dd18f | ||
|
9d4e18e6ef | ||
|
61681c8dd3 | ||
|
71e68b5e2e | ||
|
872eec2aa7 | ||
|
863f70054d | ||
|
16c8d68e39 | ||
|
08593bb221 | ||
|
516a78d397 | ||
|
89ea7a28bd | ||
|
763e9c594f | ||
|
fd7528a6bd | ||
|
efd9e55b66 | ||
|
da94557324 | ||
|
f5887473f3 | ||
|
17ea63f7b9 | ||
|
d7db07bcab | ||
|
e92a1cf713 | ||
|
96903f018c | ||
|
fcc95ce518 | ||
|
8c349b8282 | ||
|
93627e0da2 | ||
|
593bb63e23 | ||
|
3a58b6ae82 | ||
|
11848054a3 | ||
|
c0e9a05e1d | ||
|
7cbdd6a074 | ||
|
fa1cda441e | ||
|
7d07c3818a | ||
|
3374812782 | ||
|
9c871d760a | ||
|
22fa09470b | ||
|
9bae51d6a4 | ||
|
b598ed1040 | ||
|
23148d4721 | ||
|
df422912d6 | ||
|
e5f6f5cf2d | ||
|
96c382943b | ||
|
ef6e5d07dc | ||
|
bf260c2ee2 | ||
|
7f1a765dd8 | ||
|
6c85518288 | ||
|
63abcd36d0 | ||
|
905b75547b | ||
|
7aa124c3d1 | ||
|
50185eb04e | ||
|
975766188f | ||
|
fd1d596f50 | ||
|
18a80c10f1 | ||
|
c6f7593d65 | ||
|
e6962b3ca4 | ||
|
0ba25be082 | ||
|
e4611d8b6b | ||
|
d609a9b943 | ||
|
d132e86f1d | ||
|
e1e1060904 | ||
|
8b5fa8aa6a | ||
|
7bd05a8163 | ||
|
126fb1d284 | ||
|
9799316c19 | ||
|
6e4ed74841 |
7
css/bootstrap.min.css
vendored
251
css/css.css
@@ -1,9 +1,134 @@
|
|||||||
|
html, body {
|
||||||
|
line-height: 1.5;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #888888;
|
||||||
|
background-color: #060606;
|
||||||
|
margin: 0;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid {
|
||||||
|
display: grid;
|
||||||
|
align-content: center;
|
||||||
|
grid-template-areas:
|
||||||
|
"header"
|
||||||
|
"sidebar"
|
||||||
|
"content"
|
||||||
|
"footer";
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
grid-area: header;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
grid-area: content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar {
|
||||||
|
grid-area: sidebar;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
grid-area: footer;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 999px) {
|
||||||
|
.grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-areas:
|
||||||
|
"header"
|
||||||
|
"sidebar"
|
||||||
|
"content"
|
||||||
|
"footer";
|
||||||
|
}
|
||||||
|
code {
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1000px) {
|
||||||
|
.grid {
|
||||||
|
grid-gap: 1rem;
|
||||||
|
grid-template-columns: 25% auto;
|
||||||
|
grid-template-areas:
|
||||||
|
"header header"
|
||||||
|
"sidebar content"
|
||||||
|
"footer footer";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1500px) {
|
||||||
|
.grid {
|
||||||
|
max-width: 70%;
|
||||||
|
margin: 0 auto;
|
||||||
|
grid-template-areas:
|
||||||
|
"header header"
|
||||||
|
"sidebar content"
|
||||||
|
"footer footer";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #91cf91;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: #5cb85c;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:visited {
|
||||||
|
color: #449d44;
|
||||||
|
}
|
||||||
|
|
||||||
|
.license img {
|
||||||
|
max-width: 10em;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
font-family: 'Montserrat', sans-serif;
|
font-family: 'Montserrat', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
font-size: 7vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
margin: 5px 8px 8px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heading {
|
||||||
|
font-size: 2em;
|
||||||
|
margin: 6px 0px 12px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro-lead {
|
||||||
|
font-family: 'Montserrat', sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
word-break: break-all;
|
padding: 2px 4px;
|
||||||
|
color: #c7254e;
|
||||||
|
background-color: #f9f2f4;
|
||||||
|
border-radius: 4px;
|
||||||
|
word-wrap: break-word;
|
||||||
|
max-width: 800px;
|
||||||
|
white-space: normal;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
dd {
|
dd {
|
||||||
@@ -12,6 +137,10 @@ dd {
|
|||||||
|
|
||||||
dt {
|
dt {
|
||||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||||
|
word-break: break-all;
|
||||||
|
word-wrap: break-word;
|
||||||
|
white-space: normal;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@@ -22,13 +151,17 @@ img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sample-image {
|
.sample-image {
|
||||||
|
margin: 0 auto;
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
|
max-width: 500px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
.sample-image-small {
|
||||||
letter-spacing: 8px;
|
margin: 0 auto;
|
||||||
font-size: 86px;
|
margin-bottom: 18px;
|
||||||
line-height: 120px;
|
max-width: 250px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
div {
|
div {
|
||||||
@@ -36,46 +169,67 @@ div {
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.sidebar a {
|
||||||
margin: 8px;
|
text-decoration: none;
|
||||||
display: inline-block;
|
|
||||||
vertical-align: middle;
|
|
||||||
-webkit-transform: translateZ(0);
|
|
||||||
transform: translateZ(0);
|
|
||||||
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
|
|
||||||
-webkit-backface-visibility: hidden;
|
|
||||||
backface-visibility: hidden;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
position: relative;
|
|
||||||
padding-left: 2.5em;
|
|
||||||
-webkit-transition-duration: 0.3s;
|
|
||||||
transition-duration: 0.3s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:before {
|
.recipe, .contents-list {
|
||||||
|
color: white;
|
||||||
|
background-color: #383838;
|
||||||
|
padding: 14px;
|
||||||
|
font-family: "Montserrat";
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
border: 1px solid black;
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
padding-left: 2.8em;
|
||||||
|
transition: all .5s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contents-list {
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav .heading {
|
||||||
|
word-break: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe {
|
||||||
|
display: block;
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe:hover, .contents-list:hover {
|
||||||
|
background-color: #449d44;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe:before {
|
||||||
content: "💫";
|
content: "💫";
|
||||||
|
}
|
||||||
|
|
||||||
|
.contents-list:before {
|
||||||
|
content: "📼";
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe:before, .contents-list:before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 1em;
|
left: 1em;
|
||||||
padding: 0 1px;
|
padding-right: 1em;
|
||||||
-webkit-transform: translateZ(0);
|
|
||||||
transform: translateZ(0);
|
|
||||||
-webkit-transition-duration: 0.3s;
|
|
||||||
transition-duration: 0.3s;
|
|
||||||
-webkit-transition-property: transform;
|
|
||||||
transition-property: transform;
|
|
||||||
-webkit-transition-timing-function: ease-out;
|
|
||||||
transition-timing-function: ease-out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover:before, .btn:focus:before, .btn:active:before {
|
.recipe:hover:before, .recipe:focus:before, .recipe:active:before {
|
||||||
-webkit-transform: scale(1.3) translateZ(0);
|
transform: scale(1.5) translateX(0.1em);
|
||||||
transform: scale(1.3) translateZ(0);
|
transition: 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contents-list:hover:before, .contents-list:focus:before, .contents-list:active:before {
|
||||||
|
transform: scale(1.8) translateX(0.3em);
|
||||||
|
transition: 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.codeblock {
|
.codeblock {
|
||||||
font-family: monospace
|
font-family: monospace
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
font-size: 90%;
|
|
||||||
color: #c7254e;
|
color: #c7254e;
|
||||||
background-color: #f9f2f4;
|
background-color: #f9f2f4;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@@ -89,14 +243,29 @@ div {
|
|||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 576px) {
|
.well {
|
||||||
img {
|
padding: 1em;
|
||||||
max-width: 60%;
|
margin-bottom: 0.5em;
|
||||||
}
|
background-color: #151515;
|
||||||
|
border: 1px solid #030303;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 992px) {
|
.hiding {
|
||||||
img {
|
opacity: 0;
|
||||||
width: 100%;
|
height: 0;
|
||||||
}
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
position: absolute;
|
||||||
|
left: -999em;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=checkbox]:checked + div {
|
||||||
|
opacity: 1;
|
||||||
|
height: auto;
|
||||||
|
overflow: hidden;
|
||||||
|
transition: opacity .5s linear, height .5s linear;
|
||||||
}
|
}
|
||||||
|
BIN
img/brng.gif
Before Width: | Height: | Size: 7.6 MiB |
BIN
img/cc.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
img/crop_example_aftercrop1.png
Normal file
After Width: | Height: | Size: 245 KiB |
BIN
img/crop_example_aftercrop2.png
Normal file
After Width: | Height: | Size: 167 KiB |
BIN
img/crop_example_aftercrop3.png
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
img/crop_example_orig.png
Normal file
After Width: | Height: | Size: 436 KiB |
BIN
img/eia608.gif
Before Width: | Height: | Size: 11 MiB |
BIN
img/eia608_captions.gif
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
img/life.gif
Normal file
After Width: | Height: | Size: 574 KiB |
BIN
img/outside_broadcast_range.gif
Normal file
After Width: | Height: | Size: 2.9 MiB |
BIN
img/vhs.ico
Normal file
After Width: | Height: | Size: 15 KiB |
4667
index.html
6
js/bootstrap.min.js
vendored
33
js/js.js
@@ -1,28 +1,21 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$(function () {
|
// open recipe window if a hash is found in URL
|
||||||
$('[data-toggle="tooltip"]').tooltip()
|
|
||||||
});
|
|
||||||
|
|
||||||
// open modal window if a hash is found in URL
|
|
||||||
if(window.location.hash) {
|
if(window.location.hash) {
|
||||||
$(window.location.hash).modal('show');
|
id = window.location.hash
|
||||||
// add direct link to modal window
|
console.log(id.substring(1))
|
||||||
$(".link").empty();
|
document.getElementById(id.substring(1)).checked = true;
|
||||||
$(".link").append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>");
|
$('html, body').animate({ scrollTop: $(id).offset().top}, 1000);
|
||||||
|
$(id).closest('div').find('.link').empty();
|
||||||
|
$(id).closest('div').find('.link').append("<small>Link to this command: <a href='https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"'>https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"</a></small>");
|
||||||
}
|
}
|
||||||
|
|
||||||
// add hash to URL when modal is opened
|
// add hash URL when recipe is opened
|
||||||
$('span[data-toggle="modal"]').on("click", function(){
|
$('label[class="recipe"]').on("click", function(){
|
||||||
window.location.hash = $(this).attr("data-target");
|
id = $(this).attr("for");
|
||||||
// add direct link to modal window
|
window.location.hash = ('#' + id)
|
||||||
$(".link").empty();
|
$('#' + id).closest('div').find('.link').empty();
|
||||||
$(".link").append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>");
|
$('#' + id).closest('div').find('.link').append("<small>Link to this command: <a href='https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"'>https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"</a></small>");
|
||||||
});
|
|
||||||
|
|
||||||
// remove hash from URL when modal is closed
|
|
||||||
$(document).on('hide.bs.modal', function (e) {
|
|
||||||
history.pushState("", document.title, window.location.pathname);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@@ -44,7 +44,7 @@ You can read our contributor code of conduct [here](https://github.com/amiaopens
|
|||||||
|
|
||||||
## Maintainers
|
## Maintainers
|
||||||
|
|
||||||
[Ashley Blewer](https://github.com/ablwr), [Katherine Frances Nagels](https://github.com/kfrn), [Kieran O'Leary](https://github.com/kieranjol) and [Reto Kromer](https://github.com/retokromer)
|
[Ashley Blewer](https://github.com/ablwr), [Katherine Frances Nagels](https://github.com/kfrn), [Kieran O'Leary](https://github.com/kieranjol), [Reto Kromer](https://github.com/retokromer) and [Andrew Weaver](https://github.com/privatezero)
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
* Gathered using [octohatrack](https://github.com/LABHR/octohatrack)
|
* Gathered using [octohatrack](https://github.com/LABHR/octohatrack)
|
||||||
@@ -104,4 +104,6 @@ All Contributors: 22
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/InteractiveResource" rel="dct:type">work</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://amiaopensource.github.io/ffmprovisr/" property="cc:attributionName" rel="cc:attributionURL">ffmprovisr</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://github.com/amiaopensource/ffmprovisr" rel="dct:source">https://github.com/amiaopensource/ffmprovisr</a>.
|
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png"></a><br>
|
||||||
|
This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/InteractiveResource" rel="dct:type">work</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://amiaopensource.github.io/ffmprovisr/" property="cc:attributionName" rel="cc:attributionURL">ffmprovisr</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.<br>
|
||||||
|
Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://github.com/amiaopensource/ffmprovisr" rel="dct:source">https://github.com/amiaopensource/ffmprovisr</a>.
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
SCRIPT=$(basename "${0}")
|
SCRIPT=$(basename "${0}")
|
||||||
VERSION='2017-07-08'
|
VERSION="2018-02-10"
|
||||||
AUTHOR='ffmprovisr'
|
AUTHOR="ffmprovisr"
|
||||||
RED='\033[1;31m'
|
RED="\033[1;31m"
|
||||||
BLUE='\033[1;34m'
|
BLUE="\033[1;34m"
|
||||||
NC='\033[0m'
|
NC="\033[0m"
|
||||||
|
|
||||||
if [[ "${OSTYPE}" = "cygwin" ]] || [ ! $(which diff) ]; then
|
if [[ "${OSTYPE}" = "cygwin" ]] || [[ ! "$(which diff)" ]]; then
|
||||||
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
|
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -67,9 +67,8 @@ old_file=$(grep -v '^#' "${input_hash}")
|
|||||||
tmp_file=$(grep -v '^#' "${md5_tmp}")
|
tmp_file=$(grep -v '^#' "${md5_tmp}")
|
||||||
if [[ "${old_file}" = "${tmp_file}" ]]; then
|
if [[ "${old_file}" = "${tmp_file}" ]]; then
|
||||||
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
|
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
|
||||||
rm "${md5_tmp}"
|
|
||||||
else
|
else
|
||||||
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
|
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
|
||||||
diff "${input_hash}" "${md5_tmp}"
|
diff "${input_hash}" "${md5_tmp}"
|
||||||
rm "${md5_tmp}"
|
|
||||||
fi
|
fi
|
||||||
|
rm "${md5_tmp}"
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
SCRIPT=$(basename "${0}")
|
SCRIPT=$(basename "${0}")
|
||||||
VERSION='2017-07-08'
|
VERSION="2018-02-10"
|
||||||
AUTHOR='ffmprovisr'
|
AUTHOR="ffmprovisr"
|
||||||
RED='\033[1;31m'
|
RED="\033[1;31m"
|
||||||
BLUE='\033[1;34m'
|
BLUE="\033[1;34m"
|
||||||
NC='\033[0m'
|
NC="\033[0m"
|
||||||
|
|
||||||
if [[ "${OSTYPE}" = "cygwin" ]] || [ ! $(which diff) ]; then
|
if [[ "${OSTYPE}" = "cygwin" ]] || [[ ! "$(which diff)" ]]; then
|
||||||
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
|
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -64,9 +64,8 @@ old_file=$(grep -v '^#' "${input_hash}")
|
|||||||
tmp_file=$(grep -v '^#' "${md5_tmp}")
|
tmp_file=$(grep -v '^#' "${md5_tmp}")
|
||||||
if [[ "${old_file}" = "${tmp_file}" ]]; then
|
if [[ "${old_file}" = "${tmp_file}" ]]; then
|
||||||
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
|
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
|
||||||
rm "${md5_tmp}"
|
|
||||||
else
|
else
|
||||||
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
|
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
|
||||||
diff "${input_hash}" "${md5_tmp}"
|
diff "${input_hash}" "${md5_tmp}"
|
||||||
rm "${md5_tmp}"
|
|
||||||
fi
|
fi
|
||||||
|
rm "${md5_tmp}"
|
||||||
|
@@ -1,26 +1,27 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# This allows to open ffmprovisr locally from the terminal.
|
# This allows to open the online version of the ffmprovisr, when the computer is
|
||||||
|
# connected to the Web, and the local version otherwise.
|
||||||
|
|
||||||
if [[ "$(uname -s)" = "Darwin" ]] ; then
|
if [[ "$(uname -s)" = "Darwin" ]] ; then
|
||||||
default_browser=$(plutil -convert json ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist -r -o - | grep https -b1 | tail -n1 | cut -d'"' -f4)
|
default_browser=$(plutil -convert json ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist -r -o - | grep https -b1 | tail -n1 | cut -d'"' -f4)
|
||||||
if [ -d /usr/local/Cellar/ffmprovisr ] ; then
|
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
|
||||||
|
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
|
||||||
|
else
|
||||||
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
||||||
fi
|
fi
|
||||||
if [ -z "${ffmprovisr_path}" ] ; then
|
if [[ -n "${default_browser}" ]] ; then
|
||||||
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
|
|
||||||
fi
|
|
||||||
if [ -n "${default_browser}" ] ; then
|
|
||||||
open -b "${default_browser}" "${ffmprovisr_path}"
|
open -b "${default_browser}" "${ffmprovisr_path}"
|
||||||
else
|
else
|
||||||
open "${ffmprovisr_path}"
|
open "${ffmprovisr_path}"
|
||||||
fi
|
fi
|
||||||
elif [[ "$(uname -s)" = "Linux" ]] ; then
|
elif [[ "$(uname -s)" = "Linux" ]] ; then
|
||||||
if [ -d ~/.linuxbrew/Cellar/ffmprovisr ] ; then
|
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
|
||||||
|
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
|
||||||
|
else
|
||||||
ffmprovisr_path=$(find ~/.linuxbrew/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
ffmprovisr_path=$(find ~/.linuxbrew/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
||||||
fi
|
fi
|
||||||
if [ -z "${ffmprovisr_path}" ] ; then
|
|
||||||
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
|
|
||||||
fi
|
|
||||||
xdg-open "${ffmprovisr_path}"
|
xdg-open "${ffmprovisr_path}"
|
||||||
|
else
|
||||||
|
echo "Please locate the 'ffmprovisr' folder, and open the 'index.html' file in a browser."
|
||||||
fi
|
fi
|
||||||
|