PageSourceSearch

http://futuretechbizsoft.com/Js/Application.js?v=0.1

js futuretechbizsoft.com collected 2026-10-02 01:29:47 UTC 3,082 bytes, 76 lines download raw bytes

1var MyApp = angular.module('MyApp', [])
2MyApp.controller('LayoutController', function ($scope, $http) {
3    
4    $scope.GetProjects = function (Username) {
5        if (Username != '' && Username != undefined) {
6            $scope.Islogin = true;
7        } else {
8            $scope.Islogin = false;
9        }
10        debugger
11        $http.post('/Home/GetProjects', { 'SeqNo': '' }).success(function (data) {          
12            $scope.ProjectData = JSON.parse(data);
13            var html = "";
14            for (var i = 0; i < $scope.ProjectData.length; i++) {
15                html += "<a class='single-works' href='/Home/ProjectDetails?SeqNo=" + $scope.ProjectData[i].SEQ_NO + "' target='_blank'>";
16                html += "<div class='single-works'>";
17                html += "<img src='/Files/Projects_img/" + $scope.GetName($scope.ProjectData[i].CLIENT_NAME) + "/" + $scope.ProjectData[i].MAIN_IMG + "' alt='" + $scope.ProjectData[i].CLIENT_NAME + "'>";
18                html += "<div class='works-content'><h3>" + $scope.ProjectData[i].CLIENT_NAME + "</h3></div>";
19                html += "</div></a>";
20            }
21           
22            $("#project-slider").append(html);
23            $('.owl-carousel').trigger('destroy.owl.carousel');
24            $(".owl-carousel").owlCarousel();
25        })
26    }
27
28    $scope.GetName = function (name) {
29        return name.replace(/[^A-Z0-9]/gi, '');
30    }
31
32    $scope.LoginData = {
33        USER_NAME: "",
34        PASSWORD:""
35    }
36
37    $scope.Userlogin = function (LoginData) {
38        debugger
39        $http.post('/Home/UserLogin', { 'UserName': LoginData.USER_NAME, 'Password': LoginData.PASSWORD }).success(function (Data) {
40            if (Data =="SUCCESS") {
41                window.location.href = "/Home/ProjectMaster";
42            } else {
43                alert("Wrong Username or Password!")
44            }
45            
46        });
47        
48    }
49
50    $scope.LogOut = function () {
51        $http.get('/Home/LogOff').success(function () {
52            window.location.href = "/Home/Login";
53        });
54    }
55
56    $scope.BlogDate1 = ""; $scope.BlogDate2 = ""; $scope.BlogDate3 = "";
57    // Function to calculate the date minus a specified number of months
58    function calculateDateMinusMonths(months) {
59        const currentDate = new Date();
60        currentDate.setMonth(currentDate.getMonth() - months);
61        currentDate.setDate(currentDate.getDate() - months)
62        return currentDate.toDateString();
63    }
64     // Calculate dates
65    const dateMinus2To3Months = calculateDateMinusMonths(3); // 2-3 months ago
66    const dateMinus1To2Months = calculateDateMinusMonths(1); // 1-2 months ago
67    const dateInBetween = calculateDateMinusMonths(2); // Between 2-3 and 1 - 2 months
68    // Display dates in the span elements
69    $scope.BlogDate1 = dateMinus2To3Months;
70    $scope.BlogDate2 = dateMinus1To2Months;
71    $scope.BlogDate3 = dateInBetween;
72
73    const PrivacyDate = calculateDateMinusMonths(4.5);
74    $scope.PrivacyDate = PrivacyDate;
75});
76

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.