Skip to content

Commit

Permalink
minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
StigNygaard committed Jan 14, 2020
1 parent 7e77065 commit 8eca204
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
29 changes: 14 additions & 15 deletions options/options.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Flickr Fixr Options test</title>
<meta charset="UTF-8" />
<title>Flickr Fixr Options</title>
<script src="/lib/mozilla/browser-polyfill.js"></script>
<style>
div#fixroptionspage {margin:1em auto 1em auto; max-width: 980px}
div#fixroptionspage {margin:1em auto 1em auto; max-width: 980px; font-family: Verdana, Arial, Helvetica, sans-serif;}
div#fixroptionspage>p {margin-left: 1em}
div#fixroptionspage a:link, div#fixroptionspage a:visited {color: rgb(0,129,240)}
div#fixroptionspage a:hover, div#fixroptionspage a:active {color: rgb(255,0,159)}
Expand All @@ -19,7 +19,7 @@
#fixroptions fieldset>div:hover>div {display:block}
#fixroptions fieldset>div label.new::after {content: url(/icons/new27x14.png);margin-left:3px;vertical-align:bottom}
#fixroptions fieldset>div {width:45%; margin-top:.5em}
#fixroptions fieldset button {margin-top:.7em; margin-bottom:.7em}
#fixroptions fieldset button {margin-top:.7em; margin-bottom:.7em; font-size: 100%; font-family: Verdana, Arial, Helvetica, sans-serif;}
#fixroptions fieldset a {font-style: italic}
@media (prefers-color-scheme: dark) {
body {background-color: rgb(42, 42, 46); color: rgb(249, 249, 250);}
Expand All @@ -35,16 +35,16 @@
<div><label class="browser-style"><input type="checkbox" id="scaler" /> Always show photos in big size</label>
<div>
<p>If this feature is enabled, Flickr Fixr will try to upscale photos when current display-versions are too small to fit
the available space in your browser window. Also when the original uploaded version of a photo is available (Should
always be available when surfing your own photos), Flickr Fixr will use <em>that</em> for best possible quality.</p>
the available space in your browser window. Also when the originally uploaded version of a photo is available (Should
always be available when surfing your own photos), Flickr Fixr will upscale <em>that</em> for best possible quality.</p>
<p>A note about up-scaling and <a href="https://www.flickr.com/help/forum/en-us/72157668990488722/">photo notes</a>:
Sometimes when Flickr Fixr up-scales a photo, the size of the "notes canvas" does not up-scale similarly. When a photo
is up-scaled, an icon is shown above photo on the photopage:<br />
<img src="/icons/scale21-green.png" alt="" style="width:21px;height:21px;margin:0 0 0 .5em;display:block;float:right" />
If the icon is green, everything is alright, and you can work with notes directly on the up-scaled photo.<br />
<img src="/icons/scale21-orange.png" alt="" style="width:21px;height:21px;margin:0 0 0 .5em;display:block;float:right" />
If the icon is orange and you want to work with notes, you should always first click the orange icon to align image size with
size of the "notes canvas". Otherwise notes will not be correctly aligned on the photo.</p>
size of the "notes canvas". Otherwise notes will not be correctly aligned.</p>
</div>
</div>
<div><label class="browser-style"><input type="checkbox" id="albumTeaser" /> Album-teaser column on photostreams</label>
Expand Down Expand Up @@ -125,14 +125,13 @@
</form>
<p>Thanks for using Flickr Fixr. Doesn't Flickr Fixr work for you, do you have a question, found an error, have ideas for improvement, or
maybe just want to tell you like Flickr Fixr, then leave a <a href="https://www.flickr.com/groups/flickrhacks/discuss/72157655601688753/">comment in
the Flickr Hacks forum</a>. You are of course also always welcome to <a href="https://www.paypal.me/stignygaard">buy my next beer/coffee</a> or leave
a nice little review on the extension install page :-)</p>
<p>Flickr Fixr is an <a href="https://github.com/StigNygaard/Stigs_Flickr_Fixr">open source</a> cross-browser <a href="https://wiki.mozilla.org/WebExtensions">WebExtension</a>.
It is the exact same <a href="https://github.com/StigNygaard/Stigs_Flickr_Fixr/releases">version</a> of the extension, you'll find
<a href="https://addons.mozilla.org/addon/flickr-fixr?src=external-options">in Firefox Add-ons</a> and
<a href="https://chrome.google.com/webstore/detail/flickr-fixr/ledhkkpililplmmfcfnhkgifmcnboonb">in Chrome Web Store</a>.</p>
<p>Have a great time on Flickr. I hope you, like myself, enjoy Flickr a bit more with Flickr Fixr installed...<br />
<a href="https://www.flickr.com/photos/stignygaard/">Stig Nygaard</a></p>
the Flickr Hacks forum</a>.</p>

<p>Have a great time on Flickr. I hope you, like myself, enjoy Flickr a bit more with Flickr Fixr installed...</p>
<p>/Stig<br />
<a href="https://www.rockland.dk/">www.rockland.dk</a><br />
<a href="https://www.flickr.com/photos/stignygaard/">www.flickr.com/photos/stignygaard</a></p>

</div>

<script src="options.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function saveOptions(e) {
albumTeaser: document.querySelector("form#fixroptions #albumTeaser").checked,
updateMapLink: document.querySelector("form#fixroptions #updateMapLink").checked,
updateTags: document.querySelector("form#fixroptions #updateTags").checked
});
}); // then ( "saved ok" message? )
}

function withOptionsDo(handler) {
Expand Down Expand Up @@ -77,5 +77,4 @@ function initializeOptionsPage() {
}
}

// Options page only:
window.addEventListener("DOMContentLoaded", initializeOptionsPage);

0 comments on commit 8eca204

Please sign in to comment.