| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/usa_sites/governmentgrants.us/vx_/js/ |
Upload File : |
app.controller('SiteContent', function ($rootScope, $scope, $http, $window, $location, $document) {
console.log("Site Content Controllers Loaded");
$scope.startSignup = function (data) {
$http({
method: 'POST',
url: '/layout/functions/startSignup.php',
data: $.param(data),
dataType: 'json',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
}).then(function successCallback(response) {
$rootScope.lead = response.data.lead;
$rootScope.lead = ($rootScope.lead * 1);
if ($rootScope.lead > 0)
{
window.location = '/order/';
}
});
};
$scope.setApplication = function () {
$http({
method: 'POST',
url: '/layout/functions/setApplication.php',
data: $.param($rootScope.signUp),
dataType: 'json',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
}).then(function successCallback(response) {
});
};
$scope.quickSignUp = function (data) {
$http({
method: 'POST',
url: '/layout/functions/startSignup.php',
data: $.param(data),
dataType: 'json',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
}).then(function successCallback(response) {
$rootScope.lead = response.data.lead;
$rootScope.lead = ($rootScope.lead * 1);
if ($rootScope.lead > 0) {
window.location = '/order/';
}
});
};
$scope.setCategorySelection = function (set) {
var s = $rootScope.signUp.category[set];
if (s == "yes")
{
s = "no";
}
else
{
s = "yes";
}
$rootScope.signUp.category[set] = s;
};
$scope.scoreCounter = 0;
$rootScope.score = {};
$scope.quizStart = function () {
console.log($scope.ten);
$scope.scoreCounter ++;
};
});