-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (33 loc) · 1.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html ng-app="Store">
<head>
<title>The Store</title>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="app.js"></script>
<style>
img.product-photo {
width: 100px;
height: 100px;
}
</style>
</head>
<body class="container" ng-controller="AppController as store">
<h1> Welcome th the Things Store!</h1>
<h2> Buy all the things </h2>
<nav>
<a ng-href="#/list">Browse the things</a>
<a ng-href="#/new">Post a thing</a>
</nav>
<div ng-view></div>
<script>
function upload(form){
document.getElementById("newForm").photo.value = form.files[0].name;
console.log(form.files[0].name);
console.log(document.getElementById("newForm").photo.value);
}
</script>
</body>
</html>