├── .gitattributes
├── .gitignore
├── README.md
├── dump.html
├── final.complete.golfed.html
├── final.html
├── final.min.golfed.html
├── final.min.html
├── final.min.pack.html
├── golfed.commented.html
├── js1k17.html
├── quine.html
├── quine2.html
├── recto.png
├── shim.html
├── test.html
├── test.min.html
├── verso.png
├── wallpaper.html
└── wallpaper.png
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 |
7 | # Standard to msysgit
8 | *.doc diff=astextplain
9 | *.DOC diff=astextplain
10 | *.docx diff=astextplain
11 | *.DOCX diff=astextplain
12 | *.dot diff=astextplain
13 | *.DOT diff=astextplain
14 | *.pdf diff=astextplain
15 | *.PDF diff=astextplain
16 | *.rtf diff=astextplain
17 | *.RTF diff=astextplain
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Windows image file caches
2 | Thumbs.db
3 | ehthumbs.db
4 |
5 | # Folder config file
6 | Desktop.ini
7 |
8 | # Recycle Bin used on file shares
9 | $RECYCLE.BIN/
10 |
11 | # Windows Installer files
12 | *.cab
13 | *.msi
14 | *.msm
15 | *.msp
16 |
17 | # Windows shortcuts
18 | *.lnk
19 |
20 | # =========================
21 | # Operating System Files
22 | # =========================
23 |
24 | # OSX
25 | # =========================
26 |
27 | .DS_Store
28 | .AppleDouble
29 | .LSOverride
30 |
31 | # Thumbnails
32 | ._*
33 |
34 | # Files that might appear in the root of a volume
35 | .DocumentRevisions-V100
36 | .fseventsd
37 | .Spotlight-V100
38 | .TemporaryItems
39 | .Trashes
40 | .VolumeIcon.icns
41 |
42 | # Directories potentially created on remote AFP share
43 | .AppleDB
44 | .AppleDesktop
45 | Network Trash Folder
46 | Temporary Items
47 | .apdisk
48 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | by @MaximeEuziere, @innovati and @subzey
2 |
3 | JS1K 2017 ENTRY: PERIOD1K RELOADED
4 | ===
5 |
6 | (Full rewrite, HTML + ES6, no canvas, no JS packing. It's centered, responsive and with even more information!)
7 |
8 | - Commented source: http://codegolf.github.io/period1k/golfed.commented.html
9 | - Minified and packed (1024b JS): http://codegolf.github.io/period1k/js1k17.html
10 |
11 | NB: This demo generates about 26kb of HTML code!
12 |
13 | ----
14 |
15 | JS1K 2016 ENTRY: PERIOD1K
16 | ===
17 |
18 | (updated in june 2016 with the names of the four last elements)
19 |
20 | JS1k submission:
21 |
22 | - Commented source: http://codegolf.github.io/period1k/final.html
23 | - Minified (1764b JS): http://codegolf.github.io/period1k/final.min.html
24 | - Minified and packed (1020b JS): http://codegolf.github.io/period1k/final.min.pack.html
25 |
26 | Wallpaper:
27 |
28 | - 4000x3000 (0.3Mb, PNG): http://codegolf.github.io/period1k/wallpaper.png
29 |
30 | ----
31 |
32 | Legend
33 | ===
34 |
35 | ````
36 | : :
37 | : group :
38 | ...:________:
39 | | |
40 | p | 1 G -|--> state at room temperature (Gas / Liquid / Solid)
41 | e | ^-----|--> atomic number (Z)
42 | r | H ---|--> name
43 | i | |
44 | o | 1.00 -|--> atomic mass + stability (* = has no stable isotope)
45 | d | -|--> type: green = noble gas
46 | ...|________| yellow-green = halogen
47 | dark purple = metalloid
48 | dark blue = poor metal
49 | blue = transition metal
50 | pale green = lanthanoid
51 | pale blue = actinoid
52 | brown = alkaline earth metal
53 | red = alkali metal
54 | purple = non-metal
55 | ````
56 |
--------------------------------------------------------------------------------
/dump.html:
--------------------------------------------------------------------------------
1 |
1 GH
1.008 2 GHe
4.003 3 SLi
6.941 4 SBe
9.01 5 SB
10.81 6 SC
12.01 7 GN
14.01 8 GO
16.00 9 GF
19.00 10 GNe
20.18 11 SNa
22.99 12 SMg
24.31 13 SAl
26.98 14 SSi
28.09 15 SP
30.97 16 SS
32.06 17 GCl
35.45 18 GAr
39.95 19 SK
39.10 20 SCa
40.08 21 SSc
44.96 22 STi
47.87 23 SV
50.94 24 SCr
52.00 25 SMn
54.94 26 SFe
55.85 27 SCo
58.93 28 SNi
58.69 29 SCu
63.55 30 SZn
65.38 31 SGa
69.72 32 SGe
72.63 33 SAs
74.92 34 SSe
78.97 35 LBr
79.90 36 GKr
83.80 37 SRb
85.47 38 SSr
87.62 39 SY
88.91 40 SZr
91.22 41 SNb
92.91 42 SMo
95.95 43 STc
97.91*44 SRu
101.07 45 SRh
102.91 46 SPd
106.42 47 SAg
107.87 48 SCd
112.41 49 SIn
114.82 50 SSn
118.71 51 SSb
121.76 52 STe
127.60 53 SI
126.90 54 GXe
131.29 55 SCs
132.91 56 SBa
137.33 57 SLa
138.91 58 SCe
140.12 59 SPr
140.91 60 SNd
144.24 61 SPm
144.91*62 SSm
150.36 63 SEu
151.96 64 SGd
157.25 65 STb
158.93 66 SDy
162.50 67 SHo
164.93 68 SEr
167.26 69 STm
168.93 70 SYb
173.05 71 SLu
174.97 72 SHf
178.49 73 STa
180.95 74 SW
183.84 75 SRe
186.21 76 SOs
190.23 77 SIr
192.22 78 SPt
195.08 79 SAu
196.97 80 LHg
200.59 81 STl
204.38 82 SPb
207.20 83 SBi
208.98 84 SPo
208.98*85 SAt
209.99*86 GRn
222.02*87 SFr
223.02*88 SRa
226.03*89 SAc
227.03*90 STh
232.04*91 SPa
231.04*92 SU
238.03*93 SNp
237.05*94 SPu
244.06*95 SAm
243.06*96 SCm
247.07*97 SBk
247.07*98 SCf
251.08*99 SEs
252.08*100 SFm
257.10*101 SMd
258.10*102 SNo
259.10*103 SLr
266.12*104 SRf
267.12*105 SDb
268.13*106 SSg
271.13*107 SBh
270.13*108 SHs
277.15*109 SMt
278.16*110 SDs
281.17*111 SRg
282.17*112 SCn
285.18*113 SNh
286.19*114 SFl
289.19*115 SMc
289.19*116 SLv
293.20*117 STs
294.21*118 GOg
294.21*
--------------------------------------------------------------------------------
/final.complete.golfed.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/final.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |