Change reset zoom icon from 1:1 to a square

This commit is contained in:
Roland Rytz 2017-04-05 04:35:40 +02:00
parent 05f5b1c8ec
commit 7165d5e294
6 changed files with 450 additions and 50 deletions

View File

@ -9,7 +9,7 @@ credentials = open('credentials', 'r')
client_id = credentials.readline().strip(' \t\n\r')
client_secret = credentials.readline().strip(' \t\n\r')
startId = 687
startId = 696
reddit = praw.Reddit(client_id=client_id, client_secret=client_secret, user_agent='atlas_bot')

View File

@ -397,16 +397,15 @@ input[type="checkbox"]{
}
#zoomInButton{
background-image: url(../_img/plus.svg);
background-image: url(../_img/plus.svg?version=1.0.0);
}
button#zoomResetButton{
background-image: url(../_img/original.svg);
background-size: 20px;
background-image: url(../_img/original.svg?version=1.0.1);
}
#zoomOutButton{
background-image: url(../_img/minus.svg);
background-image: url(../_img/minus.svg?version=1.0.0);
}
#author{

View File

@ -9,36 +9,34 @@
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
width="192.84375"
height="192.875"
id="svg2"
version="1.1"
inkscape:version="0.48.5 r10040"
sodipodi:docname="minus.svg">
<defs
id="defs4" />
sodipodi:docname="plus.svg">
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="3.669697"
inkscape:cx="97.848214"
inkscape:cy="99.294067"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:window-width="1916"
inkscape:window-height="1177"
id="namedview3037"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1596"
inkscape:window-height="877"
inkscape:zoom="5.1432275"
inkscape:cx="62.104902"
inkscape:cy="96.4375"
inkscape:window-x="0"
inkscape:window-y="19"
inkscape:window-maximized="0" />
inkscape:window-maximized="0"
inkscape:current-layer="layer1" />
<defs
id="defs4" />
<metadata
id="metadata7">
<rdf:RDF>
@ -52,25 +50,27 @@
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-156.4375,-398.78125)">
<g
style="font-size:123.81569672000000537px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Monospace;-inkscape-font-specification:Monospace"
id="text3814">
<path
d="m 179.8855,530.07212 18.98346,0 0,-68.9813 -20.43443,4.59472 0,-11.12406 20.31351,-4.47381 12.2123,0 0,79.98445 18.74163,0 0,10.27767 -49.81647,0 0,-10.27767"
style="letter-spacing:-25.69174767000000159px;fill:#ffffff;fill-opacity:1"
id="path3819" />
<path
d="m 241.91668,476.08413 15.23514,0 0,18.31843 -15.23514,0 0,-18.31843 m 0,45.82631 15.23514,0 0,18.43935 -15.23514,0 0,-18.43935"
style="letter-spacing:-25.69174767000000159px;fill:#ffffff;fill-opacity:1"
id="path3821" />
<path
d="m 277.46776,530.07212 18.98346,0 0,-68.9813 -20.43443,4.59472 0,-11.12406 20.31352,-4.47381 12.21229,0 0,79.98445 18.74163,0 0,10.27767 -49.81647,0 0,-10.27767"
style="letter-spacing:-25.69174767000000159px;fill:#ffffff;fill-opacity:1"
id="path3823" />
</g>
transform="translate(-156.4375,-398.78125)"
id="layer1">
<path
d="m 171.42857,413.78125 162.85714,0"
id="path2985"
style="fill:none;stroke:#ffffff;stroke-width:30;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
inkscape:connector-curvature="0" />
<path
d="m 171.4375,413.79076 0,162.85714"
id="path3755"
style="fill:none;stroke:#ffffff;stroke-width:30;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
style="fill:none;stroke:#ffffff;stroke-width:30;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="path3807"
d="m 171.42857,576.65625 162.85714,0" />
<path
inkscape:connector-curvature="0"
style="fill:none;stroke:#ffffff;stroke-width:30;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="path3809"
d="m 334.28125,413.79076 0,162.85714" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

File diff suppressed because one or more lines are too long

View File

