Pārlūkot izejas kodu

Move sorting code to own file

Carlos Hernandez 3 gadus atpakaļ
vecāks
revīzija
938b50bb63
1 mainītis faili ar 1 papildinājumiem un 28 dzēšanām
  1. 1
    28
      dato_template/index.html

+ 1
- 28
dato_template/index.html Parādīt failu

@@ -45,7 +45,7 @@
45 45
 	<!--[if lt IE 9]>
46 46
 	<script src="js/respond.min.js"></script>
47 47
 	<![endif]-->
48
-
48
+	<script src="sortposts.js"></script>
49 49
 	</head>
50 50
 	<body>
51 51
 	<header role="banner" id="fh5co-header">
@@ -171,33 +171,6 @@
171 171
 
172 172
 
173 173
 
174
-	<script>
175
-		function plswork(id) {
176
-			console.log("Executing function.");
177
-			var value = document.getElementById("my-selection").value;
178
-			console.log(value);
179
-
180
-			var parentNode = document.getElementById("rows-parent");
181
-			var instagramRow = document.getElementById("instagram-row");
182
-			var podcastsRow = document.getElementById("podcasts-row");
183
-			var articlesRow = document.getElementById("articles-row");
184
-			if (value == 1) {
185
-				parentNode.appendChild(podcastsRow);
186
-				parentNode.appendChild(instagramRow);
187
-				parentNode.appendChild(articlesRow);
188
-			}
189
-			else if (value == 2) {
190
-				parentNode.appendChild(instagramRow);
191
-				parentNode.append(articlesRow);
192
-				parentNode.appendChild(podcastsRow);
193
-			}
194
-			else if (value == 3) {
195
-				parentNode.append(articlesRow);
196
-				parentNode.appendChild(podcastsRow);
197
-				parentNode.appendChild(instagramRow);
198
-			}
199
-		}
200
-	</script>
201 174
 	<!-- jQuery -->
202 175
 	<script src="js/jquery.min.js"></script>
203 176
 	<!-- jQuery Easing -->