├── .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 G

H

1.008
2 G

He

4.003
3 S

Li

6.941
4 S

Be

9.01
5 S

B

10.81
6 S

C

12.01
7 G

N

14.01
8 G

O

16.00
9 G

F

19.00
10 G

Ne

20.18
11 S

Na

22.99
12 S

Mg

24.31
13 S

Al

26.98
14 S

Si

28.09
15 S

P

30.97
16 S

S

32.06
17 G

Cl

35.45
18 G

Ar

39.95
19 S

K

39.10
20 S

Ca

40.08
21 S

Sc

44.96
22 S

Ti

47.87
23 S

V

50.94
24 S

Cr

52.00
25 S

Mn

54.94
26 S

Fe

55.85
27 S

Co

58.93
28 S

Ni

58.69
29 S

Cu

63.55
30 S

Zn

65.38
31 S

Ga

69.72
32 S

Ge

72.63
33 S

As

74.92
34 S

Se

78.97
35 L

Br

79.90
36 G

Kr

83.80
37 S

Rb

85.47
38 S

Sr

87.62
39 S

Y

88.91
40 S

Zr

91.22
41 S

Nb

92.91
42 S

Mo

95.95
43 S

Tc

97.91*
44 S

Ru

101.07
45 S

Rh

102.91
46 S

Pd

106.42
47 S

Ag

107.87
48 S

Cd

112.41
49 S

In

114.82
50 S

Sn

118.71
51 S

Sb

121.76
52 S

Te

127.60
53 S

I

126.90
54 G

Xe

131.29
55 S

Cs

132.91
56 S

Ba

137.33
57 S

La

138.91
58 S

Ce

140.12
59 S

Pr

140.91
60 S

Nd

144.24
61 S

Pm

144.91*
62 S

Sm

150.36
63 S

Eu

151.96
64 S

Gd

157.25
65 S

Tb

158.93
66 S

Dy

162.50
67 S

Ho

164.93
68 S

Er

167.26
69 S

Tm

168.93
70 S

Yb

173.05
71 S

Lu

174.97
72 S

Hf

178.49
73 S

Ta

180.95
74 S

W

183.84
75 S

Re

186.21
76 S

Os

190.23
77 S

Ir

192.22
78 S

Pt

195.08
79 S

Au

196.97
80 L

Hg

200.59
81 S

Tl

204.38
82 S

Pb

207.20
83 S

Bi

208.98
84 S

Po

208.98*
85 S

At

209.99*
86 G

Rn

222.02*
87 S

Fr

223.02*
88 S

Ra

226.03*
89 S

Ac

227.03*
90 S

Th

232.04*
91 S

Pa

231.04*
92 S

U

238.03*
93 S

Np

237.05*
94 S

Pu

244.06*
95 S

Am

243.06*
96 S

Cm

247.07*
97 S

Bk

247.07*
98 S

Cf

251.08*
99 S

Es

252.08*
100 S

Fm

257.10*
101 S

Md

258.10*
102 S

No

259.10*
103 S

Lr

266.12*
104 S

Rf

267.12*
105 S

Db

268.13*
106 S

Sg

271.13*
107 S

Bh

270.13*
108 S

Hs

277.15*
109 S

Mt

278.16*
110 S

Ds

281.17*
111 S

Rg

282.17*
112 S

Cn

285.18*
113 S

Nh

286.19*
114 S

Fl

289.19*
115 S

Mc

289.19*
116 S

Lv

293.20*
117 S

Ts

294.21*
118 G

Og

294.21*
-------------------------------------------------------------------------------- /final.complete.golfed.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /final.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | -------------------------------------------------------------------------------- /final.min.golfed.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /final.min.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | -------------------------------------------------------------------------------- /final.min.pack.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | -------------------------------------------------------------------------------- /golfed.commented.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /js1k17.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /quine.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /quine2.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /recto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codegolf/period1k/fad214c91ca8fa83c68df08953b9f390a185956d/recto.png -------------------------------------------------------------------------------- /shim.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | JS1k 2017 - NNNN - TITLE 11 | 12 | 13 | 14 | 15 | 18 | 33 | 34 | 35 |
36 |
37 |

38 | JS1k 39 | 2017 40 | demo 41 | — 42 | "TITLE" by YOU 43 |

44 |

45 | 46 | FIRST PART OF YOUR DESC GOES HERE 47 | 48 |

49 | 60 |
61 | 62 | 63 | 64 |
65 | 66 | 107 | 125 | 141 | 167 | 168 | 169 | -------------------------------------------------------------------------------- /test.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test.min.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /verso.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codegolf/period1k/fad214c91ca8fa83c68df08953b9f390a185956d/verso.png -------------------------------------------------------------------------------- /wallpaper.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | -------------------------------------------------------------------------------- /wallpaper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codegolf/period1k/fad214c91ca8fa83c68df08953b9f390a185956d/wallpaper.png --------------------------------------------------------------------------------