@ -38091,7 +38091,7 @@ var atlas = [
"name": "Dreddit",
"description": "The original reddit corporation in the game EVE Online and their lovable mascot: Middle-Management Dino",
"website": "http://www.dredditisrecruiting.com",
"subreddit": "/r/dreddit",
"subreddit": "/r/evedreddit",
"center": [
708.5,
133.5
@ -45770,9 +45770,402 @@ var atlas = [
599.5
]
]
}, {
"id": 687,
"submitted_by": "kodykid168",
"name": "Kingdom Key",
"description": "The default Keyblade from Kingdom Hearts.",
"website": "",
"subreddit": "/r/KingdomHearts",
"center": [
980.5,
399.5
],
"path": [
[
982.5,
388.5
],
[
990.5,
388.5
],
[
990.5,
397.5
],
[
969.5,
411.5
],
[
965.5,
405.5
],
[
969.5,
401.5
],
[
972.5,
404.5
],
[
978.5,
399.5
],
[
978.5,
394.5
],
[
978.5,
393.5
]
]
}, {
"id": 688,
"submitted_by": "ImNotHimBut",
"name": "Bird That Carries You Over A Disproportionately Small Gap (Undertale)",
"description": "Bird That Carries You Over A Disproportionately Small Gap (yes, it is the full name) is a minor NPC from video game Undertale.\nThe small bird to the right is not from the game, but probably inspired by this one.",
"website": "https://undertale.com",
"subreddit": "r/Undertale/comments/62n209/with_reddits_new_rplace_we_should_work_together/",
"center": [
563.5,
917.5
],
"path": [
[
565.5,
908.5
],
[
559.5,
908.5
],
[
555.5,
912.5
],
[
559.5,
916.5
],
[
557.5,
919.5
],
[
557.5,
926.5
],
[
568.5,
926.5
],
[
568.5,
922.5
],
[
570.5,
920.5
],
[
570.5,
914.5
]
]
}, {
"id": 689,
"submitted_by": "Derek_Goons",
"name": "Script Cal",
"description": "Logo of the University of California, Berkeley",
"website": "",
"subreddit": "/r/berkeley",
"center": [
984.5,
61.5
],
"path": [
[
993.5,
49.5
],
[
994.5,
50.5
],
[
977.5,
51.5
],
[
969.5,
62.5
],
[
972.5,
72.5
],
[
993.5,
71.5
],
[
997.5,
68.5
],
[
996.5,
54.5
]
]
}, {
"id": 690,
"submitted_by": "Noobkiller1821",
"name": "Drum Core International",
"description": "From modest beginnings more than three decades ago, Drum Corps International (DCI) has developed into a powerful, nonprofit, global youth activity with far-reaching artistic, educational and organizational influence. Through the annual DCI Tour and World Championships, Drum Corps International provides entertainment to millions through live performances and nationally-broadcast events. Drum Corps International is Marching Musics Major League™.",
"website": "http://www.dci.org/",
"subreddit": "/r/drumcorps",
"center": [
810.5,
657.5
],
"path": [
[
822.5,
664.5
],
[
822.5,
649.5
],
[
798.5,
649.5
],
[
798.5,
664.5
]
]
}, {
"id": 691,
"submitted_by": "amazingpikachu_38",
"name": "/r/livecounting banner",
"description": "This was a banner for /r/livecounting. It used to have a /r/counting banner below it and a Pincus ({:'-D) above it but both were eventually destroyed, and this was what remained.",
"website": "",
"subreddit": "/r/livecounting",
"center": [
33.5,
366.5
],
"path": [
[
6.5,
361.5
],
[
6.5,
371.5
],
[
60.5,
371.5
],
[
59.5,
361.5
],
[
6.5,
361.5
]
]
}, {
"id": 692,
"submitted_by": "Seminal_Sound",
"name": "Star Citizen Ship",
"description": "A last-minute addition to /r/ainbowroad, the beginning of a StarCitzen Spaceship. The place finished before it could be completed.",
"website": "https://www.robertsspaceindustries.com/",
"subreddit": "/r/starcitizen",
"center": [
616.5,
481.5
],
"path": [
[
600.5,
482.5
],
[
614.5,
475.5
],
[
614.5,
473.5
],
[
611.5,
473.5
],
[
612.5,
470.5
],
[
618.5,
469.5
],
[
621.5,
473.5
],
[
626.5,
478.5
],
[
633.5,
476.5
],
[
636.5,
480.5
],
[
626.5,
485.5
],
[
615.5,
489.5
],
[
610.5,
492.5
],
[
600.5,
488.5
],
[
599.5,
485.5
]
]
}, {
"id": 693,
"submitted_by": "kodykid168",
"name": "Phoenix Wright",
"description": "",
"website": "",
"subreddit": "",
"center": [
954.5,
648.5
],
"path": [
[
949.5,
643.5
],
[
958.5,
643.5
],
[
959.5,
652.5
],
[
955.5,
656.5
],
[
953.5,
656.5
],
[
948.5,
646.5
],
[
948.5,
642.5
]
]
}, {
"id": 694,
"submitted_by": "DistraughtStrawberry",
"name": "Texas A&M University",
"description": "The oldest public university in Texas, this flagship university provides the best return-on-investment among Texas' public schools, with almost 400 degrees. (2017)",
"website": "http://www.tamu.edu/",
"subreddit": "/r/aggies",
"center": [
7.5,
867.5
],
"path": [
[
0.5,
856.5
],
[
15.5,
856.5
],
[
15.5,
878.5
],
[
-0.5,
878.5
],
[
-0.5,
878.5
]
]
}, {
"id": 695,
"submitted_by": "SomeGuyWithAProfile",
"name": "Unturned",
"description": "Zombie from Unturned, a free-to-play sandbox game.",
"website": "",
"subreddit": "/r/unturned",
"center": [
31.5,
939.5
],
"path": [
[
24.5,
931.5
],
[
37.5,
931.5
],
[
37.5,
945.5
],
[
37.5,
946.5
],
[
24.5,
946.5
]
]
}
//686
//695
];
console.log("There are "+atlas.length+" entries in the Atlas.");

