21 lines
556 B
JavaScript
Executable File
21 lines
556 B
JavaScript
Executable File
var myModule = angular.module('landingPage', []);
|
|
|
|
|
|
myModule.controller('MainCtrl', function($scope, $http, $location, $window) {
|
|
$scope.postUsername = function() {
|
|
var account = {
|
|
"name": $scope.username,
|
|
"password": 'oOoOoO',
|
|
"meetingName": $scope.meetingName == undefined ? 'Demo Meeting' : $scope.meetingName
|
|
};
|
|
jQuery.getJSON("config.json", function (json) {
|
|
$http.post('/login', account).success(function(res) {
|
|
//alert(res.success.url);
|
|
$window.location.href = res.success.url;
|
|
});
|
|
});
|
|
};
|
|
});
|
|
|
|
|