Skip to content
This repository was archived by the owner on Aug 13, 2020. It is now read-only.

Commit 8606e18

Browse files
committed
Deploying a website
1 parent 56891b1 commit 8606e18

File tree

142 files changed

+23601
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+23601
-0
lines changed

C-Colors.html

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<HTML>
2+
<HEAD>
3+
<link rel="shortcut icon" href="img/icon.png" type="image/x-icon">
4+
<title>Список цветов с RBG/HEX кодами | Coder Helper</title>
5+
<script src="C-color_converter_script_files/RGB-to-Hex-script-&-Color-Array.js"></script>
6+
</HEAD>
7+
8+
<hello>
9+
<a name="top"></a>
10+
11+
<table border=0 cellpadding=0 cellspacing=0>
12+
<tr><td valign=top width=566>
13+
14+
<script language="JavaScript">
15+
function printTable (tableCells,tableWidth) {
16+
var hCode, M, tableRows=Math.ceil(tableCells.length/tableWidth);
17+
var tableBuf='<table border=0 cellspacing=1 cellpadding=1>\n';
18+
for (var K=0;K<tableRows;K++) {
19+
tableBuf+='<tr>';
20+
for (var L=0;L<tableWidth;L++) {
21+
M=K+L*tableRows;
22+
hCode = tableCells[M].substring(0,7);
23+
tableBuf+='<td style="cursor:default;" bgcolor="'+hCode+'" title="'+tableCells[M]+'"><nobr><code>&nbsp;&nbsp;&nbsp;</code></nobr></td>'
24+
+'<td><nobr><code>&nbsp;rgb('+hexToR(hCode)+','+hexToG(hCode)+','+hexToB(hCode)+')&nbsp;</code></nobr></td>'
25+
+'<td><nobr><code>'+((M<tableCells.length)? hCode:'')+'&nbsp;&nbsp;&nbsp;</code></nobr></td>'
26+
}
27+
tableBuf+='</tr>\n';
28+
}
29+
document.writeln(tableBuf+'</table>');
30+
}
31+
32+
theColors=new Array(
33+
'#FFFFFF white','#F5FFFA mintcream','#F0FFFF azure','#F0FFF0 honeydew','#E0FFFF lightcyan','#F0F8FF aliceblue','#F5F5F5 whitesmoke','#F8F8FF ghostwhite','#FFFFF0 ivory'
34+
,'#FFFAFA snow','#FFFAF0 floralwhite','#FFF5EE seashell','#FDF5E6 oldlace' ,'#FFF0F5 lavenderblush','#FAF0E6 linen' ,'#FAEBD7 antiquewhite','#FFE4E1 mistyrose'
35+
36+
,'#FFC0CB pink','#FFB6C1 lightpink','#FF69B4 hotpink','#FF1493 deeppink'
37+
,'#DB7093 palevioletred','#BC8F8F rosybrown','#C71585 mediumvioletred'
38+
39+
,'#CD5C5C indianred','#F08080 lightcoral','#FFA07A lightsalmon','#FA8072 salmon','#E9967A darksalmon','#DC143C crimson'
40+
41+
,'#FFF8DC cornsilk','#FFEBCD blanchedalmond','#FFE4C4 bisque','#FFDEAD navajowhite','#F5DEB3 wheat','#DEB887 burlywood'
42+
,'#D2B48C tan','#BDB76B darkkhaki','#DAA520 goldenrod','#B8860B darkgoldenrod','#CD853F peru','#D2691E chocolate'
43+
,'#A0522D sienna','#A52A2A brown','#B22222 firebrick','#8B4513 saddlebrown','#8B0000 darkred','#800000 maroon'
44+
45+
,'#FAA460 sandybrown','#FF7F50 coral','#FF6347 tomato'
46+
,'#FF0000 red','#FF4500 orangered','#FF8C00 darkorange'
47+
,'#FFA500 orange'
48+
49+
,'#FFD700 gold','#FFFF00 yellow','#FFFFE0 lightyellow' ,'#FFFACD lemonchiffon','#FAFAD2 lightgoldenrodyellow'
50+
,'#F5F5DC beige','#FFEFD5 papayawhip','#FFE4B5 moccasin' ,'#FFDAB9 peachpuff','#EEE8AA palegoldenrod','#F0E68C khaki'
51+
52+
,'#E6E6FA lavender','#D8BFD8 thistle','#DDA0DD plum'
53+
// ,'#FF00FF fuchsia' // то же самое, что и magenta
54+
,'#FF00FF magenta','#EE82EE violet','#DA70D6 orchid','#BA55D3 mediumorchid' ,'#9370DB mediumpurple'
55+
,'#8A2BE2 blueviolet','#9400D3 darkviolet','#9932CC darkorchid','#8B008B darkmagenta'
56+
,'#800080 purple','#4B0082 indigo','#483D8B darkslateblue','#6A5ACD slateblue','#7B68EE mediumslateblue'
57+
58+
,'#98FB98 palegreen','#ADFF2F greenyellow','#7FFF00 chartreuse','#7CFC00 lawngreen','#00FF00 lime'
59+
,'#00FF7F springgreen','#00FA9A mediumspringgreen','#90EE90 lightgreen','#32CD32 limegreen'
60+
,'#3CB371 mediumseagreen','#2E8B57 seagreen','#228B22 forestgreen','#008000 green','#006400 darkgreen'
61+
,'#9ACD32 yellowgreen','#6B8E23 olivedrab','#808000 olive','#556B2F darkolivegreen','#8FBC8F darkseagreen'
62+
,'#66CDAA mediumaquamarine','#20B2AA lightseagreen','#008B8B darkcyan','#008080 teal'
63+
64+
//,'#00FFFF aqua' // то же самое, что и cyan
65+
,'#00FFFF cyan','#7FFFD4 aquamarine','#AFEEEE paleturquoise','#40E0D0 turquoise','#48D1CC mediumturquoise','#00CED1 darkturquoise','#5F9EA0 cadetblue'
66+
,'#4682B4 steelblue','#B0C4DE lightsteelblue','#B0E0E6 powderblue','#ADD8E6 lightblue','#87CEEB skyblue','#87CEFA lightskyblue' ,'#00BFFF deepskyblue'
67+
,'#1E90FF dodgerblue','#6495ED cornflowerblue','#4169E1 royalblue','#0000FF blue'
68+
,'#0000CD mediumblue','#00008B darkblue','#000080 navy','#191970 midnightblue'
69+
70+
,'#DCDCDC gainsboro','#D3D3D3 lightgrey' ,'#C0C0C0 silver','#A9A9A9 darkgray','#778899 lightslategray'
71+
,'#708090 slategray','#808080 gray','#696969 dimgray','#2F4F4F darkslategray','#000000 black'
72+
);
73+
74+
function sortOrder(s1,s2) {
75+
if (s1.substring(8) > s2.substring(8)) return 1;
76+
if (s1.substring(8) < s2.substring(8)) return -1;
77+
return 0;
78+
}
79+
</script>
80+
<center><a href="index.html"><img src="img/Logo2.png" style = "max-width: 360px;"></a></center>
81+
<br /><br />
82+
Список <b>RGB / HEX</b> кодов на цвета, <br />которые поддерживает большинство браузеров:
83+
<script language="JavaScript">
84+
printTable(theColors,1);
85+
</script>
86+
</table>
87+
88+
</hello>
89+
90+
</html>

