1234567891011121314151617181920212223242526272829303132333435 |
- <head>
- <h1>sizes</h1>
- </head>
- <body>
- <script>
- let sizePants = +prompt("Enter Your size of pants ");
- let hipSize = +prompt("Enter Your hip size sm");
- let sizeSocks = +prompt("Enter Your size of socks");
- usaPants = "-";
- sizeUsa = "-";
- socksUsa = "-";
- if (sizePants == 40) usaPants = "S or 6";
- if (sizePants == 42) usaPants = "M or8";
- if (sizePants == 44) usaPants = "10";
- if (sizePants == 46) usaPants = "L or 12";
- if (sizePants == 48) usaPants = "14";
- if (sizePants == 50) usaPants = "XL or 16";
- if (sizePants == 52) usaPants = "18";
- if (sizePants == 54) usaPants = "XXL or 20";
- if (hipSize >= 89 && hipSize <= 92) sizeUsa = "XXS";
- if (hipSize >= 93 && hipSize <= 96) sizeUsa = "XS";
- if (hipSize >= 97 && hipSize <= 101) sizeUsa = "S";
- if (hipSize >= 102 && hipSize <= 104) sizeUsa = "M";
- if (hipSize >= 105 && hipSize <= 108) sizeUsa = "L";
- if (hipSize >= 109 && hipSize <= 112) sizeUsa = "XL";
- if (hipSize >= 113 && hipSize <= 117) sizeUsa = "XXL";
- if (hipSize >= 118 && hipSize <= 122) sizeUsa = "XXXL";
- if (sizeSocks == 21) socksUsa = "8";
- if (sizeSocks == 23) socksUsa = "9";
- if (sizeSocks == 25) socksUsa = "10";
- if (sizeSocks == 27) socksUsa = "11";
- alert("Your Usa size of pants is:\n" + usaPants + "\n" + 'Your USA hip size is:\n' + sizeUsa + "\n" + "Your USA socks size is:\n" + socksUsa);
- </script>
- </body>
|