Browse Source

tot en fitxers del mateix servidor, i url dels gets/posts apuntant a l'api del servidor

master
nau 8 years ago
parent
commit
59a9349de9
7 changed files with 18 additions and 14 deletions
  1. +1
    -1
      web/controllers.js
  2. +1
    -1
      web/index.html
  3. +4
    -0
      web/js/jquery-2.1.1.min.js
  4. +3
    -3
      web/login.html
  5. +3
    -3
      web/newthought.html
  6. +3
    -3
      web/signup.html
  7. +3
    -3
      web/user.html

+ 1
- 1
web/controllers.js

@ -1,6 +1,6 @@
var url="http://localhost:3000/api/";
var url="https://thoughtsserver.herokuapp.com/api/";
angular.module('thoughtsApp', [])
.controller('ThoughtsController', function(
$scope,

+ 1
- 1
web/index.html

@ -46,7 +46,7 @@
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="jslib/toastr.js"></script>

+ 4
- 0
web/js/jquery-2.1.1.min.js
File diff suppressed because it is too large
View File


+ 3
- 3
web/login.html

@ -3,7 +3,7 @@
<html ng-app="thoughtsApp">
<head>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="fonts/icons.css" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
@ -12,7 +12,7 @@
<title>Thoughts - login</title>
<!-- ANGULAR -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<script src="libraries/angular.min.js"></script>
</head>
<body ng-controller="ThoughtsController">
@ -46,7 +46,7 @@
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="jslib/toastr.js"></script>

+ 3
- 3
web/newthought.html

@ -3,7 +3,7 @@
<html ng-app="thoughtsApp">
<head>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="fonts/icons.css" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
@ -12,7 +12,7 @@
<title>Thoughts - new thought</title>
<!-- ANGULAR -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<script src="libraries/angular.min.js"></script>
</head>
<body ng-controller="ThoughtsController">
@ -40,7 +40,7 @@
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="jslib/toastr.js"></script>

+ 3
- 3
web/signup.html

@ -3,7 +3,7 @@
<html ng-app="thoughtsApp">
<head>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="fonts/icons.css" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
@ -12,7 +12,7 @@
<title>Thoughts - signup</title>
<!-- ANGULAR -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<script src="libraries/angular.min.js"></script>
</head>
<body ng-controller="ThoughtsController">
@ -62,7 +62,7 @@
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="jslib/toastr.js"></script>

+ 3
- 3
web/user.html

@ -3,7 +3,7 @@
<html ng-app="thoughtsApp">
<head>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="fonts/icons.css" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
@ -12,7 +12,7 @@
<title>Thoughts</title>
<!-- ANGULAR -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<script src="libraries/angular.min.js"></script>
</head>
<body ng-controller="ThoughtsController as thoughtsList">
@ -46,7 +46,7 @@
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="jslib/toastr.js"></script>

Loading…
Cancel
Save