C-color_converter.html

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
<HTML>
2+
<HEAD>
3+
<link rel="shortcut icon" href="http://z-aliyeva-sadykhzadeh.000webhostapp.com/img/icon.png" type="image/x-icon">
4+
<title>Конвертер Цветов | Coder Helper</title>
5+
<script src="C-color_converter_script_files/Hex-to-CMYK-script.js"></script>
6+
<script src="C-color_converter_script_files/Hex-to-RGB-script.js"></script>
7+
<script src="C-color_converter_script_files/RGB-to-CMYK-script.js"></script>
8+
<script src="C-color_converter_script_files/RGB-to-Hex-script-&-Color-Array.js"></script>
9+
<script src="C-color_converter_script_files/RGB-to-HSV-script.js"></script>
10+
</HEAD>
11+
<converters bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#660099">
12+
13+
<center><a href="index.html"><img src="img/Logo2.png" style = "max-width: 360px;"></a></center>
14+
<h2 align = "center">Конвертер Различных Кодов Цвета</h2>
15+
16+
<br /> <br />
17+
<table border=0 cellpadding=0 cellspacing=0>
18+
<tr><td width=568 valign=top>
19+
<h3><font face="Verdana,Arial,Helvetica,sans-serif" color="#485ff8">
20+
Hex → CMYK
21+
</font></h3>
22+
<form name="cmyk"><nobr>
23+
</nobr><p><nobr>HEX:<input type="text" name="hex" size="7" maxlength="7" value="FFFFFF">
24+
<input type="button" name="btn" value="Конвертировать" onclick="hexToCMYK(this.form.hex.value);
25+
this.form.C.value=computedC.toFixed(4);
26+
this.form.M.value=computedM.toFixed(4);
27+
this.form.Y.value=computedY.toFixed(4);
28+
this.form.K.value=computedK.toFixed(4);
29+
">
30+
31+
</nobr><nobr>C:<input type="text" name="C" size="4" style="width:50px;"> M:<input type="text" name="M" size="4" style="width:50px;"> Y:<input type="text" name="Y" size="4" style="width:50px;"> K:<input type="text" name="K" size="4" style="width:50px;"></nobr></p>
32+
</form>
33+
34+
<p>
35+
<table border=0 cellpadding=0 cellspacing=0>
36+
<tr><td width=568>
37+
38+
<h3><font face="Verdana,Arial,Helvetica,sans-serif" color="#485ff8">
39+
Hex → RGB
40+
</font></h3>
41+
42+
43+
<form name=rgb>
44+
<table border=0 cellpadding=1 cellspacing=1>
45+
<tr>
46+
<td valign=top><nobr>
47+
<p><small>HEX:</small>
48+
<input type=text name=hex size=7 maxlength=7 value="FFFFFF">
49+
<input type=button name=btn value="Конвертировать"
50+
onclick="setBgColorById('colorSample',this.form.hex.value);
51+
this.form.r.value=hexToR(this.form.hex.value);
52+
this.form.g.value=hexToG(this.form.hex.value);
53+
this.form.b.value=hexToB(this.form.hex.value);
54+
">
55+
R:<input type=text name=r size=3 style="width:33px;">
56+
G:<input type=text name=g size=3 style="width:33px;">
57+
B:<input type=text name=b size=3 style="width:33px;">
58+
</nobr>
59+
</p>
60+
</td><td>&nbsp;</td><td valign=top width=99><g:plusone size="medium"></g:plusone></td>
61+
</tr></table>
62+
</form>
63+
64+
<p>
65+
<table border=0 cellpadding=0 cellspacing=0>
66+
<tr><td width=568>
67+
68+
<h3><font face="Verdana,Arial,Helvetica,sans-serif" color="#485ff8"
69+
>RGB → CMYK</font></h3>
70+
71+
<form name=cmyk>
72+
73+
<nobr>R:<input type=text name=R size=3 value="255" style="width:30px;"
74+
> G:<input type=text name=G size=3 value="255" style="width:30px;"
75+
> B:<input type=text name=B size=3 value="255" style="width:30px;"
76+
></nobr>
77+
78+
<input type=button name=btn value="Конвертировать"
79+
onClick="rgb2cmyk(this.form.R.value,this.form.G.value,this.form.B.value);
80+
this.form.C.value=computedC.toFixed(4);
81+
this.form.M.value=computedM.toFixed(4);
82+
this.form.Y.value=computedY.toFixed(4);
83+
this.form.K.value=computedK.toFixed(4);
84+
">
85+
86+
<nobr>C:<input type=text name=C size=4 style="width:48px;"
87+
> M:<input type=text name=M size=4 style="width:48px;"
88+
> Y:<input type=text name=Y size=4 style="width:48px;"
89+
> K:<input type=text name=K size=4 style="width:48px;"></nobr>
90+
</form>
91+
92+
93+
<table border=0 cellpadding=0 cellspacing=0>
94+
<tr><td valign=top width=566>
95+
96+
<h3><font face="Verdana,Arial,Helvetica,sans-serif" color="#485ff8">
97+
RGB → Hex
98+
</font></h3>
99+
100+
<form name=rgb>
101+
<table border=0 cellpadding=1 cellspacing=1>
102+
<tr>
103+
<td valign=top><nobr>&nbsp;
104+
R:<input type=text name=r size=3 maxlength=3 value=255 style="width:33px;" onfocus="this.form.hex.value=''" onblur="sNewColor=rgbToHex(this.form.r.value,this.form.g.value,this.form.b.value);setBgColorById('colorSample',sNewColor);">
105+
G:<input type=text name=g size=3 maxlength=3 value=255 style="width:33px;" onfocus="this.form.hex.value=''" onblur="sNewColor=rgbToHex(this.form.r.value,this.form.g.value,this.form.b.value);setBgColorById('colorSample',sNewColor);">
106+
B:<input type=text name=b size=3 maxlength=3 value=255 style="width:33px;" onfocus="this.form.hex.value=''" onblur="sNewColor=rgbToHex(this.form.r.value,this.form.g.value,this.form.b.value);setBgColorById('colorSample',sNewColor);">
107+
<input type=button name=btn value="Конвертировать" onclick="sNewColor=rgbToHex(this.form.r.value,this.form.g.value,this.form.b.value);this.form.hex.value=sNewColor;setBgColorById('colorSample',sNewColor);">
108+
<input type=text name=hex size=8></nobr>
109+
110+
</td><td>&nbsp;</td><td valign=top width=99><g:plusone size="medium"></g:plusone></td>
111+
</tr></table>
112+
113+
</td>
114+
</tr></table>
115+
</td>
116+
</tr>
117+
</table>
118+
119+
120+
<h3><font face="Verdana,Arial,Helvetica,sans-serif" color="#485ff8">
121+
RGB → HSV
122+
</font></h3>
123+
<form name=hsv>
124+
<nobr>R:<input type=text name=R size=3 value="255" maxlength=3 style="width:32px;"
125+
> G:<input type=text name=G size=3 value="255" maxlength=3 style="width:32px;"
126+
> B:<input type=text name=B size=3 value="255" maxlength=3 style="width:32px;"
127+
></nobr>
128+
<input type=button name=btn value="Конвертировать"
129+
onClick="rgb2hsv(this.form.R.value,this.form.G.value,this.form.B.value);
130+
this.form.H.value=computedH.toFixed(1);
131+
this.form.S.value=computedS.toFixed(4);
132+
this.form.V.value=computedV.toFixed(4);
133+
">
134+
<nobr>H:<input type=text name=H size=4 style="width:50px;"
135+
> S:<input type=text name=S size=4 style="width:50px;"
136+
> V:<input type=text name=V size=4 style="width:50px;"></nobr>
137+
</form>
138+
139+
</converters>
140+
</HTML>
Binary file not shown.
962 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
function rgbToHex(R,G,B) { return toHex(R)+toHex(G)+toHex(B); }
2+
function toHex(n) {
3+
n = parseInt(n,10);
4+
if (isNaN(n)) return "00";
5+
n = Math.max(0,Math.min(n,255));
6+
return "0123456789ABCDEF".charAt((n-n%16)/16)
7+
+ "0123456789ABCDEF".charAt(n%16);
8+
}
9+
10+
function cutHex(h) { return (h.charAt(0)=="#") ? h.substring(1,7) : h}
11+
function hexToR(h) { return parseInt((cutHex(h)).substring(0,2),16) }
12+
function hexToG(h) { return parseInt((cutHex(h)).substring(2,4),16) }
13+
function hexToB(h) { return parseInt((cutHex(h)).substring(4,6),16) }
14+
15+
function setBgColorById(id,sColor) {
16+
var elem;
17+
if (document.getElementById) {
18+
if (elem=document.getElementById(id)) {
19+
if (elem.style) elem.style.backgroundColor=sColor;
20+
}
21+
}
22+
}
23+
function toggleDiv(n) {
24+
var curState, el=document.getElementById('explanation'+n);
25+
if (el==null) return;
26+
if (el.style) {
27+
curState = el.style.visibility;
28+
if (curState == 'hidden') {
29+
el.style.visibility = 'visible';
30+
el.style.display = 'inline';
31+
}
32+
else {
33+
el.style.visibility = 'hidden';
34+
el.style.display = 'none';
35+
}
36+
}
37+
el=document.getElementById('i'+n);
38+
}

0 commit comments

Comments
 (0)