Browse Source

Move sorting code to own file

Carlos Hernandez 3 years ago
parent
commit
a8c043bef0
1 changed files with 1 additions and 28 deletions
  1. 1
    28
      app_template/www/home.html

+ 1
- 28
app_template/www/home.html View File

45
 	<!--[if lt IE 9]>
45
 	<!--[if lt IE 9]>
46
 	<script src="js/respond.min.js"></script>
46
 	<script src="js/respond.min.js"></script>
47
 	<![endif]-->
47
 	<![endif]-->
48
-
48
+	<script src="sortposts.js"></script>
49
 	</head>
49
 	</head>
50
 	<body>
50
 	<body>
51
 	<header role="banner" id="fh5co-header">
51
 	<header role="banner" id="fh5co-header">
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
 	<!-- jQuery -->
174
 	<!-- jQuery -->
202
 	<script src="js/jquery.min.js"></script>
175
 	<script src="js/jquery.min.js"></script>
203
 	<!-- jQuery Easing -->
176
 	<!-- jQuery Easing -->