PageSourceSearch

https://www.coimbatorecapital.com/js/IPOHome.js

js coimbatorecapital.com collected 2026-10-02 00:07:11 UTC 4,008 bytes, 115 lines download raw bytes

1/// <reference path="angular.min.js" />
2
3app.controller("IPOChartcontroller", function ($scope, $timeout, $http) {
4    $scope.bindchartIPO = function (exchange)
5    {
6        $http({
7            method: 'POST',
8            url: '/api/ipowatch',
9            data: "{Exchg: '" + exchange + "',Top: '6'}"
10        }).then(function success(response)
11        {
12            $scope.ipochartdata = response.data;
13            // Themes begin
14            am4core.useTheme(am4themes_animated);
15            // Themes end
16
17            // Create chart instance
18            var chart = am4core.create("ipochartdiv", am4charts.XYChart);
19
20            // Add data
21            chart.data = eval($scope.ipochartdata);
22
23            // Create axes
24
25            var categoryAxis = chart.xAxes.push(new am4charts.CategoryAxis());
26            categoryAxis.dataFields.category = "CO_NAME";
27            categoryAxis.renderer.grid.template.location = 0;
28            categoryAxis.renderer.minGridDistance = 30;
29
30            categoryAxis.renderer.labels.template.adapter.add("dy", function (dy, target) {
31                if (target.dataItem && target.dataItem.index & 2 == 2) {
32                    return dy + 25;
33                }
34                return dy;
35            });
36
37            var valueAxis = chart.yAxes.push(new am4charts.ValueAxis());
38
39            // Create series
40            var series = chart.series.push(new am4charts.ColumnSeries());
41            series.dataFields.valueY = "PerChange";
42            series.dataFields.categoryX = "CO_NAME";
43            series.name = "Change %";
44            series.columns.template.tooltipText = "{categoryX}: [bold]{valueY}[/]";
45            series.columns.template.fillOpacity = .8;
46            series.fillOpacity = 1;
47            series.stroke = am4core.color("#5e852a");
48            series.strokeWidth = 1;
49
50            var gradient = new am4core.LinearGradient();
51            gradient.addColor(am4core.color("#84DA12"));
52            gradient.addColor(am4core.color("#75bf13"));
53            gradient.rotation = 0;
54            series.fill = gradient; // green fill
55
56            var columnTemplate = series.columns.template;
57            columnTemplate.strokeWidth = 2;
58            columnTemplate.strokeOpacity = 1;
59        },
60
61        function error(response){
62        
63        })
64    }
65});
66
67app.controller("IPOPerformancecontroller", function ($scope, $timeout, $http) {
68    
69    $scope.ipoexchange = "BSE";
70    $scope.redirect = "/ipo/best-performance";
71    $scope.bindipoper = function (Exchange)
72    {
73        
74        $scope.ipoexchange = Exchange
75        $scope.date = new Date();
76        var month = new Array();
77        month[0] = "Jan";
78        month[1] = "Feb";
79        month[2] = "Mar";
80        month[3] = "Apr";
81        month[4] = "May";
82        month[5] = "Jun";
83        month[6] = "Jul";
84        month[7] = "Aug";
85        month[8] = "Sep";
86        month[9] = "Oct";
87        month[10] = "Nov";
88        month[11] = "Dec";
89        $scope.mth = month[$scope.date.getMonth()];
90        $scope.year = $scope.date.getFullYear();
91        $scope.lastyear = $scope.date.getFullYear() - 1;
92        $scope.fromdate = $scope.mth + " " + $scope.lastyear;
93        $scope.todate = $scope.mth + " " + $scope.year;
94        $http({
95            method: 'POST',
96            url: '/api/ipoperformance',
97            data: "{Exchg: '" + Exchange + "',Top: '4',date1: '" + $scope.fromdate + "',date2: '" + $scope.todate + "',order: 'high'}"
98        }).then(function success(response) {
99            
100            if (response.data.length > 0) {
101                $scope.dataipoperformance = response.data;
102                //$("#trnodata").hide();
103                //$("#trdata").show();
104            } else {
105                //$("#trdata").hide();
106                //$("#trnodata").show();
107            }
108        },
109        function error(response)
110        {
111
112        })
113        
114    }
115});

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.