shulik7 commited on
Commit
890708e
·
verified ·
1 Parent(s): aeede51

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -124
index.html CHANGED
@@ -5,129 +5,7 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Protein Subcellular Localization Predictor</title>
7
  <script type="module" src="https://cdn.jsdelivr.net/npm/@xenova/transformers@2.17.2"></script>
8
- <style>
9
- body {
10
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
11
- max-width: 1400px;
12
- margin: 50px auto;
13
- padding: 20px;
14
- background-color: #f5f5f5;
15
- }
16
- .container {
17
- background: white;
18
- padding: 30px;
19
- border-radius: 10px;
20
- box-shadow: 0 2px 10px rgba(0,0,0,0.1);
21
- }
22
- h1 {
23
- color: #2c3e50;
24
- text-align: center;
25
- }
26
- .input-section {
27
- margin: 20px 0;
28
- }
29
- textarea {
30
- width: 100%;
31
- min-height: 150px;
32
- padding: 15px;
33
- border: 2px solid #ddd;
34
- border-radius: 5px;
35
- font-family: 'Courier New', monospace;
36
- font-size: 14px;
37
- resize: vertical;
38
- }
39
- textarea:focus {
40
- outline: none;
41
- border-color: #3498db;
42
- }
43
- button {
44
- background-color: #3498db;
45
- color: white;
46
- padding: 12px 30px;
47
- border: none;
48
- border-radius: 5px;
49
- cursor: pointer;
50
- font-size: 16px;
51
- width: 100%;
52
- margin-top: 10px;
53
- }
54
- button:hover {
55
- background-color: #2980b9;
56
- }
57
- button:disabled {
58
- background-color: #95a5a6;
59
- cursor: not-allowed;
60
- }
61
- #status {
62
- margin: 15px 0;
63
- padding: 10px;
64
- border-radius: 5px;
65
- display: none;
66
- }
67
- .status-loading {
68
- background-color: #fff3cd;
69
- color: #856404;
70
- border: 1px solid #ffeaa7;
71
- }
72
- .status-success {
73
- background-color: #d4edda;
74
- color: #155724;
75
- border: 1px solid #c3e6cb;
76
- }
77
- .status-error {
78
- background-color: #f8d7da;
79
- color: #721c24;
80
- border: 1px solid #f5c6cb;
81
- }
82
- #results {
83
- margin-top: 20px;
84
- }
85
- .result-item {
86
- padding: 10px;
87
- margin: 5px 0;
88
- background-color: #ecf0f1;
89
- border-radius: 5px;
90
- display: flex;
91
- justify-content: space-between;
92
- align-items: center;
93
- }
94
- .species-name {
95
- font-weight: bold;
96
- color: #2c3e50;
97
- }
98
- .probability {
99
- color: #27ae60;
100
- font-weight: bold;
101
- }
102
- .info-box {
103
- background-color: #e3f2fd;
104
- border-left: 4px solid #2196f3;
105
- padding: 15px;
106
- margin: 15px 0;
107
- border-radius: 3px;
108
- }
109
- .warning-box {
110
- background-color: #fff3cd;
111
- border-left: 4px solid #ffc107;
112
- padding: 15px;
113
- margin: 15px 0;
114
- border-radius: 3px;
115
- font-size: 14px;
116
- }
117
- .example-btn {
118
- background-color: #f0f0f0;
119
- color: #333;
120
- border: 1px solid #ccc;
121
- cursor: pointer;
122
- transition: all 0.2s;
123
- }
124
- .example-btn:hover {
125
- background-color: #3498db;
126
- color: white;
127
- border-color: #3498db;
128
- transform: translateY(-1px);
129
- }
130
- </style>
131
  </head>
132
  <body>
133
  <div class="container">
@@ -344,7 +222,7 @@
344
  const displayName = proteinDisplayNames[proteinName] || proteinName;
345
  currentGeneName = displayName;
346
  document.getElementById('proteinInput').value = sequence;
347
- showStatus(`Loaded ${displayName} protein sequence. Click "Analyze Protein" to predict its location!`, 'success');
348
  }
349
  }
350
 
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Protein Subcellular Localization Predictor</title>
7
  <script type="module" src="https://cdn.jsdelivr.net/npm/@xenova/transformers@2.17.2"></script>
8
+ <link rel="stylesheet" href="style.css">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  </head>
10
  <body>
11
  <div class="container">
 
222
  const displayName = proteinDisplayNames[proteinName] || proteinName;
223
  currentGeneName = displayName;
224
  document.getElementById('proteinInput').value = sequence;
225
+ showStatus(`Loaded ${displayName} protein sequence. Click "Predict Localization" to predict its location!`, 'success');
226
  }
227
  }
228