PageSourceSearch

https://card.gruni.edu.ge/front/js/func_1.js?v=27

js gruni.edu.ge collected 2026-10-02 07:44:10 UTC 3,831 bytes, 123 lines download raw bytes

1/*  Wizard */
2jQuery(function($) {
3    "use strict";
4    $("#wizard_container").wizard({
5        stepsWrapper: "#wrapped",
6        submit: ".submit",
7        unidirectional: false,
8        beforeSelect: function(event, state) {
9            if ($('input#website').val().length != 0) {
10                return false;
11            }
12            if (!state.isMovingForward)
13                return true;
14            var inputs = $(this).wizard('state').step.find(':input');
15            return !inputs.length || !!inputs.valid();
16        }
17    }).validate({
18        errorPlacement: function(error, element) {
19            if (element.is(':radio') || element.is(':checkbox')){
20                error.insertBefore(element.next());
21            } else {
22                error.insertAfter(element);
23            }
24        }
25    });
26    //  progress bar
27    $("#progressbar").progressbar();
28    $("#wizard_container").wizard({
29        afterSelect: function(event, state) {
30            $("#progressbar").progressbar("value", state.percentComplete);
31            $("#location").text("" + state.stepsComplete + " of " + state.stepsPossible + " completed");
32        }
33    });
34});
35
36$("#wizard_container").wizard({
37    transitions: {
38        branchtype: function($step, action) {
39            var branch = $step.find(":checked").val();
40            if (!branch) {
41                $("form").valid();
42            }
43            return branch;
44        }
45    }
46});
47
48// Input name and email value
49function getVals(formControl, controlType) {
50    switch (controlType) {
51
52        case 'name_field':
53            // Get the value for input
54            var value = $(formControl).val();
55            $("#name_field").text(value);
56            break;
57
58        case 'email_field':
59            // Get the value for input
60            var value = $(formControl).val();
61            $("#email_field").text(value);
62            break;
63    }
64}
65$('.digits_only').bind('keypress', function(e) {
66  return ( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57)) ? false : true ;
67});
68
69$('.text_only').bind('keypress', function(e) {
70  return ( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57) &&e.which!=33&&e.which!=64&&e.which!=35&&e.which!=36&&e.which!=37&&e.which!=94&&e.which!=38&&e.which!=42&&e.which!=40&&e.which!=41&&e.which!=43&&e.which!=126&&e.which!=96&&e.which!=61&&e.which!=92&&e.which!=124&&e.which!=47&&e.which!=63&&e.which!=62&&e.which!=46&&e.which!=60&&e.which!=44) ? true : false ;
71});
72
73$(document).on('click', '.time_cl .time', function() {
74  $('.time_cl .time').removeClass('active');
75  if(!$(this).hasClass('disabled')) {
76    $(this).addClass('active');
77  }
78
79})
80
81$(document).ready(function() {
82  $('.branchvs[value="1"]').change();
83});
84
85$(document).on('change', '.branchvs', function() {
86  let branch = $(this).val();
87  $.get("/statements/availability/"+branch, function(data, status){
88    $('.time_cl td').removeClass('disabled');
89    $('.time_cl td input').prop('disabled', false);
90    $.each(data, function(index, items) {
91      console.log(items.date_count);
92      if(items.date_count >= 4) {
93        $('.time_cl td[data-time="'+items.date+'"]').addClass('disabled');
94        $('.time_cl td[data-time="'+items.date+'"]').find('input').prop('disabled', true);
95      }
96    })
97
98  });
99});
100
101// header scroll function
102let lastScroll = 0;
103
104$("#contentBox").on("scroll", function () {
105    let currentScroll = $(this).scrollTop();
106
107    // Always show at very top
108    if (currentScroll <= 0) {
109        $("#mainHeader").removeClass("hide");
110        lastScroll = currentScroll;
111        return;
112    }
113
114    if (currentScroll > lastScroll) {
115        // Scrolling DOWN → show header
116        $("#mainHeader").removeClass("hide");
117    } else {
118        // Scrolling UP → hide header
119        $("#mainHeader").addClass("hide");
120    }
121
122    lastScroll = currentScroll;
123});

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.