Spaces:
Running
Running
Update index.html
Browse files- index.html +84 -23
index.html
CHANGED
|
@@ -7,10 +7,10 @@
|
|
| 7 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_HTML"></script>
|
| 8 |
<style>
|
| 9 |
body {
|
| 10 |
-
font-family: Arial, sans-serif;
|
| 11 |
margin: 0;
|
| 12 |
padding: 0;
|
| 13 |
-
background-color:
|
| 14 |
color: #e0e0e0; /* Light text color */
|
| 15 |
display: flex;
|
| 16 |
flex-direction: column;
|
|
@@ -19,67 +19,128 @@
|
|
| 19 |
height: 100vh;
|
| 20 |
transition: background-color 0.3s;
|
| 21 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
h1 {
|
| 23 |
margin-bottom: 20px;
|
| 24 |
}
|
|
|
|
| 25 |
label {
|
| 26 |
margin-top: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
|
|
|
| 28 |
input[type="number"] {
|
| 29 |
padding: 10px;
|
| 30 |
margin: 10px 0;
|
| 31 |
border: none;
|
| 32 |
border-radius: 5px;
|
| 33 |
-
background-color:
|
| 34 |
color: #e0e0e0; /* Input text color */
|
| 35 |
-
width:
|
| 36 |
-
transition: background-color 0.3s;
|
|
|
|
|
|
|
| 37 |
}
|
|
|
|
| 38 |
input[type="number"]:focus {
|
| 39 |
-
background-color:
|
| 40 |
outline: none;
|
| 41 |
}
|
|
|
|
| 42 |
button {
|
| 43 |
padding: 10px 20px;
|
| 44 |
border: none;
|
| 45 |
border-radius: 5px;
|
| 46 |
-
background-color:
|
| 47 |
color: white;
|
| 48 |
cursor: pointer;
|
| 49 |
-
transition: background-color 0.3s;
|
|
|
|
|
|
|
| 50 |
}
|
|
|
|
| 51 |
button:hover {
|
| 52 |
-
background-color:
|
|
|
|
| 53 |
}
|
|
|
|
| 54 |
.output {
|
| 55 |
margin-top: 20px;
|
| 56 |
padding: 15px;
|
| 57 |
border: 1px solid #444; /* Output border */
|
| 58 |
border-radius: 4px;
|
| 59 |
-
background-color:
|
| 60 |
-
width:
|
| 61 |
text-align: center;
|
| 62 |
}
|
|
|
|
| 63 |
.latex {
|
| 64 |
margin-top: 10px;
|
| 65 |
color: #90caf9; /* LaTeX output color */
|
| 66 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
</style>
|
| 68 |
</head>
|
| 69 |
<body>
|
| 70 |
|
| 71 |
-
<
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
</div>
|
| 84 |
|
| 85 |
<script>
|
|
|
|
| 7 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_HTML"></script>
|
| 8 |
<style>
|
| 9 |
body {
|
| 10 |
+
font-family: 'Arial', sans-serif;
|
| 11 |
margin: 0;
|
| 12 |
padding: 0;
|
| 13 |
+
background-color: rgba(18, 18, 18, 0.9); /* Dark background with slight transparency */
|
| 14 |
color: #e0e0e0; /* Light text color */
|
| 15 |
display: flex;
|
| 16 |
flex-direction: column;
|
|
|
|
| 19 |
height: 100vh;
|
| 20 |
transition: background-color 0.3s;
|
| 21 |
}
|
| 22 |
+
|
| 23 |
+
.background {
|
| 24 |
+
position: absolute;
|
| 25 |
+
top: 0;
|
| 26 |
+
left: 0;
|
| 27 |
+
right: 0;
|
| 28 |
+
bottom: 0;
|
| 29 |
+
background: linear-gradient(45deg, rgba(26, 1, 117, 0.5), rgba(225, 5, 34, 0.5)),
|
| 30 |
+
linear-gradient(135deg, rgba(225, 5, 152, 0.5), rgba(49, 5, 209, 0.5)),
|
| 31 |
+
rgba(255, 255, 255, 0.1);
|
| 32 |
+
backdrop-filter: blur(15px); /* Glassmorphism effect */
|
| 33 |
+
display: flex;
|
| 34 |
+
justify-content: center;
|
| 35 |
+
align-items: center;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.glass-panel {
|
| 39 |
+
background-color: rgba(255, 255, 255, 0.1);
|
| 40 |
+
border-radius: 15px;
|
| 41 |
+
padding: 32px;
|
| 42 |
+
box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.2),
|
| 43 |
+
-8px -8px 20px rgba(255, 255, 255, 0.2);
|
| 44 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 45 |
+
transition: transform 0.3s;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.glass-panel:hover {
|
| 49 |
+
transform: translateY(-5px); /* Neumorphism hover effect */
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
h1 {
|
| 53 |
margin-bottom: 20px;
|
| 54 |
}
|
| 55 |
+
|
| 56 |
label {
|
| 57 |
margin-top: 10px;
|
| 58 |
+
opacity: 0.8;
|
| 59 |
+
font-size: 0.9rem;
|
| 60 |
+
font-weight: bold;
|
| 61 |
+
text-transform: uppercase;
|
| 62 |
+
display: block;
|
| 63 |
}
|
| 64 |
+
|
| 65 |
input[type="number"] {
|
| 66 |
padding: 10px;
|
| 67 |
margin: 10px 0;
|
| 68 |
border: none;
|
| 69 |
border-radius: 5px;
|
| 70 |
+
background-color: rgba(31, 31, 31, 0.9); /* Darker input background */
|
| 71 |
color: #e0e0e0; /* Input text color */
|
| 72 |
+
width: 100%;
|
| 73 |
+
transition: background-color 0.3s, border-color 0.3s;
|
| 74 |
+
box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.5),
|
| 75 |
+
inset -5px -5px 10px rgba(255, 255, 255, 0.1);
|
| 76 |
}
|
| 77 |
+
|
| 78 |
input[type="number"]:focus {
|
| 79 |
+
background-color: rgba(39, 39, 39, 0.9); /* Input focus color */
|
| 80 |
outline: none;
|
| 81 |
}
|
| 82 |
+
|
| 83 |
button {
|
| 84 |
padding: 10px 20px;
|
| 85 |
border: none;
|
| 86 |
border-radius: 5px;
|
| 87 |
+
background-color: rgba(98, 0, 234, 0.9); /* Button color */
|
| 88 |
color: white;
|
| 89 |
cursor: pointer;
|
| 90 |
+
transition: background-color 0.3s, transform 0.3s;
|
| 91 |
+
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5),
|
| 92 |
+
-5px -5px 10px rgba(255, 255, 255, 0.1);
|
| 93 |
}
|
| 94 |
+
|
| 95 |
button:hover {
|
| 96 |
+
background-color: rgba(55, 0, 179, 0.9); /* Button hover color */
|
| 97 |
+
transform: translateY(-2px); /* Button hover effect */
|
| 98 |
}
|
| 99 |
+
|
| 100 |
.output {
|
| 101 |
margin-top: 20px;
|
| 102 |
padding: 15px;
|
| 103 |
border: 1px solid #444; /* Output border */
|
| 104 |
border-radius: 4px;
|
| 105 |
+
background-color: rgba(31, 31, 31, 0.9); /* Output background */
|
| 106 |
+
width: 100%; /* Responsive output */
|
| 107 |
text-align: center;
|
| 108 |
}
|
| 109 |
+
|
| 110 |
.latex {
|
| 111 |
margin-top: 10px;
|
| 112 |
color: #90caf9; /* LaTeX output color */
|
| 113 |
}
|
| 114 |
+
|
| 115 |
+
@media (max-width: 600px) {
|
| 116 |
+
.glass-panel {
|
| 117 |
+
padding: 20px;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
input[type="number"], button {
|
| 121 |
+
width: calc(100% - 20px); /* Full width inputs */
|
| 122 |
+
}
|
| 123 |
+
}
|
| 124 |
</style>
|
| 125 |
</head>
|
| 126 |
<body>
|
| 127 |
|
| 128 |
+
<div class="background">
|
| 129 |
+
<div class="glass-panel">
|
| 130 |
+
<h1>Time Calculation for Dataset Training</h1>
|
| 131 |
+
<label for="dataset_size">Dataset Size (kB):</label>
|
| 132 |
+
<input type="number" id="dataset_size" value="67.4" step="0.1"><br>
|
| 133 |
+
|
| 134 |
+
<label for="epochs">Number of Epochs:</label>
|
| 135 |
+
<input type="number" id="epochs" value="1"><br>
|
| 136 |
+
|
| 137 |
+
<button id="calculate_btn">Calculate</button>
|
| 138 |
+
|
| 139 |
+
<div class="output">
|
| 140 |
+
<h3 id="result_text"></h3>
|
| 141 |
+
<div id="result_latex" class="latex"></div>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
</div>
|
| 145 |
|
| 146 |
<script>
|