View File

@ -26,7 +26,7 @@
<html>
<head>
<meta charset="utf-8">
<link href="./_css/style.css?version=1.0.3" rel="stylesheet" type="text/css" media="all">
<link href="./_css/style.css?version=1.0.4" rel="stylesheet" type="text/css" media="all">
<title>
The /r/place Atlas
</title>
@ -124,7 +124,7 @@
<p>To do so, head over to the <a href="./?mode=draw">Draw tab</a>, draw the outline of the piece you want to submit, and post it on the <a href="https://www.reddit.com/r/placeAtlas/">/r/placeAtlas</a> subreddit.</p>
<p>This is also the place to submit all bug reports, feature requests or questions.</p>
<h2>Contributors</h2>
<p>The Atlas would not have been possible without the help of the following 326 reddit users.</p>
<p>The Atlas would not have been possible without the help of the following 328 reddit users.</p>
<p>Thank you to everyone who contributed.</p>
<div id="contributors">
<a href="https://reddit.com/user/-seik" target="_blank">-seik</a>
@ -150,6 +150,7 @@
<a href="https://reddit.com/user/AlmostNL" target="_blank">AlmostNL</a>
<a href="https://reddit.com/user/AlphaPizza" target="_blank">AlphaPizza</a>
<a href="https://reddit.com/user/altyr" target="_blank">altyr</a>
<a href="https://reddit.com/user/amazingpikachu_38" target="_blank">amazingpikachu_38</a>
<a href="https://reddit.com/user/andre-143" target="_blank">andre-143</a>
<a href="https://reddit.com/user/Aoeui344" target="_blank">Aoeui344</a>
<a href="https://reddit.com/user/Arsenalisbest" target="_blank">Arsenalisbest</a>
@ -205,6 +206,7 @@
<a href="https://reddit.com/user/Darko28064212" target="_blank">Darko28064212</a>
<a href="https://reddit.com/user/DaveyOgrady" target="_blank">DaveyOgrady</a>
<a href="https://reddit.com/user/Denmarkdot" target="_blank">Denmarkdot</a>
<a href="https://reddit.com/user/Derek_Goons" target="_blank">Derek_Goons</a>
<a href="https://reddit.com/user/dienamight" target="_blank">dienamight</a>
<a href="https://reddit.com/user/dionytadema" target="_blank">dionytadema</a>
<a href="https://reddit.com/user/DiplomaticMeatball" target="_blank">DiplomaticMeatball</a>
@ -458,7 +460,7 @@
</div>
<script type="text/javascript" src="./_js/pointInPolygon.js?version=1.0"></script>
<script type="text/javascript" src="./_js/atlas-min.js?version=1.0.38"></script>
<script type="text/javascript" src="./_js/atlas-min.js?version=1.0.39"></script>
<script type="text/javascript" src="./_js/view.js?version=1.0.1"></script>
<script type="text/javascript" src="./_js/draw.js?version=1.0.3"></script>
<script type="text/javascript" src="./_js/main.js?version=1.0.1"></script>